JP2012203475A - Communication device and control method therefor - Google Patents

Communication device and control method therefor Download PDF

Info

Publication number
JP2012203475A
JP2012203475A JP2011065032A JP2011065032A JP2012203475A JP 2012203475 A JP2012203475 A JP 2012203475A JP 2011065032 A JP2011065032 A JP 2011065032A JP 2011065032 A JP2011065032 A JP 2011065032A JP 2012203475 A JP2012203475 A JP 2012203475A
Authority
JP
Japan
Prior art keywords
digital camera
data
partition
access
file system
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Withdrawn
Application number
JP2011065032A
Other languages
Japanese (ja)
Inventor
Yoichiro Shiba
洋一郎 柴
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Toshiba Corp
Original Assignee
Toshiba Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Toshiba Corp filed Critical Toshiba Corp
Priority to JP2011065032A priority Critical patent/JP2012203475A/en
Priority to US13/233,249 priority patent/US8688870B2/en
Publication of JP2012203475A publication Critical patent/JP2012203475A/en
Withdrawn legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0668Interfaces specially adapted for storage systems adopting a particular infrastructure
    • G06F3/0671In-line storage system
    • G06F3/0683Plurality of storage devices
    • G06F3/0689Disk arrays, e.g. RAID, JBOD
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F12/00Accessing, addressing or allocating within memory systems or architectures
    • G06F12/02Addressing or allocation; Relocation
    • G06F12/0223User address space allocation, e.g. contiguous or non contiguous base addressing
    • G06F12/023Free address space management
    • G06F12/0238Memory management in non-volatile memory, e.g. resistive RAM or ferroelectric memory
    • G06F12/0246Memory management in non-volatile memory, e.g. resistive RAM or ferroelectric memory in block erasable memory, e.g. flash memory
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F12/00Accessing, addressing or allocating within memory systems or architectures
    • G06F12/14Protection against unauthorised use of memory or access to memory
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2212/00Indexing scheme relating to accessing, addressing or allocation within memory systems or architectures
    • G06F2212/72Details relating to flash memory management
    • G06F2212/7201Logical to physical mapping or translation of blocks or pages

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Human Computer Interaction (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide a communication device that is highly convenient while protecting a file.SOLUTION: A communication device 20 according to one embodiment includes a first interface 35, a wireless communication unit 21, and a memory unit 24. The memory unit 24 includes a first region PT1 used for first access from the first interface 35 and a second region PT2 used for second access from the wireless communication unit 21. Writing into the second region PT2 by the first access and writing into the first region PT1 by the second access are inhibited.

Description

本発明の実施形態は、通信装置及びその制御方法に関する。   Embodiments described herein relate generally to a communication apparatus and a control method thereof.

従来、リソースを制御するホストは唯一であった。例えばデジタルカメラに搭載されたSDTMメモリカードの場合、デジタルカメラのみがSDメモリカード内のファイルを制御する。 Traditionally, the only host that controls resources. For example, in the case of an SD memory card mounted on a digital camera, only the digital camera controls the files in the SD memory card.

しかし近年、無線LAN機能を搭載したSDメモリカードが登場してきている。このようなメモリカードでは、SDメモリ部に対して、デジタルカメラと無線LAN機能の2つのホストが存在する。そして、この2つのホストが、SDメモリ部のファイルに同時にアクセスすると、ファイル管理テーブルが同時に変更され、ファイルが破壊されるおそれがある。   However, in recent years, SD memory cards equipped with a wireless LAN function have appeared. In such a memory card, there are two hosts for the SD memory unit, a digital camera and a wireless LAN function. When these two hosts simultaneously access a file in the SD memory unit, the file management table is changed at the same time, and the file may be destroyed.

そのため、SDメモリ部に複数のホストから同時にアクセスできないように、デジタルカメラのOSによって排他制御が行われる。これにより、SDメモリ部に対するアクセスは、いずれか1つのホストに限定される。   Therefore, exclusive control is performed by the OS of the digital camera so that the SD memory unit cannot be accessed simultaneously from a plurality of hosts. Thus, access to the SD memory unit is limited to any one host.

しかしながら、以上の構成であると、ファイルが破壊されることを防止出来るが、SDメモリカードの使い勝手が非常に悪くなる。   However, with the above configuration, the file can be prevented from being destroyed, but the usability of the SD memory card becomes very poor.

特開2006−216011号公報JP 2006-216011 A

ファイルを保護しつつ、使い勝手の良い通信装置及びその制御方法を提供する。   Provided are an easy-to-use communication device and a control method thereof while protecting a file.

実施形態の無線通信装置は、第1インターフェースと、無線通信部と、メモリ部とを備える。メモリ部は、第1インターフェースからの第1アクセスのために用いられる第1領域と、無線通信部からの第2アクセスのために用いられる第2領域とを備える。第1アクセスによる第2領域への書き込み、及び第2アクセスによる第1領域への書き込みは禁止される。   The wireless communication apparatus according to the embodiment includes a first interface, a wireless communication unit, and a memory unit. The memory unit includes a first area used for a first access from the first interface and a second area used for a second access from the wireless communication unit. Writing to the second area by the first access and writing to the first area by the second access are prohibited.

第1実施形態に係るメモリカードのブロック図。1 is a block diagram of a memory card according to a first embodiment. 第1実施形態に係るメモリカードのブロック図。1 is a block diagram of a memory card according to a first embodiment. 第1実施形態に係るNAND型フラッシュメモリのメモリ空間の概念図。1 is a conceptual diagram of a memory space of a NAND flash memory according to a first embodiment. 第1実施形態に係るマスターブートレコードの模式図。The schematic diagram of the master boot record which concerns on 1st Embodiment. 第1実施形態に係るデジタルカメラの動作を示すフローチャート。6 is a flowchart showing the operation of the digital camera according to the first embodiment. 第1実施形態に係る無線通信部の動作を示すフローチャート。The flowchart which shows operation | movement of the radio | wireless communication part which concerns on 1st Embodiment. 第1実施形態に係る無線通信の模式図。The schematic diagram of the radio | wireless communication which concerns on 1st Embodiment. 第2実施形態に係るメモリカードのブロック図。The block diagram of the memory card concerning a 2nd embodiment. 第2実施形態に係るメモリカードのブロック図。The block diagram of the memory card concerning a 2nd embodiment. 第2実施形態に係るNAND型フラッシュメモリのメモリ空間の概念図。The conceptual diagram of the memory space of the NAND type flash memory which concerns on 2nd Embodiment. 第2実施形態に係るファイルシステムコントローラの動作を示すフローチャート。9 is a flowchart showing the operation of a file system controller according to the second embodiment. 第2実施形態に係るNAND型フラッシュメモリのメモリ空間の概念図。The conceptual diagram of the memory space of the NAND type flash memory which concerns on 2nd Embodiment. 第2実施形態に係るNAND型フラッシュメモリのメモリ空間の概念図。The conceptual diagram of the memory space of the NAND type flash memory which concerns on 2nd Embodiment. 第3実施形態に係る無線通信の模式図。The schematic diagram of the radio | wireless communication which concerns on 3rd Embodiment. SDコマンドの構成を示す概念図。The conceptual diagram which shows the structure of SD command. 第3実施形態に係るメモリカードの動作を示すフローチャート。10 is a flowchart showing the operation of the memory card according to the third embodiment. 第3実施形態に係るデータ書き込み方法を示すタイミングチャート。9 is a timing chart showing a data writing method according to the third embodiment. 第3実施形態に係るデータ読み出し方法を示すタイミングチャート。9 is a timing chart showing a data reading method according to a third embodiment. 第4実施形態に係るメモリカードのブロック図。The block diagram of the memory card concerning a 4th embodiment.

以下、実施形態につき図面を参照して説明する。この説明に際し、全図にわたり、共通する部分には共通する参照符号を付す。   Hereinafter, embodiments will be described with reference to the drawings. In the description, common parts are denoted by common reference symbols throughout the drawings.

[第1実施形態]
第1実施形態に係る通信装置及びその制御方法について、以下SDメモリカードを例に挙げて説明する。
[First Embodiment]
The communication device and the control method thereof according to the first embodiment will be described below using an SD memory card as an example.

1.構成について
1.1 デジタルカメラについて
図1は、本実施形態に係るSDメモリカード(以下、単にメモリカードと呼ぶことがある)、並びにSDメモリカードの挿入されたデジタルカメラのブロック図である。
1. About configuration
1.1 About digital cameras
FIG. 1 is a block diagram of an SD memory card (hereinafter sometimes simply referred to as a memory card) according to the present embodiment and a digital camera in which the SD memory card is inserted.

図示するように、デジタルカメラ10はメモリカード20を有する。メモリカード20は、デジタルカメラ10に設けられた例えばカードスロットに挿入されて、デジタルカメラ10のSDホストインターフェース11に有線接続される。SDホストインターフェース11は、デジタルカメラ10とメモリカード20との間の通信を司る。そしてデジタルカメラ10は、SDホストインターフェース11を介してメモリカード20と通信する。   As shown in the figure, the digital camera 10 has a memory card 20. The memory card 20 is inserted into, for example, a card slot provided in the digital camera 10 and is wired to the SD host interface 11 of the digital camera 10. The SD host interface 11 manages communication between the digital camera 10 and the memory card 20. The digital camera 10 communicates with the memory card 20 via the SD host interface 11.

1.2 メモリカードについて
メモリカード20は、SDホストインターフェース11を介してデジタルカメラ10から電源を供給されて動作する。メモリカード20の詳細について、図1及び図2を参照して説明する。図2はメモリカード20のブロック図である。
1.2 Memory card
The memory card 20 operates with power supplied from the digital camera 10 via the SD host interface 11. Details of the memory card 20 will be described with reference to FIGS. FIG. 2 is a block diagram of the memory card 20.

図示するようにメモリカード20は、無線LANチップ21、SDデバイスインターフェース22、NANDコントローラ23、及びNAND型フラッシュメモリ24を備えている。   As illustrated, the memory card 20 includes a wireless LAN chip 21, an SD device interface 22, a NAND controller 23, and a NAND flash memory 24.

NAND型フラッシュメモリ24は、データを不揮発に記憶する。   The NAND flash memory 24 stores data in a nonvolatile manner.

NANDコントローラ23は、NAND型フラッシュメモリの動作を制御する。すなわち、NAND型フラッシュメモリ24に対するデータの書き込み、読み出し、及び消去等を実行する。   The NAND controller 23 controls the operation of the NAND flash memory. That is, data writing, reading, erasing, and the like are performed on the NAND flash memory 24.

SDデバイスインターフェース22は、無線LANチップ21との間の通信を司る。すなわちSDデバイスインターフェース22は、無線LANチップ21からの種々の命令及びデータをNANDコントローラ23へ転送し、またNANDコントローラ23からの種々の命令及びデータを無線LANチップへ転送する。   The SD device interface 22 manages communication with the wireless LAN chip 21. That is, the SD device interface 22 transfers various commands and data from the wireless LAN chip 21 to the NAND controller 23, and transfers various commands and data from the NAND controller 23 to the wireless LAN chip.

無線LANチップ21は、大まかにはベースバンドチップ30、RF(radio frequency)チップ40、及びアンテナ50を備えている。ベースバンドチップ30は、無線LAN通信によって送受信されるデータのベースバンド処理を行うと共に、NANDコントローラ23への命令及びデータを発行する。RFチップ40は、無線LAN通信によって送受信されるアナログデータを処理する。アンテナ50は、データの送受信を行う。以下、それぞれについて説明する。   The wireless LAN chip 21 roughly includes a baseband chip 30, an RF (radio frequency) chip 40, and an antenna 50. The baseband chip 30 performs baseband processing of data transmitted and received by wireless LAN communication and issues instructions and data to the NAND controller 23. The RF chip 40 processes analog data transmitted and received by wireless LAN communication. The antenna 50 transmits and receives data. Each will be described below.

RFチップ40はRF部41を備える。RF部41は、無線伝送路上で通信を行う際に使用する高周波数帯域の信号の授受を行い、送受信されるアナログデータの増幅等を行う。そして、アンテナ50からデータを送信、または受信する。RF部41は、例えばベースバンドチップ30とは別個のRFチップ40上に形成される。   The RF chip 40 includes an RF unit 41. The RF unit 41 transmits and receives a signal in a high frequency band used when performing communication on a wireless transmission path, and amplifies analog data to be transmitted and received. Then, data is transmitted or received from the antenna 50. The RF unit 41 is formed on an RF chip 40 that is separate from the baseband chip 30, for example.

ベースバンドチップ30は、物理部31、MAC(medium access controller)部32、CPU(central processing unit)33、メモリコントローラ34、SDデバイスインターフェース35、SDホストインターフェース36、SRAM37、及びNOR型フラッシュメモリ38を備えている。これらは、同一基板上に形成される。   The baseband chip 30 includes a physical unit 31, a MAC (medium access controller) unit 32, a CPU (central processing unit) 33, a memory controller 34, an SD device interface 35, an SD host interface 36, an SRAM 37, and a NOR flash memory 38. I have. These are formed on the same substrate.

物理部31は、無線LAN通信の送信データ及び受信データの物理層についての処理を行う。すなわち物理部31は、無線LANによるフレームの受信時には、RF部40から与えられる受信信号(アナログ信号)をA/D変換してデジタル信号を得る。更に、このデジタル信号につき復調処理を行う。すなわち、例えば直交周波数分割多重(OFDM:orthogonal frequency division multiplexing)復調及び誤り訂正復号を行って、受信フレームを得る。そして、得られた受信フレームをMAC部32へ出力する。   The physical unit 31 performs processing on a physical layer of transmission data and reception data of wireless LAN communication. That is, when receiving a frame by the wireless LAN, the physical unit 31 performs A / D conversion on the reception signal (analog signal) given from the RF unit 40 to obtain a digital signal. Further, the digital signal is demodulated. That is, for example, orthogonal frequency division multiplexing (OFDM) demodulation and error correction decoding are performed to obtain a received frame. Then, the obtained received frame is output to the MAC unit 32.

他方、フレームの送信時には、物理部31は、MAC部32から送信フレームを受け取る。そして、受け取った送信フレームの冗長符号化及びOFDM変調を行い、更にD/A変換することによりアナログ信号を得て、このアナログ信号を送信信号としてRFチップ40へ出力する。そして、この送信フレームが、RFチップ40によってアンテナ50から無線送信される。   On the other hand, when transmitting a frame, the physical unit 31 receives a transmission frame from the MAC unit 32. Then, the received transmission frame is redundantly encoded and OFDM-modulated, further D / A converted to obtain an analog signal, and this analog signal is output to the RF chip 40 as a transmission signal. This transmission frame is wirelessly transmitted from the antenna 50 by the RF chip 40.

MAC部32は、無線LAN通信の送信データ及び受信データのMAC層についての処理を行う。すなわちMAC部32は、フレームの受信時には、物理部31から受信フレームを受け取る。そして、受信フレームからMACヘッダを取り除いてパケットを組み立てる。なおパケットとは、送受信データがパーソナルコンピュータ等において扱えるデータ構造に組み立てられたものであり、フレームとは、無線通信により通信可能に組み立てられた送受信データのことである。フレームの送信時には、CPU33、またはデジタルカメラ10のSDホストインターフェース11からパケットを受け取る。そして、パケットにMACヘッダを付与して送信フレームを組み立て、これを物理部31へ出力する。   The MAC unit 32 performs processing on the MAC layer of transmission data and reception data of wireless LAN communication. That is, the MAC unit 32 receives a received frame from the physical unit 31 when receiving a frame. Then, the MAC header is removed from the received frame to assemble the packet. Note that a packet is a data structure in which transmission / reception data is handled by a personal computer or the like, and a frame is transmission / reception data assembled so as to be communicable by wireless communication. When transmitting a frame, the packet is received from the CPU 33 or the SD host interface 11 of the digital camera 10. Then, a MAC header is attached to the packet to assemble a transmission frame, and this is output to the physical unit 31.

CPU33は、オペレーティングシステム(OS)を実行し、無線LANチップ21全体の動作を制御する。そしてCPU33は、無線LANによる送信データ及び受信データについての処理を行う。また、無線LANによって受信したデータをNAND型フラッシュメモリ24に書き込むための処理や、無線LAN通信によって送信すべきデータをNAND型フラッシュメモリ24から読み出し、これを送信するための処理等を行う。   The CPU 33 executes an operating system (OS) and controls the overall operation of the wireless LAN chip 21. The CPU 33 performs processing on transmission data and reception data by the wireless LAN. Also, a process for writing data received by the wireless LAN into the NAND flash memory 24, a process for reading data to be transmitted by the wireless LAN communication from the NAND flash memory 24, and transmitting the data are performed.

メモリコントローラ34は、SRAM37及びその他のメモリ(例えばSDRAM(synchronous DRAM)25)に対するアクセスを制御する。   The memory controller 34 controls access to the SRAM 37 and other memories (for example, SDRAM (synchronous DRAM) 25).

SRAM37及びSDRAM25は、受信データ及び送信データを保持する。これらは、データを保持できる構成であれば良く、その他の半導体メモリであっても良いし、または半導体メモリ以外のハードディスクなどの記憶装置であっても良い。   The SRAM 37 and the SDRAM 25 hold reception data and transmission data. These may have any configuration capable of holding data, and may be other semiconductor memories or a storage device such as a hard disk other than the semiconductor memory.

NOR型フラッシュメモリ38は、データを不揮発に記憶し、例えばCPU33が実行するOSを保持する。   The NOR flash memory 38 stores data in a nonvolatile manner, and holds an OS executed by the CPU 33, for example.

SDデバイスインターフェース35は、デジタルカメラ10との間の通信を司る。すなわちSDデバイスインターフェース35は、デジタルカメラ10のSDホストインターフェース11からの種々の命令及びデータを受信し、また必要なデータをSDホストインターフェース11へ転送する。   The SD device interface 35 manages communication with the digital camera 10. That is, the SD device interface 35 receives various commands and data from the SD host interface 11 of the digital camera 10, and transfers necessary data to the SD host interface 11.

SDホストインターフェース36は、NAND型フラッシュメモリ24との間の通信を司る。すなわちSDホストインターフェース36は、SDデバイスインターフェース22へ種々の命令及びデータを転送し、また必要なデータをSDデバイスインターフェース22から受信する。   The SD host interface 36 manages communication with the NAND flash memory 24. That is, the SD host interface 36 transfers various commands and data to the SD device interface 22 and receives necessary data from the SD device interface 22.

以上の構成において、デジタルカメラ10からメモリカード20に転送される写真や動画は、SDホストインターフェース11及びSDデバイスインターフェース35を介して、SRAM37やSDRAM25に格納される。前述の通り、SRAM37及びSDRAM25へのアクセスは、メモリコントローラ34を介して行われる。   In the above configuration, the photos and moving images transferred from the digital camera 10 to the memory card 20 are stored in the SRAM 37 and the SDRAM 25 via the SD host interface 11 and the SD device interface 35. As described above, access to the SRAM 37 and the SDRAM 25 is performed via the memory controller 34.

SRAM37やSDRAM25に格納されたデータの転送先は2つある。1つは無線LANの接続先である外部の端末(携帯電話、PDA、PC等の無線LAN通信機能を有する通信機器)であり、もう1つはメモリカード20に内蔵されているNAND型フラッシュメモリ24である。   There are two transfer destinations of data stored in the SRAM 37 and the SDRAM 25. One is an external terminal (communication device having a wireless LAN communication function, such as a mobile phone, a PDA, or a PC) to which a wireless LAN is connected, and the other is a NAND flash memory built in the memory card 20. 24.

無線LANを用いて外部の端末へデータを転送する場合、データはCPU33によって処理され、その後MAC部32及び物理部31を通ってRF部41へ出力される。そしてデータは、最終的にRF部41からアンテナ50へ転送され、無線LANフレームとして送信される。外部の端末からデータを受信する場合には、上記と逆の処理が行われる。   When data is transferred to an external terminal using a wireless LAN, the data is processed by the CPU 33 and then output to the RF unit 41 through the MAC unit 32 and the physical unit 31. The data is finally transferred from the RF unit 41 to the antenna 50 and transmitted as a wireless LAN frame. When data is received from an external terminal, the reverse process is performed.

また、NAND型フラッシュメモリ24へデータを転送する場合、データはCPU33によって処理され、その後、SDホストインターフェース36及びSDデバイスインターフェース22を介してNANDコントローラ23へ転送される。NANDコントローラ23は、受信したアドレスを論理アドレスから物理アドレスへ変換し、データをNAND型フラッシュメモリ24に書き込む。NAND型フラッシュメモリ24からデータが読み出される場合には、上記と逆の処理が行われる。   When data is transferred to the NAND flash memory 24, the data is processed by the CPU 33 and then transferred to the NAND controller 23 via the SD host interface 36 and the SD device interface 22. The NAND controller 23 converts the received address from a logical address to a physical address, and writes the data to the NAND flash memory 24. When data is read from the NAND flash memory 24, the reverse process is performed.

なお、無線LAN通信に必要とされる処理は,ソフトウェア及びハードウェアのどちらでも実施することが可能である。ハードウェアで実施するのであればその機能はMAC部32及び物理部31が実行し、ソフトウェアで実施するのであればCPU33が実行する。   Note that processing required for wireless LAN communication can be performed by either software or hardware. If implemented by hardware, the function is executed by the MAC unit 32 and the physical unit 31, and if implemented by software, the function is executed by the CPU 33.

2.NAND型フラッシュメモリ24の管理方法について
次に、NAND型フラッシュメモリ24の管理方法について、図3を用いて説明する。図3は、NAND型フラッシュメモリ24のメモリ空間を示す概念図である。本例では、FAT(File Allocation table)ファイルシステムを用いて管理する場合を例に説明する。
2. Management method of NAND flash memory 24
Next, a management method of the NAND flash memory 24 will be described with reference to FIG. FIG. 3 is a conceptual diagram showing a memory space of the NAND flash memory 24. In this example, a case where management is performed using a FAT (File Allocation Table) file system will be described as an example.

図示するように、NAND型フラッシュメモリ24のメモリ空間は、大まかにはマスターブートレコード(MBR:Master Boot Record)と、複数(本例では4個)のパーティションPT1〜PT4を含む。   As shown in the figure, the memory space of the NAND flash memory 24 roughly includes a master boot record (MBR) and a plurality (four in this example) of partitions PT1 to PT4.

MBRは、例えば512バイトのサイズを有し、4つのパーティションPT1〜PT4に関する情報を保持する。より具体的には、NAND型フラッシュメモリ24が4つのパーティションPT1〜PT4に分割されていること、及び各パーティションPT1〜PT4の先頭クラスタ番号(換言すれば、各パーティションPT1〜PT4の先頭アドレス)の情報を保持する。MBRと第1パーティションPT1との間には、“0”データが書き込まれた領域が設けられる。この領域とMBRは隠しセクタであり、ユーザからは見えない。   The MBR has a size of, for example, 512 bytes and holds information regarding the four partitions PT1 to PT4. More specifically, the NAND flash memory 24 is divided into four partitions PT1 to PT4, and the top cluster number of each partition PT1 to PT4 (in other words, the top address of each partition PT1 to PT4). Keep information. An area in which “0” data is written is provided between the MBR and the first partition PT1. This area and MBR are hidden sectors and are not visible to the user.

各パーティションPT1〜PT4は、BIOSパラメータブロック(BPB:BIOS parameter block)、FAT1、FAT2、ルートディレクトリエントリ(RDE:Root Directory Entry)、及びユーザ領域を含む。   Each of the partitions PT1 to PT4 includes a BIOS parameter block (BPB), FAT1, FAT2, a root directory entry (RDE), and a user area.

BPBは、1セクタが何バイトで構成されているか、1クラスタが何セクタで構成されているか、FAT1、FAT2のセクタ数、及びRDEのエントリ数(セクタ数)等の情報を保持する。BPBのサイズは、FATの規格上、512バイトと定められている。BPBは、各パーティションPT1〜PT4の先頭領域に設けられる。従って、BPBの場所(先頭セクタ番号)は、MBRに保持される各パーティションPT1〜PT4の先頭クラスタ番号から把握出来る。   The BPB holds information such as how many bytes each sector comprises, how many sectors a cluster comprises, the number of sectors FAT1, FAT2, and the number of RDE entries (sector number). The size of BPB is defined as 512 bytes in the FAT standard. BPB is provided in the top area of each partition PT1 to PT4. Therefore, the location (first sector number) of BPB can be grasped from the first cluster number of each partition PT1 to PT4 held in the MBR.

FAT1は、どのクラスタが使用中であるか、または未使用であるか、またクラスタチェーンの情報を保持する。すなわち、メモリ空間は、クラスタと呼ばれるある一定のサイズの空間の集合である。そして、書き込まれるデータ(ファイル)がクラスタサイズより大きい場合、クラスタ単位に分割されて記憶される。この際、データが書き込まれるクラスタは連続しない場合がある。すなわち、1つのデータが場所的に離れた複数のクラスタを使って記憶される。この際に、データがどのクラスタに分割されて書き込まれたか(クラスタチェーン)を管理するための管理データが、FATに記憶される。FAT1は、BPBに連続するアドレス領域に格納される。従って、FAT1の場所及びサイズは、BPBの情報から把握出来る。   The FAT1 holds information on which cluster is in use or unused, and cluster chain information. That is, the memory space is a set of spaces of a certain size called clusters. If the data (file) to be written is larger than the cluster size, it is divided and stored in cluster units. At this time, clusters to which data is written may not be continuous. That is, one piece of data is stored using a plurality of clusters that are separated in place. At this time, management data for managing to which cluster the data is divided and written (cluster chain) is stored in the FAT. FAT1 is stored in an address area continuous with BPB. Therefore, the location and size of FAT1 can be grasped from the information of BPB.

FAT2は、FAT1のバックアップである。FAT1とFAT2から、どのファイルが壊れているかを検出出来る。FAT2は、FAT1に連続するアドレス領域に格納される。従って、FAT2の場所及びサイズも、BPBの情報から把握出来る。   FAT2 is a backup of FAT1. Which file is damaged can be detected from FAT1 and FAT2. FAT2 is stored in an address area continuous with FAT1. Therefore, the location and size of FAT2 can also be grasped from the information of BPB.

RDEは、ルートディレクトリ上のファイルやディレクトリに関する情報を保持する。すなわち、RDEは複数のエントリを有し、各エントリに、ルートディレクトリ上のファイルやディレクトリの、名前、先頭クラスタ、属性、作成時刻、及びファイルサイズ等の情報を保持する。RDEは、FAT2に連続するアドレス領域に格納される。従って、RDEの場所及びサイズも、BPBの情報から把握出来る。   The RDE holds information on files and directories on the root directory. That is, the RDE has a plurality of entries, and each entry holds information such as the name, top cluster, attribute, creation time, and file size of the file or directory on the root directory. RDE is stored in an address area continuous to FAT2. Accordingly, the location and size of the RDE can also be grasped from the BPB information.

以上のBPB、FAT1、FAT2、及びRDEは、FATファイルシステムのための管理情報と言うことが出来る。各パーティションPT1〜PT4の管理情報は、各パーティションPT1〜PT4のユーザ領域の情報を管理するためのものである。   The above BPB, FAT1, FAT2, and RDE can be said to be management information for the FAT file system. The management information of each partition PT1 to PT4 is for managing information on the user area of each partition PT1 to PT4.

ユーザ領域は、正味のユーザデータを保持する領域であり、サブディレクトリもユーザ領域内に設けられる。   The user area is an area for holding net user data, and a subdirectory is also provided in the user area.

図4は、上記MBRの構成を示す模式図である。図示するように、MBRの最初の領域にはブートストラップローダ(bootstrap loader)が格納され、それに引き続いてパーティションPT1〜PT4の情報(先頭クラスタ番号等)及びシグニチャが格納される。   FIG. 4 is a schematic diagram showing the configuration of the MBR. As shown in the figure, a bootstrap loader is stored in the first area of the MBR, followed by information (such as the leading cluster number) and signatures of the partitions PT1 to PT4.

3.動作について
次に、上記構成のデジタルカメラ10及び無線LANチップ21の動作について説明する。
3. About operation
Next, operations of the digital camera 10 and the wireless LAN chip 21 configured as described above will be described.

3.1 デジタルカメラ10の動作について
まず、デジタルカメラ10の動作について、図5を参照して説明する。図5はデジタルカメラ10がNAND型フラッシュメモリ24を使用する際の動作を示すフローチャートである。
3.1 Operation of digital camera 10
First, the operation of the digital camera 10 will be described with reference to FIG. FIG. 5 is a flowchart showing an operation when the digital camera 10 uses the NAND flash memory 24.

まずデジタルカメラ10が起動されると(ステップS10)、デジタルカメラ10内のプロセッサは、デジタルカメラ10内のメモリからOSを読み出してこれを起動する(ステップS11)。   First, when the digital camera 10 is activated (step S10), the processor in the digital camera 10 reads out the OS from the memory in the digital camera 10 and activates it (step S11).

デジタルカメラ10のプロセッサによって実行されるOSは、NAND型フラッシュメモリ24にアクセスし、MBRを読み出し(ステップS12)、これを解析する(ステップS13)。   The OS executed by the processor of the digital camera 10 accesses the NAND flash memory 24, reads the MBR (step S12), and analyzes it (step S13).

MBRを解析した結果、パーティションが2つ以上ある場合(ステップS14、YES)、OSは、そのうちの1つである第1パーティションを、データの読み出し及び書き込み(及び消去)可能な領域としてマウントする(見えるようにする)(ステップS15)。マウントとは、パーティションを認識する作業のことである。またその他のパーティションを、読み出しのみ可能な領域としてマウントする(ステップS16)。例えば図3及び図4の例であると、デジタルカメラ10は第1パーティションPT1に対しては、データの読み出し及び書き込み(及び消去)を自由に実行できるが、その他の第2〜第4パーティションPT2〜PT4については、データの読み出ししか実行できない。すなわち、デジタルカメラ10は、第1パーティションPT1からFATを読み出し、このFATによって第1パーティションPT1を管理する。そしてデジタルカメラ10は、第1パーティションPT1に自由にアクセスし、そしてアクセス内容に応じて第1パーティションPT1のFATを書き換える。しかし、その他のパーティションPT2〜PT4のFATを書き換えることは出来ない。   As a result of analyzing the MBR, when there are two or more partitions (step S14, YES), the OS mounts the first partition which is one of them as an area where data can be read and written (and erased) ( (Step S15). Mounting is the process of recognizing a partition. Other partitions are mounted as read-only areas (step S16). For example, in the example of FIGS. 3 and 4, the digital camera 10 can freely read and write (and erase) data from the first partition PT1, but the other second to fourth partitions PT2. With respect to .about.PT4, only data reading can be executed. That is, the digital camera 10 reads the FAT from the first partition PT1, and manages the first partition PT1 by this FAT. The digital camera 10 freely accesses the first partition PT1, and rewrites the FAT of the first partition PT1 according to the access contents. However, the FATs of the other partitions PT2 to PT4 cannot be rewritten.

他方、パーティションが1つだけである場合(ステップS14、NO)、OSはそのパーティションを、データの読み出し及び書き込み(及び消去)可能な領域としてマウントする(ステップS17)。   On the other hand, when there is only one partition (step S14, NO), the OS mounts the partition as an area where data can be read and written (and erased) (step S17).

3.2 無線LANチップ21の動作について
次に、無線LANチップ21の動作について、図6を参照して説明する。図6は無線LANチップ21がNAND型フラッシュメモリ24を使用する際の動作を示すフローチャートである。
3.2 Operation of the wireless LAN chip 21
Next, the operation of the wireless LAN chip 21 will be described with reference to FIG. FIG. 6 is a flowchart showing an operation when the wireless LAN chip 21 uses the NAND flash memory 24.

まず無線LANチップ21が起動されると(ステップS20)、無線LANチップ21内のプロセッサ(CPU33)は、例えばNOR型フラッシュメモリ38からOSを読み出してこれを起動する(ステップS21)。   First, when the wireless LAN chip 21 is activated (step S20), the processor (CPU 33) in the wireless LAN chip 21 reads out the OS from, for example, the NOR flash memory 38 and activates it (step S21).

プロセッサ33によって実行されるOSは、NAND型フラッシュメモリ24にアクセスし、MBRを読み出し(ステップS22)、これを解析する(ステップS23)。   The OS executed by the processor 33 accesses the NAND flash memory 24, reads the MBR (step S22), and analyzes it (step S23).

MBRを解析した結果、パーティションが2つ以上ある場合(ステップS24、YES)、OSは、そのうちの1つであり、図5で説明した第1パーティションとは別の第2パーティションを、データの読み出し及び書き込み(及び消去)可能な領域としてマウントする(ステップS25)。またその他のパーティションを、読み出しのみ可能な領域としてマウントする(ステップS26)。例えば図3及び図4の例であると、デジタルカメラ10は第2パーティションPT2に対しては、データの読み出し及び書き込み(及び消去)を自由に実行できるが、その他の第1、第3、第4パーティションPT1、PT3、PT4については、データの読み出ししか実行できない。すなわち、無線LANチップ21は、第2パーティションPT2からFATを読み出し、このFATによって第2パーティションPT2を管理する。そして無線LANチップ21は、第2パーティションPT2に自由にアクセスし、そしてアクセス内容に応じて第2パーティションPT2のFATを書き換える。しかし、その他のパーティションPT1、PT3、PT4のFATを書き換えることは出来ない。   As a result of analyzing the MBR, when there are two or more partitions (step S24, YES), the OS is one of them, and the second partition different from the first partition described in FIG. Then, it is mounted as a writable (and erasable) area (step S25). Other partitions are mounted as areas that can only be read (step S26). For example, in the example of FIGS. 3 and 4, the digital camera 10 can freely execute reading and writing (and erasing) of data with respect to the second partition PT2, but the other first, third, and second For the four partitions PT1, PT3, PT4, only data reading can be executed. That is, the wireless LAN chip 21 reads the FAT from the second partition PT2, and manages the second partition PT2 by this FAT. Then, the wireless LAN chip 21 freely accesses the second partition PT2, and rewrites the FAT of the second partition PT2 according to the access contents. However, the FATs of other partitions PT1, PT3, and PT4 cannot be rewritten.

他方、パーティションが1つだけである場合(ステップS24、NO)、OSはそのパーティションを、データの読み出し及び書き込み(及び消去)可能な領域としてマウントする(ステップS27)。   On the other hand, if there is only one partition (step S24, NO), the OS mounts the partition as an area where data can be read and written (and erased) (step S27).

4.本実施形態に係る効果
以上のように、本実施形態に係る構成であると、ファイルを保護しつつ、使い勝手の良い通信装置を提供出来る。本効果につき、以下説明する。
4). Effects according to this embodiment
As described above, with the configuration according to the present embodiment, it is possible to provide an easy-to-use communication device while protecting files. This effect will be described below.

一例として、従来のデジタルカメラに接続されたSDメモリへのアクセス方法を考える。SDメモリにアクセスするには、デジタルカメラをホストとしてSDインターフェース経由でアクセスする方法と、パソコンをホストとしてUSBインターフェース経由でアクセスする方法の二通りがある。しかし、これらのホストが同時にリソース(SDメモリ)へアクセスすることはできない。同時にアクセスしようとすると,パソコンからのアクセスが優先され、デジタルカメラからのアクセスはできない仕様になっている。   As an example, consider a method of accessing an SD memory connected to a conventional digital camera. There are two ways to access the SD memory: a method using a digital camera as a host to access via the SD interface and a method using a personal computer as a host to access via the USB interface. However, these hosts cannot access the resource (SD memory) at the same time. If you try to access at the same time, priority is given to access from a personal computer, and access from a digital camera is not possible.

このように排他制御が設けられている理由は、ファイルの保存場所を管理しているファイル管理テーブル(FATファイルシステムのFAT1、FAT2領域)を保護するためである。仮に、デジタルカメラとパソコンが同時にSDメモリへアクセスできたとする。すると、デジタルカメラに搭載されているOSと、パソコンに搭載されているOSとが、別々にファイル管理テーブルを取得し、保持する。すなわち、内容の異なるファイル管理テーブルがそれぞれのOS上に作成される。この状態でファイル管理テーブルをそれぞれのホストがSDメモリへ書き込むと、後で書き込んだホスト(例えばデジタルカメラ)のファイル管理テーブルが有効になり、その直前に書き込んだホスト(例えばパソコン)のファイル情報は上書きされ、無効化される。   The reason why the exclusive control is provided in this way is to protect the file management table (the FAT1 and FAT2 areas of the FAT file system) that manages the storage location of the file. Suppose that a digital camera and a personal computer can simultaneously access the SD memory. Then, the OS installed in the digital camera and the OS installed in the personal computer separately acquire and hold the file management table. That is, file management tables having different contents are created on each OS. In this state, when each host writes the file management table to the SD memory, the file management table of the host (for example, digital camera) written later becomes effective, and the file information of the host (for example, personal computer) written immediately before is valid. Overwritten and invalidated.

ここで、無線LANチップを搭載したSDメモリカードの場合を考える。このようなSDメモリカードが挿入されたデジタルカメラは、写真を撮影するだけでなく、無線LANによって別の端末から写真を受け取ることが出来る。すなわち、SDメモリには2つのホストが存在する。そして、1つのSDメモリに対して2つの異なるホスト(デジタルカメラと無線LAN)がファイル操作を行うと、ファイル管理テーブルに矛盾が発生する。   Consider the case of an SD memory card equipped with a wireless LAN chip. A digital camera in which such an SD memory card is inserted can not only take a picture but also receive a picture from another terminal via a wireless LAN. That is, there are two hosts in the SD memory. When two different hosts (digital camera and wireless LAN) perform file operations on one SD memory, a contradiction occurs in the file management table.

このような問題が発生するのは、前述したデジタルカメラとパソコンとの関係と同様である。すなわち、SDメモリカードのデータ保存領域であるNAND型フラッシュメモリに対して、2つのホストが別々にファイルシステムを制御しようとするからである。   Such a problem occurs in the same manner as the relationship between the digital camera and the personal computer described above. In other words, the two hosts try to control the file system separately for the NAND flash memory which is the data storage area of the SD memory card.

具体的には、無線LANチップに搭載されたOSと、デジタルカメラに搭載されたOSとが、SDメモリカードのファイルシステムであるFAT16やFAT32を構成するFAT領域をそれぞれ取得する。そして、それぞれがFAT領域を更新し、更新の後、これをNAND型フラッシュメモリに書き戻す。その結果、最新のファイル管理テーブルのみが有効になり、その直前に書き込んだホストのファイル情報は上書きされて無効化される。   Specifically, the OS mounted on the wireless LAN chip and the OS mounted on the digital camera respectively acquire the FAT areas that constitute the FAT 16 and FAT 32 which are file systems of the SD memory card. Each updates the FAT area, and after the update, writes it back to the NAND flash memory. As a result, only the latest file management table becomes valid, and the file information of the host written immediately before is overwritten and invalidated.

このような問題を解決するには、無線LANからの書き込みを行っている間、デジタルカメラからの書き込みを制限する方法が考えられる。しかし、この方法では、無線LANを用いて例えば巨大な動画ファイルの転送をしている期間は、カメラによる撮影ができない。すなわち、ユーザは、無線LANによるファイル転送が終了するまで待たされることになる。よって、この方法では、無線LANによるファイル転送は可能になるが、その間、撮影が出来なくなり、使い勝手が非常に悪くなる、という問題がある。   In order to solve such a problem, a method of restricting writing from the digital camera while writing from the wireless LAN can be considered. However, in this method, it is not possible to take a picture with a camera during a period in which, for example, a huge moving image file is transferred using a wireless LAN. That is, the user waits until the file transfer by the wireless LAN is completed. Therefore, with this method, file transfer by wireless LAN is possible, but there is a problem in that shooting cannot be performed during that time, and usability becomes very poor.

この点、本実施形態に係る構成であると、SDメモリカード10のNAND型フラッシュメモリ24を、予め複数のパーティションPT1〜PT4に分割している(図3参照)。そして、それぞれのパーティションにFATを用意して、その情報をMBRに格納する。更に、各ホストに別々のパーティションを、書き込み用として割り当てる。   In this regard, in the configuration according to the present embodiment, the NAND flash memory 24 of the SD memory card 10 is divided into a plurality of partitions PT1 to PT4 in advance (see FIG. 3). Then, a FAT is prepared for each partition, and the information is stored in the MBR. In addition, a separate partition is assigned to each host for writing.

これにより各ホストは、NAND型フラッシュメモリ24が複数の領域に区切られていることを認識する。そして各ホストは、割り当てられたパーティションについてのFATをそれぞれ保持することで、割り当てられたパーティションに対してのみ、データの書き込みを実行出来る。   Thereby, each host recognizes that the NAND flash memory 24 is divided into a plurality of areas. Each host can hold the FAT for the assigned partition, and can write data only to the assigned partition.

例えば図3において、第1パーティションPT1がデジタルカメラ10に割り当てられ、第2パーティションPT2が無線LANチップ21に割り当てられていたと仮定する。すると、デジタルカメラ10は、第1〜第4パーティションPT1〜PT4の存在を認識し、これらの領域からデータを読み出すことは出来るが、書き込み(及び消去)は第1パーティションPT1に対してのみ、実行出来る。また無線LANチップ21は、第1〜第4パーティションPT1〜PT4からデータを読み出すことは出来るが、書き込み(及び消去)は第2パーティションPT1に対してのみ、実行出来る。   For example, in FIG. 3, it is assumed that the first partition PT1 is assigned to the digital camera 10 and the second partition PT2 is assigned to the wireless LAN chip 21. Then, the digital camera 10 recognizes the existence of the first to fourth partitions PT1 to PT4 and can read data from these areas, but writing (and erasing) is performed only on the first partition PT1. I can do it. The wireless LAN chip 21 can read data from the first to fourth partitions PT1 to PT4, but can write (and erase) only to the second partition PT1.

そのため、デジタルカメラ10によって記録された情報(FAT)が、無線LANチップ21によって書き換えられることを抑制出来ると共に、無線LANチップ21によって記録された情報(FAT)が、デジタルカメラ10によって書き換えられることを抑制出来る。   Therefore, the information (FAT) recorded by the digital camera 10 can be prevented from being rewritten by the wireless LAN chip 21, and the information (FAT) recorded by the wireless LAN chip 21 can be rewritten by the digital camera 10. Can be suppressed.

このように、予めリソースを複数の領域に区切ることで、各ホストが操作可能な領域を明確にできる。そして、本方法によれば、同一アドレスに対する複数のホストからの書き込みが発生しない。よって、複数のホストからのアクセスを許容しつつ、ファイルシステムが壊れる心配がなく、安全にファイルを操作することが可能になる。   In this way, by dividing a resource into a plurality of areas in advance, it is possible to clarify the areas that can be operated by each host. According to this method, writing from a plurality of hosts to the same address does not occur. Therefore, it is possible to safely operate the file without allowing the file system to be damaged while allowing access from a plurality of hosts.

なお、本実施形態では4つのパーティションが設けられる場合を例に説明したが、パーティションの数は4つに限られるものではなく、少なくともホストの数だけあれば良い。図7は、パーティションの数が2つの場合について示している。図示するように、デジタルカメラ10のCPU12は、第1パーティションPT1のFATを保持し、デジタルカメラ10の書き込みアクセスは第1パーティションPT1に対してのみ許容される。他方、アクセスポイント61を介した別のデジタルカメラ60は、第2パーティションPT2のFATを保持し、デジタルカメラ60の書き込みアクセスは第2パーティションPT2に対してのみ許容される。   In this embodiment, the case where four partitions are provided has been described as an example. However, the number of partitions is not limited to four, and at least the number of hosts is sufficient. FIG. 7 shows a case where the number of partitions is two. As shown in the figure, the CPU 12 of the digital camera 10 holds the FAT of the first partition PT1, and write access of the digital camera 10 is permitted only to the first partition PT1. On the other hand, another digital camera 60 via the access point 61 holds the FAT of the second partition PT2, and write access of the digital camera 60 is permitted only to the second partition PT2.

[第2実施形態]
次に、第2実施形態に係る通信装置及びその制御方法について説明する。本実施形態は、上記第1実施形態において、NAND型フラッシュメモリ24を複数の領域に区切るのではなく、アドレス変換を行うことによってファイルを保護するものである。以下では、第1実施形態と異なる点についてのみ説明する。
[Second Embodiment]
Next, a communication device and a control method thereof according to the second embodiment will be described. In this embodiment, the NAND flash memory 24 is not divided into a plurality of areas in the first embodiment, but the file is protected by performing address conversion. Below, only a different point from 1st Embodiment is demonstrated.

1.構成について
図8は、本実施形態に係るメモリカード、並びにSDメモリカードの挿入されたデジタルカメラのブロック図である。また図9は、メモリカードのより詳細なブロック図である。
1. About configuration
FIG. 8 is a block diagram of the memory card according to the present embodiment and the digital camera in which the SD memory card is inserted. FIG. 9 is a more detailed block diagram of the memory card.

図示するように、本実施形態に係るメモリカード20は、第1実施形態で説明した構成において、ファイルシステムコントローラ70及びSDホストインターフェース71を新たに設け、無線LANチップ21内のSDホストインターフェース36を廃したものである。   As shown in the drawing, the memory card 20 according to the present embodiment is provided with a file system controller 70 and an SD host interface 71 in the configuration described in the first embodiment, and an SD host interface 36 in the wireless LAN chip 21 is provided. It is abolished.

ファイルシステムコントローラ70は、デジタルカメラ10及び無線LANチップ21からのNAND型フラッシュメモリ24へのアクセスを受け付ける。そして、必要に応じてアドレス変換を行い、アドレスとデータとを、SDホストインターフェース71及びSDデバイスインターフェース22を介してNANDコントローラ23へ出力する。より具体的には、デジタルカメラ10と無線LANチップ21との両方から、同時に同じアドレスに対して書き込み命令があった際、一方のアドレスを別の異なるアドレスに変換する。また、デジタルカメラ10と無線LANチップ21の一方のデータを保持するアドレスに対して、他方から書き込み命令があった際、この書き込み命令に対応するアドレスを別の異なるアドレスに変換する。   The file system controller 70 receives access to the NAND flash memory 24 from the digital camera 10 and the wireless LAN chip 21. Then, address conversion is performed as necessary, and the address and data are output to the NAND controller 23 via the SD host interface 71 and the SD device interface 22. More specifically, when there is a write command for the same address from both the digital camera 10 and the wireless LAN chip 21, one address is converted into another different address. In addition, when a write command is issued from the other to the address holding one data of the digital camera 10 and the wireless LAN chip 21, the address corresponding to this write command is converted into another different address.

2.NAND型フラッシュメモリ24のメモリ空間について
次に、NAND型フラッシュメモリ24のメモリ空間について、図10を用いて説明する。図10は、NAND型フラッシュメモリ24のメモリ空間を示す概念図である。
2. Memory space of NAND flash memory 24
Next, the memory space of the NAND flash memory 24 will be described with reference to FIG. FIG. 10 is a conceptual diagram showing a memory space of the NAND flash memory 24.

図示するように本実施形態では、NAND型フラッシュメモリ24のメモリ空間は、複数のパーティションに分割されることなく、1つのFAT(FAT1、FAT2)によって管理される。すなわち、同一のFATによって、デジタルカメラ10からのデータと無線LANチップ21からのデータの両方が管理される。   As shown in the drawing, in the present embodiment, the memory space of the NAND flash memory 24 is managed by one FAT (FAT1, FAT2) without being divided into a plurality of partitions. That is, both the data from the digital camera 10 and the data from the wireless LAN chip 21 are managed by the same FAT.

3.動作について
次に、本実施形態に係るメモリカード20の動作について、図11を用いて説明する。図11は、NAND型フラッシュメモリ24に対して書き込みアクセスがあった際の、特にファイルシステムコントローラ70の動作に着目したフローチャートである。
3. About operation
Next, the operation of the memory card 20 according to the present embodiment will be described with reference to FIG. FIG. 11 is a flowchart that focuses particularly on the operation of the file system controller 70 when there is a write access to the NAND flash memory 24.

図示するようにファイルシステムコントローラ70は、デジタルカメラ10及び/または無線LANチップ21から書き込みアクセスを受け付けると(ステップS30)、ファイルシステムコントローラ70は、当該アドレスが別のホストからのアクセスと重複しているか否かを判断する(ステップS31)。   As shown in the figure, when the file system controller 70 receives a write access from the digital camera 10 and / or the wireless LAN chip 21 (step S30), the file system controller 70 determines that the address overlaps with an access from another host. It is determined whether or not (step S31).

アドレスが重複しているケースは、例えばデジタルカメラ10と無線LANチップ21の両方から同時に同じアドレスに書き込みアクセスが為された場合や、デジタルカメラ10と無線LANチップ21とのいずれか一方からのデータを保持する領域に、他方から書き込みアクセスが為された場合が該当する。後者については、NAND型フラッシュメモリ24から読み出したFATを参照することによって判断することが出来る。   The case where the address is duplicated is, for example, when both the digital camera 10 and the wireless LAN chip 21 have write access to the same address at the same time, or data from either the digital camera 10 or the wireless LAN chip 21. This corresponds to the case where a write access is made from the other side to the area holding. The latter can be determined by referring to the FAT read from the NAND flash memory 24.

アドレスが重複している場合(ステップS31、YES)、ファイルシステムコントローラ70は、書き込みアクセスについてのアドレスを変換する(ステップS32)。そして、変換されたアドレスに対する書き込み命令を発行して、これをSDホストインターフェース71及びSDデバイスインターフェース22を介してNANDコントローラ23へ出力する(ステップS33)。   If the addresses are duplicated (step S31, YES), the file system controller 70 converts the address for write access (step S32). Then, a write command for the converted address is issued and output to the NAND controller 23 via the SD host interface 71 and the SD device interface 22 (step S33).

デジタルカメラ10と無線LANチップ21の両方から同時に同じアドレスへ書き込みアクセスが為された場合であれば、その少なくとも一方からの書き込みアクセスについてのアドレスを変換する。そして、無線LANチップ21からのアクセスに関してのみアドレス変換する場合であれば、無線LANチップ21からのデータに関しては、変換されたアドレスへの書き込み命令を発行する。他方、デジタルカメラ10からのデータに関しては、アドレス変換することなく、デジタルカメラ10から受信したアドレスへの書き込み命令を発行する。逆の場合もまた同様である。場合によっては、両方の書き込みアクセスについてアドレス変換を行っても良い。   If a write access is simultaneously made to the same address from both the digital camera 10 and the wireless LAN chip 21, the address for the write access from at least one of them is converted. If the address is converted only for access from the wireless LAN chip 21, a write command to the converted address is issued for the data from the wireless LAN chip 21. On the other hand, with respect to data from the digital camera 10, a write command to the address received from the digital camera 10 is issued without address conversion. The reverse is also true. In some cases, address conversion may be performed for both write accesses.

アドレスが重複していないケースは、例えばデジタルカメラ10と無線LANチップ21の両方から同時に異なるアドレスに書き込みアクセスが為された場合や、デジタルカメラ10と無線LANチップ21との一方から書き込みアクセスが為され、そのアドレスが、デジタルカメラ10のデータを保持する領域ではない場合が該当する。   In the case where the addresses are not duplicated, for example, when both the digital camera 10 and the wireless LAN chip 21 have write access to different addresses at the same time, or the digital camera 10 and the wireless LAN chip 21 have write access from one side. In this case, the address is not an area for holding data of the digital camera 10.

この場合(ステップS31、NO)、ファイルシステムコントローラ70は、アドレス変換を行うことなく(ステップS34)、それぞれのホストから受信したアドレスへの書き込み命令を発行する(ステップS35)。   In this case (step S31, NO), the file system controller 70 issues a write command to the address received from each host without performing address conversion (step S34) (step S35).

4.本実施形態に係る効果
本実施形態によっても、第1実施形態と同様の効果が得られる。すなわち、本実施形態に係る構成であると、メモリカード20はファイルシステムコントローラ70を有する。そして、各ホストはファイルシステムを所有せず、ファイルシステムの管理をファイルシステムコントローラ70が行っている。つまり、FATの書き換えはファイルシステムコントローラ70が行い、各ホストは行わない。この際、ファイルシステムコントローラ70は、複数のホストから同じアドレス領域にアクセスがあった場合、アドレス変換を行って、同じアドレス領域にアクセスされないようにする。
4). Effects according to this embodiment
According to this embodiment, the same effect as that of the first embodiment can be obtained. That is, in the configuration according to the present embodiment, the memory card 20 includes the file system controller 70. Each host does not own a file system, and the file system controller 70 manages the file system. In other words, the FAT is rewritten by the file system controller 70 and not by each host. At this time, when the same address area is accessed from a plurality of hosts, the file system controller 70 performs address conversion so that the same address area is not accessed.

