Embodiments described herein relate generally to a memory system equipped with a wireless communication function.
SD cards equipped with a wireless communication function or a wireless LAN function have been developed. In an SD card equipped with a wireless LAN function, the host cannot communicate with networks freely, and communications are performed independently using the wireless communication function of the SD card. Further, an SDIO card equipped only with a wireless communication function is not provided with a TCP stack, a group of programs compiled from a plurality of programs relating to the TCO/IP communications protocols, which are necessary for generating an application that performs communications via a wireless LAN. This demands the host to follow a complex procedure.
In general, according to one embodiment, a memory system includes a non-volatile semiconductor memory device, a control unit, a memory, a wireless communication module, and an extension register. The control unit controls the non-volatile semiconductor memory device. The memory as a work area is connected to the control unit. The wireless communication module is controlled by the control unit. The extension register is provided in the memory and has a certain data length by which the wireless communication function of the wireless communication module can be defined. The control unit causes the non-volatile semiconductor memory device to store a Hypertext Transfer Protocol (HTTP) request supplied from the host as a file, causes the extension register to register a HTTP transmission command transmitted together with the first command based on the first command supplied from the host, and causes the wireless communication module to transmit an HTTP request stored in the non-volatile semiconductor memory device based on the transmission command registered in the extension register.
Recently, wireless data communications have become available among a variety of electronic devices (among portable digital devices, in particular). Such electronic devices include personal computers, mobile information terminals known as personal digital assistants (PDA), mobile phones, mobile audio devices, and digital cameras.
If wireless data communications can be handled between such electronic devices, the need for cable connection is eliminated, and hence the usefulness is enhanced. In particular, with the spread of the wireless local area network (LAN) system, the wireless LAN system has also been employed in SD cards for use in a digital camera as a memory, as well as in personal computers or built-in devices.
In order to implement the above-described function in an SD card, the SD memory card needs to be provided with structural elements such as an interface designed to be physically connected to a host, an antenna, a high-frequency processor (processor configured to transmit and receive radio signals), and a baseband processor (processor configured to handle baseband signals), as well as a flash memory.
The procedure for controlling a wireless LAN function in such an SD card equipped with a wireless LAN function depends on what SD card manufacturers implement, and is not uniquely defined. Another problem is how to implement the control procedure.
Further, an SD card equipped with a communication function may also be equipped with a communication function using a system other than the wireless LAN system. In that case, the host is not able to use the functions of the SD card without a means for knowing what functions are provided in the SD card.
In view of the above, the present embodiment presents a means for ascertaining an extension function other than the original memory function in an SD card, which is widely used as a memory for use in digital cameras, for example. Moreover, the present embodiment presents a procedure for controlling functions other than the original memory function. In particular, the present embodiment enables control of wireless LANs, for example, in a command system of an SD memory. Thereby, the present embodiment provides an SD card equipped with a wireless function having a high affinity with a host digital device, such as a digital camera.
Conventionally, SD cards equipped with a wireless communication function and a wireless LAN function have been developed. Such a card only needs to be equipped with a dedicated wireless communication function and configured to control only the additional dedicated function. Since there exists a wide variety of wireless communication functions, however, setting definitions so as to control the entire wireless communication function would make the address space of the command insufficient.
It is thereby possible in the present embodiment to provide an extension register formed of a plurality of pages in an SD card, and configured to perform read/write operations on the extension register using commands CMD48, CMD49, which are included in command specifications of the SD memory. The CMD48 is a command designed to read data from a target register on a block-by-block basis, and the CMD49 is a command designed to write data to a target register on a block-by-block basis. The extension register includes a page indicating functions provided in the SD card, a page designed to control a communication function provided in the SD card, and a page used to exchange data to be communicated, for example.
Moreover, by using the extension register, the host can easily perform Hypertext Transfer Protocol (HTTP) communications.
(Embodiment)
Hereinafter, an embodiment will be described with reference to the accompanying drawings.
The memory system comprises a memory device 11, such as an SD card, and a host 20. The memory device 11 will also be referred to as SD card. Further, the host 20 will also be referred to as host device.
The memory device 11 operates upon receipt of a power supply from the host 20 when the memory device 11 is connected thereto, and performs a process in response to an access from the host 20. The memory device 11 includes a card controller 11a.
The card controller 11a includes a host interface 12, a CPU 13, a read-only memory (ROM) 14, a random access memory (RAM) 15, a buffer 16, a wireless interface 17a, and a memory interface 17b, for example, which are connected via a bus. A NAND flash memory 18, for example, is connected to the memory interface 17b. A wireless LAN signal processor 19a as an extension function portion is connected to the wireless communication interface 17a. An antenna ATa, configured to transmit and receive high-frequency signals, is connected to the wireless LAN signal processor 19a.
The extension function portion may form a multi-function SD card by further providing a wireless communication signal processor 19b for signals other than wireless LAN signals, and an antenna ATb connected to the wireless communication signal processor 19b, as well as the wireless LAN signal processor 19a. For example, the wireless LAN signal processor 19a controls a wireless communication function using Wi-Fi (registered trademark), for example, and the wireless communication signal processor 19b controls a proximity wireless communication function using TransferJet (registered trademark), for example.
The host interface 12 performs interface processing between the card controller 11a and the host 20.
On the other hand, the wireless communication interface 17a performs interface processing between the wireless LAN signal processor 19a and the wireless communication signal processor 19b. The memory interface 17b performs interface processing between the card controller 11a and the NAND flash memory 18.
The CPU 13 manages the operation of the entire memory device 11. A program for controlling the CPU 13 is executed by using firmware (control program, for example) stored in the ROM 14 or by being loaded in the RAM 15, and thereby a predetermined process is performed. That is, the CPU 13 generates a variety of tables and an extension register, which will be described later, on the RAM 18, accesses an area in the NAND flash memory 18 in response to a write command, a read command, or an erase command from the host 20, and controls a data transfer process via the buffer 16.
The ROM 14 stores firmware, such as a control program, used by the CPU 13. The RAM 15 is used as a work area of the CPU 13, and stores a control program, a variety of tables, and an extension register, which will be described later.
The buffer 16 temporarily stores a certain amount of data (of 1 page, for example) when the buffer 16 writes data transmitted from the host 20 to the NAND flash memory 18, for example, and temporarily stores a certain amount of data when the buffer 16 transmits data read from the NAND flash memory 18 to the host 20. With the intervention of the buffer 16, it is possible to control the SD bus interface and the back end in asynchronous mode.
The NAND flash memory 18 is formed of a memory cell having a stacked gate structure, or a memory cell having a MONOS structure, for example.
The wireless LAN signal processor 19 processes wireless LAN signals. Control is performed via the wireless communication interface 17a.
A digital camera, a portable phone, or a personal computer may be applied to the host 20. The host 20 includes a host controller 21, a CPU 22, a ROM 23, a RAM 24, and a hard disc 25 (including an SSD), for example, which are connected via a bus.
The CPU 22 controls the entire host. The ROM 23 stores firmware necessary for the operation of the CPU 22. While the RAM 24 is used as a work area of the CPU 22, for example, programs that can be executed by the CPU 22 are also loaded therein and executed. The hard disc 25 holds a variety of data. The host controller 21 performs interface processing with the memory device 11 in a state where the memory device 11 is connected. Further, the host controller 21 issues a variety of commands, which will be described later, according to an instruction from the CPU 22.
(Configuration of Firmware)
(Configuration of Extension Register)
As shown in
The reason for setting 512 bytes as a unit is because a large number of memory card host controllers are configured to perform read/write transfer per 1 block=512 bytes. A host controller compatible with the wireless LAN system is able to read and write data on a byte-by-byte basis, which, however, is not supported by all the host controllers. In order for a large majority of host controllers to control the extension function, access should desirably be made per 512 bytes.
Of the 8 pages (pages 0 to 7), page 0 is an area used to record an information field so as to perform the extension function in a plug-and-play manner. In pages 1 to 7, information on the extension function is recorded. More specifically, information used to control the communication function is recorded in page 1, and information used to exchange data to be communicated is recorded in page 2. The host 20 is able to ascertain which pages correspond to the page used to control the communication function provided in the memory device 11 and the page used to exchange data to be communicated, based on information written to page 0, which indicates functions provided in the memory device 11. Details about the information field will be described later.
Read and write operations on the extension register are performed using dedicated read and write commands, which will be defined below. These commands include a first operation mode of performing read/write operations on the extension register, and a second operation mode in which a data port is formed.
(Read Command (CMD48) of Extension Register)
The notation “LEN” denotes a length of data. A valid length of data necessary to read data from the 512-byte extension register is specified by the 9-bit LEN field.
The notation “CRC7” denotes a cyclic redundancy check code, and the letter “E” denotes an end bit of the command. The notation “rsv” denotes a preliminary bit.
(Read Command on Extension Register; First Operation Mode)
As shown in
More specifically, the page of the extension register and the location of data to be read in the page are specified by arguments “RS” and “OFS” of the command (CMD48), and the length of data is specified by “LEN”. Data in the extension register specified in this way is set at the beginning of the 512-byte data block and read. Of the 512-byte data block, data of a length exceeding a length specified by “LEN” becomes invalid. A CRC code is added at the end of the data block, thereby making it possible to check whether data has been received properly (Invalid data will also be checked). Since valid data is placed from the beginning, the host 20 does not need to perform a data shift operation, for example, in order to find valid data.
(Read Command on Extension Register; Second Operation Mode)
In response to a command (CMD48), the memory device 11 returns a response (R1), and then returns a 512-byte data block.
The location on the selected page of the extension register is specified by the arguments “RS” and “OFS” of the command. Although a plurality of bytes can be allocated to a data port, 1 byte is enough, and hence
When a read operation is performed on the same data port subsequently, the subsequent 512-byte data can be read. It is possible to freely define from where to obtain data to be read from the data port by the specification of the extension function. The data port can be controlled by defining a control register on the extension register, for example. A CRC code is added to the end of the 512-byte data block, making it possible to check whether the data has been received properly.
(Write Command (CMD49) of Extension Register)
In the write command (CMD49), a mask register is provided in an argument of the command. That is, the notation “Mask” denotes a mask register of 8 bits long. This mask register enables a bit-by-bit operation when 1-byte data is written, thereby enabling data to be written only to a specific bit. This eliminates the need to perform a read-modify-write operation in a bitwise operation on data less than 1 byte. The mask register becomes valid when the length of data is 1 byte, or “LEN=0” (length 1). Data is written to a bit representing data “1” in the mask register “Mask”, and a preset value is stored in a bit representing data “0” in the mask register “Mask”.
More specifically, assuming that an extension register contains data as shown in
If mask data of a greater length can be supplied by another means, mask writing can be performed even when LEN>1. Since mask data is assigned to a command argument in the example of
(Write Command of Extension Register; First Operation Mode)
In response to a command (CMD49), the memory device 11 returns a response (R1) and then receives a 512-byte data block.
The memory device 11 returns a CRC code to the host 20, indicating whether the data block has been received properly. After that, the memory device 11 returns a busy signal until the command processing ends, letting the host 20 know about the timing when the next command can be issued. The data block is retained in the buffer 16.
In the command processing, the page of the extension register and the location therein are specified by command arguments “RS” and “OFS”, and the length of data is specified by “LEN”. Of the data block held in the buffer 16, data of a length specified by “LEN” from the beginning is written to the extension register. Data of a length exceeding the length specified by “LEN” in the data block is abandoned as invalid data.
By placing valid data from the beginning of the data block, the host system does not need to perform an operation of placing valid data at a midpoint of the data block.
(Write Command to Extension Register; Second Operation Mode)
The memory device 11 returns a response (R1) in response to a command (CMD49), and then receives a 512-byte data block.
The memory device 11 returns a CRC code to the host indicating whether the data block has been received properly. After that, the memory device 11 returns a busy signal until the command processing ends, letting the host 20 know about the timing when the next command can be issued. The data block is held in the buffer 16.
In the command procedure, the page of the extension register and the location therein are specified by command arguments “RS” and “OFS”. Although a plurality of bytes can be allocated to a data port, 1 byte is enough, and hence
By performing a write operation to the same data port subsequently, the subsequent 512-byte data can be written to the assigned device. It is possible to freely define to where to pass the data of the data port by the specification of the extension function. The data port can be controlled by defining a control register on the extension register, for example.
(Usage Example of Information Field in Page 0)
Referring to
(Structure Revision)
The structure revision is a revision defining the format of page 0 of the extension register 31. When new information is added to the device information field, an update of the structure revision indicates which version of information field is held. A host driver of the previous version disregards the new field.
(Length of Data)
The length of data indicates a length of valid data recorded in page 0.
(Number [=N] of Extension Functions)
The number of extension functions indicates how many extension functions are supported by the device. The host driver repeatedly checks, during startup, whether a driver for each extension function is installed by the number of functions being supported.
(Device Information Area)
The device information area can record information on an N number of devices (device 1 to device N). Information on each device will be described below.
(Function Identification Code of Device 1)
When the function identification code of device 1 is set, it indicates that the standard driver can be used. When the OS supports the standard driver, the device can be used without the need to install a dedicated driver. When a dedicated driver has been installed, the dedicated driver will be used with higher priority. In a non-standard function, “0” is set. In that case, the function is controlled only by the dedicated driver.
(Manufacturer Identification Information of Device 1, Function Identification Information of Device 1)
The manufacturer identification information of device 1 and the function identification information of device 1 are items of information used to specify a dedicated driver. The host driver checks whether a dedicated driver of device 1 is installed based on these information items. For the sake of easy identification, these information items are represented as an ASCII character string, for example. The function identification information includes the model, the revision, and the like of the device.
(First Address of Subsequent Device)
The first address of the subsequent device indicates an address in page 0, where information on the subsequent device is written. When the device is not supported by the host system and cannot be used, the subsequent device will be checked. The fields following thereafter are variable in length and hence defined at this position.
(Address Pointers 1-X and Length Fields 1-X of Device 1)
The address pointers 1-X of device 1 and the length fields 1-X indicate that a plurality of extension register areas can be defined in one function. Each of the addresses and the lengths will be listed below.
(Address Pointer 1 [Start Address] and Length 1 of Device 1)
The address pointer 1 (start address) of device 1 and the length 1 indicate a first address in the space of pages 1-7 of the extension register and the size of the extension register area to be used, regarding a first area of the extension register used by device 1.
That is, one or more extension register areas can be allocated to one device, and the address pointer indicates a location (start address) of an arbitrary extension area of pages other than page 0. The length indicates how much the extension register is occupied from the pointer as a first address.
(Address Pointer 2 [Start Address] and Length 2 of Device 1)
The address pointer 2 (start address) of device 1 and the length 2 indicate the location of a second area in the extension register assigned to device 1 and the size of the area. This makes it possible to apply to a case where the standard driver performs control only on the first area and a dedicated driver performs control effectively using the first area and the second area, for example.
(Address Pointer X [Start Address] and Length X of Device 1)
The address pointer X of device 1 (start address) and the length 1 indicate the location of the Xth area assigned to device 1 and the size of the area.
In this way, a plurality of areas can be defined in an extension register. The areas are arranged so as not to overlap with one another. Based on the length information, it is possible to check whether there are overlapping areas.
If an additional field becomes necessary, it will be defined additionally thereafter. A host that cannot recognize the new field reads only fields that can be recognized and disregards the additional field. A skip can be made by the above-described field (i.e., first address of the subsequent device).
The commands CMD 48 and CMD 49 shown in
The “MIO” field is a bit separating the memory space and SDIO space from each other, thereby enabling both the spaces to define an extension register independently of each other. Accordingly, when the extension register is defined, it is possible to prevent both the spaces from interfering with each other. When “MIO” is 0 (“MIO”=0), the extension register for the memory can be accessed and, when “MIO” is 1 (“MIO”=1), extension register for the SDIO can be accessed.
The “FNO/FID” field is set to one of “FNO” and “FID” according to the value of the “MIO” field. When “MIO” is 1 (“MIO”=1), “FNO” is a 3-bit field indicating a function number and, when “MIO” is 0 (“MIO”=0), “FID” is a 4-bit field indicating function identification information. Due to the different bit numbers, different symbols are used for expression. When the aforementioned general information field is to be read, “FNO/FID” is set to 0 (“FNO/FID”=0). It is sufficient if the host driver sets this field to 0. Although “FID” is not used in the memory space, “FNO” is used in the SDIO space to distinguish the eight function spaces.
That is, regarding “FNO/FID” (4 bits), when “MIO” is 1 (“MIO”=1), the bits 38 to 36 indicate “FNO”, and bit 35 is always made “0”.
Further, regarding “FNO/FID”, when “MIO” is 0 (“MIO”=0), the bits 38 to 36 indicate “FID”. “FID” is used to distinguish the functions without increasing the memory space.
(The Memory Space May be Increased by Using “FID”, this being not Limited.)
When a function is to be implemented in a card, a unique value is assigned to “FID/FNO”, and is indicated in the field definition of general information as will be described later. Accordingly, when a command is issued to the data port, the function driver sets “FID/FNO” as an argument, whereby it is possible for the card to confirm that the command is a command corresponding to the designated function. Accordingly, it is possible to prevent data corruption and malfunction due to designation of a wrong data port, and erroneous write from occurring, thereby assuring safety.
Although when the host attempts to specify a function from address information, the host must decode the address information, function distinction is enabled by using only “FID/FNO”, and control of the host driver can be simplified. That is, the same command is used by a plurality of functions in a mixing manner, and hence in the host and card, “FID/FNO” is set so that the functions can be distinguished.
The “Addr” field (17 bits) is an address, and can access a space of 128 KB. The upper 8 bits of “Addr” are used as a page number. One of pages 0 to 7 is selected by the 8 bits. A 512-byte block in the selected page is accessed by the lower 9 bits. That is, by using “MIO”, “FNO” (“MIO”=1), and “Addr”, a position of the extension register is designated.
The “Len” field (8 bits) shown in
Further, in the write command (CMD 49) shown in
Further, in the “Len/Mask” field, when the mask is disabled (“MW”=0), the data length is set to 9 bits (16 to 08). Further, when the mask is enabled (“MW”=1), the data length is set to 1, and the write operation is controlled as described above by the lower 8 bits of the 9 bits (16 to 08). That is, when each bit in the 8 bits is “1”, data of the register is written and, when each bit is “0”, the bit in the register is not changed, and the value set already is maintained.
(Wireless LAN Compatible SD Card)
The memory device 11 equipped with a wireless communication function is capable of transmitting and receiving picture data to and from another camera 52 via a wireless communication network, by being used with the digital camera 51. Further, the memory device 11 is capable of transferring picture data from the digital camera 51 to the server 53, by being connected to an external server 53, for example, via a wireless communication network. Moreover, the memory device 11 can be connected to a device, such as the personal computer 54 or the cellular phone 55, for example, via a wireless communication network, and transfer picture data thereto from the digital camera 51.
The memory device 11 equipped with a wireless communication function includes an interface function of serving as an interface between the memory device 11 and the digital camera 51, for example, which serves as a host device configured to control the memory device 11, and a network interface function of connecting the digital camera 51 with other electronic devices, such as the camera 52, the server 53, the personal computer 54, the television 56, and the printer 57, via a wireless LAN.
The above-described host interface (card interface) 12 has a function of accessing data in (reading and writing data from and to) the card via a FAT 32, and a function of accessing a register (Wi-Fi SD register, for example) dedicated to a card having a wireless communication function, according to “SD Specifications Part 1” and “SD Specifications Part 2”, established by SD Association (SDA). In order to access a Wi-Fi SD register, a read command (CMD48) and a write command (CMD49) are used. As described above, the read command (CMD48) is a command to read data from a target register on a block-by-block basis, and the write command (CMD49) is a command to write data to a target register on a block-by-block basis.
In the present embodiment, the host 20 issues a command dedicated to a Wi-Fi SD card to the memory device 11, for example. Alternatively, the host 20 receives a status and a response dedicated to a Wi-Fi SD card from the memory device 11 using a write command (CMD49), in order to write data dedicated to a Wi-Fi SD card. Alternatively, a read command (CMD48) is used so as to read data dedicated to a Wi-Fi SD card.
The wireless communication interface 17a is assumed such that the physical layer supports IEEE802.11b/g/n, the network layer supports IPv4 or IPv6, the transport layer supports TCP, the presentation layer supports SSL/TLS, and the application layer supports HTTP or FTP. Further, a Digital Living Network Alliance (DLNA) function may be provided so as to perform communications with household appliances.
By providing two interfaces in the memory device 11, picture data (in JPEG or RAW format) and video data (in MPEG-2 TS or MP4 format) generated by a digital camera can be transmitted or received to or from a server or a device that supports the HTTP protocol. A server or a device that supports the DLNA enables playback the picture or the video and printing of the picture. By adding data (such as XML data and text data) generated by the host device when picture data and video data are transmitted, it becomes possible for the host device to perform an authentication operation on the server and peripheral devices and transmit and receive metadata thereto and therefrom.
As described above, the host device 20 includes a host controller 21 configured to control the SD card 11, and is able to issue a command of “SD Specifications Part 1” established by SDA, and commands CMD48 and CMD49 for performing control dedicated to a Wi-Fi SD card.
The SD card 11 includes a card controller 11a, a NAND memory module (NAND flash memory) 18, and a Wi-Fi network module (wireless communication signal processor 19b), and operates according to a command issued from the host controller 21. In a general SD card, the card controller 11a is capable of accessing the NAND memory module 18, and reading and writing data therefrom and thereto. A Wi-Fi SD card of the present embodiment accesses (reads and writes data from and to) the NAND memory module 18, accesses the Wi-Fi network module 19c, and internally transfers data recorded in the NAND memory module 18 to the Wi-Fi network module 19c. Alternatively, the Wi-Fi SD card may be configured to internally transfer data in the Wi-Fi network module 19c to the NAND memory module 18. It is thereby possible for the Wi-Fi network module 19c to transmit picture data recorded in the NAND memory module 18, for example, to the outside, without intervention of the host device 20. That is, the host device 20 does not need to follow a complex procedure of controlling the Wi-Fi network module 19c.
Further, since picture data is internally transferred without intervention of a card interface, the transfer rate can be increased. For example, by controlling internal transfer of the picture data using a direct memory access (DMA) register provided inside the card controller, the host device 20 and the SD card 11 can operate independently.
Further, status information of the Wi-Fi network module 19c and data downloaded from an external network server, for example, can be directly and automatically recorded in the NAND memory module 18, without the need for the host device 20 to sequentially manage them.
In
According to this configuration, when the digital camera has a Wi-Fi function, the Wi-Fi network module 19c can be controlled by the control method same as that of
The Wi-Fi SD card includes 5 types of extension registers, provided according to the purpose. A Wi-Fi SD card command write register is a write-only register and is accessed when a command is issued from the host device to the card. A Wi-Fi SD card status register is a read-only register and is accessed when the host device retrieves status information on the card. A Wi-Fi SD card response data register is a read-only register and is accessed when the host device retrieves data (HTTP response data) downloaded from an external server into the card. A Wi-Fi SD card ID list register is a read-only register and is accessed when the host devices retrieves a list of IDs of other devices connected to the card (or requesting connection thereto). A Wi-Fi SD card SSID history register is a read-only register and is accessed when the host device retrieves a list of SSIDs to which the card has previously been connected (or to which connection has not been made but a connection request has been made).
In the present embodiment, a case will be described where the above-described Wi-Fi SD registers are assigned to pages of the extension registers. First, the host device 20 reads page 0 of the extension register using a read command (CMD48), and checks whether the Wi-Fi SD function is implemented on the card and which page should be accessed so as to use each function. In this case, a pair of a page number (i, j, k, l, m) and an abbreviation (WIFISDCR, WIFISDSR, WIFISDRD, WIFISDIL, WIFISDSH) of the Wi-Fi SD register is recorded in page 0.
When the host device 20 issues a command to the card, data is written to the Wi-Fi SD card command write register, which is a register designed to issue a command, via a write command (CMD49). In this case, since it is known from the information in page 0 that the Wi-Fi SD card command write register is in page i, page 1 is specified as an argument of CMD49. Similarly, when the host device 20 retrieves status information, for example, from the host device 20, data is read using a read command (CMD48) from one of the Wi-Fi SD card status register, the Wi-Fi SD card response data register, the Wi-Fi SD Card ID list register, and the Wi-Fi SD card SSID history register, each of which is a register designed to obtain data. In this case, the page numbers j, k, l, m, corresponding to the respective registers, are specified as arguments of CMD48.
In the present embodiment, the write register and the read register are assigned to different pages, but are designed only for writing and reading, respectively, and hence may be allocated to the same page.
The host device 20 issues a read command (CMD48) upon startup, reads data in page 0 of the extension register 31, and checks the wireless communication function as an extension function of the SD card 11 (ST11, ST12). That is, the host device 20 checks what wireless communication function, such as Wi-Fi or Bluetooth, is implemented on the SD card 11. Next, the host device 20 determines whether the host device 20 is compatible with the extension function of the SD card 11 (ST13). When the host device 20 is determined as being compatible with the extension function, in order to validate the extension function, data in page i (where i is other than 0) of the extension register 31 is read (ST14), and the standard name, version, profile, device information, and the like with which the SD card is compatible are checked (ST15). Based on the checked information, the host device 20 validates an optimum driver included in the host device 20 (ST16). Thereby, the extension function of the SD card 11 is made accessible.
Next, it is determined whether functions of all the pages of the extension register 31 have been checked (ST17). As a result thereof, when a remaining page exists, functions of the card on the next page are checked (ST18, ST16), and when all the pages have been checked, the function setting is ended.
(Wireless LAN Setting)
During this period, the host 20 determines whether the status of the NAND flash memory 18 has been updated based on polling (S2). More specifically, the host 20 reads the status of the Wi-Fi SD card status register via a command (CMD48), and checks whether the SD card 11 has succeeded in scanning the SSID.
When the SD card 11 has succeeded in scanning the SSID, the host 20 reads the “SSIDLIST” file stored in the NAND flash memory 18, using a usual read command (S3).
After that, the host 20 selects one of the SSIDs from the “SSIDLIST” file and issues a command (CMD49). That is, the command (CMD49) writes a “SetSSID” command to page i of the extension register 31. In response thereto, the host 20 requests the SD card 11 to set the SSID (S4).
After that, the host 20 writes “StartApplication” command to page i of the extension register 31 via the command (CMD49). Thereby, the host 20 requests the SD card 11 to start operating a wireless LAN application (S5).
In response to the “StartApplication” command, the SD card 11 requests an access point to establish an association via the wireless LAN signal processor 19a (S5-1), in order to establish a communication with a network. When a response for the association is received from the access point, the SD card 11 acquires an IP address from the access point based on Dynamic Host Configuration Protocol (DHCP), and prepares for establishing a communication (S5-2). When preparation for establishing a communication has been completed, the status of the Wi-Fi SD card status register provided in page j of the extension register 31 is updated.
During this period, the host 20 determines whether the status has been updated based on polling (S6). More specifically, the host 20 reads the status of the Wi-Fi SD card status register via a command (CMD48), and determines whether the status has been updated. When the status has been updated, a communication is started between the SD card 11 and the access point, allowing the SD card 11 to obtain data from the network without intervention of the host 20, for example.
(HTTP Transmission)
Next, a case will be described where HTTP communications are performed using commands (CMD48, CMD49).
In the present embodiment, “SendHttpMessage”, “SendHttpFile”, “SendHttpMessageByRegister”, and “SendHttpFileByRegister”, for example, are prepared as server upload commands. These commands are registered in the Wi-Fi SD card command write register provided in page i of the extension register 31, via the command (CMD49). The commands “SendHttpMessage” and “SendHttpFile” are used in HTTP communications of data greater in size than 512 bytes, for example, using a FAT file system. The commands “SendHttpMessageByRegister” and “SendHttpFileByRegister” are used in HTTP communications of data smaller in size than 512 bytes, for example, without using a FAT file system.
As described above, the extension register 31 can be accessed in a block of 512 bytes long, via the commands (CMD48, CMD49). On the other hand, a multi-block access can be made to a file system of a usual SD card 11, using a read command (CMD18) and a write command (CMD25). Hence, in a high-capacity HTTP communication, data should desirably be transferred to the SD card 11 using an access command of the SD card 11 for efficient operation.
That is, when a file is transferred to a server, for example, the size of an HTTP request increases. Further, metadata, or data about data, appended to a transfer file greatly depends upon the function or request of the host device. Accordingly, the format of the HTTP request should desirably be flexible toward the host. In view of the above, in the present embodiment, information on the HTTP request is set by the host, and an HTTP protocol process is performed by an SD card, thereby eliminating the load on the host device.
A low-capacity HTTP communication, on the other hand, should desirably be performed easily and at high speed, by using only a command (CMD49).
The formats of the transmission commands are listed below.
SendHttpMessage (hostname, messageFileName)
SendHttpFile (hostname, messageFileName, appendFileName)
SendHttpMessageByRegister (hostname, message)
SendHttpFileByRegister (hostname, appendFileName, message)
Hereinafter, the operation of each of the commands will be described.
(Operation of Command “SendHttpMessage”)
As shown in steps S5, S6 of
Next, the host 20 issues a command (CMD49) and transmits the command “SendHttpMessage” to the SD card 11. Based on the command (CMD49), the CPU 13 of the SD card 11 registers the command “SendHttpMessage” in the Wi-Fi SD card command write register provided in page i of the extension register 31 (S8).
After that, the CPU 13 of the SD card 11 reads the HTTP request file written to the NAND flash memory 18 based on the command “SendHttpMessage” registered in the extension register, and transmits the HTTP request file to the network via the wireless LAN signal processor 19a (S8-1).
After that, when the CPU 13 of the SD card 11 receives an HTTP response via the wireless LAN signal processor 19a, the CPU 13 stores the received HTTP response as a file in the NAND flash memory 18 (S8-2).
The received response file is stored in a predetermined download directory of the NAND flash memory 18. A sequence number specified by a command issued from the command (CMD49), for example, is assigned to the name of the stored file.
When the CPU 13 receives an HTTP response, the CPU 13 updates the status of the Wi-Fi SD card status register provided in page j of the extension register 31.
On the other hand, the host 20 determines whether the status of the Wi-Fi SD card status register has been updated based on polling. That is, the host 20 issues a command (CMD48), reads the status of the Wi-Fi SD card status register, and determines whether the status has been updated (S9).
When the status of the Wi-Fi SD card status register is determined as having been updated, the host 20 issues a read command (CMD18) of the SD card 11. The CPU 13 of the SD card 11 reads an HTTP response file from the NAND flash memory 18 based on the read command (CMD18), and transfers the HTTP response file to the host 20 (S10).
When the HTTP response file is transferred to the host 20, the host 20 issues an end application, thereby ending the operation of the application (S11).
By using the above-described transmission command, a high-capacity HTTP file can be efficiently transferred to a server.
According to the present embodiment, an HTTP request and an HTTP response can be transmitted and received by using a FAT area of the NAND flash memory 18, rather than causing the extension register 31 to perform the entire HTTP communication.
(Operation of Command “SendHttpFile”)
In this example, as shown in
After that, the host 20 issues a write command (CMD25), and transfers an HTTP request file to the SD card 11 (S22). The HTTP request includes uploading an image file in the NAND flash memory 18 to a server, for example, and defines the name and time information, for example, of the image file in the NAND flash memory 18 as metadata. The SD card 11 writes an HTTP request to the NAND flash memory 18 based on the write command (CMD25).
After that, the host 20 issues a command (CMD49), and transfers a HTTP communication command “SendHttpFile” to the SD card 11 (S23). The CPU 13 of the SD card 11 registers the command “SendHttpFile” in the Wi-Fi SD card command write register provided in page i of the extension register 21, based on the command (CMD49).
Further, the CPU 13 of the SD card 11 reads the HTTP request file written to the NAND flash memory 18 based on the command “SendHttpFile” registered in the extension register, and transmits a character string predefined in the HTTP request file from the wireless LAN signal processor 19a to a network by replacing the character string with information on the image file read from the NAND flash memory 18 (S23-1).
After that, when the CPU 13 of the SD card 11 receives an HTTP response via the wireless LAN signal processor 19a, the CPU 13 stores the HTTP response as a file in the NAND flash memory 18 (S23-2).
When the CPU 13 of the SD card 11 receives the HTTP response, the CPU 13 updates the status of the Wi-Fi SD card status register provided in page j of the extension register 31.
In the meantime, the host 20 determines whether the status of the Wi-Fi SD card status register has been updated based on polling. That is, the host 20 issues a command (CMD48), reads the status of the Wi-Fi SD card status register, and determines whether the status has been updated (S24).
When the status of the Wi-Fi SD card status register is determined as having been updated, the host 20 issues a read command (CMD18) of the SD card 11. The CPU 13 of the SD card 11 reads the HTTP response file from the NAND flash memory 18 based on the read command (CMD18), and transfers the HTTP response file to the host 20 (S25).
Using the above-described transmission command, the image file in the SD card 11 can be efficiently transferred to the server.
(Execution of Command “SendHttpMessageByRegister”)
The command “SendHttpMessageByRegister” is used when the data of an HTTP communication is small in size. In the commands “SendHttpMessage” and “SendHttpFile” configured to handle high-capacity HTTP communications, an HTTP request file is recorded in the NAND flash memory 18 via a write command (CMD25), and the command “SendHttpMessage” or “SendHttpFile” is registered in the extension register via a command (CMD49). On the other hand, the command “SendHttpMessageByRegister” is configured to be executed only via a command (CMD49).
The command “SendHttpMessageByRegister” includes “hostname” and “message” as arguments. An HTTP request (HTTP header information) is included in “message” as a character string.
As shown in
Based on the command (CMD49), the CPU 13 of the SD card 11 registers the command “SendHttpMessageByRegister” in the Wi-Fi SD card command write register provided in page i of the extension register 31.
Based on the command “SendHttpMessageByRegister” registered in the extension register, the CPU 13 of the SD card 11 transmits an HTTP request from the wireless LAN signal processor 19a to a network (S31-1).
After that, when the CPU 13 of the SD card 11 receives an HTTP response via the wireless LAN signal processor 19a, the CPU 13 stores the HTTP response in the Wi-Fi SD card response register provided in page k of the extension register 31 (S31-2).
On the other hand, the host 20 issues a command (CMD48), reads an HTTP response from the Wi-Fi SD card response register, and stores the HTTP response as a file (S32).
Using the above-described transmission command, a low-capacity HTTP communication can be efficiently performed.
(Operation of Command “SendHttpFileByRegister”)
The command “SendHttpFileByRegister” is also used when data of an HTTP request other than the data file transmitted via the HTTP communication is small in size. The request is to upload a file stored in the SD card 11 to a server, for example. Since the transmission format to the server cannot be transmitted only as a file, however, header information or metadata of the HTTP request needs to be appended. Hence, a predefined character string is defined in the HTTP request message. In response to a transmission request transmitted from the host 20, the SD card 11 transmits the predefined character string of the HTTP request message by replacing the character string with information on a specified file.
The command “SendHttpFileByRegister” includes a host name “hostname”, an append file name “appendFileName”, and a message “message” as arguments. The name of the image file in the NAND flash memory 18 is written in “appendFileName”, and an HTTP request (HTTP header information) is written in “message” as a character string.
As shown in
After that, the host 20 issues a command (CMD49) (S42). The command “SendHttpFileByRegister” is written on the data of the command (CMD49).
Based on the command (CMD49), the CPU 13 of the SD card 11 registers the command “SendHttoFileByRegister” in the Wi-Fi SD card command write register provided in page i of the extension register.
Further, the CPU 13 of the SD card 11 reads a file read from the NAND flash memory 18 based on the append file name of the command “SendHttpFileByRegister” registered in the extension register, and transmits a character string predefined in the HTTP request message from the wireless LAN signal processor 19a to the network by replacing the character string with the read file (S42-1).
After that, when the CPU 13 of the SD card 11 receives an HTTP response via the wireless LAN signal processor 19a, the CPU 13 stores the HTTP response in the Wi-Fi SD card response register provided in page k of the extension register 31 (S42-2).
In the meantime, the host 20 issues a command (CMD48), reads the HTTP response from the Wi-Fi SD cards response register, and stores or processes the HTTP response as a file (S43).
According to the present embodiment, when a high-capacity HTTP request or image data is transmitted and received, the host 20 sets information on the HTTP request, transfers the data to a NAND flash memory of the SD card 11 using an access command of the SD card 11, and stores “SendHttpMessage” or “SendHttpFile” as high-capacity HTTP communication commands in the extension register 31 using a command (CMD49), whereas the SD card 11 performs HTTP protocol processing. It is thereby possible to eliminate the load on the host 20.
That is, when a file is transmitted to a network, for example, the host 20 sets difference in format among a variety of social network services and photograph sharing websites, according to the HTTP message. Thereby, the SD card 11 is able to transmit an HTTP request and append information simultaneously to a server, without distinctions among the services provided in transmission destinations.
Further, when the host 20 generates HTTP request information, the host 20 does not need to read files of the file system in the SD card 11 and compile the information on the files and append information dependent on a variety of services into a new file of the HTTP request data. That is, by causing the host 20 to generate only append information necessary for the HTTP request, and causing the SD card 11 to set a path of the file stored in the SD card 11 based on the information on the transmission command via the extension register 31, a desired HTTP request can be generated. Thereby, processing of the host 20 and the SD card 11 can be processed more easily.
Further, by storing high-capacity data in the NAND flash memory 18, the SD card 11 has an advantage of reducing the memory capacity necessary for processing.
Moreover, in a low-capacity HTTP communication, the host 20 transmits an HTTP request or transmission commands “SendHttpMessageByRegister” and “SendHttpFileByRegister” to the extension register 31 via only a command (CMD49, CMD8), and the SD card 11 performs HTTP protocol processing. Since disagreement in file system is not caused between the host 20 and the SD card 11, valid data can be exchanged when the transfer data is small in size.
By setting the SD card to be able to automatically delete a header portion of an HTTP response, the host device is able to obtain a desired HTML, XML, a JPEG image, and the like received via the HTTP protocol. Thereby, the host device of the SD card is able to obtain a desired file without the need to perform a general TCP/IP process or the like.
Further, the “SendHttpMessage” command may include a name or an IP address that can be resolved by the Domain Name System (DNS) of an HTTP communication destination server.
Moreover, commands “SendHttpSSLMessage”, “SendHttpSSLFile”, “SendHttpSSLMessageByRegister”, and “SendHttpSSLFileByRegister”, which performs an HTTPS access using SSL/TLS as an access protocol to the network, may be used so as to long in to or perform authentication on a sever that makes a security request. The sequence of the host and the SD card in these commands “SendHttpSSLMessage”, “SendHttpSSLFile”, “SendHttpSSLMessageByRegister” and “SendHttpSSLFileByRegister” is the same as that in the commands “SendHttpMessage”, “SendHttpFile”, “SendHttpMessageByRegister” and “SendHttpFileByRegister”.
Moreover, the extension register is not limited to a plurality of pages, and may be set to 1 page such that the areas corresponding to page 0 and pages 1-7 are set therein.
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.
Number | Date | Country | Kind |
---|---|---|---|
2011-030849 | Feb 2011 | JP | national |
This application is a divisional of U.S. application Ser. No. 13/234,211 filed Sep. 16, 2011, and is based upon and claims the benefit of priority from prior Japanese Patent Application No. 2011-030849, filed Feb. 16, 2011, the entire contents of each of which are incorporated herein by reference.
Number | Name | Date | Kind |
---|---|---|---|
7580996 | Allan et al. | Aug 2009 | B1 |
7769867 | Fukuda | Aug 2010 | B2 |
20020174337 | Aihara | Nov 2002 | A1 |
20060161749 | Chen et al. | Jul 2006 | A1 |
20070061581 | Holtzman et al. | Mar 2007 | A1 |
20080294276 | Nakayama | Nov 2008 | A1 |
20090270117 | Buckley | Oct 2009 | A1 |
20090281874 | Leblanc et al. | Nov 2009 | A1 |
20100057960 | Renno | Mar 2010 | A1 |
Number | Date | Country |
---|---|---|
1464453 | Dec 2003 | CN |
101895572 | Nov 2010 | CN |
7-282210 | Oct 1995 | JP |
2001-356885 | Dec 2001 | JP |
2002-329180 | Nov 2002 | JP |
2003-514302 | Apr 2003 | JP |
2006-507608 | Mar 2006 | JP |
2009-124302 | Jun 2009 | JP |
200920093 | May 2009 | TW |
Entry |
---|
“Physical Layer Simplified Specification”, SD Specifications, Technical Committee SD Card Association, Part 1, Version 3.01, May 18, 2010, pp. 1-141. |
“SDIO Simplified Specification”, SD Specifications, Technical Committee SD Card Association, Part E1, Version 3.00, Feb. 25, 2011, pp. 1-79. |
Office Action issued Jul. 2, 2013 in Japanese Patent Application No. 2011-030849 with English language translation. |
Combined Taiwanese Office Action and Search Report issued Feb. 19, 2014 in Patent Application No. 100132483 (with English language translation of the Office Action). |
Office Action issued Mar. 13, 2014 in Chinese Patent Application No. 201110275466.9 (with English translation). |
Office Action issued on Sep. 30, 2014 in the corresponding Chinese Patent Application No. 201110275466.9 (with English Translation). |
Number | Date | Country | |
---|---|---|---|
20160036937 A1 | Feb 2016 | US |
Number | Date | Country | |
---|---|---|---|
Parent | 13234211 | Sep 2011 | US |
Child | 14885778 | US |