JP2015060266A - Electronic apparatus - Google Patents

Electronic apparatus Download PDF

Info

Publication number
JP2015060266A
JP2015060266A JP2013191735A JP2013191735A JP2015060266A JP 2015060266 A JP2015060266 A JP 2015060266A JP 2013191735 A JP2013191735 A JP 2013191735A JP 2013191735 A JP2013191735 A JP 2013191735A JP 2015060266 A JP2015060266 A JP 2015060266A
Authority
JP
Japan
Prior art keywords
card
response
unit
electronic device
external device
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
JP2013191735A
Other languages
Japanese (ja)
Other versions
JP6171770B2 (en
Inventor
竹次郎 松山
Takejiro Matsuyama
竹次郎 松山
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.)
Ricoh Co Ltd
Original Assignee
Ricoh Co Ltd
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 Ricoh Co Ltd filed Critical Ricoh Co Ltd
Priority to JP2013191735A priority Critical patent/JP6171770B2/en
Publication of JP2015060266A publication Critical patent/JP2015060266A/en
Application granted granted Critical
Publication of JP6171770B2 publication Critical patent/JP6171770B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

PROBLEM TO BE SOLVED: To enable, when the response from a card connected with an electronic apparatus is not received, the easy identification as to whether or not the card is a non-response card.SOLUTION: An electronic apparatus registers in advance the type of a non-response card connected with an SD card slot (S101) and sets a flag to use the non-response card (S102), and transmits a command to the non-response card connected with the SD card slot from an SD host (S106). When there is no response from the card (N in S107), the electronic apparatus inspects whether or not the flag to use the non-response card has been set(S110), and when the flag is set (Y in S110), determines the registered type of the non-response card as the type of the non-response card connected with the SD card slot.

Description

本発明は、メモリカード等の外部装置が接続可能な接続部を備える電子装置に関する。   The present invention relates to an electronic device including a connection portion to which an external device such as a memory card can be connected.

従来より、マルチメディアカードはそのコンパクト性により、電子機器に広く使用されている。
特に、SD(Secure Digital)カード(例えばSDメモリカード)は、音楽配信などに関係する著作権保護機能を高めたカードとして注目され、パーソナルコンピュータや情報携帯端末、デジタルカメラなどに広く使用されるようになってきている。
Conventionally, multimedia cards have been widely used in electronic devices due to their compactness.
In particular, SD (Secure Digital) cards (for example, SD memory cards) are attracting attention as cards with enhanced copyright protection functions related to music distribution and the like, and are widely used in personal computers, portable information terminals, digital cameras, and the like. It is becoming.

SDカードスロットは広く電子機器に装備されているため、様々な用途で利用される。
例えば、SDカードとMMCカード(Multi Media Card)は互換性が高く、共通のカードスロットで両方のカードを取り扱えるという利点がある。
そのためSDカードスロットでカードを検出した場合、検出したカードの種類を正確に判別し、適切なデータ通信方法の選択や、電源やクロックの供給を精密に制御する必要がある。
Since the SD card slot is widely installed in electronic devices, it is used for various purposes.
For example, an SD card and an MMC card (Multi Media Card) are highly compatible, and there is an advantage that both cards can be handled by a common card slot.
Therefore, when a card is detected in the SD card slot, it is necessary to accurately determine the type of the detected card, and to select an appropriate data communication method and precisely control power supply and clock supply.

SDカードスロットでのカード検出では、SDホストからカードに所定のコマンドを送信し、その応答信号の内容によって識別する手法が一般的である。
下記特許文献1には、複数タイプのカードを装着可能なカードスロットを備えた電子機器において、装着されたカードのタイプを正確に判別することを目的として、カードスロットに装着されるカードに対し、所定のコマンドを送り、そのコマンドに対する応答の有無によってカードの種類を識別する発明が開示されている。
In card detection in the SD card slot, a method is generally used in which a predetermined command is transmitted from the SD host to the card and identified by the content of the response signal.
In the following Patent Document 1, in an electronic device provided with a card slot in which a plurality of types of cards can be mounted, for the purpose of accurately determining the type of the mounted card, for the card mounted in the card slot, An invention is disclosed in which a predetermined command is sent and the type of card is identified by the presence or absence of a response to the command.

しかしながら、特許文献1の発明は、所定のコマンドに対して応答した場合は、その応答の内容によって正確なカードの種類の識別は可能になるが、応答しない場合は正確なカードの種類の識別ができないという問題がある。
また、故障したSDカードが応答を返さない場合もあり、もともとコマンドに対して無応答の仕様であるカード(以下「無応答カード」という。)との区別が出来ないという問題もある。
However, in the invention of Patent Document 1, when a response is made to a predetermined command, the exact card type can be identified depending on the content of the response, but when the response is not made, the exact card type can be identified. There is a problem that you can not.
In addition, a failed SD card may not return a response, and there is a problem that it cannot be distinguished from a card that originally has no response to a command (hereinafter referred to as a “no response card”).