この様子を図12及び図13に示す。図12及び図13は、NAND型フラッシュメモリ24のメモリ空間の模式図である。例えば図12に示すように、デジタルカメラ10及び無線LANチップ21から、アドレスADD1の領域R1に同時に書き込みアクセスがあったとする。するとこの場合、ファイルシステムコントローラ70は図13に示すように、一方のホスト(図13の例では無線LANチップ21)からの書き込みアクセスについてアドレス変換を行う。その結果、無線LANチップ21からのデータは、領域R1ではなく、アドレスADD2の領域R2に書き込まれる。そしてファイルシステムコントローラ70は、デジタルカメラ10からのデータは領域R1に存在し、無線LANチップ21からのデータは領域R2に存在することを、FATに記録する。   This situation is shown in FIGS. 12 and 13 are schematic views of the memory space of the NAND flash memory 24. FIG. For example, as shown in FIG. 12, it is assumed that there is simultaneous write access from the digital camera 10 and the wireless LAN chip 21 to the area R1 of the address ADD1. Then, in this case, as shown in FIG. 13, the file system controller 70 performs address conversion for the write access from one host (wireless LAN chip 21 in the example of FIG. 13). As a result, data from the wireless LAN chip 21 is written not in the area R1 but in the area R2 of the address ADD2. Then, the file system controller 70 records in the FAT that the data from the digital camera 10 exists in the area R1 and the data from the wireless LAN chip 21 exists in the area R2.

