COMMUNICATION DEVICE WITH STORAGE FUNCTION
According to one embodiment, a communication device includes a data storage device and following units. The reception unit receives data from another communication device. The data storage device includes a data area controlled by a file system and a temporary area beyond control of the file system. The processing unit operates in one of first and second start modes, the processing unit being started faster in the second start mode than in the first start mode. The processing unit operating in the second start mode writes the received data to the temporary area, copies the received data in the temporary area to the data area after completion of data reception, and erases the received data in the temporary area after copying.
Latest KABUSHIKI KAISHA TOSHIBA Patents:
- ENCODING METHOD THAT ENCODES A FIRST DENOMINATOR FOR A LUMA WEIGHTING FACTOR, TRANSFER DEVICE, AND DECODING METHOD
- RESOLVER ROTOR AND RESOLVER
- CENTRIFUGAL FAN
- SECONDARY BATTERY
- DOUBLE-LAYER INTERIOR PERMANENT-MAGNET ROTOR, DOUBLE-LAYER INTERIOR PERMANENT-MAGNET ROTARY ELECTRIC MACHINE, AND METHOD FOR MANUFACTURING DOUBLE-LAYER INTERIOR PERMANENT-MAGNET ROTOR
This application is a Continuation Application of PCT Application No. PCT/JP2010/051439, filed Feb. 2, 2010, the entire contents of which are incorporated herein by reference.
FIELDEmbodiments described herein relate generally to a wireless communication device with a data storage device.
BACKGROUNDA wireless communication device such as a mobile phone generally includes a nonvolatile memory as a data storage device. A NAND flash memory that is relatively inexpensive among the nonvolatile memories is often used as the nonvolatile memory mounted on the wireless communication device. In the NAND flash memory, when data is overwritten in an area to which data is already written, it is necessary to erase the data in the area before writing the new data. It is known that the throughput of data writing is greatly degraded because of the erase process. For example, the data writing speed in the NAND flash memory sometimes becomes lower than the data transfer rate between wireless communication devices. In this case, it is necessary to provide a temporary buffer of large capacity that stores the received data during the data-erase waiting time in a wireless communication device on the data reception side.
As the technique for increasing the data writing speed in the flash memory, for example, a method that uses a plurality of buffer memories with respect to a main memory is disclosed in JP-A 2008-204623 (KOKAI). Further, a method for providing an extra area in a memory is disclosed in JP-A 10-134559 (KOKAI).
However, in JP-A 2008-204623 (KOKAI), there occurs a problem that the circuit size is increased and the power consumption and cost are increased since it is necessary to prepare a plurality of buffer memories. Further, in JP-A 10-134559 (KOKAI), since it is necessary to provide a large extra area in the memory and perform preprocessing at the data write time, there occurs a problem that the latency until writing is started becomes long. Therefore, the communication device is required to have short latency until writing is started and to receive data at high speed even with a small circuit size.
In general, according to one embodiment, a communication device includes a reception unit, a data storage device, and a processing unit. The reception unit is configured to receive data from another communication device. The data storage device includes a data area controlled by a file system and a temporary area which is beyond control of the file system, the temporary area being allocated a fixed logical address. The processing unit is configured to operate in one of a first start mode and a second start mode to write the received data to the data storage device, the first start mode being a mode in which the processing unit is started according to a start request generated at the communication device, the second start mode being a mode in which the processing unit is started according to a start request provided from outside of the communication device, the processing unit being started faster in the second start mode than in the first start mode. If the processing unit operates in the second start mode, the processing unit writes the received data to the temporary area, copies the received data in the temporary area to the data area after completion of data reception, and erases the received data in the temporary area after copying.
One embodiment provides a communication device with a small circuit size which realizes high-speed data communication.
Hereinafter, communication devices according to various embodiments will be described with reference to the accompanying drawings. In the embodiments, like reference numbers denote like elements, and duplication of explanation will be avoided.
First EmbodimentThe first communication terminal 101 includes a communication modem 102, an antenna 103, a host system 104, and a memory 105. The host system 104 is connected to the communication modem 102 and memory 105 via an interface (not shown). When data is transferred to the second communication terminal 106, the host system 104 writes, to the memory 105, data to be transmitted to the second communication terminal 106. The communication modem 102 reads, from the memory 105, the data to be transmitted to the second communication terminal 106 according to an instruction of the host system 104. The communication modem 102 generates a data signal from the read data by signal processing for wireless communication. The communication modem 102 transmits the data signal via the antenna 103. Further, as will be described later, the communication modem 102 transmits various signals (for example, communication start response, communication end notification and the like) to the second communication terminal 106 and receives various signals (for example, communication start request, acknowledge (ACK) packet and the like) from the second communication terminal 106.
In the present embodiment, assumed as the first communication terminal 101 is a communication device in which a request for low power consumption is low in comparison with a mobile terminal, for example, a stationary terminal such as a desktop personal computer (PC) or television receiver to which power is supplied from the exterior.
The second communication terminal 106 includes a communication modem 107, an antenna 108, host system 109, a memory 110, and a detection unit 111. The host system 109 is connected to the communication modem 107 and memory 110 via a host interface 407 shown in
The detection unit 111 detects an instantaneous start request, which is a signal provided from outside of the terminal 106, to generate a trigger that urges start of the communication modem 107 and start of a process. For example, the detection unit 111 detects that a communication partner (for example, first communication terminal 101) approaches. Then, the detection unit 111 notifies a communication/data storage unit 112 about approaching of the communication partner by passing the detection result to a power source/clock control unit 402 (shown in
The second communication terminal 106 operates in one of two start modes, that is, an instantaneous start mode and normal start mode. The instantaneous start mode (also referred to as a second start mode) is a mode in which the communication/data storage unit 112 is started according to a start request provided from outside of the second communication terminal 106, i.e., a mode in which the detection unit 111 starts the communication/data storage unit 112 to make ready for data transfer from a communication partner when the communication partner is detected by the detection unit 111. As will be explained later, the memory 110 is previously partitioned into a data area and temporary area by using a logical address. The data received from the first communication terminal 101 is written to the temporary area in the instantaneous start mode. In this case, the logical address is used when data is read and written, and does not necessarily coincide with a physical address indicating one of memory cells in the memory 110 to which data is to be written.
In the instantaneous start mode, the received data stored in the temporary area is copied to the data area after data reception is completed and then the received data in the temporary area is erased. After the received data in the temporary area is erased, the communication modem 107 notifies the host system 109 about completion of the reception process. After receiving the notification indicating completion of the reception process from the communication modem 107, the host system 109 accesses the memory 110 to use data written to the memory 110.
The normal start mode (also referred to as a first start mode) is a mode in which the communication/data storage unit 112 is started according to a start request generated in the internal portion (for example, the host system 109) of the terminal 106. In the normal start mode, the communication/data storage unit 112 uses the data area in the memory 110 to communicate with the host system 109 and receive data from the first communication terminal 101, without using the temporary area. That is, in the normal start mode, data received from the first communication terminal 101 is written to the data area of the memory 110 and the host system 109 can read and write data with respect to the data area of the memory 110.
In the present embodiment, assumed as the second communication terminal 106 is a communication device in which a request for low power consumption is high in comparison with a stationary terminal (for example, first communication terminal 101), for example, a mobile terminal such as a mobile phone or personal digital assistance (PDA) whose power is supplied from a battery. The communication terminal may be a mobile phone with a short-range wireless communication function such as Felica, RF-ID or the like.
The second communication terminal 106 that has detected the instantaneous start request is started in the instantaneous start mode and transmits a communication start request to the first communication terminal 101 (step S202). When receiving a communication start request from the second communication terminal 106, the first communication terminal 101 transmits a communication start response to the second communication terminal 106 if it is set in a state in which data can be transferred (step S203). The second communication terminal 106 confirms that the first communication terminal 101 is communicable by receiving the communication start response from the first communication terminal 101.
After transmitting the communication start response to the second communication terminal 106, the first communication terminal 101 starts to transfer data as a data signal to the second communication terminal 106 (step S204). Data transferred by the first communication terminal 101 may be transferred in one packet (or frame) or may be divided into plural packets (or frames) and transferred. While receiving data from the first communication terminal 101, the second communication terminal 106 writes received data to the temporary area of the memory 110. Further, when receiving data from the first communication terminal 101, the second communication terminal 106 transmits an ACK packet (or ACK frame) as a reception confirmation response to the first communication terminal 101 (step S205). In the example shown in
If data is divided into a plurality of packets (or frames) and transferred, data transfer and ACK return are repeatedly performed as shown in steps S206 and S207. The first communication terminal 101 confirms that data transfer is successfully performed by receiving the ACK packet (or ACK frame) returned from the second communication terminal 106.
When terminating transfer of data, the first communication terminal 101 transmits a communication end notification to the second communication terminal 106 (step S208). The second communication terminal 106 recognizes that data transfer by the first communication terminal 101 is completed by receiving the communication end notification. In the second communication terminal 106, the received data in the temporary area is copied to the data area after data transfer by the first communication terminal 101 is completed (step S209). After a copy process is completed, the data in the temporary area is erased (step S210).
As a method for permitting the second communication terminal 106 to determine whether or not communication is terminated, a method that uses the second communication terminal 106 that includes a timer whose count is reset to zero when a data packet is received and determines that communication is terminated if a packet is not received for a predetermined time period may be provided other than the method for receiving the communication end notification from the first communication terminal 101.
Further, in the example shown in
When an instantaneous start request is detected by use of a system that transfers data at a low rate as in NFC, the communication start request and response are transferred by use of an NFC system and then system handover may be performed to transfer data by use of a communication modem.
The data area 301 includes a file system area 303 that stores a file system. The file system records control information used for controlling a file and folder in the data area 301 and controls the file and folder stored in the data area 301 by using the control information. A data recording method for the memory 110, an access method with respect to the file and folder and the like are determined in the file system. The data area 301 is an area in which the file and folder are controlled by the file system. The temporary area 302 is not controlled by the file system or is an area beyond the control of the file system. Therefore, for example, an application executed on the host system 109 to access the memory 110 via the file system cannot access the temporary area 302.
The memory 110 of the present embodiment is, for example, a NAND flash memory. In the NAND flash memory, data writing and reading are performed in a page unit and data erase is performed in a block unit, where a page is formed by a plurality of memory cells and a block is formed by a plurality of pages. Each of the data area 301 and temporary area 302 includes a plurality of blocks. In
In the NAND flash memory, it is impossible to overwrite data in the block that is already written. Therefore, when data is overwritten in the block that is already written, new data is written after data in the block is erased. Further, when a portion of data stored in the block is rewritten, new data to be rewritten is written to another block that has already been erased and the other portion of the data stored in the block, which is not rewritten, is copied to the other block. Generally, in the NAND flash memory, overhead occurs because of erasing of data and copying of data in the block, and therefore the data writing speed is lowered. In the present embodiment, since data received from the first communication terminal 101 is stored in the temporary area 302 that has already been erased, overhead due to erasing of data and copying of data in the block does not occur and data received at the second communication terminal 106 is instantly written to the memory 110. Therefore, a temporary buffer (not shown) provided in the second communication terminal 106 (for example, in the communication circuit shown in
The memory 110 is not limited to the NAND flash memory and can be any type of nonvolatile memory if the memory is a memory in which data of an area having data written therein is required to be erased when data is overwritten in the area.
Next, the operation example of the memory 110 is explained with reference to
As shown in
In the above method, as shown in
The communication/data storage unit 112 includes a CPU 401, a power source/clock control unit 402, a memory 110 used as a data storage device, a data size determination unit 403, a memory control unit 404, a radio-frequency (RF) circuit 405, a communication circuit 406, and a host interface 407. The respective modules or units are connected to one another via a data bus 408. The communication modem 107 shown in
The communication/data storage unit 112 is connected to the host system 109 via the host interface 407. The host interface 407 exchanges data with the host system 109.
The detection unit 111 is controlled by the host system 109. The detection unit 111 detects an instantaneous start request to output a detection signal. The detection unit 111 notifies the power source/clock control unit 402 that the instantaneous start request is detected. The power source/clock control unit 402 starts to supply the power and clock to the respective modules such as the CPU 401 according to the notification of the instantaneous start request. Therefore, the communication/data storage unit 112 is started in the instantaneous start mode. In the instantaneous start mode, the communication/data storage unit 112 is started faster or in a shorter time period in comparison with the normal start mode. On the other hand, when a start request is notified from the host system 109 to the power source/clock control unit 402, the communication/data storage unit 112 is started in the normal start mode. One of the start modes in which the communication terminal 106 is started is notified from the power source/clock control unit 402 to the CPU 401.
The CPU (also referred to as a processing unit) 401 reads a control program stored in a ROM (not shown) and controls the operations of the respective modules according to the control program. The CPU 401 can access the memory 110 to read and write data with respect to the data area 301 and temporary area 302 in the memory 110. The CPU 401 is operated according to a start mode notified from the power source/clock control unit 402. In the instantaneous start mode, the CPU 401 transmits various signals or messages (for example, communication start request and the like) via the communication circuit 406 and RF circuit 405. Further, the CPU 401 writes data received from the first communication terminal 101 to the temporary area 302 of the memory 110 via the memory control unit 404. Then, the CPU 401 reads the received data stored in the temporary area 302 of the memory 110, writes the read received data to the data area 301 of the memory 110 and erases the received data in the temporary area 302 of the memory 110.
In the normal start mode, the CPU 401 is set in a state to wait for accessing from the host system 109 to the memory 110. Further, in the normal start mode, the CPU 401 transmits various signals or messages used for communication with a communication partner (not shown) via the communication circuit 406 and RF circuit 405 according to a request from the host system 109.
The communication circuit 406 performs signal processing for converting an analog signal to a digital signal, converting a digital signal to an analog signal and the like. The communication circuit 406 includes a temporary buffer (not shown) used for busy waiting of the data bus 408 and waiting for erasing of the memory 110. The RF circuit 405 performs a frequency conversion and amplification process and the like for wireless communication. The antenna 108 receives radio waves from the first communication terminal 101 to obtain a received signal (for example, data signal, communication start response, communication end notification or the like). The received signal is filtered, amplified and down-converted by the RF circuit 405 and converted to a digital signal by the communication circuit 406. The communication circuit 406 passes the received signal to the CPU 401. The CPU 401 recognizes that data transfer by the first communication terminal 101 is started by receiving a communication start response from the reception unit.
A message or signal (for example, communication start request, ACK packet or the like) transmitted to the first communication terminal 101 is generated from the CPU 401 or the like. The message generated from the CPU 401 is converted to an analog signal by the communication circuit 406, up-converted, amplified and filtered by the RF circuit 405 and transmitted from the antenna 108 as radio waves.
The memory control unit 404 converts a logical address specified by the host system 109 or CPU 401 to a corresponding physical address when data is written to or read from the memory 110. Further, the memory control unit 402 performs error correction coding and decoding and the like with respect to data to be transmitted and received.
The data size determination unit 403 determines whether or not the size of data received from the first communication terminal 101 exceeds a predetermined threshold value. Alternatively, the data size determination unit 403 may determine whether or not the size of data received from the first communication terminal 101 exceeds a size or capacity of the temporary area 302. The data size determination unit 403 notifies the CPU 401 about the determination result. The threshold value is preferably set to the same value as the size of the temporary area 302 of the memory 110 but may be set to a value smaller than the size of the temporary area 302. The data size determination unit 403 is shown as a hardware module in
Data received at the second communication terminal 106 is written to the temporary area 302 of the memory 110 (step S504). Then, the data size determination unit 403 determines whether or not the received data exceeds a predetermined threshold value (step S505). For example, in the second communication terminal 106, a counter provided in the data size determination unit 403 counts a size or amount of the received data and compares the size of the received data with the threshold value. The threshold value is set to a value that is not larger than the size (or capacity) of the temporary area 302. If it is determined in step S505 that the received data exceeds the threshold value, the process proceeds to step S509.
If the received data exceeds the threshold value, the second communication terminal 106 requests the first communication terminal 101 to temporarily stop data transfer (step S509). For example, the request is included in an ACK packet and transmitted. Then, the received data stored in temporary area 302 is copied to the data area 301 according to information of the file system (step S510). After the copy process is completed, the received data in the temporary area 302 is erased (step S511). Then, the second communication terminal 106 requests the first communication terminal 101 to restart data transfer (step S512). Further, in the second communication terminal 106, the counter for counting the amount of received data is reset. When receiving a data transfer restart request, the first communication terminal 101 restarts data transfer. When data transfer is restarted, the process returns to step S504. In step S504, data received at the second communication terminal 106 is written to the temporary area 302 of the memory 110. If the received data exceeds the threshold value again, the process of step S509 to step S512 is repeatedly performed.
In the second communication terminal 106, communication modem 107 detects the end of data transfer from the first communication terminal 101 by, for example, receiving a communication completion notification from the first communication terminal 101. Then, communication modem 107 determines whether or not data reception is correctly completed (step S506). If data reception is not correctly completed or if an error occurs in the received data depending on the state of the transmission path, data in the temporary area 302 is erased to discard the received data written to the temporary area in the second communication terminal 106. The communication modem 107 of the second communication terminal 106 requests the first communication terminal 101 to transmit data again, the process returns to step S504 and data is received again from the first communication terminal 101.
If data is correctly received in step S506, the process proceeds to step S507 and the received data in the temporary area 302 is copied to a folder of the data area 301 according to information of the file system (step S507). After completion of the copy process, the received data in the temporary area 302 is erased (step S508) and a series of reception processes is terminated.
On the other hand, if the normal start request is detected in step S502, the process proceeds to step S513. In step S513, the CPU 401 is set to a command waiting state to make ready for a case wherein a data read/write command is issued from the host system 109 to the memory 110.
In
As described above, if the communication device according to the present embodiment operates in the instantaneous mode, the communication device writes the received data obtained by data communication to the temporary area of the memory, without performing the erase process and accessing the file system. Therefore, the latency for memory writing can be reduced and the received data can be recorded on the memory at high speed. As a result, the temporary buffer used for waiting for erasing of the memory can be made small to attain a reduction in the circuit scale, low cost and low power consumption.
According to at least one of the embodiments described above, data can be received at high speed while suppressing the circuit size to the small size. At least one of the embodiments can be applied to a wireless communication device that realizes high-speed data communication.
While certain embodiments have been described, these embodiments have been presented by way of example only, and are not intended to limit the scope of the inventions. Indeed, the novel embodiments described herein may be embodied in a variety of other forms; furthermore, various omissions, substitutions and changes in the form of the embodiments described herein may be made without departing from the spirit of the inventions. The accompanying claims and their equivalents are intended to cover such forms or modifications as would fall within the scope and spirit of the inventions.
Claims
1. A communication device comprising:
- a reception unit configured to receive data from another communication device;
- a data storage device including a data area controlled by a file system and a temporary area which is beyond control of the file system, the temporary area being allocated a fixed logical address; and
- a processing unit configured to operate in one of a first start mode and a second start mode to write the received data to the data storage device, the first start mode being a mode in which the processing unit is started according to a start request generated at the communication device, the second start mode being a mode in which the processing unit is started according to a start request provided from outside of the communication device, the processing unit being started faster in the second start mode than in the first start mode, wherein if the processing unit operates in the second start mode, the processing unit writes the received data to the temporary area, copies the received data in the temporary area to the data area after completion of data reception, and erases the received data in the temporary area after copying.
2. The device according to claim 1, wherein the processing unit writes the received data to the data area if the processing unit operates in the first start mode.
3. The device according to claim 1, wherein the processing unit requests the other communication device to temporarily stop data transmission when a size of the received data exceeds a predetermined threshold value while the received data is being written to the temporary area, copies the received data in the temporary area to the data area, erases the received data in the temporary area after copying, and requests the other communication device to restart data transmission after the received data in the temporary area is erased.
4. A communication device comprising:
- a reception unit configured to receive data from another communication device;
- a data storage device including a data area controlled by a file system and a temporary area which is beyond control of the file system; and
- a processing unit configured to operate in one of a first start mode and a second start mode to write the received data to the data storage device, the first start mode being a mode in which the processing unit is started according to a start request generated at the communication device, the second start mode being a mode in which the processing unit is started according to a start request provided from outside of the communication device, the processing unit being started faster in the second start mode than in the first start mode, wherein if the processing unit operates in the second start mode, the processing unit writes the received data to the temporary area, and exchanges logical addresses between the temporary area and an unused area of the data area to erase the received data in the temporary area after completion of data reception.
5. The device according to claim 4, wherein the processing unit requests the other communication device to temporarily stop data transmission when a size of the received data exceeds a predetermined threshold value while the received data is being written to the temporary area, exchanges logical addresses between the temporary area and the unused area of the data area to erase the received data in the temporary area, and requests the other communication device to restart data transmission after the received data in the temporary area is erased.
6. The device according to claim 3, wherein the processing unit writes the received data to the data area if the processing unit operates in the first start mode.
Type: Application
Filed: Aug 1, 2012
Publication Date: Aug 1, 2013
Patent Grant number: 9183209
Applicant: KABUSHIKI KAISHA TOSHIBA (Tokyo)
Inventor: Tomoya HORIGUCHI (Inagi-shi)
Application Number: 13/564,222