特に、故障したSDカードを無応答カードであると判別した場合、故障したSDカードに対して無応答カード向けの電源・クロック供給を行ってしまうと、SDカードの機能を利用出来ないにもかかわらず消費電力が増加してしまうという問題がある。
このことは、SDカードスロットに接続される無応答カードに限らず、電子装置の接続部に接続され得る外部装置に、電子装置から送信される信号に対して応答するものと、応答しないもの(以下「無応答装置」という。)とが混在する場合においても起こり得る問題である。
In particular, when it is determined that the failed SD card is a non-response card, if the power and clock supply for the non-response card is performed on the failed SD card, the function of the SD card cannot be used. Therefore, there is a problem that power consumption increases.
This is not limited to the non-response card connected to the SD card slot, but responds to a signal transmitted from the electronic device and does not respond to an external device that can be connected to the connection unit of the electronic device ( This is also a problem that may occur even in the case where "no response device" is mixed.

本発明は、上記のような事情に鑑み為されたものであり、電子装置に接続された外部装置からの応答が無い場合に、その外部装置が無応答装置であるか否かを容易に識別できるようにすることを目的とする。   The present invention has been made in view of the above circumstances, and when there is no response from an external device connected to the electronic device, it is easily identified whether or not the external device is a non-response device. The purpose is to be able to.

上記目的を達成するために、本発明に係る電子装置は、外部装置を接続可能な接続部を備える電子装置であって、上記接続部に接続される外部装置が無応答装置であることを登録する登録手段と、上記接続部に外部装置が接続されたことを検出する検出手段と、上記検出手段が外部装置の接続を検出した場合に、上記外部装置に対して電力を供給すると共に所定のコマンドを送信する送信手段と、上記送信手段が送信したコマンドに対する応答を検出した場合に、上記接続された外部装置に対して、所定の規格に適合した信号出力を行う第1の出力手段と、上記送信手段が送信したコマンドに対する応答を検出せず、かつ上記登録手段が無応答装置であることを登録していた場合は、上記接続された外部装置に対して、上記無応答装置に適合した信号出力を行う第2の出力手段とを備えることを特徴とする。   In order to achieve the above object, an electronic device according to the present invention is an electronic device having a connection unit to which an external device can be connected, and registers that the external device connected to the connection unit is a non-response device. Registering means, detecting means for detecting that an external device is connected to the connecting portion, and supplying power to the external device and detecting a predetermined connection when the detecting means detects the connection of the external device. A transmission means for transmitting a command; and a first output means for outputting a signal conforming to a predetermined standard to the connected external device when a response to the command transmitted by the transmission means is detected; If the response to the command sent by the transmission means is not detected and the registration means has registered that it is a non-response device, it conforms to the non-response device for the connected external device Characterized in that it comprises a and a second output means for performing signal output.

上記構成によれば、電子装置に接続された外部装置からの応答が無い場合にも、その外部装置が無応答装置であるか否かを容易に識別できるようになる。   According to the above configuration, even when there is no response from the external device connected to the electronic device, it is possible to easily identify whether or not the external device is a non-response device.

本発明の電子装置の実施形態であるSDカードスロットを備えた電子装置と、SDカードスロットに装着可能なカード(SDカード、無応答カード)の関係を示す図である。It is a figure which shows the relationship between the electronic apparatus provided with the SD card slot which is embodiment of the electronic apparatus of this invention, and the card | curd (SD card, non-response card | curd) which can be mounted | worn in an SD card slot. SDインタフェースについて説明するための図である。It is a figure for demonstrating an SD interface. SDホストのハードウェア構成を示す図である。It is a figure which shows the hardware constitutions of SD host. SDカード及び無応答カードの基本的な動作を説明するための図である。It is a figure for demonstrating the basic operation | movement of an SD card and a non-response card | curd. SDホストの機能構成を示すブロック図である。It is a block diagram which shows the function structure of SD host. SDホストにおいて、ユーザが使用する無応答カードの種別を登録するための選択画面の例を示すものである。7 shows an example of a selection screen for registering the type of a non-response card used by the user in the SD host. SDカードスロットにカードが装着された場合に、SDホストのCPUが実行する処理のフローチャートである。10 is a flowchart of processing executed by the CPU of the SD host when a card is inserted into the SD card slot.

以下、この発明を実施するための形態について、図面を参照しつつ具体的に説明する。
図1は、本発明の電子装置の実施形態であるSDカードスロット(接続部の実施形態)11を備えた電子装置10と、SDカードスロット11に装着(接続)可能なカード(SDカード12、無応答カード13)の関係を示す図である。
この電子装置10は、既存のSD(Secure Digital)カード(SDメモリカード,SDIO(Secure Digital Input/Output Card)カード)12のほか、SDコマンドに対して応答を返さない仕様のSDIOカード(無応答カード13)も使用可能なSDカードスロット11を有する。
DESCRIPTION OF EMBODIMENTS Hereinafter, embodiments for carrying out the present invention will be specifically described with reference to the drawings.
FIG. 1 shows an electronic device 10 having an SD card slot (embodiment of a connecting portion) 11 which is an embodiment of the electronic device of the present invention, and a card (SD card 12, It is a figure which shows the relationship of the no-response card | curd 13).
The electronic apparatus 10 includes an existing SD (Secure Digital) card (SD memory card, SDIO (Secure Digital Input / Output Card) card) 12 and an SDIO card (no response) that does not return a response to an SD command. The card 13) also has a usable SD card slot 11.

電子装置10は、パーソナルコンピュータやPDA(Personal Digital Assistant)、音楽プレーヤ、携帯電話、スマートフォンなどに相当するものである。この電子装置10は、上記カード12〜13のいずれをも装着可能なカードスロット11を備え、これらのカード12〜13のホスト機器として動作するものである。

すなわち、電子装置10は、SDカード12や無応答カード13を制御可能なSDホスト14としての機能を備えた装置である。
The electronic device 10 corresponds to a personal computer, a PDA (Personal Digital Assistant), a music player, a mobile phone, a smartphone, or the like. The electronic device 10 includes a card slot 11 into which any of the cards 12 to 13 can be mounted, and operates as a host device for these cards 12 to 13.

That is, the electronic device 10 is a device having a function as an SD host 14 that can control the SD card 12 and the no-response card 13.

SDホスト14は、カードスロット11に装着されるカードとの通信を、SDインタフェース(SD I/F)15に基づいて行なう。
図2は、SDホスト14と、SDカードスロット11に装着されたカード12、13を繋ぐSDインタフェース15について説明するための図である。以下、図2に基づいて、SDインタフェース15について説明する。
The SD host 14 communicates with a card inserted in the card slot 11 based on an SD interface (SD I / F) 15.
FIG. 2 is a diagram for explaining the SD interface 15 that connects the SD host 14 and the cards 12 and 13 installed in the SD card slot 11. Hereinafter, the SD interface 15 will be described with reference to FIG.