以上のように、ファイルシステムコントローラ70によってFATを一元管理することで、ファイルの破壊を防止しつつ、複数のホストからの書き込みアクセスに対応することが出来る。   As described above, by centrally managing the FAT by the file system controller 70, it is possible to cope with write access from a plurality of hosts while preventing file destruction.

なお、アドレス変換を行って書き込みを実行した旨をどこかに記憶しておく必要は特に無い。その後のデータの読み出しや消去にあたっては、FATを参照して、ファイル名によって必要なデータを指定できるからである。   Note that it is not particularly necessary to store somewhere that the address has been converted and the writing has been executed. This is because the subsequent data can be read or erased by referring to the FAT and specifying the necessary data by the file name.

[第3実施形態]
次に、第3実施形態に係る通信装置及びその制御方法について説明する。本実施形態は、上記第2実施形態と同様にファイルシステムコントローラを用いる例に関し、第2実施形態において、デジタルカメラ10及び無線LANチップ21の発行するSDコマンドに、SDインターフェースとは異なるプロトコルによる命令を埋め込むものである。以下では、第2実施形態と異なる点についてのみ説明する。
[Third Embodiment]
Next, a communication device and a control method thereof according to the third embodiment will be described. This embodiment relates to an example in which a file system controller is used as in the second embodiment. In the second embodiment, the SD command issued by the digital camera 10 and the wireless LAN chip 21 is a command based on a protocol different from the SD interface. Is embedded. Below, only a different point from 2nd Embodiment is demonstrated.

