JP2014044683A - Communication device and control method thereof - Google Patents

Communication device and control method thereof Download PDF

Info

Publication number
JP2014044683A
JP2014044683A JP2012188068A JP2012188068A JP2014044683A JP 2014044683 A JP2014044683 A JP 2014044683A JP 2012188068 A JP2012188068 A JP 2012188068A JP 2012188068 A JP2012188068 A JP 2012188068A JP 2014044683 A JP2014044683 A JP 2014044683A
Authority
JP
Japan
Prior art keywords
data
recording medium
management information
communication
recording
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.)
Granted
Application number
JP2012188068A
Other languages
Japanese (ja)
Other versions
JP2014044683A5 (en
JP5984585B2 (en
Inventor
Tachio Ono
太刀雄 小野
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.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP2012188068A priority Critical patent/JP5984585B2/en
Publication of JP2014044683A publication Critical patent/JP2014044683A/en
Publication of JP2014044683A5 publication Critical patent/JP2014044683A5/ja
Application granted granted Critical
Publication of JP5984585B2 publication Critical patent/JP5984585B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

PROBLEM TO BE SOLVED: To prevent a file system of a recording medium of a writing destination from being damaged and realize high-speed data transfer by switching the processing content according to an address of a recording destination in data registration through a network.SOLUTION: It is determined whether a received command is a write command for management information of a file system to a storage area in a recording medium (S501). In the situation where it is determined the received command is the write command for the management information of the file system to the storage area in the recording medium, when received write data for management information to a storage area is not normal, writing of data to a recording medium is prohibited (S506).

Description

本発明は通信装置に関し、特に、外部から受信した信号を記録媒体に記録する装置に関する。   The present invention relates to a communication apparatus, and more particularly to an apparatus for recording a signal received from outside on a recording medium.

従来、携帯電話等の情報通信機器においては、無線通信によりデータの送受信を行っている(例えば、特許文献1参照)。例えば、送信側の機器から送信されたデータは受信側の機器で受信され、その受信されたデータは、メモリカード等の記録媒体に記録される。   Conventionally, in an information communication device such as a mobile phone, data is transmitted and received by wireless communication (for example, see Patent Document 1). For example, data transmitted from a transmitting device is received by a receiving device, and the received data is recorded on a recording medium such as a memory card.

また、メモリカードにおいては、近距離無線通信(NFC)によりデータのやりとりが行われる。   In the memory card, data is exchanged by near field communication (NFC).

特開2003−061041号公報JP 2003-061041 A

無線通信においては、他の無線の干渉や障害物により、あるいは、距離が離れることにより、通信が切断されることがある。そのため、通信に用いられるプロトコルは、アプリケーション通信であることが一般的であった。例えば、IPネットワークプロトコルであればFTP(File Transfer Protocol)のように、ファイル単位でデータの送受信が行われる。これにより、たとえ通信が切断されたとしても、システムに重大な影響を及ぼすことはなかった。   In wireless communication, communication may be cut off due to interference or obstacles of other wireless devices or when the distance is long. Therefore, the protocol used for communication is generally application communication. For example, in the case of an IP network protocol, data is transmitted and received in units of files, such as FTP (File Transfer Protocol). This did not have a significant impact on the system even if the communication was interrupted.

しかし、このようなファイル単位での通信方式においては、受信したデータの記録位置のサーチや管理処理が発生するためにオーバーヘッドが大きくなり、伝送効率が悪い。   However, in such a communication method in units of files, a search for a recording position of received data and a management process occur, so that overhead increases and transmission efficiency is poor.

一方、一般的な記録媒体とシステムを接続するインターフェイスとしてUSBなどがある。USBでは、記録媒体との通信においてはマスストレージプロトコルが一般的に採用されている。このプロトコルは、FTPとは異なり、記録媒体に依存したプロトコルとなっている。即ち、送信側は記録媒体のどこに記録するかまで指定してデータを送信するために、マスストレージのプログラムの処理は、FTPなどのファイル単位での通信方式に比べ負荷が軽いためオーバーヘッドが少なく高速な転送を実現できる。ところが、この通信方式の場合、通信が切断された場合には、記録媒体を破壊してしまう可能性がある。例えば、メモリカード等に記録されたデータは、一般に、FATファイルシステム等のファイルシステムに従いファイルとして管理される。そして、ファイルシステムにおける管理情報の送信途中に通信が切断された場合、記録媒体に記録されている情報の読み出しが不能になる可能性がある。   On the other hand, there is a USB or the like as an interface for connecting a general recording medium and a system. In USB, a mass storage protocol is generally employed for communication with a recording medium. Unlike FTP, this protocol depends on the recording medium. In other words, because the sending side designates where to record on the recording medium and sends the data, the mass storage program processing is lighter in load than the communication method in units of files such as FTP, so there is less overhead and high speed. Transfer can be realized. However, in the case of this communication method, there is a possibility that the recording medium is destroyed when communication is cut off. For example, data recorded on a memory card or the like is generally managed as a file according to a file system such as a FAT file system. If communication is cut off during the transmission of management information in the file system, there is a possibility that information recorded on the recording medium cannot be read.

本発明はこのような問題に鑑みてなされたものであり、高速かつ安全にデータを受信、記録することができるようにすることを目的とする。   The present invention has been made in view of such problems, and an object thereof is to enable data to be received and recorded at high speed and safely.

本発明の一側面によれば、外部の装置との間で通信を行う通信手段と、データを記憶する記録媒体と、所定のファイルシステムに従って前記記録媒体に対するデータの書き込み及び読み出しを行う記録再生手段と、前記通信手段により受信されたコマンドが前記記録媒体における前記ファイルシステムの管理情報の記憶領域への書き込みコマンドであることを検出する検出手段と、前記検出手段により検出された前記管理情報の記憶領域への書き込みコマンドによるデータが正常でない場合に、前記記録再生手段による前記記録媒体へのデータの書き込みを禁止する制御手段とを有することを特徴とする通信装置が提供される。   According to one aspect of the present invention, a communication means for communicating with an external device, a recording medium for storing data, and a recording / reproducing means for writing and reading data to and from the recording medium according to a predetermined file system Detection means for detecting that the command received by the communication means is a write command to the storage area of the management information of the file system in the recording medium; and storage of the management information detected by the detection means There is provided a communication device comprising control means for prohibiting writing of data to the recording medium by the recording / reproducing means when data by an area write command is not normal.

本発明によれば、高速かつ安全にデータを受信、記録することができる。   According to the present invention, data can be received and recorded at high speed and safely.

実施形態における通信システムの構成を示す図。The figure which shows the structure of the communication system in embodiment. 実施形態における送信装置及び受信装置の構成を示す図。The figure which shows the structure of the transmitter in embodiment, and a receiver. 管理情報が記憶された記録媒体における記憶領域の模式図。The schematic diagram of the storage area in the recording medium with which management information was memorize | stored. 実施形態における送信装置によるデータ送信処理を示すフローチャート。The flowchart which shows the data transmission process by the transmitter in embodiment. 実施形態における受信装置によるデータ受信処理を示すフローチャート。The flowchart which shows the data reception process by the receiver in embodiment. 実施形態におけるパケットデータの構造例を示す図。The figure which shows the structural example of the packet data in embodiment. 実施形態における管理情報を記憶するためのレジスタを示す図。The figure which shows the register for memorize | storing the management information in embodiment.

以下、図面を参照して本発明の好適な実施形態について詳細に説明する。なお、本発明は以下の実施形態に限定されるものではなく、本発明の実施に有利な具体例を示すにすぎない。また、以下の実施形態の中で説明されている特徴の組み合わせの全てが本発明の課題解決のために必須のものであるとは限らない。   DESCRIPTION OF EMBODIMENTS Hereinafter, preferred embodiments of the present invention will be described in detail with reference to the drawings. In addition, this invention is not limited to the following embodiment, It shows only the specific example advantageous for implementation of this invention. Moreover, not all combinations of features described in the following embodiments are indispensable for solving the problems of the present invention.

図1は、本実施形態に係る通信システムの構成例を示すブロック図である。図1において、通信装置である送信装置101と受信装置102はそれぞれ、図2に示す構成を備える情報処理装置である。送信装置101と受信装置102は無線通信により通信を行い、データの送受信を行う。また、本実施形態では、送信装置101は例えば、パーソナルコンピュータ等の大容量の記録媒体を備えた装置であってもよく、受信装置102は携帯電話等の携帯型の機器であってもよい。   FIG. 1 is a block diagram illustrating a configuration example of a communication system according to the present embodiment. In FIG. 1, a transmission apparatus 101 and a reception apparatus 102, which are communication apparatuses, are information processing apparatuses each having the configuration shown in FIG. The transmission apparatus 101 and the reception apparatus 102 communicate by wireless communication to transmit / receive data. In the present embodiment, the transmission device 101 may be a device including a large-capacity recording medium such as a personal computer, and the reception device 102 may be a portable device such as a mobile phone.

図2は、送信装置101及び受信装置102の構成を示す図である。図2において、送信装置101と受信装置102は同様の構成を備えている。以下の説明では、送信装置101の構成について説明する。受信装置102は送信装置101と同様の構成を備えているため、受信装置102各部の詳細な説明は省略する。送信装置101と受信装置102との間で対応する構成要素には共通の参照番号が付与されている。ただし、それぞれの参照番号の末尾には、送信装置101の構成要素であることを示す「a」、又は、受信装置102の構成要素であることを示す「b」の文字が更に付されている。   FIG. 2 is a diagram illustrating the configuration of the transmission device 101 and the reception device 102. In FIG. 2, a transmission apparatus 101 and a reception apparatus 102 have the same configuration. In the following description, the configuration of the transmission apparatus 101 will be described. Since the receiving apparatus 102 has the same configuration as that of the transmitting apparatus 101, detailed description of each part of the receiving apparatus 102 is omitted. Common reference numerals are assigned to components corresponding to the transmission apparatus 101 and the reception apparatus 102. However, at the end of each reference number, a letter “a” indicating that it is a component of the transmitting apparatus 101 or a character “b” indicating that it is a component of the receiving apparatus 102 is further added. .

制御部201aは、操作部202aからの入力に応じて送信装置101の動作全体を制御する。制御部201aはマイクロコンピュータやメモリ等を含み、不図示のメモリに記憶されたプログラム(ソフトウェア)に従って送信装置101を制御する。操作部202aは、ユーザにより操作可能な各種のスイッチを含む。そして、操作部202aは、ユーザによる各種の指示などを受理して制御部201aへ通知する。また、操作部202aは、電源スイッチやデータの送信の開始や、送信するデータを選択するためのユーザインターフェイス等を含む。   The control unit 201a controls the entire operation of the transmission apparatus 101 in accordance with an input from the operation unit 202a. The control unit 201a includes a microcomputer, a memory, and the like, and controls the transmission device 101 according to a program (software) stored in a memory (not shown). The operation unit 202a includes various switches that can be operated by the user. The operation unit 202a accepts various instructions from the user and notifies the control unit 201a. The operation unit 202a includes a power switch, a user interface for starting data transmission, and selecting data to be transmitted.

表示制御部203aは、制御部201aからの指示により、各種の情報を表示部204aに表示する。表示部204aは液晶パネル等の表示デバイスを含む。メモリ205aは、受信したデータ等の各種のデータを記憶する。バス206aは、送信装置101の各部の間でデータを送受信する。   The display control unit 203a displays various types of information on the display unit 204a according to instructions from the control unit 201a. The display unit 204a includes a display device such as a liquid crystal panel. The memory 205a stores various data such as received data. The bus 206a transmits and receives data between the units of the transmission apparatus 101.

記録再生部207aは、記録媒体208aに対し、各種の情報を書き込み、また、読み出す。本実施形態では、記録媒体208aは、例えばハードディスク(HDD)、フラッシュメモリカード等、ランダムアクセスの記録媒体である。また、記録再生部207aは、記録媒体208aに記録したデータを、FAT(File Allocation Table)等のファイルシステムに従い、ファイルとして管理する。また、不図示の装着・排出機構により、受信装置102に対して記録媒体208aを容易に装着、排出することができるように構成するが、送信装置101に記録媒体208aが内蔵される構成でもよい。   The recording / playback unit 207a writes and reads various information to and from the recording medium 208a. In the present embodiment, the recording medium 208a is a random access recording medium such as a hard disk (HDD) or a flash memory card. The recording / playback unit 207a manages the data recorded on the recording medium 208a as a file according to a file system such as FAT (File Allocation Table). In addition, the recording medium 208a can be easily mounted and discharged from the receiving apparatus 102 by a mounting / discharging mechanism (not shown), but the recording apparatus 208a may be built in the transmitting apparatus 101. .

通信部209aは、アンテナ210aを用いて、無線通信により外部の装置との間でデータやその他コマンド等を送受信する。データ判定部211aは、後述するように、受信したコマンドの内容と指定されたアドレスを判定する。バス212aは、記録再生部207aとデータ判定部211aとの間でデータを送受信するための専用のバスである。バッファメモリ213aは、データ判定部211aが受信したコマンドやアドレス、データを一時的に記憶する。   The communication unit 209a transmits and receives data, other commands, and the like to and from an external device by wireless communication using the antenna 210a. As will be described later, the data determination unit 211a determines the content of the received command and the designated address. The bus 212a is a dedicated bus for transmitting and receiving data between the recording / reproducing unit 207a and the data determining unit 211a. The buffer memory 213a temporarily stores commands, addresses, and data received by the data determination unit 211a.

次に、送信装置101から受信装置102に対してデータを送信し、受信装置102における記録媒体208bに受信したデータを記録する処理について説明する。   Next, processing for transmitting data from the transmission apparatus 101 to the reception apparatus 102 and recording the received data on the recording medium 208b in the reception apparatus 102 will be described.

図4は、送信装置101によるデータ送信処理を示すフローチャートである。なお、図4のフローチャートに対応するプログラムは例えばメモリ205aに格納され、制御部201aがこれを読み出して実行し各部を制御することによりデータ送信処理が実現される。   FIG. 4 is a flowchart showing data transmission processing by the transmission apparatus 101. The program corresponding to the flowchart of FIG. 4 is stored in, for example, the memory 205a, and the data transmission process is realized by the control unit 201a reading and executing the program and controlling each unit.

ユーザは操作部202aを操作して、送信対象のデータを選択するための選択画面の表示を指示する。制御部201aは、選択画面の表示が指示されると、記録媒体208aより、ファイルシステムに関連した管理情報を読み出すように記録再生部207aに指示する。記録再生部207aは、記録媒体208aよりファイルシステムに関連した管理情報を読み出し、メモリ205aに記憶する。管理情報とは、記録媒体208aに記録されたデータの記録位置や記録媒体208aの空き領域などを管理するための情報である。例えば、FATファイルシステムにおいては、管理情報はFATやルートディレクトリエントリ、或いは、各ディレクトリエントリの情報である。制御部201aは、メモリ205aに記憶された管理情報に基づいて、記録媒体208aに記録されたファイルを検出し、送信対象のデータ(ファイル)を選択するための選択画面を生成するように表示制御部203aに指示する。表示制御部203aは、選択画面を生成して表示部204aに表示する。   The user operates the operation unit 202a to instruct display of a selection screen for selecting data to be transmitted. When the display of the selection screen is instructed, the control unit 201a instructs the recording / playback unit 207a to read management information related to the file system from the recording medium 208a. The recording / playback unit 207a reads management information related to the file system from the recording medium 208a and stores it in the memory 205a. The management information is information for managing the recording position of data recorded on the recording medium 208a, the free area of the recording medium 208a, and the like. For example, in the FAT file system, the management information is FAT, root directory entry, or information on each directory entry. The control unit 201a detects a file recorded on the recording medium 208a based on the management information stored in the memory 205a, and performs display control so as to generate a selection screen for selecting transmission target data (file). The unit 203a is instructed. The display control unit 203a generates a selection screen and displays it on the display unit 204a.

ユーザは、操作部202aを操作して、表示部204aに表示されたデータから、送信対象のデータを選択する(S401)。送信データが選択されると、制御部201aは、通信部209aより、受信装置102に対し、受信装置102における記録媒体208bの管理情報の送信を要求する(S402)。通信部209aは、制御部201aからの指示に従い、管理情報の送信コマンドをアンテナ210aより受信装置102に送る。   The user operates the operation unit 202a to select data to be transmitted from the data displayed on the display unit 204a (S401). When the transmission data is selected, the control unit 201a requests the receiving device 102 to transmit the management information of the recording medium 208b in the receiving device 102 from the communication unit 209a (S402). The communication unit 209a sends a management information transmission command from the antenna 210a to the receiving apparatus 102 in accordance with an instruction from the control unit 201a.

受信装置102では、通信部209bがアンテナ210bにより送信装置101からの管理情報の送信コマンドを受信し、データ判定部211bに送る。データ判定部211bは、後述するように、受信されたコマンドが書き込みコマンドであることを検出する。ここでは、受信したコマンドが管理情報の送信コマンドであるため、データ判定部211bは、受信したコマンドを制御部201bに送る。制御部201bは、管理情報の送信コマンドに応じて、記録再生部207bに対して、受信装置102における記録媒体208bの管理情報を読み出すように指示する。記録再生部207bは、記録媒体208bより管理情報を読み出し、メモリ205bに記憶する。制御部201bは、通信部209bにより、メモリ205bに記憶された管理情報を送信するように指示する。通信部209bは、メモリ205bより管理情報を読み出し、アンテナ210bにより送信装置101に送る。   In the receiving device 102, the communication unit 209b receives the management information transmission command from the transmitting device 101 via the antenna 210b, and sends it to the data determination unit 211b. As will be described later, the data determination unit 211b detects that the received command is a write command. Here, since the received command is a management information transmission command, the data determination unit 211b sends the received command to the control unit 201b. In response to the management information transmission command, the control unit 201b instructs the recording / playback unit 207b to read the management information of the recording medium 208b in the receiving apparatus 102. The recording / playback unit 207b reads management information from the recording medium 208b and stores it in the memory 205b. The control unit 201b instructs the communication unit 209b to transmit the management information stored in the memory 205b. The communication unit 209b reads management information from the memory 205b and sends the management information to the transmission apparatus 101 via the antenna 210b.

送信装置101において、通信部209aは受信装置102より送信された管理情報を受信し、データ判定部211aに送る(S403)。データ判定部211aは、受け取った管理情報を制御部201aに送る。制御部201aは、受信した管理情報に基づいて、受信装置102の記録媒体208bにおけるフォルダを表示部204aに表示するように表示制御部203aに指示する。表示制御部203aは、記録媒体208bのフォルダを表示部204aに表示する(S404)。ユーザは操作部202aを操作して、表示部204aに表示されたフォルダから、送信したデータを記録するフォルダを選択する(S405)。送信先のフォルダが選択されると、制御部201aは、受信装置102より受信した管理情報に基づいて、選択されたフォルダに対して、選択されたデータの書き込みを指示する書き込みコマンドを生成する。   In the transmission device 101, the communication unit 209a receives the management information transmitted from the reception device 102 and sends it to the data determination unit 211a (S403). The data determination unit 211a sends the received management information to the control unit 201a. Based on the received management information, the control unit 201a instructs the display control unit 203a to display the folder in the recording medium 208b of the receiving apparatus 102 on the display unit 204a. The display control unit 203a displays the folder of the recording medium 208b on the display unit 204a (S404). The user operates the operation unit 202a to select a folder for recording the transmitted data from the folders displayed on the display unit 204a (S405). When the transmission destination folder is selected, the control unit 201a generates a write command for instructing the selected folder to write the selected data based on the management information received from the receiving apparatus 102.

制御部201aは、受信装置102より受信した管理情報に基づいて、記録媒体208bにおける空き領域を検出する。そして、この空き領域から、送信データを記録するアドレスを決定し、書き込みアドレスを含む書き込みコマンドを生成する。また、制御部201aは、受信装置102より受信した管理情報に基づいて、記録媒体208bへの送信データの書き込みに応じて変更する必要がある管理情報を生成する。例えば、送信データの記録先として指定されたフォルダに関するディレクトリエントリや、FATの情報を変更する。そして、変更したこれらの管理情報と書き込みアドレスを含む書き込みコマンドを生成する。   The control unit 201a detects a free area in the recording medium 208b based on the management information received from the receiving device 102. Then, from this empty area, an address for recording transmission data is determined, and a write command including a write address is generated. Further, the control unit 201a generates management information that needs to be changed in accordance with the writing of transmission data to the recording medium 208b, based on the management information received from the receiving device 102. For example, the directory entry related to the folder designated as the recording destination of the transmission data and the FAT information are changed. Then, a write command including the changed management information and write address is generated.

制御部201aは、通信部209aに対し、書き込みコマンドと送信データとを送信するように指示する(S406)。通信部209aは、書き込みコマンドと送信データとを受信装置102に送る。本実施形態では、図6に示すパケットデータ601の形式としてコマンドを送信する。パケットデータ601は、読み出し、書き込みなどの処理内容を示すコマンドフィールド602、論理アドレスを示すアドレスフィールド603を含む。また、パケットデータ601は、書き込み、読み出しのデータの長さを示すデータ長フィールド604、送信対象のデータが格納されるデータフィールド605から構成される。   The control unit 201a instructs the communication unit 209a to transmit a write command and transmission data (S406). The communication unit 209a sends a write command and transmission data to the receiving device 102. In this embodiment, a command is transmitted as the format of the packet data 601 shown in FIG. The packet data 601 includes a command field 602 indicating processing contents such as reading and writing, and an address field 603 indicating a logical address. The packet data 601 includes a data length field 604 indicating the length of data to be written and read, and a data field 605 in which data to be transmitted is stored.

次に、受信装置102におけるデータの受信処理について説明する。図5は、受信装置102によるデータの受信処理を示すフローチャートである。なお、図5のフローチャートに対応するプログラムは例えばメモリ205bに格納され、制御部201bがこれを読み出して実行し各部を制御することによりデータ受信処理が実現される。   Next, data reception processing in the receiving apparatus 102 will be described. FIG. 5 is a flowchart showing data reception processing by the reception apparatus 102. Note that a program corresponding to the flowchart of FIG. 5 is stored in, for example, the memory 205b, and the data reception process is realized by the control unit 201b reading and executing the program and controlling each unit.

前述のように、送信装置101よりコマンドが送信されると、通信部209bはアンテナ210bを介してコマンドを受信し、データ判定部211bに送る。データ判定部211bは、受信したコマンドをバッファメモリ213bに記憶する。データ判定部211bによりコマンドが受信されると、図5のフローが開始される。   As described above, when a command is transmitted from the transmission apparatus 101, the communication unit 209b receives the command via the antenna 210b and sends the command to the data determination unit 211b. The data determination unit 211b stores the received command in the buffer memory 213b. When the data determination unit 211b receives a command, the flow of FIG. 5 is started.

まず、データ判定部211bは、受信したコマンドがデータの書き込みコマンドか否かを判別する(S501)。データの書き込みコマンドでなかった場合、データ判定部211bは、受信したコマンドを制御部201bに送り、制御部201bによりコマンドに対応した処理が実行される(S508)。   First, the data determination unit 211b determines whether or not the received command is a data write command (S501). If it is not a data write command, the data determination unit 211b sends the received command to the control unit 201b, and the control unit 201b executes processing corresponding to the command (S508).

受信したコマンドが書き込みコマンドであった場合、データ判定部211bは、コマンドに含まれる書き込みアドレスが所定のアドレスであるか否かを判別する(S502)。データ判定部211bは、記録媒体208bにおける管理情報が記録されている論理アドレスを記憶するためのレジスタ700を内蔵している。図7は管理情報の記憶のためのレジスタを示している。図7において、管理情報の記憶開始アドレス701と、記憶終了アドレス702がレジスタ700に記憶されている。例えば、図3に示すように、記録媒体208bにおける記憶領域301のうち、アドレス0x0000BE00〜0x0040BE00の間の領域302に管理情報が記憶されていた場合、これらのアドレスがレジスタ700に記憶される。また、アドレス管理情報が、記録媒体208bにおける複数の領域に分散して記憶されている場合、各領域の先頭の論理アドレスと終了の論理アドレスがそれぞれ、レジスタ700に記憶される。データ判定部211bは、受信装置102の電源が投入された場合、或いは、新たに記録媒体208bが装着された場合に、記録媒体208bに記憶されている管理情報の記憶領域を全て検出し、レジスタ700に記憶する。   If the received command is a write command, the data determination unit 211b determines whether the write address included in the command is a predetermined address (S502). The data determination unit 211b has a built-in register 700 for storing a logical address where management information in the recording medium 208b is recorded. FIG. 7 shows a register for storing management information. In FIG. 7, a storage start address 701 and a storage end address 702 for management information are stored in the register 700. For example, as shown in FIG. 3, when management information is stored in an area 302 between addresses 0x0000BE00 to 0x0040BE00 in the storage area 301 in the recording medium 208b, these addresses are stored in the register 700. When the address management information is distributed and stored in a plurality of areas in the recording medium 208b, the top logical address and the end logical address of each area are stored in the register 700, respectively. The data determination unit 211b detects all the storage areas of the management information stored in the recording medium 208b when the power of the receiving apparatus 102 is turned on or when the recording medium 208b is newly installed. 700 is stored.

データ判定部211bは、受信したコマンドに含まれる書き込みアドレスが、レジスタ700に記憶された1以上の記憶開始アドレスと記憶終了アドレスにより指定される記憶領域の何れかに含まれるか否かを判定する。   The data determination unit 211b determines whether the write address included in the received command is included in any one of the storage areas specified by the one or more storage start addresses and storage end addresses stored in the register 700. .

受信したアドレスが、管理情報の記憶領域に含まれていない場合、データ判定部211bは、バッファメモリ213bより受信したデータを読み出し、バス212bを介して記録再生部207bに送る(S507)。記録再生部207bは、受信したコマンドに基づいて、記録媒体208bにおける指定されたアドレスにデータを記録する。   If the received address is not included in the management information storage area, the data determination unit 211b reads the received data from the buffer memory 213b and sends it to the recording / playback unit 207b via the bus 212b (S507). The recording / playback unit 207b records data at a specified address on the recording medium 208b based on the received command.

受信したアドレスが、管理情報の記憶領域に含まれていた場合、データ判定部211bは制御部201に対し、管理情報の記憶領域に対する書き込み要求があった旨の割り込み信号を出力する(S503)。制御部201bは、割り込み信号に応じて、データ判定部211bを制御して、バッファメモリ213bより受信したデータを読み出し、メモリ205bに記憶する(S504)。制御部201bは、メモリに205bに記憶されたデータが正常であるか否かを判別する(S505)。受信した書き込みコマンドに含まれるアドレスが、記録媒体208bにおける管理情報の記憶領域に含まれているということは、書き込み対象のデータがファイルシステムにより規定された管理情報であるということである。そのため、制御部201bは、受信した書き込み対象のデータが、FATファイルシステムにより規定された正しい値となっているか否かを確認する。例えば、制御部201bは、管理情報が記憶されるクラスタのうち、終端を示す値が格納されるべきところに不良クラスタなどの不定なデータが格納されている場合は、受信データが正しくないと判断する。或いは、FATにて指定されるクラスタチェーンがループしている場合などもデータが正しくないと判定する。   If the received address is included in the management information storage area, the data determination unit 211b outputs an interrupt signal to the control unit 201 to the effect that there has been a write request to the management information storage area (S503). The control unit 201b controls the data determination unit 211b according to the interrupt signal, reads the data received from the buffer memory 213b, and stores it in the memory 205b (S504). The control unit 201b determines whether or not the data stored in the memory 205b is normal (S505). The fact that the address included in the received write command is included in the management information storage area in the recording medium 208b means that the data to be written is management information defined by the file system. For this reason, the control unit 201b confirms whether or not the received data to be written has a correct value defined by the FAT file system. For example, the control unit 201b determines that the received data is not correct when indefinite data such as a defective cluster is stored in a place where a value indicating the end of the cluster in which management information is stored is to be stored. To do. Alternatively, when the cluster chain specified by the FAT is looped, it is determined that the data is not correct.

データが正常であると判定した場合、制御部201bは、メモリ205bよりデータを読み出して記録再生部207bに送り、記録再生部207bにおける指定されたアドレスにデータを記録する(S507)。   If it is determined that the data is normal, the control unit 201b reads the data from the memory 205b, sends the data to the recording / reproducing unit 207b, and records the data at the designated address in the recording / reproducing unit 207b (S507).

データが正常でないと判定した場合、制御部201bは、記録再生部207bに対して書き込みコマンドとデータの送信を停止し、受信したデータの書き込みを禁止する(S506)。このように、データの書き込みが正常に完了しない場合、制御部201bは、通信部209bにより、データの書き込みが完了しない旨のコマンドを送信装置101に送る。   If it is determined that the data is not normal, the control unit 201b stops the transmission of the write command and data to the recording / reproducing unit 207b, and prohibits the writing of the received data (S506). As described above, when the data writing is not normally completed, the control unit 201b transmits a command indicating that the data writing is not completed to the transmission apparatus 101 through the communication unit 209b.

このように、本実施形態によれば、管理情報の書き込みコマンドを受けた場合、受信したデータを一旦メモリに記憶して内容が正しいか否かをチェックする。そのため、送信中のエラーや、無線通信が切断されたことにより、不良なデータが記録媒体208bの管理情報領域に書き込まれてしまい、データが読み出せなくなるということを防ぐことができる。   As described above, according to the present embodiment, when a management information write command is received, the received data is temporarily stored in the memory to check whether the contents are correct. For this reason, it is possible to prevent the data from being read out due to the error during transmission or the disconnection of the wireless communication, which causes bad data to be written in the management information area of the recording medium 208b.

また、本実施形態によれば、管理情報以外のデータの書き込みコマンドを受けた場合には、コマンドとデータをそのまま記録再生部に送るので、高速にデータの書き込みを実現することができる。   Also, according to the present embodiment, when a command for writing data other than management information is received, the command and data are sent as they are to the recording / reproducing unit, so that data can be written at high speed.

本実施形態では、FATファイルシステムに従ってデータを管理する構成であったが、FAT以外のファイルシステムを用いる場合にも同様に本発明を適用可能である。また、図2の受信装置102において、複数の記録媒体を装着可能な場合は、それぞれの記録媒体について、管理情報の記憶領域をレジスタに記憶しておく。また、本実施形態では、無線通信により通信を行う構成としたが、有線通信を用いることも可能である。   In this embodiment, the data is managed according to the FAT file system. However, the present invention can be similarly applied to a case where a file system other than FAT is used. In addition, in the receiving apparatus 102 in FIG. 2, when a plurality of recording media can be mounted, a management information storage area is stored in a register for each recording medium. In this embodiment, the communication is performed by wireless communication, but wired communication can also be used.

(他の実施形態)
また、本発明は、以下の処理を実行することによっても実現される。即ち、上述した実施形態の機能を実現するソフトウェア(プログラム)を、ネットワーク又は各種記憶媒体を介してシステム或いは装置に供給し、そのシステム或いは装置のコンピュータ(またはCPUやMPU等)がプログラムを読み出して実行する処理である。この場合、そのプログラム、及び該プログラムを記憶した記憶媒体は本発明を構成することになる。
(Other embodiments)
The present invention can also be realized by executing the following processing. That is, software (program) that realizes the functions of the above-described embodiments is supplied to a system or apparatus via a network or various storage media, and a computer (or CPU, MPU, or the like) of the system or apparatus reads the program. It is a process to be executed. In this case, the program and the storage medium storing the program constitute the present invention.

Claims (5)

外部の装置との間で通信を行う通信手段と、
データを記憶する記録媒体と、
所定のファイルシステムに従って前記記録媒体に対するデータの書き込み及び読み出しを行う記録再生手段と、
前記通信手段により受信されたコマンドが前記記録媒体における前記ファイルシステムの管理情報の記憶領域への書き込みコマンドであることを検出する検出手段と、
前記検出手段により検出された前記管理情報の記憶領域への書き込みコマンドによるデータが正常でない場合に、前記記録再生手段による前記記録媒体へのデータの書き込みを禁止する制御手段と、
を有することを特徴とする通信装置。
A communication means for communicating with an external device;
A recording medium for storing data;
Recording and reproducing means for writing and reading data to and from the recording medium according to a predetermined file system;
Detecting means for detecting that the command received by the communication means is a write command to the storage area of the file system management information in the recording medium;
Control means for prohibiting writing of data to the recording medium by the recording / reproducing means when data by a write command to the storage area of the management information detected by the detecting means is not normal;
A communication apparatus comprising:
前記記録媒体における前記管理情報の記憶領域に関する情報を記憶するレジスタを更に有し、
前記検出手段は、前記通信手段により受信されたコマンドに含まれる書き込みアドレスが前記レジスタに記憶された記憶領域に含まれている場合、前記通信手段により受信されたコマンドが前記記録媒体における前記管理情報の記憶領域への書き込みコマンドであると判定する
ことを特徴とする請求項1に記載の通信装置。
A register for storing information relating to the storage area of the management information in the recording medium;
When the detection means includes a write address included in the command received by the communication means in the storage area stored in the register, the command received by the communication means is the management information in the recording medium. The communication device according to claim 1, wherein the communication device is determined to be a write command to the storage area.
前記通信手段により受信されたコマンドに含まれる書き込みアドレスが前記レジスタに記憶された記憶領域に含まれていない場合、前記記録再生部は、前記記録媒体の、当該コマンドに含まれる書き込みアドレスにデータを記録することを特徴とする請求項1または2に記載の通信装置。   When the write address included in the command received by the communication means is not included in the storage area stored in the register, the recording / reproducing unit stores data in the write address included in the command of the recording medium. The communication apparatus according to claim 1, wherein the communication apparatus records the information. 外部の装置との間で通信を行う通信手段と、
データを記憶する記録媒体と、
所定のファイルシステムに従って前記記録媒体に対するデータの書き込み及び読み出しを行う記録再生手段と、
を有する通信装置の制御方法であって、
検出手段が、前記通信手段により受信されたコマンドが前記記録媒体における前記ファイルシステムの管理情報の記憶領域への書き込みコマンドであることを検出する検出ステップと、
制御手段が、前記検出ステップで検出された前記管理情報の記憶領域への書き込みコマンドによるデータが正常でない場合に、前記記録再生手段による前記記録媒体へのデータの書き込みを禁止する制御ステップと、
を有することを特徴とする通信装置の制御方法。
A communication means for communicating with an external device;
A recording medium for storing data;
Recording and reproducing means for writing and reading data to and from the recording medium according to a predetermined file system;
A method for controlling a communication device having
A detecting step for detecting that the command received by the communication unit is a write command to the storage area of the management information of the file system in the recording medium;
A control step for prohibiting writing of data to the recording medium by the recording / reproducing means when the data by the write command to the storage area of the management information detected in the detection step is not normal;
A method for controlling a communication apparatus, comprising:
コンピュータに請求項4に記載の通信装置の制御方法の各ステップを実行させるためのプログラム。   The program for making a computer perform each step of the control method of the communication apparatus of Claim 4.
JP2012188068A 2012-08-28 2012-08-28 COMMUNICATION DEVICE AND ITS CONTROL METHOD Expired - Fee Related JP5984585B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2012188068A JP5984585B2 (en) 2012-08-28 2012-08-28 COMMUNICATION DEVICE AND ITS CONTROL METHOD

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2012188068A JP5984585B2 (en) 2012-08-28 2012-08-28 COMMUNICATION DEVICE AND ITS CONTROL METHOD

Publications (3)

Publication Number Publication Date
JP2014044683A true JP2014044683A (en) 2014-03-13
JP2014044683A5 JP2014044683A5 (en) 2015-10-08
JP5984585B2 JP5984585B2 (en) 2016-09-06

Family

ID=50395881

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2012188068A Expired - Fee Related JP5984585B2 (en) 2012-08-28 2012-08-28 COMMUNICATION DEVICE AND ITS CONTROL METHOD

Country Status (1)

Country Link
JP (1) JP5984585B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE102015202256A1 (en) 2014-03-07 2015-09-24 Fuji Electric Co., Ltd Semiconductor device, method for manufacturing a semiconductor device and position gauge

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH10260908A (en) * 1997-03-21 1998-09-29 Seiko Epson Corp Storage device
JPH11338757A (en) * 1998-05-21 1999-12-10 Matsushita Electric Ind Co Ltd File managing device
WO2005043394A1 (en) * 2003-10-31 2005-05-12 Matsushita Electric Industrial Co., Ltd. Information recording medium, information recording medium accessing apparatus and accessing method
WO2010001606A1 (en) * 2008-07-02 2010-01-07 パナソニック株式会社 Controller, information recording device, access device, information recording system, and information recording method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH10260908A (en) * 1997-03-21 1998-09-29 Seiko Epson Corp Storage device
JPH11338757A (en) * 1998-05-21 1999-12-10 Matsushita Electric Ind Co Ltd File managing device
WO2005043394A1 (en) * 2003-10-31 2005-05-12 Matsushita Electric Industrial Co., Ltd. Information recording medium, information recording medium accessing apparatus and accessing method
WO2010001606A1 (en) * 2008-07-02 2010-01-07 パナソニック株式会社 Controller, information recording device, access device, information recording system, and information recording method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE102015202256A1 (en) 2014-03-07 2015-09-24 Fuji Electric Co., Ltd Semiconductor device, method for manufacturing a semiconductor device and position gauge

Also Published As

Publication number Publication date
JP5984585B2 (en) 2016-09-06

Similar Documents

Publication Publication Date Title
US9250822B2 (en) Data storage method and data storage apparatus
KR20060113248A (en) An apparatus and method for controlling nand flash memory
US20080250172A1 (en) Information processing system, information processing terminal and host device
US20080155132A1 (en) Device connecting method, information apparatus, and device connecting program recording medium
KR20200095526A (en) Flash memory controller, SD card device, method used in flash memory controller, and host device connected to SD card device
JP5398761B2 (en) Memory system
KR100917677B1 (en) System and method for bridging file systems between two different processors in mobile phone
JP5984585B2 (en) COMMUNICATION DEVICE AND ITS CONTROL METHOD
JP6939240B2 (en) Information processing device
US20180173651A1 (en) Data storage device access method, device and system
US20100106869A1 (en) USB Storage Device and Interface Circuit Thereof
JP2007122125A (en) Electronic mail controller, electronic mail control method and electronic mail control program
JP2018063676A (en) Information processing device, control method thereof, and program
KR20130108130A (en) Image forming apparatus, address setting method, and storage medium storing program
KR20070028960A (en) Mobile communication terminal transmitting data and its operating method
KR101694171B1 (en) Device for downloading files on behalf of another device and operation method thereof
CN104657289A (en) Information Processing Apparatus That Saves Data In Main Storage Device And Control Method Therefor, And Storage Medium
US7330944B2 (en) Method for storing data in a memory, a system, an electronic device and a memory card
JP2015158800A (en) Data transfer control apparatus, data transfer control program, and data transfer control method
EP2280350A1 (en) Recording and/or reproducing apparatus
JP2008217469A (en) Copying apparatus, data transfer controller, information processor and program
US20200293243A1 (en) Image forming apparatus
JP5018047B2 (en) Integrated circuit device
KR100888427B1 (en) Device having shared memory and method for displaying data
JP6962159B2 (en) Server, data generation method for reproduction and data generation program for reproduction

Legal Events

Date Code Title Description
A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20150825

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20150825

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20160412

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20160418

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20160615

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20160704

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20160802

R151 Written notification of patent or utility model registration

Ref document number: 5984585

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151

LAPS Cancellation because of no payment of annual fees