このSDインタフェース15は、図2に示すように、SDカード12や無応答カード13の仕様(プロトコル)に準拠する電源用信号線(VCC)、クロック用信号線(CLK)、コマンド用信号線(CMD)、その他データ用信号線(DAT)などを採用するものである。
図2において、電源用信号線(VCC)は、SDホスト14からカード12、13へ電力を供給するための信号線である。
As shown in FIG. 2, the SD interface 15 includes a power signal line (VCC), a clock signal line (CLK), and a command signal line (compliant with the specifications (protocol) of the SD card 12 and the no-response card 13 ( CMD) and other data signal lines (DAT) are employed.
In FIG. 2, a power signal line (VCC) is a signal line for supplying power from the SD host 14 to the cards 12 and 13.

また、クロック用信号線(CLK)は、SDホスト14からカード12、13へ動作クロックを供給するための信号線である。
コマンド用信号線(CMD)は、SDホスト14からカード12、13へコマンドを送ると共に、その応答をSDホスト14へ返すための双方向の信号線である。
データ用信号線(DAT)はSDホスト14とカード12、13との間でデータ転送を行なうための双方向の信号線である。
The clock signal line (CLK) is a signal line for supplying an operation clock from the SD host 14 to the cards 12 and 13.
The command signal line (CMD) is a bidirectional signal line for sending a command from the SD host 14 to the cards 12 and 13 and returning a response to the SD host 14.
The data signal line (DAT) is a bidirectional signal line for transferring data between the SD host 14 and the cards 12 and 13.

SDカードスロット11に何らかのカード12、13が装着された時、SDホスト14はそれを検出して、カード12、13に対してVCCから電力を供給する。
次に、基本クロックをCLKを用いて供給し、装着されたカード12、13を動作可能な状態にする。次にCMDを用いてコマンドを送信し、カードからの応答の有無によってSDカード12であるか無応答カード13であるかを判別する。
When any card 12, 13 is inserted into the SD card slot 11, the SD host 14 detects it and supplies power to the cards 12, 13 from the VCC.
Next, a basic clock is supplied using CLK, and the loaded cards 12 and 13 are made operable. Next, a command is transmitted using CMD, and it is determined whether the card is the SD card 12 or the non-response card 13 based on the presence / absence of a response from the card.

次に、SDホスト14のハードウェア構成について説明する。図3は、SDホスト14のハードウェア構成を示す図である。SDホスト14は、ハードウェアとしては公知のパーソナルコンピュータを適宜採用できる。例えば、図3に示すように、CPU141、ROM142,RAM143、通信I/F144、HDD(ハードディスクドライブ)145、UI部146をシステムバス147により接続した構成とすることができる。   Next, the hardware configuration of the SD host 14 will be described. FIG. 3 is a diagram illustrating a hardware configuration of the SD host 14. The SD host 14 can adopt a known personal computer as hardware as appropriate. For example, as shown in FIG. 3, a CPU 141, ROM 142, RAM 143, communication I / F 144, HDD (hard disk drive) 145, and UI unit 146 can be connected via a system bus 147.

そして、CPU141がRAM143をワークエリアとしてROM142あるいはHDD145に記憶されたプログラムを実行することにより、SDホスト14全体の動作を制御し、後述の種々の機能を実現する。
HDD145は、基本ソフトウェアであるOS(Operating System)、アプリケーションソフトウェア、所定の制御プログラム等のデータを保持するデバイスである。
The CPU 141 controls the overall operation of the SD host 14 by executing programs stored in the ROM 142 or the HDD 145 using the RAM 143 as a work area, thereby realizing various functions to be described later.
The HDD 145 is a device that holds data such as an OS (Operating System) that is basic software, application software, and a predetermined control program.

通信I/F144は、外部装置とのデータの送受信や、電力、クロックの供給等を行うためのデバイスである、SDカードスロット11に対するインタフェースであり、例えば、USB(Universal Serial Bus)インタフェース等を採用できる。例えば、USBインタフェースを採用したSDカードスロット11を接続することにより、通信I/F144はSDインタフェース15としての機能を実現する。   The communication I / F 144 is an interface to the SD card slot 11 that is a device for transmitting / receiving data to / from an external device, supplying power, a clock, and the like. For example, a USB (Universal Serial Bus) interface is adopted. it can. For example, the communication I / F 144 realizes the function as the SD interface 15 by connecting the SD card slot 11 adopting the USB interface.

UI部146は、ユーザの操作を受け付けるための操作部や、ユーザに情報を提示するための表示部を含む操作受け付け手段である。外付けの操作部や表示部を用いてもよいことはもちろんである。UI部146は、後述の図6のカード種類選択画面(A)や、無応答カード種別選択画面(B)をユーザに提供する。   The UI unit 146 is an operation reception unit including an operation unit for receiving a user operation and a display unit for presenting information to the user. Of course, an external operation unit or display unit may be used. The UI unit 146 provides the user with a card type selection screen (A) and a no-response card type selection screen (B) shown in FIG.

次に、この発明の実施形態におけるSDカード12及び無応答カード13の基本的な動作について説明する。
図4は、SDカード12、無応答カード13の基本的な動作を説明するための図である。
図4において、SDホスト14は、カードへのコマンド発行やデータ転送をSDインタフェース15を介して行う。
一方、SDカード12は、SDカード12全体の制御を司るSDカードコントローラ120と、データを記憶するメモリコア121とを備えており、SDカードコントローラ120が備えるCPU(不図示)が所定のプログラムを実行することによって、SDカード12の動作を制御する。
Next, basic operations of the SD card 12 and the no-response card 13 in the embodiment of the present invention will be described.
FIG. 4 is a diagram for explaining basic operations of the SD card 12 and the no-response card 13.
In FIG. 4, the SD host 14 performs command issuance and data transfer to the card via the SD interface 15.
On the other hand, the SD card 12 includes an SD card controller 120 that controls the entire SD card 12 and a memory core 121 that stores data. A CPU (not shown) included in the SD card controller 120 executes a predetermined program. By executing, the operation of the SD card 12 is controlled.

SDカードコントローラ120は、SDホスト14が発行して送信したコマンドを認識・処理し、そのコマンドに対応する応答をSDインタフェース15を介してSDホスト14へ返すホスト制御部1201と、メモリコア121に対するアクセス制御を行なうメモリ制御部1202とを備えている。   The SD card controller 120 recognizes and processes a command issued and transmitted by the SD host 14, returns a response corresponding to the command to the SD host 14 via the SD interface 15, and the memory core 121. And a memory control unit 1202 that performs access control.

一方、無応答カード13は、無応答カード13全体の制御を司る無応答カードコントローラ130と、データを記憶するメモリコア131とを備えており、無応答カードコントローラ130が備えるCPU(不図示)が所定のプログラムを実行することによって、無応答カード13の動作を制御する。
上記無応答カードコントローラ130は、SDホスト14から送信されるコマンドを受信・認識するデータ受信部1301と、上記メモリコア131に対するアクセス制御を行うメモリ制御部1302とを備えている。
On the other hand, the non-response card 13 includes a non-response card controller 130 that controls the entire non-response card 13 and a memory core 131 that stores data. A CPU (not shown) included in the non-response card controller 130 includes The operation of the no-response card 13 is controlled by executing a predetermined program.
The non-response card controller 130 includes a data receiving unit 1301 that receives and recognizes a command transmitted from the SD host 14 and a memory control unit 1302 that performs access control on the memory core 131.

次に、電子装置10がSDホスト14として機能する場合の、SDホスト14の機能構成について図5を用いて説明する。
図5は、SDホスト14の機能構成を示すブロック図である。
図5において、SDホスト14は、無応答カード登録部201、カード検出部202、カード識別部203、クロック供給部204、電力供給部205及びコマンド送受信部206を備える。
Next, a functional configuration of the SD host 14 when the electronic apparatus 10 functions as the SD host 14 will be described with reference to FIG.
FIG. 5 is a block diagram showing a functional configuration of the SD host 14.
5, the SD host 14 includes a no-response card registration unit 201, a card detection unit 202, a card identification unit 203, a clock supply unit 204, a power supply unit 205, and a command transmission / reception unit 206.

このうち、無応答カード登録部201は、無応答カード13を装着するユーザが予めその使用をSDホスト14に登録する場合に、ユーザからの登録を受け付けて、無応答カード13の種別を記憶する機能を備える。
無応答カード13の場合、後述のように、SDホスト14から所定のコマンドを送信してもそれに対して応答しないため、SDホスト14は、装着された無応答カード13の種別を認識することができない。そこで、予め、使用する無応答カード13の種別を登録し、使用のフラグを立てて記憶しておくものである。
すなわち、無応答カード登録部201は、接続部(SDカードスロット11)に接続される外部装置(カード)が無応答装置(無応答カード)である場合に、その種別を登録可能な登録手段として機能する。
Among these, the non-response card registration unit 201 accepts registration from the user and stores the type of the non-response card 13 when the user who wears the non-response card 13 registers the use in the SD host 14 in advance. It has a function.
In the case of the no-response card 13, as described later, even if a predetermined command is transmitted from the SD host 14, it does not respond to the command, so the SD host 14 can recognize the type of the attached no-response card 13. Can not. Therefore, the type of the non-response card 13 to be used is registered in advance, and a use flag is set and stored.
That is, the non-response card registration unit 201 is a registration unit that can register the type when the external device (card) connected to the connection unit (SD card slot 11) is a non-response device (non-response card). Function.

ここで、無応答カード登録部201における無応答カード13の登録について、図6を参照しつつ説明する。
図6は、SDホスト14において、ユーザが使用する無応答カード13の種別を登録するための選択画面の例を示すものであり、(A)はカード種類を選択するための画面である。ユーザがカード種類選択画面20において、SDカードボタン21を選択して、OKボタン23を押下するとSDカードが選択されるが、無応答カード登録部201には登録はされない。すなわち、この場合は、SDホスト14はSDカード12が使用されると判断して次の処理(後述の図7のステップS103)に進む。
Here, registration of the no-response card 13 in the no-response card registration unit 201 will be described with reference to FIG.
FIG. 6 shows an example of a selection screen for registering the type of the non-response card 13 used by the user in the SD host 14, and (A) is a screen for selecting the card type. When the user selects the SD card button 21 on the card type selection screen 20 and presses the OK button 23, the SD card is selected, but is not registered in the no-response card registration unit 201. That is, in this case, the SD host 14 determines that the SD card 12 is used, and proceeds to the next process (step S103 in FIG. 7 described later).

一方、ユーザがカード種類選択画面20において、無応答カードボタン22を選択して、OKボタン23を押下すると、(B)の無応答カード種別選択画面30が表示される。
(B)図には、SDカードスロット11に適合する無応答カード13の一覧31が表示されており、ここに表示されている無応答カードの種別(無応答カードA、無応答カードB、無応答カードC,…)が使用可能であることを示している。
On the other hand, when the user selects the no-response card button 22 on the card type selection screen 20 and presses the OK button 23, the no-response card type selection screen 30 of (B) is displayed.
(B) In the figure, a list 31 of no-response cards 13 that are compatible with the SD card slot 11 is displayed, and the types of no-response cards displayed here (no-response card A, no-response card B, no-response card). The response card C,... Is usable.

ユーザが、マウス等でカーソル32を上下に移動させて、使用する無応答カードの種別を選択し、決定ボタン33を押下すると、無応答カード登録部201は、使用する無応答カードの種別を決定して所定の記憶手段(例えばHDD145)に記憶し、無応答カードの使用のフラグを立てる。また、選択を取り消す場合は、解除ボタン34を押下して、選択操作をやり直す。
なお、図6(A)のカード種類選択画面20は必須ではなく、(B)の無応答カード種別選択画面30のみでもよい。SDカード12は、SDホスト14からのコマンドに対して応答信号を返すため、登録しておく必要がないからである。
When the user moves the cursor 32 up and down with a mouse or the like to select the type of the non-response card to be used and presses the enter button 33, the non-response card registration unit 201 determines the type of the non-response card to be used. Then, it is stored in a predetermined storage means (for example, HDD 145), and a flag for use of the non-response card is set. When canceling the selection, the user presses the cancel button 34 to redo the selection operation.
Note that the card type selection screen 20 in FIG. 6A is not essential, and only the no-response card type selection screen 30 in FIG. This is because the SD card 12 does not need to be registered because it returns a response signal in response to a command from the SD host 14.

図5に戻って、カード検出部202は、SDカードスロット11にカード12又は13が挿入(装着)されたことを検出する機能を備える。すなわち、接続部に外部装置が接続されたことを検出する検出手段として機能する。
カード検出部202としては、公知のSDカードスロットに設けられている「カード検出スイッチ」を利用することができる。例えば、株式会社ジャルコ社製SDメモリカードコネクタ(YKF46-0013)等である。
Returning to FIG. 5, the card detection unit 202 has a function of detecting that the card 12 or 13 is inserted (mounted) in the SD card slot 11. That is, it functions as a detection unit that detects that an external device is connected to the connection unit.
As the card detection unit 202, a “card detection switch” provided in a known SD card slot can be used. For example, an SD memory card connector (YKF46-0013) manufactured by Jalco Co., Ltd.

カード識別部203は、SDカード12と無応答カード13を識別したり、無応答カード13の種別(無応答カードA、無応答カードB、無応答カードC、…)を識別する機能を備える。
すなわち、SDホスト14から送信した所定のコマンドに対する応答の有無によって、SDカード12と無応答カード13を識別し、さらに、無応答の場合には、無応答カード登録部201の登録内容によって無応答カードの種別を識別する。
The card identification unit 203 has a function of identifying the SD card 12 and the no-response card 13 and identifying the type of the no-response card 13 (no-response card A, no-response card B, no-response card C,...).
That is, the SD card 12 and the no-response card 13 are identified based on whether or not there is a response to a predetermined command transmitted from the SD host 14. Identify the card type.

クロック供給部204は、SDカードスロット11に装着されたカードに対して、SDインタフェース15のCLKを通して、駆動に必要なクロック信号を供給する機能を備える。クロック信号には、カードの種類を問わず、駆動に問題がない最大のクロック値を有する基本クロックと、カードの規格に適合した、そのカードの動作に最適なクロック値を持つクロック(以下「規格クロック」という。)がある。   The clock supply unit 204 has a function of supplying a clock signal necessary for driving to the card inserted in the SD card slot 11 through the CLK of the SD interface 15. Regardless of the type of card, the clock signal includes a basic clock that has the maximum clock value that does not cause a drive problem, and a clock that has an optimal clock value that conforms to the card standard (hereinafter referred to as the “standard”). "Clock").