1.本実施形態の概念について
まず、本実施形態の概念について、図14を用いて説明する。図14は、デジタルカメラ10及び無線LANチップ21への書き込みアクセスが為される様子を示す概念図である。
1. About the concept of this embodiment
First, the concept of this embodiment will be described with reference to FIG. FIG. 14 is a conceptual diagram showing a state in which write access to the digital camera 10 and the wireless LAN chip 21 is performed.

第2実施形態と同様、デジタルカメラ10及び無線LANチップ21のOSは、ファイルシステムを管理しない。これらのOSは、ファイル制御の命令をファイルシステムコントローラ70に対して出すだけである。この時に発行される命令は、SMB(Server Message Block)プロトコル(RFC 1001, 1002)やFTP(File Transfer Protocol)プロトコル(RFC 697, 959, 1639, 2228, 2389, 2428, 2640, 3659)、WebDAV(Web-based Distributed Authoring and Versioning)プロトコル(RFC 2518)といった、ファイルを制御するプロトコルに順ずる。   As in the second embodiment, the OSs of the digital camera 10 and the wireless LAN chip 21 do not manage the file system. These OSs only issue file control commands to the file system controller 70. The commands issued at this time are SMB (Server Message Block) protocol (RFC 1001, 1002), FTP (File Transfer Protocol) protocol (RFC 697, 959, 1639, 2228, 2389, 2428, 2640, 3659), WebDAV ( Conforms to protocols that control files, such as the Web-based Distributed Authoring and Versioning protocol (RFC 2518).

SMBやFTP、WebDAVといったプロトコルは、元来、TCP/IP上で複数のホストがサーバ上のファイルを制御するために利用してきたプロトコルであった。しかし本実施形態では、これらをSDインターフェース上で利用することにより、ファイルアクセスの排他制御を実現する。   Protocols such as SMB, FTP, and WebDAV were originally protocols used by a plurality of hosts to control files on a server on TCP / IP. However, in the present embodiment, exclusive control of file access is realized by using these on the SD interface.

例えば,SMBは、SMBクライアントがSMBサーバの所有するファイルにアクセスするため、SMBサーバが一括してファイルシステムを管理し、SMBクライアントはサーバに対してファイルを読み書きする命令を発行するに留めることで、ファイルシステムに矛盾が発生しないようにしていた。たとえ複数のクライアントからファイルの作成命令が発行されたとしても、サーバ側で命令を排他制御するため、ファイルシステムに矛盾は生じないのである。これはFTPやWebDAVも同じである。   For example, since the SMB client accesses a file owned by the SMB server, the SMB manages the file system in a batch, and the SMB client only issues an instruction to read and write the file to the server. In order to avoid inconsistencies in the file system. Even if a file creation command is issued from a plurality of clients, the command is exclusively controlled on the server side, so there is no contradiction in the file system. This is the same for FTP and WebDAV.

この機能をSDインターフェース上で実現するため、ファイルシステムコントローラ70がSMBサーバの役割を担い、デジタルカメラ10や無線LAN21といったホストがSMBクライアントとして振舞う。これによって、SDインターフェースを用いたSMBプロトコルを実現する。ファイルシステムはSMBサーバを担当するファイルシステムコントローラ70のみが制御するため、複数ホストから同時にアクセスしてもファイルシステムが破壊されることはない。   In order to realize this function on the SD interface, the file system controller 70 plays the role of an SMB server, and hosts such as the digital camera 10 and the wireless LAN 21 behave as SMB clients. As a result, the SMB protocol using the SD interface is realized. Since the file system is controlled only by the file system controller 70 in charge of the SMB server, the file system is not destroyed even if accessed simultaneously from a plurality of hosts.

そして、デジタルカメラ10と無線LANチップ21のOSは、SDコマンドの一つであるCMD56にSMBプロトコルをカプセル化して、ファイルシステムコントローラ70と送受信する。図15は、コマンドCMD56の構成を示す表である。   Then, the OS of the digital camera 10 and the wireless LAN chip 21 encapsulates the SMB protocol in the CMD 56 which is one of the SD commands, and transmits / receives to / from the file system controller 70. FIG. 15 is a table showing the configuration of the command CMD56.

CMD56によるSMBプロトコルのカプセル化について説明する。CMD56は、ベンダーコマンドと呼ばれるコマンドであり、コマンドの持つ意味は、各ユーザが自由に決めてよいとされているSDコマンドである。CMD56では、コマンドを発行した後に、データの送受信を行うことが許されている。CMD56にSMBプロトコルをカプセル化するとは、CMD56に続けて送信されるデータとしてSMBプロトコルを送信することを意味している。図14では、このことを概念的に示している。後述する図17は、CMD56にSMBプロトコルをカプセル化した時のイメージであり、ホストが、CMD56を発行した後に、データ転送処理部でSMBプロトコルを発行している様子を示す。   The encapsulation of the SMB protocol by CMD56 will be described. The CMD 56 is a command called a vendor command, and the meaning of the command is an SD command that can be freely determined by each user. The CMD 56 is allowed to send and receive data after issuing a command. Encapsulating the SMB protocol in the CMD 56 means transmitting the SMB protocol as data transmitted following the CMD 56. FIG. 14 conceptually shows this. FIG. 17 to be described later is an image when the SMB protocol is encapsulated in the CMD 56, and shows that the host issues the SMB protocol in the data transfer processing unit after issuing the CMD 56.

以上により、ファイルシステムコントローラ70においてファイルシステムの整合を図る。   As described above, the file system controller 70 matches the file system.

2.動作について
次に、本実施形態にメモリカード20の動作について説明する。
2. About operation
Next, the operation of the memory card 20 in this embodiment will be described.

2.1 基本的な動作について
まず、図16を用いて基本的な動作について説明する。図16は、NAND型フラッシュメモリ24に対してアクセスするための動作の大まかな流れを示すフローチャートである。
2.1 Basic operation
First, a basic operation will be described with reference to FIG. FIG. 16 is a flowchart showing a rough flow of an operation for accessing the NAND flash memory 24.

図示するように、まずホスト(デジタルカメラ10及び/または無線LANチップ21のOS)は、SMBプロトコルに従って、データの書き込み、読み出し、及び消去等のファイル制御命令を発行する(ステップS40)。もちろん、FTPやWebDAVプロトコルに従ってもよいが、以下ではSMBプロトコルに従う場合を例に説明する。   As shown in the figure, first, the host (the OS of the digital camera 10 and / or the wireless LAN chip 21) issues file control commands such as data writing, reading, and erasing according to the SMB protocol (step S40). Of course, the FTP and WebDAV protocols may be followed, but the following description will be made taking the case of following the SMB protocol as an example.

引き続きホストは、発行したファイル制御命令を、SDコマンドのCMD56にカプセル化する、すなわちCMD56内に埋め込み、これをファイルシステムコントローラ70に送信する(ステップS41)。   Subsequently, the host encapsulates the issued file control command in the CMD 56 of the SD command, that is, embeds it in the CMD 56, and transmits it to the file system controller 70 (step S41).

ファイルシステムコントローラ70は、受信したCMD56から、SMBプロトコルに従ったファイル制御命令を取り出す(ステップS42)。そしてファイルシステムコントローラ70は、NAND型フラッシュメモリ24のFATを更新すると共に、取り出したファイル制御命令に対応するSDコマンド(CMD17、CMD18、CMD24、CMD25、CMD38等)を発行し、これをSDホストインターフェース71及びSDデバイスインターフェース22を介してNANDコントローラ23へ出力する(ステップS43)。   The file system controller 70 extracts a file control command according to the SMB protocol from the received CMD 56 (step S42). Then, the file system controller 70 updates the FAT of the NAND flash memory 24 and issues an SD command (CMD17, CMD18, CMD24, CMD25, CMD38, etc.) corresponding to the taken-out file control instruction, and issues it to the SD host interface. 71 and output to the NAND controller 23 via the SD device interface 22 (step S43).

2.2 データの書き込みの具体例
次に、データを書き込む際の動作の具体例について、図17を用いて説明する。図17は、デジタルカメラ10からNAND型フラッシュメモリ24にデータを書き込む場合の信号の授受を示すタイムチャートである。なお、無線LANチップ21がホストとなる場合も同様である。
2.2 Specific examples of data writing
Next, a specific example of an operation when data is written will be described with reference to FIG. FIG. 17 is a time chart showing signal exchange when data is written from the digital camera 10 to the NAND flash memory 24. The same applies when the wireless LAN chip 21 is a host.

図示するように、まずデジタルカメラ10はCMD56を発行し、これをファイルシステムコントローラ70に送信する。この際、デジタルカメラ10は、CMD56のArgumentフィールドに“0”を設定する。CMD56のArgumentフィールドに“0”を設定した場合、クライアント(本例ではデジタルカメラ10)からサーバ(本例ではファイルシステムコントローラ70)へプロトコルを送信することを意味する。   As shown in the figure, first, the digital camera 10 issues a CMD 56 and transmits it to the file system controller 70. At this time, the digital camera 10 sets “0” in the Argument field of the CMD 56. When “0” is set in the Argument field of the CMD 56, this means that the protocol is transmitted from the client (digital camera 10 in this example) to the server (file system controller 70 in this example).

引き続きデジタルカメラ10は、SMBプロトコルに従ったデータ(書き込み命令)を発行して、ファイルシステムコントローラ70へ送信する。書き込み命令を認識したファイルシステムコントローラ70は、NAND型フラッシュメモリ24から読み出したファイルシステム(FAT)を更新する。   Subsequently, the digital camera 10 issues data (write command) according to the SMB protocol and transmits it to the file system controller 70. Recognizing the write command, the file system controller 70 updates the file system (FAT) read from the NAND flash memory 24.

更に、デジタルカメラ10はCMD56を発行し、これをファイルシステムコントローラ70に送信する。この際、デジタルカメラ10は、CMD56のArgumentフィールドに“1”を設定する。CMD56のArgumentフィールドに“1”を設定した場合は、サーバ側でプロトコルの処理が成功したか否かの結果を取得することを意味する。   Further, the digital camera 10 issues a CMD 56 and transmits it to the file system controller 70. At this time, the digital camera 10 sets “1” in the Argument field of the CMD 56. When “1” is set in the Argument field of the CMD 56, it means that the server side obtains a result indicating whether or not the protocol processing is successful.

このCMD56に応答してファイルシステムコントローラ70は、SMBプロトコルの処理結果(例えばファイルシステムを更新出来たか否か)をデジタルカメラ10に返す。処理結果が正常であれば、デジタルカメラ10は書き込みデータをファイルシステムコントローラ70へ転送し、ファイルシステムコントローラ70はこの書き込みデータをNAND型フラッシュメモリ24へ転送する。   In response to the CMD 56, the file system controller 70 returns the processing result of the SMB protocol (for example, whether the file system has been updated) to the digital camera 10. If the processing result is normal, the digital camera 10 transfers the write data to the file system controller 70, and the file system controller 70 transfers this write data to the NAND flash memory 24.

2.3 データの読み出しの具体例
データの読み出し動作も、書き込み時と基本的に同様である。図18は、デジタルカメラ10からNAND型フラッシュメモリ24にデータを書き込む場合の信号の授受を示すタイムチャートである。なお、無線LANチップ21がホストとなる場合も同様である。
2.3 Specific examples of data reading
The data read operation is basically the same as that at the time of writing. FIG. 18 is a time chart showing signal exchange when data is written from the digital camera 10 to the NAND flash memory 24. The same applies when the wireless LAN chip 21 is a host.

読み出し時には、デジタルカメラ10からSMBプロトコルとして読み出し命令が与えられる。そしてファイルシステムコントローラ70によってSMBプロトコルを正常に処理出来れば、NAND型フラッシュメモリ24からファイルシステムコントローラ70へ、そしてファイルシステムコントローラ70からデジタルカメラ10へ読み出しデータが転送される。   At the time of reading, a read command is given from the digital camera 10 as the SMB protocol. If the file system controller 70 can normally process the SMB protocol, read data is transferred from the NAND flash memory 24 to the file system controller 70 and from the file system controller 70 to the digital camera 10.

3.本実施形態に係る効果
本実施形態に係る構成によっても、第1実施形態と同様の効果が得られる。
3. Effects according to this embodiment
Even with the configuration according to the present embodiment, the same effect as the first embodiment can be obtained.

本来、SMBやFTP、WebDAVといったプロトコルは、TCP/IP上に設置されたマシン間で利用される、ネットワーク用のプロトコルである。本実施形態では、SDインターフェースを用いて接続されたデジタルカメラ10とファイルシステムコントローラ70間、及び無線LANチップ21とファイルシステムコントローラ70間で、これらのプロトコルを利用する。この際、デジタルカメラ10と無線LANチップ21がクライアントであり、ファイルシステムコントローラ70がサーバの役割を果たす。   Originally, protocols such as SMB, FTP, and WebDAV are network protocols used between machines installed on TCP / IP. In this embodiment, these protocols are used between the digital camera 10 and the file system controller 70 connected using the SD interface, and between the wireless LAN chip 21 and the file system controller 70. At this time, the digital camera 10 and the wireless LAN chip 21 are clients, and the file system controller 70 serves as a server.

SMB、FTP、及びWebDAVプロトコルでは、下位プロトコルとしてTCP/IPを利用する。しかし本実施形態では、デジタルカメラ10と無線LANチップ21間がSDインターフェースで接続されている。従って、TCP/IPの代わりにSDコマンドのCMD56を使用する。   The SMB, FTP, and WebDAV protocols use TCP / IP as a lower protocol. However, in this embodiment, the digital camera 10 and the wireless LAN chip 21 are connected by an SD interface. Therefore, the CMD 56 of the SD command is used instead of TCP / IP.

CMD56は、ベンダーごとに自由に利用することが許されているSDコマンドである。そして本実施形態では、本コマンドにSMB、FTP、及びWebDAVプロトコルをカプセル化することで、ファイルの送受信、ファイル一覧の取得、ファイルの移動、及びファイルの削除を行う。   The CMD 56 is an SD command that can be freely used by each vendor. In this embodiment, SMB, FTP, and WebDAV protocols are encapsulated in this command to perform file transmission / reception, file list acquisition, file movement, and file deletion.

そして、ファイルシステムコントローラ70は、SDコマンドのCMD56によってカプセル化されたSMBプロトコルを解析し、SMBプロトコルに従って、NAND型フラッシュメモリ24を制御する。   Then, the file system controller 70 analyzes the SMB protocol encapsulated by the CMD 56 of the SD command, and controls the NAND flash memory 24 according to the SMB protocol.

従って、複数のホストが同時にSMBプロトコルを含んだCMD56を送信したとしても、ファイルシステムコントローラ70による排他制御により、プロトコルが混ざることはなく、ファイルシステムに矛盾が発生することもない。すなわち、ファイルを保護しつつ、複数のホストからの同時アクセスを可能とすることが出来る。   Therefore, even if a plurality of hosts transmit the CMD 56 including the SMB protocol at the same time, the protocols are not mixed by the exclusive control by the file system controller 70, and no contradiction occurs in the file system. That is, simultaneous access from a plurality of hosts can be made possible while protecting the file.

[第4実施形態]
次に、第4実施形態に係る通信装置及びその制御方法について説明する。本実施形態は、上記第2、第3実施形態において、無線LANチップがファイルシステムコントローラ70の機能を兼ねるものである。以下では、第2、第3実施形態と異なる点についてのみ説明する。
[Fourth Embodiment]
Next, a communication device and a control method thereof according to the fourth embodiment will be described. In this embodiment, the wireless LAN chip also functions as the file system controller 70 in the second and third embodiments. Hereinafter, only differences from the second and third embodiments will be described.

図19は、本実施形態に係るメモリカード、並びにメモリカードの挿入されたデジタルカメラのブロック図である。   FIG. 19 is a block diagram of a memory card according to the present embodiment and a digital camera in which the memory card is inserted.

図示するように、本実施形態に係るメモリカード20は、第1実施形態で説明した図1の構成において、第2、第3実施形態で説明したファイルシステムコントローラ70を、無線LANチップ21内に設けたものである。   As shown in the figure, the memory card 20 according to this embodiment includes the file system controller 70 described in the second and third embodiments in the wireless LAN chip 21 in the configuration of FIG. 1 described in the first embodiment. It is provided.

このように、ホスト(無線LANチップ21)に、CMD56にカプセル化されたSMBプロトコル等を処理する余裕があれば、ファイルシステムコントローラ70を別途設けることなく、この機能をホストに実行させることが出来る。そしてこの場合には、チップの数を減らすことが出来る。   As described above, if the host (wireless LAN chip 21) has a margin for processing the SMB protocol encapsulated in the CMD 56, this function can be executed by the host without providing the file system controller 70 separately. . In this case, the number of chips can be reduced.

[変形例等]
以上のように、実施形態に係る通信装置20は、第1インターフェース35と、無線通信部21と、メモリ部24とを備える。メモリ部24は、第1インターフェース35からの第1アクセスのために用いられる第1領域PT1と、無線通信部21からの第2アクセスのために用いられる第2領域PT2とを備える。第1アクセスによる第2領域PT2への書き込み、及び第2アクセスによる第1領域PT1への書き込みは禁止される。
[Modifications, etc.]
As described above, the communication device 20 according to the embodiment includes the first interface 35, the wireless communication unit 21, and the memory unit 24. The memory unit 24 includes a first region PT1 used for the first access from the first interface 35 and a second region PT2 used for the second access from the wireless communication unit 21. Writing to the second area PT2 by the first access and writing to the first area PT1 by the second access are prohibited.

これにより、複数のホストからの同時アクセスを許容すると共に、同一の領域にデータが書き込まれることによりデータが破壊されることを防止出来る。その結果、通信装置の使い勝手を向上出来る。   This allows simultaneous access from a plurality of hosts and prevents data from being destroyed by writing data in the same area. As a result, the usability of the communication device can be improved.

なお、上記実施形態は一例に過ぎず、種々の変形が可能である。例えば、NAND型フラッシュメモリ24は、NOR型フラッシュメモリ等の他のフラッシュメモリであっても良いし、フラッシュメモリ以外の半導体メモリであってもよい。また、上記実施形態ではカードデバイスの例について説明したが、メモリカード20は例えばデジタルカメラ10等のホストに内蔵されたメモリであっても良い。更に、SDインターフェースに対応したメモリに限定されることもない。   In addition, the said embodiment is only an example and various deformation | transformation are possible. For example, the NAND flash memory 24 may be another flash memory such as a NOR flash memory, or may be a semiconductor memory other than the flash memory. In the above embodiment, an example of a card device has been described. However, the memory card 20 may be a memory built in a host such as the digital camera 10. Furthermore, the memory is not limited to the SD interface.

更に、ホストとしてデジタルカメラと無線LANを例に挙げたが、パソコン、Bluetooth(登録商標)、テレビ、またはPDA等でもよい。更に、第3、第4実施形態においてファイルを制御するプロトコルは、SMB、FTP、及びWebDAV以外のものであってもよい。すなわち、SDインターフェースで定義されたコマンドにカプセル化するコマンドは、SDインターフェースとは異なるその他の適切なプロトコルに従ったコマンドを選択出来る。   Furthermore, although a digital camera and a wireless LAN have been exemplified as hosts, a personal computer, Bluetooth (registered trademark), a television, a PDA, or the like may be used. Furthermore, the protocol for controlling the file in the third and fourth embodiments may be other than SMB, FTP, and WebDAV. That is, as a command encapsulated in a command defined in the SD interface, a command according to another appropriate protocol different from the SD interface can be selected.

また、第1実施形態では、1つのホストに1つのパーティションを割り当てる場合を例に説明した。しかし、パーティションに余裕がある場合には、1つのホストに複数のパーティションを割り当てても良い。また、第1実施形態では、各ホストは、割り当てられたパーティション以外については、書き込みは禁止されるが読み出しは許可される場合について説明した。しかし、書き込みだけでなく読み出しも禁止してもよい。   In the first embodiment, the case where one partition is assigned to one host has been described as an example. However, if there is room in the partition, a plurality of partitions may be assigned to one host. In the first embodiment, each host has been described with respect to a case where writing is prohibited but reading is permitted except for the assigned partition. However, reading as well as writing may be prohibited.

更に、上記実施形態は可能な限り組み合わせて実施することができ、また可能な限り単独で実施することも出来る。また上記実施形態においてフローチャートを用いて説明した動作も、可能な限りその順序を入れ替えることが出来る。   Furthermore, the above-described embodiments can be implemented in combination as much as possible, and can be implemented alone as much as possible. Further, the order of the operations described using the flowcharts in the above embodiment can be changed as much as possible.

すなわち、上記実施形態は、以下のものを含む。すなわち、
1.第1インターフェース(I/F35@図1)と、無線通信部(wLAN21@図1)と、前記第1インターフェースからの第1アクセスのために用いられる第1領域(PT1@図3, またはR1@図13)と、前記無線通信部からの第2アクセスのために用いられる第2領域(PT2@図3, またはR2@図13)とを備えるメモリ部(NAND24@図1)とを具備し、前記第1アクセスによる前記第2領域への書き込み、及び前記第2アクセスによる前記第1領域への書き込みは禁止される通信装置。
2.上記1において、前記第1、第2領域はそれぞれ、前記第1、第2領域内の情報をファイルシステムによって管理するテーブル(FAT1,FAT2@図3)を有する。
3.上記1または2において、前記メモリ部は、前記第1、第2領域が含まれることを示す情報(MBR@図3)を保持する第3領域を更に備える。
4.上記1において、前記第1、第2アクセスを調停して、前記第1アクセスによる書き込みを前記第1領域(R1@図13)に対して実行し、前記第2アクセスによる書き込みを前記第2領域(R2@図13)に対して実行するコントローラ(ファイルシステムコントローラ70@図8)を更に備える。
5.上記4において、前記コントローラは、前記第1、第2アクセスが同じアドレスに対して同時に為された際、少なくともいずれか一方のアドレスを変換する。
6.上記4において、前記第1、第2アクセスは、ファイル制御を行うプロトコルをカプセル化したSDコマンドによって行われる。
7.上記6において、前記SDコマンドは、SDインターフェース規格におけるCMD56であり、前記プロトコルは、SMB(Server Message Block)、FTP(File Transfer Protocol)、及びWebDAV(Web-based Distributed Authoring and Versioning)の少なくともいずれかである。
8.上記6または7において、前記第1インターフェースはSDインターフェースであり、前記ファイルシステムコントローラは、受信した前記第1、第2アクセスから前記プロトコルを取り出し、該プロトコルに従って前記メモリ部への命令を発行する。
9.上記4〜8において、前記第1、第2領域内の情報は、ファイルシステムによる同一のテーブル(FAT1,FAT2@図10)によって管理される。
10.上記2または9において、前記ファイルシステムはFAT(File Allocation Table)である。
11.メモリ部の第1領域から、前記メモリ部が第1、第2パーティション(PT1,PT2@図3)を有することを示す第1情報(MBR@図3)を読み出すステップと、前記第1情報(MBR@図3)に基づいて第1ホスト(DSC10@図1)が、前記第1パーティションをファイルシステムによって管理する第1テーブルを、該第1パーティションから読み出すステップと、前記第1情報に基づいて、無線通信機能を有する第2ホスト(wLAN@図3)が、前記第2パーティションをファイルシステムによって管理する第2テーブルを、該第2パーティションから読み出すステップとを具備する通信装置の制御方法。
12.上記11において、前記第1ホストは、前記第1パーティションに対する書き込みが許可されると共に、前記第2パーティションに対する書き込みが禁止され、前記第2ホストは、前記第2パーティションに対する書き込みが許可されると共に、前記第1パーティションに対する書き込みが禁止される。
13.第1ホスト(DSC10@図1)から、メモリ部における第1アドレス領域(R1@図12)への書き込みアクセスを受信するステップと、無線通信機能を有する第2ホスト(wLAN@図3)から、前記第1アドレス領域(R1@図12)への書き込みアクセスを受信するステップと、前記第1、第2ホストの少なくともいずれか一方からの前記アクセスに対して、書き込み先を前記第1アドレス領域から、該第1アドレス領域と異なる第2アドレス領域(R2@図13)に変更するステップとを具備する通信装置の制御方法。
14.上記13において、前記第1、第2アドレス領域内の情報は、ファイルシステムによる同一のテーブル(FAT1,FAT2@図10)によって管理される。
15.上記13または14において、前記第1、第2ホストからのアクセスは、ファイル制御を行うプロトコルをカプセル化したSDコマンドによって行われる。
16.上記15において、前記SDコマンドは、SDインターフェース規格におけるCMD56であり、前記プロトコルは、SMB(Server Message Block)、FTP(File Transfer Protocol)、及びWebDAV(Web-based Distributed Authoring and Versioning)の少なくともいずれかである。
17.上記15または16において、前記第1インターフェースはSDインターフェースであり、前記ファイルシステムコントローラは、受信した前記第1、第2アクセスから前記プロトコルを取り出し、該プロトコルに従って前記メモリ部への命令を発行する。
18.上記11または14において、前記ファイルシステムはFATである。
本発明のいくつかの実施形態を説明したが、これらの実施形態は、例として提示したものであり、発明の範囲を限定することは意図していない。これら実施形態は、その他の様々な形態で実施されることが可能であり、発明の要旨を逸脱しない範囲で、種々の省略、置き換え、変更を行うことができる。これら実施形態やその変形は、発明の範囲や要旨に含まれると同様に、特許請求の範囲に記載された発明とその均等の範囲に含まれるものである。
That is, the said embodiment contains the following. That is,
1. The first interface (I / F35 @ FIG. 1), the wireless communication unit (wLAN21 @ FIG. 1), and the first area used for the first access from the first interface (PT1 @ FIG. 3, or R1 @ 13) and a memory unit (NAND24 @ FIG. 1) having a second region (PT2 @ FIG. 3, or R2 @ FIG. 13) used for the second access from the wireless communication unit, A communication apparatus in which writing to the second area by the first access and writing to the first area by the second access are prohibited.
2. In 1 above, each of the first and second areas has a table (FAT1, FAT2 @ FIG. 3) for managing information in the first and second areas by a file system.
3. In the above 1 or 2, the memory unit further includes a third area for holding information (MBR @ FIG. 3) indicating that the first and second areas are included.
4). In 1 above, the first and second accesses are arbitrated, the writing by the first access is executed to the first area (R1 @ FIG. 13), and the writing by the second access is performed by the second area. A controller (file system controller 70 @ FIG. 8) that executes (R2 @ FIG. 13) is further provided.
5. In 4 above, the controller converts at least one of the addresses when the first and second accesses are made simultaneously to the same address.
6). In the above item 4, the first and second accesses are performed by an SD command encapsulating a protocol for performing file control.
7). In the above 6, the SD command is CMD56 in the SD interface standard, and the protocol is at least one of SMB (Server Message Block), FTP (File Transfer Protocol), and WebDAV (Web-based Distributed Authoring and Versioning). It is.
8). In the above 6 or 7, the first interface is an SD interface, and the file system controller extracts the protocol from the received first and second accesses, and issues a command to the memory unit according to the protocol.
9. In the above 4 to 8, information in the first and second areas is managed by the same table (FAT1, FAT2 @ FIG. 10) by the file system.
10. In the above 2 or 9, the file system is a FAT (File Allocation Table).
11. Reading first information (MBR @ FIG. 3) indicating that the memory section has first and second partitions (PT1, PT2 @ FIG. 3) from the first area of the memory section; Based on the first information, the first host (DSC10 @ FIG. 1) reads out a first table for managing the first partition from the first partition based on the MBR @ FIG. 3) and the first information. And a second host (wLAN @ FIG. 3) having a wireless communication function reading a second table for managing the second partition by a file system from the second partition.
12 In 11 above, the first host is allowed to write to the first partition, and the second host is prohibited from writing to the second host, and the second host is allowed to write to the second partition, Writing to the first partition is prohibited.
13. From the first host (DSC10 @ FIG. 1), receiving a write access to the first address area (R1 @ FIG. 12) in the memory unit, and from the second host (wLAN @ FIG. 3) having a wireless communication function, For receiving the write access to the first address area (R1 @ FIG. 12) and the access from at least one of the first and second hosts, the write destination is from the first address area. And a step of changing to a second address area (R2 @ FIG. 13) different from the first address area.
14 In the above 13, the information in the first and second address areas is managed by the same table (FAT1, FAT2 @ FIG. 10) by the file system.
15. In the above item 13 or 14, the access from the first and second hosts is performed by an SD command encapsulating a protocol for performing file control.
16. 15. In the above 15, the SD command is CMD56 in the SD interface standard, and the protocol is at least one of SMB (Server Message Block), FTP (File Transfer Protocol), and WebDAV (Web-based Distributed Authoring and Versioning). It is.
17. In 15 or 16, the first interface is an SD interface, and the file system controller extracts the protocol from the received first and second accesses and issues a command to the memory unit according to the protocol.
18. In the above 11 or 14, the file system is FAT.
Although several embodiments of the present invention have been described, these embodiments are presented by way of example and are not intended to limit the scope of the invention. These embodiments can be implemented in various other forms, and various omissions, replacements, and changes can be made without departing from the spirit of the invention. These embodiments and their modifications are included in the scope and gist of the invention, and are also included in the invention described in the claims and the equivalents thereof.