電力供給部205は、SDカードスロット11に装着されたカードを動作させるため、SDインタフェース15のVCCを通して、電力(例えば、2.7V 200mA)を供給する機能を備える。
クロック供給部204と電力供給部205が協働することにより、外部装置に対して所定の規格に適合した信号出力(電力及びクロック)を行う第1の出力手段及び第2の出力手段としての機能を実現する。
また、電力供給部205は、カード識別部203がコマンド送受信部206が送信したコマンドに対するカードからの応答信号を検出せず、かつ、無応答カード登録部201が無応答カードの種別登録を受け付けていなかった場合に、接続されたカードに対する電力供給を停止する停止手段として機能する。
The power supply unit 205 has a function of supplying power (for example, 2.7 V 200 mA) through the VCC of the SD interface 15 in order to operate the card inserted in the SD card slot 11.
A function as a first output unit and a second output unit that perform signal output (power and clock) conforming to a predetermined standard to an external device by cooperation of the clock supply unit 204 and the power supply unit 205. Is realized.
Further, the power supply unit 205 does not detect a response signal from the card to the command transmitted from the command transmission / reception unit 206 by the card identification unit 203, and the no-response card registration unit 201 accepts the registration of the type of the non-response card. If not, it functions as a stopping means for stopping the power supply to the connected card.

コマンド送受信部206は、SDカードスロット11に装着されたカードに対して、SDインタフェース15のCMDを通して、カードを制御するためのコマンドを送信したり、カードから送られた応答信号を受信したりする機能を備える。
電力供給部205とコマンド送受信部206が協働することにより、外部装置に対して電力を供給すると共に所定のコマンドを送信する送信手段としての機能を実現する。
The command transmission / reception unit 206 transmits a command for controlling the card to the card installed in the SD card slot 11 through the CMD of the SD interface 15 and receives a response signal sent from the card. It has a function.
The power supply unit 205 and the command transmission / reception unit 206 cooperate to realize a function as a transmission unit that supplies power to an external device and transmits a predetermined command.

次に、SDホスト14が行うカードの識別処理について説明する。
図7は、SDカードスロット11にカードが装着された場合に、SDホスト14のCPU141が実行する処理のフローチャートである。
この処理は、ユーザがSDカードスロット11にカードを装着し、カード種類選択画面20を起動し、SDホスト14のCPU141がそれを検知した時にスタートする。以下、カードの識別の処理の流れを、図7に基づいて説明する。
Next, card identification processing performed by the SD host 14 will be described.
FIG. 7 is a flowchart of processing executed by the CPU 141 of the SD host 14 when a card is inserted into the SD card slot 11.
This process starts when the user inserts a card into the SD card slot 11, activates the card type selection screen 20, and the CPU 141 of the SD host 14 detects it. Hereinafter, the flow of the card identification process will be described with reference to FIG.

まず、CPU141は、ユーザが使用する無応答カードの選択を受付けたか否かを判定し(S101)、受付けていないと判定すると(S101のN)、カードの検出を行う(S103)。
一方、無応答カードの選択を受付けた場合(S101のY)、次に、無応答カードの種別の選択を受付け、選択された無応答カードの種別を記憶し、使用のフラグを立てる(S102)。そして、カードの検出を行う(S103)。
First, the CPU 141 determines whether or not the selection of a non-response card to be used by the user has been accepted (S101), and if it has not been accepted (N in S101), the card is detected (S103).
On the other hand, if the selection of the non-response card is accepted (Y in S101), the selection of the type of the non-response card is accepted, the type of the selected non-response card is stored, and the use flag is set (S102). . Then, the card is detected (S103).