10、60…デジタルカメラ、11、36、71…SDホストインターフェース、12、33…CPU、20…メモリカード、21…無線LANチップ、22、35…SDデバイスインターフェース、23…NANDコントローラ、24…NAND型フラッシュメモリ、30…ベースバンドチップ、31…物理部、32…MAC部、34…メモリコントローラ、37…SDRAM、38…NOR型フラッシュメモリ、40…RFチップ、41…RF部、50…アンテナ、61…アクセスポイント、70…ファイルシステムコントローラ   DESCRIPTION OF SYMBOLS 10, 60 ... Digital camera 11, 36, 71 ... SD host interface, 12, 33 ... CPU, 20 ... Memory card, 21 ... Wireless LAN chip, 22, 35 ... SD device interface, 23 ... NAND controller, 24 ... NAND Type flash memory, 30 ... baseband chip, 31 ... physical part, 32 ... MAC part, 34 ... memory controller, 37 ... SDRAM, 38 ... NOR type flash memory, 40 ... RF chip, 41 ... RF part, 50 ... antenna, 61 ... Access point, 70 ... File system controller

Claims (6)

第1インターフェースと、
無線通信部と、
前記第1インターフェースからの第1アクセスのために用いられる第1領域と、前記無線通信部からの第2アクセスのために用いられる第2領域とを備えるメモリ部と
を具備し、前記第1アクセスによる前記第2領域への書き込み、及び前記第2アクセスによる前記第1領域への書き込みは禁止される
ことを特徴とする通信装置。
A first interface;
A wireless communication unit;
A memory unit including a first area used for first access from the first interface and a second area used for second access from the wireless communication unit; The communication apparatus is characterized in that writing to the second area by and writing to the first area by the second access are prohibited.
前記第1、第2領域はそれぞれ、前記第1、第2領域内の情報をファイルシステムによって管理するテーブルを有する
ことを特徴とする請求項1記載の通信装置。
The communication apparatus according to claim 1, wherein each of the first and second areas has a table for managing information in the first and second areas by a file system.
前記メモリ部は、前記第1、第2領域が含まれることを示す情報を保持する第3領域を更に備える
ことを特徴とする請求項1または2記載の通信装置。
The communication apparatus according to claim 1, wherein the memory unit further includes a third area that holds information indicating that the first and second areas are included.
メモリ部の第1領域から、前記メモリ部が第1、第2パーティションを有することを示す第1情報を読み出すステップと、
前記第1情報に基づいて第1ホストが、前記第1パーティションをファイルシステムによって管理する第1テーブルを、該第1パーティションから読み出すステップと、
前記第1情報に基づいて、無線通信機能を有する第2ホストが、前記第2パーティションをファイルシステムによって管理する第2テーブルを、該第2パーティションから読み出すステップと
を具備することを特徴とする通信装置の制御方法。
Reading first information indicating that the memory unit has first and second partitions from a first area of the memory unit;
A first host reading from the first partition, based on the first information, a first table for managing the first partition by a file system;
A second host having a wireless communication function based on the first information reads a second table for managing the second partition by a file system from the second partition. Control method of the device.
前記第1ホストは、前記第1パーティションに対する書き込みが許可されると共に、前記第2パーティションに対する書き込みが禁止され、
前記第2ホストは、前記第2パーティションに対する書き込みが許可されると共に、前記第1パーティションに対する書き込みが禁止される
ことを特徴とする請求項4記載の通信装置の制御方法。
The first host is allowed to write to the first partition and prohibited to write to the second partition,
5. The communication device control method according to claim 4, wherein the second host is allowed to write to the second partition and is prohibited from writing to the first partition.
第1ホストから、メモリ部における第1アドレス領域への書き込みアクセスを受信するステップと、
無線通信機能を有する第2ホストから、前記第1アドレス領域への書き込みアクセスを受信するステップと、
前記第1、第2ホストの少なくともいずれか一方からの前記アクセスに対して、書き込み先を前記第1アドレス領域から、該第1アドレス領域と異なる第2アドレス領域に変更するステップと
を具備することを特徴とする通信装置の制御方法。
Receiving a write access to the first address area in the memory unit from the first host;
Receiving a write access to the first address area from a second host having a wireless communication function;
Changing the write destination from the first address area to a second address area different from the first address area for the access from at least one of the first and second hosts. A method for controlling a communication device.
JP2011065032A 2011-03-23 2011-03-23 Communication device and control method therefor Withdrawn JP2012203475A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP2011065032A JP2012203475A (en) 2011-03-23 2011-03-23 Communication device and control method therefor
US13/233,249 US8688870B2 (en) 2011-03-23 2011-09-15 Combined wireless and wired access to memory unit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2011065032A JP2012203475A (en) 2011-03-23 2011-03-23 Communication device and control method therefor