次に、CPU141は、装着されたカードを動作させるため、図2に示したSDインタフェース15のVCCを通して、電力供給を開始する(S104)。
次に、CPU141は、SDインタフェース15のCLKを通して基本クロックの供給を開始する(S105)。
次に、CPU141は、SDインタフェース15のCMDを通して、カード種類を識別するためコマンド(例えば、SDカード識別用のCMD55)を送信する(S106)。
SDカード12用のコマンド(CMD55)を送信するのは、それに対して応答があればSDカード12であると識別できるからである。
Next, the CPU 141 starts power supply through the VCC of the SD interface 15 shown in FIG. 2 in order to operate the mounted card (S104).
Next, the CPU 141 starts supplying the basic clock through the CLK of the SD interface 15 (S105).
Next, the CPU 141 transmits a command for identifying the card type (for example, CMD55 for SD card identification) through the CMD of the SD interface 15 (S106).
The command (CMD55) for the SD card 12 is transmitted because it can be identified as the SD card 12 if there is a response to the command.

カードからの応答があった場合(S107のY)は、CPU141は、装着されたカードがSDカード12であると判断し、SDカード用の初期化を行う(S108)。すなわち、CPU141は、S104で供給した電力を、SDカードの規格にあった電力(電圧及び電流)に変更する。
そして、CPU141は、S105で供給した基本クロックをSDカード用の規格クロックに変更し(S109)、カード識別処理を終了する。
If there is a response from the card (Y in S107), the CPU 141 determines that the loaded card is the SD card 12, and performs initialization for the SD card (S108). That is, the CPU 141 changes the power supplied in S104 to power (voltage and current) that conforms to the SD card standard.
Then, the CPU 141 changes the basic clock supplied in S105 to an SD card standard clock (S109), and ends the card identification process.

一方、カードからの応答が無い場合(S107のN)、CPU141は、無応答カード登録部201において、無応答カード使用のフラグが立っているか否かを検査する(S110)。
無応答カード使用のフラグが立っている場合(S110のY)、CPU141は、無応答カード登録部201に登録されている無応答カードの種別を調べる(S111)。
On the other hand, when there is no response from the card (N in S107), the CPU 141 checks whether or not the no-response card use flag is set in the no-response card registration unit 201 (S110).
When the no-response card use flag is set (Y in S110), the CPU 141 checks the type of the no-response card registered in the no-response card registration unit 201 (S111).

この時、無応答カード登録部201に登録されているカードの種別が、「無応答カードA」である場合は、CPU141は、装着されたカードに対して無応答カードA用の初期化を行う(S112)。すなわち、CPU141は、S104で供給した電力を、無応答カードAの規格にあった電力(電圧及び電流)に変更する。そして、CPU141は、S105で供給した基本クロックを無応答カードA用の規格クロックに変更し(S113)、カード識別処理を終了する。   At this time, if the type of the card registered in the no-response card registration unit 201 is “no-response card A”, the CPU 141 initializes the attached card for the no-response card A. (S112). That is, the CPU 141 changes the power supplied in S104 to power (voltage and current) that conforms to the standard of the non-response card A. Then, the CPU 141 changes the basic clock supplied in S105 to a standard clock for the non-response card A (S113), and ends the card identification process.

一方、ステップS111において、無応答カード登録部201に登録されているカードの種別が、「無応答カードB」である場合は、CPU141は、装着されたカードに対して無応答カードB用の初期化を行う(S114)。すなわち、CPU141は、S104で供給した電力を、無応答カードBの規格にあった電力(電圧及び電流)に変更する。そして、CPU141は、S105で供給した基本クロックを無応答カードB用の規格クロックに変更し(S115)、カード識別処理を終了する。   On the other hand, if the card type registered in the no-response card registration unit 201 is “no-response card B” in step S111, the CPU 141 sets the initial value for the no-response card B for the attached card. (S114). That is, the CPU 141 changes the power supplied in S104 to power (voltage and current) that conforms to the standard of the non-response card B. Then, the CPU 141 changes the basic clock supplied in S105 to a standard clock for the non-response card B (S115), and ends the card identification process.

この処理によって、無応答カードであっても、確実に種別の識別が可能なため、その無応答カードに適したクロック周波数や電力を供給することができる。そのため、従来のように、無応答カードの種別を容易に識別できない場合と比較して無駄な消費電力を抑制できる効果がある。   With this process, even if the card is a non-response card, it is possible to reliably identify the type, so that a clock frequency and power suitable for the non-response card can be supplied. Therefore, there is an effect that wasteful power consumption can be suppressed as compared with the case where the type of the non-response card cannot be easily identified as in the prior art.

なお、S111において識別される無応答カードの種別が、「無応答カードA」と「無応答カードB」の場合のみを挙げているが、これには限らず、図6(B)の無応答カード種別選択画面30において選択可能な無応答カードであればよいことは言うまでもない。   In addition, although the case where the type of the no-response card identified in S111 is “no-response card A” or “no-response card B” is described, it is not limited to this, and the no-response card shown in FIG. Needless to say, any non-response card that can be selected on the card type selection screen 30 may be used.

これに対して、ステップS110において、無応答カード使用のフラグが立っていない場合は(S110のN)、SDカードスロット11に対応したカードではない(非対応カード)と判断し、電力とクロックの供給を停止し(S116)、処理を終了する。
通常、SDカードスロット11に対応したカードではない場合は、カードスロットに装着することができないので、非対応カードと判定される場合は少ないと考えられる。カード使用のフラグが立っていない理由として考えられるのは、故障したSDカードのため無応答になる場合や、無応答カードであるにもかかわらず、ユーザが使用の登録を怠った場合などである。
On the other hand, in step S110, when the flag of no response card use is not raised (N in S110), it is determined that the card is not a card corresponding to the SD card slot 11 (non-compliant card), and the power and clock Supply is stopped (S116), and the process is terminated.
Normally, if the card is not compatible with the SD card slot 11, it cannot be inserted into the card slot, so it is considered that there are few cases where it is determined that the card is not compatible. Possible reasons for the card usage flag not being set are when there is no response due to a faulty SD card, or when the user fails to register usage despite being a non-response card. .