Publications (1)

Publication Number Publication Date
JP2012203475A true JP2012203475A (en) 2012-10-22

Family

ID=46878313

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2011065032A Withdrawn JP2012203475A (en) 2011-03-23 2011-03-23 Communication device and control method therefor

Country Status (2)

Country Link
US (1) US8688870B2 (en)
JP (1) JP2012203475A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015207102A (en) * 2014-04-18 2015-11-19 コニカミノルタ株式会社 Information processing device, program, and file taking-in method
US10175901B2 (en) 2017-03-24 2019-01-08 Toshiba Memory Corporation Storage apparatus including nonvolatile memory

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10140507B2 (en) * 2015-12-29 2018-11-27 Samsung Electronics Co., Ltd. Apparatus and method for recognizing hand gestures in a virtual reality headset
EP3933566A4 (en) * 2019-02-28 2022-10-12 LG Electronics Inc. Digital device and control method therefor

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7457880B1 (en) 2003-09-26 2008-11-25 Ximeta Technology, Inc. System using a single host to receive and redirect all file access commands for shared data storage device from other hosts on a network
EP1630726B1 (en) 2004-08-18 2009-09-23 Sony Corporation Memory card, memory-card control method, memory-card access control method and computer programs
JP4830397B2 (en) 2004-08-18 2011-12-07 ソニー株式会社 Memory card and control method thereof
US8140813B2 (en) * 2005-09-15 2012-03-20 Eye-Fi, Inc. Endless memory

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015207102A (en) * 2014-04-18 2015-11-19 コニカミノルタ株式会社 Information processing device, program, and file taking-in method
US10175901B2 (en) 2017-03-24 2019-01-08 Toshiba Memory Corporation Storage apparatus including nonvolatile memory
US10552065B2 (en) 2017-03-24 2020-02-04 Toshiba Memory Corporation Storage apparatus including nonvolatile memory
US11132132B2 (en) 2017-03-24 2021-09-28 Kioxia Corporation Storage apparatus including nonvolatile memory

Also Published As

Publication number Publication date
US8688870B2 (en) 2014-04-01
US20120246416A1 (en) 2012-09-27

Similar Documents

Publication Publication Date Title
US11778066B2 (en) Memory system allowing host to easily transmit and receive data
US8650379B2 (en) Data processing method for nonvolatile memory system
JP4515793B2 (en) Memory card device and memory card control method
WO2009096180A1 (en) Memory controller, nonvolatile storage device, and nonvolatile storage system
TWI453614B (en) Memory system capable adding time information to data obtained via network
JP2008527511A (en) Data storage device
US10241934B2 (en) Shared memory controller, shared memory module, and memory sharing system
JP5398761B2 (en) Memory system
JP2012203475A (en) Communication device and control method therefor
US11119657B2 (en) Dynamic access in flash system
US8595426B2 (en) Handling commands within a write-once read-many storage device configuration
US8631166B2 (en) Storage devices with bi-directional communication techniques and method of forming bi-directional communication layer between them
US20130036257A1 (en) Memory system which can avoid unavailability due to operation error by user
US20150242338A1 (en) Memory device and method enabling performance of special operations by application of memory device
US20110106861A1 (en) Interface Techniques Providing Contiguous Storage For Files
JP4881452B2 (en) Storage processing apparatus and program
US8544424B2 (en) System, controller and method thereof for transmitting and distributing data stream
US20230092125A1 (en) Memory system
JP2007293564A (en) Memory device and information storage system
JP4028679B2 (en) Volatile external storage device
WO2018075676A1 (en) Efficient flash management for multiple controllers
JP2012068853A (en) Information processing apparatus and information processing method

Legal Events

Date Code Title Description
RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20131205

RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20131212

RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20131219

RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20131226

RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20140109

A300 Application deemed to be withdrawn because no request for examination was validly filed

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20140603