これによって無応答カードと非対応カードとを識別することが可能となる。
無応答カードか非対応カードかの識別を行わず、S107において応答がないカードをすべて無応答カードとして扱う制御にした場合、たとえば故障したカードを接続されたときでも、電力やクロックを供給することになる。SDカードの供給電力は2.7V 200mAであるため、この電力が、故障カードが装着されている間無駄に消費されてしまうことになる。S116の処理によって、このような無駄な電力の消費を防ぐことができるという効果がある。
This makes it possible to distinguish between a non-response card and a non-compliant card.
If no response card is identified and no response is made in S107, all non-response cards are handled as non-response cards. For example, even when a failed card is connected, power and clock are supplied. become. Since the power supplied to the SD card is 2.7V 200 mA, this power is wasted while the failed card is attached. The process of S116 has an effect of preventing such unnecessary power consumption.

以上、発明を実施するための実施の形態について説明を行ったが、本発明は、上述した実施の形態に限定されるものではない。装置の構成、データの構成、処理の具体的な手順などを、本発明の主旨を損なわない範囲で変更することが可能である。
これ以外でも、SDホスト14が備える上述の各機能を任意に複数の装置に分散して設け、これらの装置に協働してその機能を実現させることができる。
As mentioned above, although embodiment for implementing invention was described, this invention is not limited to embodiment mentioned above. It is possible to change the configuration of the apparatus, the configuration of data, the specific procedure of processing, and the like without departing from the gist of the present invention.
In addition to this, the above-described functions of the SD host 14 can be arbitrarily distributed and provided in a plurality of devices, and these functions can be realized in cooperation with these devices.

上記の実施形態においては、接続部がSDカードスロットである場合を例として説明したが、他の方式のカードスロットでもよく、また、カードスロットにも限られない。
また、本発明の外部装置は、無応答カードに限らず、電子装置の接続部に接続され得る外部装置に、電子装置から送信される信号に対して応答するものと、応答しないもの(無応答装置)とが混在する場合にも適用できることはいうまでもない。
さらに、この発明は上述した実施形態に限定されるものではなく、特許請求の範囲に記載された技術思想に含まれる技術的事項の全てが対象となることは言うまでもない。
さらにまた、以上説明してきた実施形態及び変形例の構成は、相互に矛盾しない限り任意に組み合わせて実施可能であることは勿論である。
In the above embodiment, the case where the connection portion is an SD card slot has been described as an example. However, the card slot may be of another type, and is not limited to the card slot.
In addition, the external device of the present invention is not limited to a non-response card, but responds to a signal transmitted from the electronic device and does not respond to an external device that can be connected to a connection unit of the electronic device (no response) Needless to say, the present invention can also be applied to a case where the apparatus is mixed.
Further, the present invention is not limited to the above-described embodiments, and it goes without saying that all the technical matters included in the technical idea described in the scope of claims are targeted.
Furthermore, it goes without saying that the configurations of the embodiments and the modified examples described above can be implemented in any combination as long as they do not contradict each other.

10:電子装置、11:SDカードスロット、12:SDカード、13:無応答カード、14:SDホスト、15:SDインタフェース、141:CPU、142:ROM、143:RAM、144:通信I/F、145:HDD、146:UI部、201:無応答カード登録部、202:カード検出部、203:カード識別部、204:クロック供給部、205:電力供給部、206:コマンド送受信部   10: Electronic device, 11: SD card slot, 12: SD card, 13: No response card, 14: SD host, 15: SD interface, 141: CPU, 142: ROM, 143: RAM, 144: Communication I / F 145: HDD, 146: UI unit, 201: no-response card registration unit, 202: card detection unit, 203: card identification unit, 204: clock supply unit, 205: power supply unit, 206: command transmission / reception unit

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

Claims (6)

外部装置を接続可能な接続部を備える電子装置であって、
前記接続部に接続される外部装置が無応答装置であることを登録する登録手段と、
前記接続部に外部装置が接続されたことを検出する検出手段と、
前記検出手段が外部装置の接続を検出した場合に、該外部装置に対して電力を供給すると共に所定のコマンドを送信する送信手段と、
前記送信手段が送信したコマンドに対する応答を検出した場合に、前記接続された外部装置に対して、所定の規格に適合した信号出力を行う第1の出力手段と、
前記送信手段が送信したコマンドに対する応答を検出せず、かつ前記登録手段が無応答装置であることを登録していた場合は、前記接続された外部装置に対して、該無応答装置に適合した信号出力を行う第2の出力手段とを備えることを特徴とする電子装置。
An electronic device provided with a connection part to which an external device can be connected,
Registration means for registering that the external device connected to the connection unit is a non-response device;
Detecting means for detecting that an external device is connected to the connection unit;
A transmission means for supplying a power to the external apparatus and transmitting a predetermined command when the detection means detects a connection of the external apparatus;
A first output means for outputting a signal conforming to a predetermined standard to the connected external device when a response to the command transmitted by the transmission means is detected;
When the response to the command transmitted by the transmission unit is not detected and the registration unit has registered that it is a non-response device, the connected external device is adapted to the non-response device. An electronic apparatus comprising: second output means for outputting a signal.
請求項1に記載の電子装置であって、
前記送信手段が送信したコマンドに対する応答を検出せず、かつ前記登録手段が無応答装置であることを登録していなかった場合は、前記接続された外部装置に対する電力供給を停止する停止手段を備えることを特徴とする電子装置。
The electronic device according to claim 1,
When a response to the command transmitted by the transmission unit is not detected, and when the registration unit has not registered that it is a non-response device, a stop unit is provided to stop power supply to the connected external device. An electronic device characterized by that.
請求項1又は2に記載の電子装置であって、
前記登録手段は、前記接続部に接続される無応答装置の種別を登録可能であり、
前記第2の出力手段は、前記送信手段が送信したコマンドに対する応答を検出せず、かつ、前記登録手段が無応答装置であることを登録していた場合には、前記接続された外部装置に対して、前記登録手段が登録していた種別の無応答装置に適合した信号出力を行うことを特徴とする電子装置。
The electronic device according to claim 1 or 2,
The registration means can register the type of a non-response device connected to the connection unit,
The second output means does not detect a response to the command transmitted by the transmission means, and if the registration means has registered that it is a non-response apparatus, the second output means registers the connected external apparatus. On the other hand, an electronic device characterized in that it outputs a signal suitable for the type of non-response device registered by the registration means.
請求項1乃至3のいずれか一項に記載の電子装置であって、
前記送信手段は、前記接続部に接続された外部装置に対し、前記所定のコマンドに対して応答を返す外部装置及び前記無応答装置のいずれをも動作させることのできる電力を供給することを特徴とする電子装置。
An electronic device according to any one of claims 1 to 3,
The transmission unit supplies power that can operate both the external device that returns a response to the predetermined command and the non-response device to the external device connected to the connection unit. An electronic device.
請求項4に記載の電子装置であって、
前記送信手段は、前記接続部に接続された外部装置に対し、電力に加え、前記所定のコマンドに対して応答を返す外部装置及び前記無応答装置のいずれをも動作させることのできる動作クロックを供給することを特徴とする電子装置。
The electronic device according to claim 4,
The transmission means supplies an operation clock capable of operating both the external device that returns a response to the predetermined command and the non-response device in addition to power to the external device connected to the connection unit. An electronic device characterized by being supplied.
請求項1乃至5のいずれか一項に記載の電子装置であって、
前記接続部はSDカードスロットであり、
前記所定の規格はSDカードであることを特徴とする電子装置。
An electronic device according to any one of claims 1 to 5,
The connection is an SD card slot;
The electronic device according to claim 1, wherein the predetermined standard is an SD card.
JP2013191735A 2013-09-17 2013-09-17 Electronic equipment Expired - Fee Related JP6171770B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2013191735A JP6171770B2 (en) 2013-09-17 2013-09-17 Electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2013191735A JP6171770B2 (en) 2013-09-17 2013-09-17 Electronic equipment

Publications (2)

Publication Number Publication Date
JP2015060266A true JP2015060266A (en) 2015-03-30
JP6171770B2 JP6171770B2 (en) 2017-08-02

Family

ID=52817773

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2013191735A Expired - Fee Related JP6171770B2 (en) 2013-09-17 2013-09-17 Electronic equipment

Country Status (1)

Country Link
JP (1) JP6171770B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019056345A1 (en) * 2017-09-25 2019-03-28 深圳传音通讯有限公司 Method for detecting incomplete weld of sd card slot

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030140186A1 (en) * 2002-01-18 2003-07-24 Lai Chen Nan Detection method used in adaptor capable of inserting various kinds of memory cards
JP2003281477A (en) * 2002-03-25 2003-10-03 Toshiba Corp Electronic appliance, electronic card, and method for card identification
JP2007018194A (en) * 2005-07-06 2007-01-25 Matsushita Electric Ind Co Ltd Control method for information recording medium, information processing unit and information recording medium
JP2008077359A (en) * 2006-09-20 2008-04-03 Sony Computer Entertainment Inc Adapter device and data transmission system
JP2011192137A (en) * 2010-03-16 2011-09-29 Panasonic Corp Memory card control system, memory card control device and memory card control method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030140186A1 (en) * 2002-01-18 2003-07-24 Lai Chen Nan Detection method used in adaptor capable of inserting various kinds of memory cards
JP2003281477A (en) * 2002-03-25 2003-10-03 Toshiba Corp Electronic appliance, electronic card, and method for card identification
JP2007018194A (en) * 2005-07-06 2007-01-25 Matsushita Electric Ind Co Ltd Control method for information recording medium, information processing unit and information recording medium
JP2008077359A (en) * 2006-09-20 2008-04-03 Sony Computer Entertainment Inc Adapter device and data transmission system
JP2011192137A (en) * 2010-03-16 2011-09-29 Panasonic Corp Memory card control system, memory card control device and memory card control method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019056345A1 (en) * 2017-09-25 2019-03-28 深圳传音通讯有限公司 Method for detecting incomplete weld of sd card slot

Also Published As

Publication number Publication date
JP6171770B2 (en) 2017-08-02

Similar Documents

Publication Publication Date Title
US10185944B2 (en) POS peripherals controlling device, mobile host device, and control method thereof
US9059906B1 (en) Data communication interface
CN105468548B (en) Communication of serial peripheral interface
US7945711B2 (en) Appparatus and method for controlling power to USB device
US10970698B1 (en) Reader detection signal bypassing secure processor
EP2704017A2 (en) Interface arbitration for a wired tag
US9053248B2 (en) SRAM handshake
JP2015049907A (en) Mother board capable of hot swapping memory
EP3264226B1 (en) Pin control method and device
US9223740B2 (en) Detection method and apparatus for hot-swapping of SD card
US8990461B2 (en) On-The-Go (OTG) USB devices configuration method for identifying configuration of other connected devices by reacting to change in resistance value on a resistive line
US10691254B2 (en) Serial communication method and sensor controller
JP6171770B2 (en) Electronic equipment
US8897705B2 (en) Data transmitting system and data transmitting method
US20040243755A1 (en) USB apparatus having dual-function of host and hub, and control method thereof
US20130185470A1 (en) Detection method and apparatus for hot-swapping of sd card
US20150235059A1 (en) Method of transferring data, computer program product and tag
US10237819B2 (en) SSIC device and link control method for SSIC device
US11327601B2 (en) Serial communication method and sensor controller
JP6096497B2 (en) Communication program, information processing apparatus, communication system, and communication method
US9088304B2 (en) Interface deactivation for communication between electronic appliances
JP2007316946A (en) Information processor
JP2012027667A (en) Portable electronic device, ic card, and control method for portable electronic device
US20190041935A1 (en) Power transfer synchronization for information handling system and external device
JP5258219B2 (en) Memory card having a plurality of interfaces, reset control method thereof, and reset control system

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20160908

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20170530

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: 20170606

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20170619

R151 Written notification of patent or utility model registration

Ref document number: 6171770

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151

LAPS Cancellation because of no payment of annual fees