JP2004078880A - Communication protocol of multi-functional small memory card - Google Patents
Communication protocol of multi-functional small memory card Download PDFInfo
- Publication number
- JP2004078880A JP2004078880A JP2002340218A JP2002340218A JP2004078880A JP 2004078880 A JP2004078880 A JP 2004078880A JP 2002340218 A JP2002340218 A JP 2002340218A JP 2002340218 A JP2002340218 A JP 2002340218A JP 2004078880 A JP2004078880 A JP 2004078880A
- Authority
- JP
- Japan
- Prior art keywords
- data
- packet
- memory card
- communication protocol
- communication
- 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.)
- Pending
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06K—GRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
- G06K7/00—Methods or arrangements for sensing record carriers, e.g. for reading patterns
- G06K7/0008—General problems related to the reading of electronic memory record carriers, independent of its reading method, e.g. power transfer
Landscapes
- Engineering & Computer Science (AREA)
- Artificial Intelligence (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Information Transfer Systems (AREA)
- Communication Control (AREA)
Abstract
Description
【0001】
【発明の属する技術分野】
本発明は一種のメモリカードのインターフェースの通信プロトコルに関する。特に一種の小型メモリカードインターフェース及びUSBインターフェースを受信可能な通信プロトコルに係る。
【0002】
【従来の技術】
小型メモリカードは大量保存空間を具え、繰り返し読み出し書込みが可能な半導体チップを保存媒体にし、内部にマイクロコントローラを搭載し、半導体チップの読み出し書込みを制御し、応用小型メモリカードの電子応用装置インターフェースに接続し、その指令を受け対応する読み出し書込み作業等の用途を執行する。
半導体チップを採用する小型メモリカードはたい積が小さく、軽量で、読み出し書込み速度が速く、節電等の長所を具えるため、デジタル化された情報産業と情報家電産業に広く応用され、情報の保存と交換に用いられる。
現在市販されている小型メモリカードはコンパクトフラッシュ(登録商標)カード(以下、CFカード)、スマートメディアカード(以下、SMカード)、マルチメディアカード(以下、MMカード)、セキュアデジタルカード(以下、SDカード)、メモリースティックカード(以下、MSカード)等がある。該各種小型メモリカードは外形サイズ、機械構造、電気接触一、通信プロトコル、ソフト指令番号、制御プロセス等のがそれぞれ異なり、それぞれ優劣がある。
小型メモリカードは携帯電話、デジカメ、MP3、PDA等に広く利用されている。応用領域を広げるために、保存機能の他に、他の応用領域を開拓する製品も出現している。例えば、CFインターフェースのモデムカード、ネットカード等。MSインターフェースのデジカメカード、ブルートゥース通信カード。SDインターフェースのブルートゥース通信カード等。保存機能だけを具えるメモリカードにおいて、他の機能の応用をIOカードと一般にいう。
【0003】
上記各種メモリカードインターフェースは、各式携帯式デジタル装置に適用可能であるが、異なるものとの応用においては欠点がある。
CFカードにおいては、そのインターフェースは50組の接点が必要である。機構は挿入針、挿入孔の結合式で、電気インターフェースは8ビットと16ビットの併存の並列式データバスを採用し、26組信号のアドレスバス及び多数組各種異なる用途の制御信号線を具える。
CFインターフェースの欠点は、機構上に50組もの接続端子が必要な点である。数量は最多で、挿入孔結合式接続設計は挿入、退出に比較的力が要る。挿入孔と挿入針定位が不正確であれば、挿入針が歪み、偏移し損壊し易い。パラレルバスを採用するため、多数のカードを接続する時、電子応用装置はそれぞれが起動選択信号を提供する必要があり、多数のカードを通すことができない。書込み保護設計がないため、メモリ内容を確実に保護することができない。
【0004】
SMカードにおいては、そのインターフェースは22組の接点を必要とする。機構は弾力片と平面接触端子接触式である。別に二組の弾力片を探知メモリカードが挿入定位されたかに用い、及び書込み防止導電シールを貼る。
SMインターフェースの欠点は、機構上では22組の接続端子が必要で、別に定位と探知と書込み防止導電シールの弾力片を具える必要があるため、コストが高くなり、空間を占拠する。接続端子は前後に二列設置するため、挿入或いは退出時に、一列目の接触位置は先に二列目の接続端子に接続するため、挿入時の不安定現象を招く。電源接続信号VCCとGNDは二列接続端子間において、すべての接続位置を横断し、端子間はショートが容易に起きる等不安定である。シール粘着方式を利用しメモリカードの書込み防止の区別をするため、別に特殊な電気を通す書込み防止シールを必要都市、しかも、書込み防止機能はメモリカードの内容を直接保護するものではないため、電子応用装置の探知識別書込み防止状態に頼る必要がある。実体アドレス方式を採用するため、一般システム採用のリニアロジックアドレス方式を直接支援することができず、電子応用装置のコストと開発の困難度を増加する。実体アドレス方式を採用するため、毎回保存媒体の内容を増加する時、半導体チップ規格の格式に応じて、新規格を修正し、用量が大きい書込み読み出し可能半導体チップを支援する必要がある。
【0005】
MMカードにおいては、そのインターフェースは7組の接点を必要とし、機構は弾力片と平面接触端子の接触式を採用する。別に一組の弾力片をメモリカードが挿入定位されたか否かの探知に用いる。
MMインターフェースの欠点は、シリアル伝送モードを採用するため、格パルス周期が1ビットしか伝送できないため、伝送率が低い。書込み防止保護ソフトモードを採用するため、特殊なソフトの制御を必要とし、書込み防止機機能の実用性が低い。
【0006】
SDカードにおいては、そのインターフェースは9組の接点を必要とする。機構は弾力片と平面接触端子接触式を採用する。別に二組の弾力片を必要とし、メモリカードの挿入定位を探知し、書込み防止保護スライドブロックの位置を探知する。
SDインターフェースの欠点は、書込み防止保護スライドブロックは電子応用装置によりその位置の探知と書込み防止機能を支援する。
【0007】
MSカードにおいては、そのインターフェースは10組の接点を必要とし、機構は弾力片と平面接触端子接触式を採用する。接続インターフェースは挿入カード探知信号を具え、しかもメモリカードそのものは書込み防止スイッチを具える。メモリカードそのものが書込み防止を支援可能である点はその長所である。
MSインターフェースの欠点は、パラレル伝送モードを採用するため、一階のパルス周期につき1ビットの伝送しかできず、伝送率が低い。実体アドレス方式を採用するため、一般システム採用のリニアロジックアドレス方式を直接支援することができず、電子応用装置のコストと開発の困難度を増加する。実体アドレス方式を採用するため、毎回保存媒体の内容を増加する時、半導体チップ規格の格式に応じて、新規格を修正し、用量が大きい書込み読み出し可能半導体チップを支援する必要がある。
上記のように多くのメモリカードの標準がそれぞれ異なるために、それぞれ優劣がある。しかも、PCはUSBインターフェース、PCMCIAインターフェース、IDEインターフェースのメモリカード電子応用装置を拡充、配備する必要がある。さもなくば、メモリカードとデジタル情報の交換を行なうことはできない。
【0008】
【発明が解決しようとする課題】
上記公知構造の欠点を解決するため、本発明は多機能小型メモリカードの通信プロトコルの提供を課題とする。
それは、たい積が一層小さく、速度が一層速く、携帯式デジタル製品に一層適したものを開発する。
また、それは別に電子応用装置を拡充する必要が無く、簡単にPCシステムに接続することができる。
さらにそれは、IO応用拡充性を兼ね備える。
【0009】
【課題を解決するための手段】
上記課題を解決するため、本発明は下記の多機能小型メモリカードの通信プロトコルを提供する。
主に多機能小型メモリカードは同時に4ピン及び8ピン設計を具え、伝統的なUSBインターフェースを支援可能である。そのため、本発明中で定義する通信プロトコルは、PC設備及び多種電子応用装置に適用可能である。
該通信プロトコルは主に半双工、4ビットシリアル方式を採用し、CLK信号を基準とし、各1パルスは4ビットの情報D0、D1、D2、D3を伝送可能で、インターフェース伝送方式はパケット単位を用いる。しかも、通信プロトコルはメモリカード内に模擬の通信エンドポイントを設定し、情報伝送のソース或いは目標とする。該データ伝送パケットは開始ビット、パケット識別番号、通信エンドポイント、データ長さ、ペイロードデータ、パケット状態番号、データ格式、終了ビットを含む。
また、本発明は多機能小型メモリカード挿入槽を提供し、該挿入槽は4ピン及び8ピンの設計を具える。4ピンの設計は基本的なUSBインターフェースに用い、8ピンの設計はSFMIインターフェースに用いる。8ピンのSFMIインターフェースは4挿入ピンを有し、USBインターフェースの4ピンと同様で、別に4挿入ピンは該USBインターフェースの4ピン間に分布する。該挿入槽はプラス挿入槽及びマイナス挿入槽である。
また本発明は格式器を提供する。該格式器はデータを多機能小型メモリカード通信プロトコル(SFMI)に転換し、その内データはメモリにより出力後、該格式器は多機能小型メモリカード通信プロトコルに符合する通信データパケットにし、該データパケットは開始ビット、パケット識別番号、通信エンドポイント、データ長さ、ペイロードデータ、パケット状態番号、データ格式、終了ビットを含む。
また本発明は格式転換器を提供する。該格式転換器はUSBデータパケットを多機能小型メモリ通信プロトコルに転換し、USBデータパケットを解放し、得られたデータ格式を多機能小型メモリカード通信プロトコルの通信データパケットに転換し、該多機能小型メモリカード通信プロトコルのデータパケットは開始ビット、パケット識別番号、通信エンドポイント、データ長さ、ペイロードデータ、パケット状態番号、データ格式、終了ビットを含む。
すなわち本発明は下記の特徴を有する。
1.本発明の多機能小型メモリカードの通信プロトコルは、主に半双工、4ビットシリアル方式を採用し、CLK信号を基準とし、各1パルスは4ビットの情報D0、D1、D2、D3を伝送可能で、インターフェース伝送方式はパケット単位を用い、しかも、通信プロトコルはメモリカード内に模擬の通信エンドポイントを設定し、情報伝送のソース或いは目標とし、該データ伝送パケットは開始ビット、パケット識別番号、通信エンドポイント、データ長さ、ペイロードデータ、パケット状態番号、データ格式、終了ビットを含むことを特徴とする。
2.本発明の多機能小型メモリカードの通信プロトコルは、前記データパケットの順序は開始ビット、パケット識別番号、通信エンドポイント、データ長さ、ペイロードデータ、パケット状態番号、データ格式、終了ビットであることを特徴とする。
3.本発明の多機能小型メモリカードの通信プロトコルは、前記データパケットの最前端はパルス周期中において4ビットを0とする開始ビットを生じることを特徴とする。
4.本発明の多機能小型メモリカードの通信プロトコルは、前記データパケットの最前端はパルス周期中において4ビットを0とする開始ビットを生じることを特徴とする。
5.本発明の前記データパケットの最末端は二個のパルス周期を付加し、しかもD0〜D3が1である終了ビットであることを特徴とする請求項1記載の多機能小型メモリカードの通信プロトコル。
6.前記データパケットはパケット識別番号(PID)から開始し、識別番号の差異に基づき、異なる場合に応用し、各組のデータパケットはパケット識別番号、ペイロードデータ、パケット状態番号を含み、
該パケット識別番号はパケット伝送データの方向、伝送エンドポイントアドレス、データ長さを表し、
該ペイロードデータは一組のCRCデータエラー番号探知番号を含み、
該パケット状態番号はペイロードデータの片方を受信し、受信状態確認データが正確に受信されたかどうかを返送することを特徴とする請求項1記載の多機能小型メモリカードの通信プロトコル。
7.前記パケット識別番号は合計4ビットで、通信エラーを防ぎ、反対方向において4ビットを付加し、合計8ビットの昇方式排列を形成し、二回に分け二組のパルス中において伝送を完成することを特徴とする請求項1記載の多機能小型メモリカードの通信プロトコル。
8.前記パケット識別番号は電子応用装置がデータ出力の伝送を行なうことを示すことを特徴とする請求項6記載の多機能小型メモリカードの通信プロトコル。9.前記パケット識別番号は電子応用装置がデータ入力の伝送を行なうことを示すことを特徴とする請求項6記載の多機能小型メモリカードの通信プロトコル。10.前記パケット識別番号は電子応用装置が制御エンドポイントに対して関連データの設置、或いは取得を行なうことを示すことを特徴とする請求項6記載の多機能小型メモリカードの通信プロトコル。
11.前記パケット識別番号は情報受信エンドがデータのパケット受信を確認することを示すことを特徴とする請求項6記載の多機能小型メモリカードの通信プロトコル。
12.前記パケット識別番号は情報受信エンドが一時的に情報を受信できない、或いは出力エンドが一時的に情報を発信できないことを示すことを特徴とする請求項6記載の多機能小型メモリカードの通信プロトコル。
13.前記パケット識別番号は通信エンドが作業を停止、或いはコントロールポイントが該コントロール制令を支援しないことを示すことを特徴とする請求項6記載の多機能小型メモリカードの通信プロトコル。
14.前記伝送表示パケットは表示通信エンドポイントにより、後続データパケット或いは状態パケット対応の通信エンドポイントを指定し、通信エンドポイントは伝送表示パケット中において、4ビットで、PIDの後ろに付き、一個パルス周期において伝送を完成することを特徴とする請求項6記載の多機能小型メモリカードの通信プロトコル。
15.前記対応する個別通信エンドポイントは、小型メモリカード或いはIOカード中において、特定容量サイズのデータ緩衝区を具え、電子応用装置と小型メモリカード間の通信パケットのペイロードデータの一次保存に用いることを特徴とする請求項6記載の多機能小型メモリカードの通信プロトコル。
16.前記通信エンドポイントは制御エンドポイントを含み、小型メモリカードとIOカードは一組の制御ポイントを具える必要があり、該制御エンドポイントの機能は電子応用装置が小型メモリカードを起動する時に許容し、小型メモリカードの識別番号、機能形式、支援する通信エンドポイントの数量、各通信エンドポイントアドレス及び通信エンドポイント形式等の関連データを取得することを特徴とする請求項6記載の多機能小型メモリカードの通信プロトコル。
17.前記通信エンドポイントはデータ入力エンドポイントを含み、電子応用装置において小型メモリカード或いはIOカードより入力する大量データの許容に用いることを特徴とする請求項6記載の多機能小型メモリカードの通信プロトコル。
18.前記通信エンドポイントはデータ出力エンドポイントを含み、電子応用装置において大量データを小型メモリカードに出力の許容に用いることを特徴とする請求項6記載の多機能小型メモリカードの通信プロトコル。
19.前記通信エンドポイントは状態中断入力エンドポイントを含み、小型メモリカード或いはIOカードが設定要求電子応用装置が設定する間隔周期、重複小型メモリカード或いはIOカードより入力する状態中断入力データの許容に用いることを特徴とする請求項6記載の多機能小型メモリカードの通信プロトコル。
20.前記パケットが実際ペイロードするデータは、通信エンドポイントに伝送し、各1ビット組はそれぞれ二個パルス周期内において伝送を完了し、伝送方向は電子応用装置によりパケット識別番号中において指定することを特徴とする請求項1記載の多機能小型メモリカードの通信プロトコル。
21.前記ペイロードデータには最後にエラー検査番号を付加することを特徴とする請求項6記載の多機能小型メモリカードの通信プロトコル。
22.前記エラー検査番号は16個パルス周期であることを特徴とする請求項6記載の多機能小型メモリカードの通信プロトコル。前記エラー検査番号の演算方法は2で割る除法で、さらに多項目の2で割る除法を含むことを特徴とする
23.前記受信データの一方は、ペイロードデータ受信完了後、一致するか否かを検査確認し、受信結果に基づき受信データが正確であるか否かを確認し、正確に受信されたなら、受信エラー無し(ACK)信号を戻すことを特徴とする請求項1記載の多機能小型メモリカードの通信プロトコル。
24.前記受信データの一方が一時的に受信が完成されないなら、或いは検査番号はデータのエラーを示したなら、受信問題有り(NAK)信号を戻し再送信を要求することを特徴とする請求項1記載の多機能小型メモリカードの通信プロトコル。
25.前記受信データの一方がメモリカード内部でエラーが発生する、或いは執行指令結果がエラーを発生するなら、指令エラー(STALL)信号を戻すことを特徴とする請求項1記載の多機能小型メモリカードの通信プロトコル。
26.前記電子応用装置は制御伝送モードを通して、予め設定した伝送エンドポイントより取得と多機能メモリカード関連データ、或いはその関連機能を設定することを特徴とする請求項1記載の多機能小型メモリカードの通信プロトコル。
27.前記制御伝送モードはセットアップ段階、データ段階、ステータス段階に区分されることを特徴とする請求項37記載の多機能小型メモリカードの通信プロトコル。
28.主に格式器はデータを多機能小型メモリカード通信プロトコル(SDM)に転換し、その内データはメモリにより出力後、該格式器は多機能小型メモリカード通信プロトコルに符合する通信データパケットにし、該データパケットは開始ビット、パケット識別番号、通信エンドポイント、データ長さ、ペイロードデータ、パケット状態番号、データ格式、終了ビットを含むことを特徴とする多機能小型メモリカードの通信プロトコル。
29.前記データパケットの順序は順番に開始ビットから、パケット識別番号、通信エンドポイント、データ長さ、ペイロードデータ、パケット状態番号、データ格式、終了ビットであることを特徴とする請求項28記載の多機能小型メモリカードの通信プロトコル。
30.前記通信パケットはパケット識別番号(PID)から初め、識別番号の種類の差異に基づき、異なる場合に応用し、各組のデータパケットはパケット識別番号、ペイロードデータを含み、
該パケット識別番号はパケット伝送データの方向、伝送エンドポイントアドレス、データ長さを示し、
該ペイロードデータは一組のCRCデータエラー探知番号、パケット状態番号を含み、ペイロードデータの一方を受信し、受信状態を伝送し、データが正確に受信されたか否かを伝送することを特徴とする請求項28記載の多機能小型メモリカードの通信プロトコル。
31.格式転換器はUSBデータパケットを多機能小型メモリ通信プロトコルに転換し、USBデータパケットを解放し、得られたデータ格式を多機能小型メモリカード通信プロトコルの通信データパケットに転換し、該多機能小型メモリカード通信プロトコルのデータパケットは開始ビット、パケット識別番号、通信エンドポイント、データ長さ、ペイロードデータ、パケット状態番号、データ格式、終了ビットを含むことを特徴とする多機能小型メモリカードの通信プロトコル。
32.前記格式転換器は、データパケットの順序は順番に開始ビット、パケット識別番号、通信エンドポイント、データ長さ、ペイロードデータ、パケット状態番号、データ格式、終了ビットであることを特徴とする請求項31記載の多機能小型メモリカードの通信プロトコル。
33.前記通信パケットはパケット識別番号(PID)から初め、識別番号の種類の差異に基づき、異なる場合に応用し、各組のデータパケットはパケット識別番号、ペイロードデータを含み、
該パケット識別番号はパケット伝送データの方向、伝送エンドポイントアドレス、データ長さを示し、
該ペイロードデータは一組のCRCデータエラー探知番号、パケット状態番号を含み、ペイロードデータの一方を受信し、受信状態を伝送し、データが正確に受信されたか否かを伝送することを特徴とする請求項31記載の多機能小型メモリカードの通信プロトコル。
【0010】
【発明の実施の形態】
本発明の多機能小型メモリカードは主に二種に区分される。一種はデジタル情報保存機能を主とする。もう一種は他のIO機能の支援を主とする。二種の機能は共に以下のものを具える。1、多機能小型メモリカードインターフェースのメインコントローラ220を支援し、デジタル情報保存機能を提供する。該メインコントローラ220別に繰り返し書込み読み出し可能なフラッシュメモリの制御インターフェースを具える必要がある。IO機能の提供は、該メインコントローラ220は別にIO機能を支援可能なも機能のモジュールの制御インターフェースを具える。2、デジタル情報保存機能を提供するため、大容量の重複書込み読み出しフラッシュメモリ保存モジュールを具え、デジタル情報の保存に用いる。IO機能提供については、IO機能を支援するIO機能モジュールを具えること。
【0011】
図1が示すように、本発明多機能小型メモリカード200はメモリカードI/O機能モジュール210、メモリカードインターフェースのメインコントローラ220、メモリ230を含む。PCB上において装置を整合後、PCB上において多機能小型メモリカード端子を提供し、外部に露出し、電子応用装置100の接続に用いる。最後に、既に電気機能の完成した回路基板において、プラスチック射出成型のケースを加え、多機能メモリカード或いはIOカードの組立てを完成する。該多機能メモリカードと接続する電子応用装置100は装置モジュール110、フォーマットアダプタ120、装置I/O130を含む。
該メモリカードI/O機能モジュール210はメモリカードのデータ入力及び出力の機能モジュール及びそれが含む連結端子及び関連する回路構造である。本発明の多機能小型メモリカードは同時にUSBインターフェース及び本発明定義のSFMIインターフェースを支援可能である。その内、該端子は4ピン及び8ピン設計である。4ピンの設計は基本のUSBインターフェースに用い、Vccピンは接続する装置エンドにより、直流電源に本発明の多機能小型メモリカードのピンを提供する。こうして、多機能小型メモリカードに対してGND(アースピン)を与え、本発明の設計においてアース保護を提供し、参考電位に用いる。別の二本のピンはそれぞれD+及びD−ピンで、データ伝送ピンである。
【0012】
本発明の多機能小型メモリカードインターフェースは8ピン設計で、4ビット双方向指令/データ/状態バス(D0〜D3)、パルス同時信号(CLK)、システムインターフェース及びメモリカード挿入探知信号(CD)、及び電源ピン(VCC)とアースピン(DND)の合計8組接点により構成する。書込み防止保護機能は多機能小型メモリカード内部搭載の書込み防止スイッチにより切り替え選択し、インターフェース通信により該電子応用装置100に通知する。該VccはDC電源の接点で、DC電流を手機能小型メモリカードに提供し、該多機能小型メモリカードに与える。
GNDはアース接点で、接点保護及び参考電位提供に用いる。
CLKは同時パルス信号で、出力及び入力データに対して同時パルスを提供し、データ信号のシーケンスを再検し、信号を対称するために用いる。BC_CDはシステムインターフェース及びメモリカード挿入を探知する信号である。入力及び出力データを探知し、USBインターフェース信号、或いはSFMIインターフェース信号に用る。D0は双方向指令/データ/状態バス信号bit0で、USBモード執行中において、D−信号線である。D1は双方向指令/データ/状態バス信号bit1で、USBモード執行中において、D+信号線である。D2は双方向指令/データ/状態バス信号bit2で、USBモード執行中においては、この信号線は存在しない。D3は双方向指令/データ/状態バス信号bit3で、USBモード執行中においては、この信号線は存在しない。
上記説明により本発明のSFMIインターフェースと基本上のUSBインターフェース共用4接点、即ちVcc、GND D−(D0)及びD+(D1)を理解することができる。また、本発明はCLK,BD_CD,D2及びD3の4接点を含むため、挿入接続構造において(挿入端子及び挿入槽を含む)の設計である。元のUSBインターフェースの4接点間において、別に4接点を設置する。こうして、本発明SFMIインターフェースの挿入接続構造はUSBインターフェースと挿入接続し、構造は共用し、別に異なる挿入接続構造を配置する必要はない。
【0013】
本インターフェースの別の特徴は、4ビットの双方向バス中において、D0及びD1二組の信号線は、該電子応用装置100においてUSBインターフェースを採用しメモリカードを接続する時、USBインターフェースの作動モードに変え、USBインターフェースが必要とするD+とD−信号線に変える。さらに、標準のUSBインターフェースの通信モードを支援し、該電子応用装置100を別に付け加える必要なく、PCに設置可能で或いはUSBシステムインターフェースのデジタル装置を支援可能である。
また、本発明は多機能小型メモリカード挿入槽を提供し、該挿入槽は4ピン及び8ピンの設計を具える。4ピンの設計は基本的なUSBインターフェースに用い、8ピンの設計はSFMIインターフェースに用いる。8ピンのSFMIインターフェースは4挿入ピンを有し、USBインターフェースの4ピンと同様で、別に4挿入ピンは該USBインターフェースの4ピン間に分布する。該挿入槽はプラス挿入槽及びマイナス挿入槽である。
【0014】
図3が示すように、本発明のメインコントローラ220はI/Oコントローラ221、メモリカードコントローラ222、格式器223、解格式器224を含む。該I/Oコントローラ221は該メモリカードI/O機能モジュール210を制御し、該メモリカードI/O機能モジュール210の入力モード操作或いは出力モード操作、或いはSFMIインターフェース或いはUSBインターフェースモード操作等を決定する。該メモリカードコントローラ222は該メモリ230、該格式器223、該解格式器224の制御に用い、USBインターフェース信号及びSFMIインターフェース信号の格式転換を行い、該メモリカードI/O機能モジュール210の操作モードに対応する。該格式器223、該解格式器224の作動に関しては下記に説明する。
【0015】
システムインターフェースとメモリカード挿入設置端子信号:
メモリカード挿入設置探知信号は、メモリカード内部において制御チップの多機能出入力制御信号に接続する。多機能小型メモリカードインターフェースの電子応用装置100エンドにおいて電気抵抗を通して電源に接続する。USBを支援するシステムエンドのインターフェースにおいてこの信号に接続しない。こうして、多機能メモリカードはこの信号により、該電子応用装置100が採用する視して無インターフェースを探知する。該電子応用装置100もまたこの信号を利用し小型メモリカードが挿入定位されているか否かを探知する。
該メモリカードI/O機能モジュール210のインターフェースが探知する回路は電源310、BD入力探知エンド320、CD出力探知エンド330、第一電気抵抗340、第二電気抵抗350、第一ダイオード360、第二ダイオード370を含む。
該メモリカードI/O機能モジュール210の機能は探知システムインターフェース及びメモリカード挿入探知信号(BD_CD)の出現するか否かにより挿入端がUSBインターフェースかSFMIインターフェースであるかを決定する。
【0016】
小型メモリカードは小型メモリカードインターフェースを支援する電子応用装置100に挿入設置する。該電子応用装置100は小型メモリカードが挿入設置されたか否かにかかわらず、電源を供給を続ける。小型メモリカードの起動時、先ずCD信号を高抵抗状態に維持し、BD_CD信号探知検査動作への影響を防ぐ。
次に、BD_CD信号の状態を検査し、BD_CD信号の状態が高電位であるなら、システムエンドが小型メモリカードインターフェースを支援することを表し、小型メモリカードインターフェースの作動モードに入る。続いて、出力CD信号を低電位に駆動し、該電子応用装置100の小型メモリカードが既に挿入設置定位されたことを通知する。
反対に、BD_CD信号の状態が低電位であるなら、システムエンドはBD_CD信号を電気抵抗を通さず電源に接続していないで、USBインターフェースを支援することを表し、USBインターフェースの作動モードに入る。
【0017】
図4、5が示すように、Vcc接点は電源310に接続し、システムインターフェース及びメモリカードは探知信号BD_CDに挿入設置し、順番に接続した第一ダイオード360を通してBD入力探知エンド320に接続する。しかも、反対側が連結する第二ダイオード370を通して該CD出力探知エンドに連結する。システムインターフェース及びメモリカード挿入設置信号BD_CDは、第一電気抵抗によりアースエンドGNDに連結する。該Vccとシステムインターフェース及びメモリカード挿入設置信号の間は該第一電気抵抗に連結する。図中の第一電気抵抗は10Kオームでかつ第二電気抵抗は100Kオームである。本発明の実施例では、その適当な数値もまた本発明中において応用可能である。該第一電気抵抗及び第二電気抵抗の機能は、BD_CD及びVccを昇圧し、必要な回路動作を提供する。
【0018】
USBインターフェースが該多機能小型メモリカードに挿入する時、図4が示すように、該第一ダイオード360が通電し、BD入力端320が通電する。このため、挿入されたインターフェースがSFMIインターフェースであることが分かる。反対にシステムインターフェース及びメモリカード挿入設置探知信号BD_CDが入力されない時、該第一ダイオード360は通電せず、入力された信号はUSBインターフェース信号であることが分かる。
反対に出力モードでは、出力された信号がSFMIインターフェース信号である時、第二ダイオード370が通電し、信号がSFMIインターフェース信号で、反対のUSBインターフェース信号であると知らせる。多機能小型メモリカードが挿入設置されたインターフェースがSFMIインターフェースであると探知すると、続いてBD_CD信号は出力モードに転換し、低電位を出力し、カードリーダに該カードが既に挿入設置定位されたと通知する。
【0019】
多機能小型メモリカード通信プロトコルの説明:
半双工、4ビットシリアル方式を採用し、CLK信号を基準とし、各1パルスは4ビットの情報を伝送可能である。データ伝送方式は電子応用装置により制御し、下された伝送指令及び伝送長度後、データ段階伝送長度を決定する。本インターフェースの応用性を向上させ及び全体システム設計を簡単にするため、インターフェース伝送はパケット単位を用いる。しかも、通信プロトコルはメモリカード内に模擬の通信エンドポイントを設定し、情報伝送のソース或いは目標とする。
「多機能小型メモリカードインターフェース」を支援するすべてのメモリカード或いはIOカードは、すべて少なくとも一組の通信エンドポイントを支援し、「制御エンドポイント」と呼ぶ。そのエンドポイントアドレスは0である。電子応用装置100はこの制御エンドポイントを通してメモリカード或いはIOカードの詳細な情報を取得し、その機能及び他の通信エンドポイントの設定を知る。そして、適当な設置を行なった後、その機能を起動し、データの伝送を行なう。
【0020】
(1)開始ビット/終了ビット
電子応用装置100とメモリカードはデータ伝送を起動する時、すべてデータパケットの最前端において一個のパルス周期D0〜D3を開始ビットとする必要がある。データパケットの最末端において二個のパルス周期D0〜D3を付加し、すべて1の終了ビットとする。
(2)パケット識別番号
図6が示すように、通信パケットはパケット識別番号から開始し、識別番号の種類の差異に応じて、異なる場合に応用する。各一組のデータパケットは:1.パケット識別番号を含み、パケット伝送データの方向、伝送エンドポイントのアドレス及びデータの長さを表す。2.ペイロードデータは一組のCRCデータエラー番号探知番号を含む。3.パケット状態番号はペイロードデータの片方を受信し、受信状態確認データが正確に受信されたかどうかを返送する。パケット識別番号は0001は、電子応用装置100がデータ出力伝送を行なっていることを表す。パケット識別番号は1001は、電子応用装置100がデータ入力伝送を行なっていることを表す。パケット識別番号は1101は電子応用装置がコントロールエンドに対して関連情報の設置或いは取得を行なっていることを示す。パケット識別番号は0010は情報受信エンドがデータのパケット受信を確認する。パケット識別番号は1010は、情報受信エンドが一時的に情報を受信できない、或いは出力エンドが一時的に情報を発信できない。パケット識別番号は1110は、通信エンドが作業を停止、或いはコントロールポイントが該コントロール制令を支援しないことを表す。
【0021】
PID識別番号は合計4ビットで、通信エラーを防ぎ、反対方向において4ビットを付加し、合計8ビットの昇方式排列を形成する。二回に分け二組のパルス中において伝送を完成する。図7に示すように、受信エンドは正確に完成されたPID及びPID’を受信し、しかもPID=(PID’)即ち受信したPIDがエラーでないかを確認する。
(3)通信エンドポイント
通信エンドポイントは小型メモリカードインターフェースの小型メモリカード或いはIOカードと電子応用装置を支援しデータ伝送の基本単位を行なう。対応する個別通信エンドポイントは、小型メモリカード或いはIOカード中において、特定容量サイズのデータ緩衝区を具え、電子応用装置と小型メモリカード間の通信パケットのペイロードデータの一次保存に用いる。
小型メモリカードインターフェースを支援する小型メモリカード、或いはIOカードは、最高で16組の通信エンドポイントを支援可能である。それぞれ通信パケット中の通信エンドポイントアドレスによりパケット伝送の対象を指定する。
小型メモリカードインターフェースを支援する型メモリカード、或いはIOカードは、最少で1組の通信エンドポイントを具える。そのアドレスは0に設定する。電子応用装置は小型メモリカードインターフェースを通して小型メモリカードの挿入後を探知し、通信エンドポイント0を通して、小型メモリカードの識別番号、機能形式、支援する通信エンドポイントの数量、各通信エンドポイントアドレス及び通信エンドポイント形式等の関連データを取得する。
【0022】
通信エンドポイントは下記の四種に区分される。それぞれ電子応用装置と小型メモリカード或いはIOカード間において行なう異なる形態のデータの伝送に適用する。
制御エンドポイント−小型メモリカードとIOカードは、一組のエンドポイントアドレス0の制御ポイントを具える必要がある。制御エンドポイントの機能は電子応用装置が小型メモリカードを起動する時に許容し、小型メモリカードの識別番号、機能形式、支援する通信エンドポイントの数量、各通信エンドポイントアドレス及び通信エンドポイント形式等の関連データを取得する。
データ入力エンドポイント−電子応用装置において小型メモリカード或いはIOカードより入力する大量データの許容に用いる。
データ出力エンドポイント−電子応用装置において大量データを小型メモリカードに出力の許容に用いる。
状態中断入力エンドポイント−小型メモリカード或いはIOカードが設定要求電子応用装置が設定する間隔周期、重複小型メモリカード或いはIOカードより入力する状態中断入力データの許容に用いる。
図8が示すように、伝送表示パケットは表示通信エンドポイントにより、後続データパケット或いは状態パケット対応の通信エンドポイントを指定する。通信エンドポイントは伝送表示パケット中において、4ビットで、PIDの後ろに付き、一個パルス周期において伝送を完成する。
【0023】
(4)データ長さ
図9が示すように、ENDP後、3個パルス周期内において12個ビットの代表データ長さデータを伝送する。データは一個のBYTEを単位とする。0×000は4096個BYTEを表す。最小値は0×001は1個BYTEを表す。
(5)ペイロードデータ
パケットが実際ペイロードするデータ(PDAT)は、通信エンドポイントの情報に伝送する。データはペイロードデータの長さを設定する。伝送時に、各1ビット組はそれぞれ二個パルス周期内において伝送を完了する。伝送方向は電子応用装置によりパケット識別番号中において指定し、図10が示すように、ペイロードデータ最後に付加する16個パルス周期のCRC16エラー検査番号。その内CRC16の演算方法は2で割る除法で、さらにG(X)=X16+X15+X12+1形式の多項目式を具え、2で割る除法である。データ伝送順序は図11が示す。
【0024】
(6)パケット状態番号
受信データの一方は、ペイロードデータ受信完了後、一致するか否かを検査確認する。そして、受信結果に基づき受信データが正確であるか否かを確認する。正確に受信されたなら、ACKに戻り、一時的に受信が完成されないなら、或いは検査番号はデータのエラーを示したなら、NAKに戻り再送信を要求する。もし、メモリカード内部でエラーが発生する、或いは執行指令結果がエラーを発生するなら、STALLに戻る。図12が示す通り。
(7)データ格式
すべての通信パケットは電子応用装置(システムエンド)により伝送を起動され、データパケットの順序は順番に開始ビットから、パケット識別番号、通信エンドポイント、データ長さ、ペイロードデータ、パケット状態番号、データ格式、終了ビット。システムエンドによりデータ伝送を起動し、パケット識別番号を生じ、通信エンドポイント及びデータ長さを指定する。
もし、パケットがINパケットに属するなら、装置エンドは上記データを受信後、もしそれに従い必要なデータを生じない場合には、装置状態番号NAKに戻る。システムエンドは続いて後続伝送を中止する。続いて再びデータ伝送を起動することもできる。再び、データパケットの取得を試みることもできる。もし、装置エンドが既にすべてのデータに戻ったなら、装置エンドは開始ビットを生じ、続いて装置内部通信エンドポイント内に〆るデータに戻ることを開始する。システムエンドが要求するデータ長さの満足を待って、続いて16ビットのCRC検査番号を付加する。システムエンドが検査番号を受信後、エラーがないことを検査確認し、ACKに戻る。データにエラーがあれば、NAKに戻り、サイドパケットを起動し、正確なデータを取得する。
もし、パケットがアウト或いはセットアップパケットに属するなら、システムエンドはパケット識別番号、通信エンドポイントアドレス、データ長さを完成後、入力されたと見られるデータの入力を開始し、システムエンドが入力したデータ長さを要求後、16ビットのCRC検査番号を付加する。装置エンドが検査番号を受信後、検査を経てエラーがないことが確認されると、ACKに戻る。もし、データにエラーがあれば、NAKに戻り、システムエンドメインコントローラによりパケットを再起動するか否かを決定し、正確なデータを取得する。
【0025】
(8)制御伝送モード
電子応用装置は制御伝送モードを通して、予め設定した伝送エンドポイント0より取得と多機能メモリカード関連データ、或いはその関連機能を設定する。制御伝送モードはセットアップ段階、データ段階、ステータス段階に区分され、その格式は以下の通り。
セットアップ段階、システムエンドはセットアップパケットを送出し、セットアップパケット識別番号、通信エンドポイントアドレスは0、データ長さは8ビット。続いて、システム装置により8ビット組のセットアップ指令番号と参数と2ビット組CRC16を送出し、最後に装置エンドにより、状態確認パケットに戻り、受信が正常であるか否かを確認する。
8ビット組の指令と参数中において、第一ビット組から、それぞれbmRequestType、bRequest、wValue、wIndex、wLength等を代表する定義及び用途はUSB標準を参照されたし。その内、各参数の意義は表1の制御伝送データ格式表を参照されたし。
【0026】
標準指令番号以外の、装置タイプ専属指令とメーカー専属特殊指令は個別装置の応用に応じて、或いはメーカーが独自にこれを制定する。小型メモリカードを支援する標準インターフェースの小型メモリカード、或いはIOカードはすべて標準指令番号を支援する必要がある。標準指令番号の定義は下表を参照されたし。
【0027】
データ段階において、bRequest番号及びwLengthに応じて、後続データ段階の伝送方向及び長さを決定する。システムエンドにより一般データ伝送作業を起動し、伝送長さはwLengthにより設定する。
状態段階においては、データ段階の完成後、データ段階の方向に応じて、受信データの一方向伝送状態番号によりデータ伝送結果が正確であるか否かを確認する。
(9)多機能小型メモリカードインターフェースの応用
多機能小型メモリカードインターフェースは異なる用途の応用に適用可能で、前述は実体層の定義について述べたのみで、その応用領域を制限するものではない。補充制定適用の指令集と通信プロトコルは、保存装置、通信装置、或いは他の適用する応用領域に応用可能である。
【0028】
【発明の効果】
上記のように、本発明は目的、手段、効果とも、公知の技術の特徴と異なり、ネットパケット分類の設計において画期的な発明である。
【図面の簡単な説明】
【図1】本発明の多機能小型メモリカードインターフェース及び接続するカードリーダの基本構造である。
【図2】本発明中のSDMインターフェースの各挿入ピンの定義及び機能である。
【図3】本発明中のメインコントローラの基本構造である。
【図4】本発明探知回路がSDMインターフェースの状態の部品配置図である。
【図5】本発明探知回路がUSBインターフェースの状態の部品配置図である。
【図6】本発明中のパケット識別番号の内容である。
【図7】本発明中のパケット識別番号のデータ構造及び該データ構造とパルスの関係図である。
【図8】本発明中の通信エンドポイントのデータ構造及び該データ構造とパルスの関係図である。
【図9】本発明中のデータ長さのデータ構造及び該データ構造とパルスの関係図である。
【図10】本発明中のデータ伝送順序のデータ構造及び該データ構造とパルスの関係図である。
【図11】本発明中のエラー検査番号のデータ構造及び該データ構造とパルスの関係図である。
【図12】本発明中のパケット状態番号のデータ構造及び該データ構造とパルスの関係図である。
【符号の説明】
100 電子応用装置
110 装置モジュール
120 フォーマットアダプタ
130 装置I/O
200 多機能小型メモリカード
210 メモリカードI/O機能モジュール
220 メモリカードインターフェースのメインコントローラ
221 I/Oコントローラ
222 メモリカードコントローラ
223 格式器
224 解格式器
230 メモリ
310 電源
320 BD入力探知エンド
330 CD出力探知エンド
340 第一電気抵抗
350 第二電気抵抗
360 第一ダイオード
370 第二ダイオード[0001]
TECHNICAL FIELD OF THE INVENTION
The present invention relates to a kind of communication protocol of a memory card interface. In particular, the present invention relates to a communication protocol capable of receiving a small memory card interface and a USB interface.
[0002]
[Prior art]
The small memory card has a large storage space, uses a semiconductor chip that can be read and written repeatedly as a storage medium, and has a microcontroller inside to control the reading and writing of the semiconductor chip. Connects and receives the command to execute the corresponding read / write operation.
Small memory cards that use semiconductor chips are small in size, light in weight, fast in reading and writing, and have advantages such as power saving, so they are widely applied to the digitized information industry and information home appliance industry. Used for exchange.
Currently available small memory cards are Compact Flash (registered trademark) card (hereinafter, CF card), smart media card (hereinafter, SM card), multimedia card (hereinafter, MM card), secure digital card (hereinafter, SD) Card), memory stick card (hereinafter, MS card) and the like. These various small memory cards have different external sizes, mechanical structures, electrical contacts, communication protocols, software command numbers, control processes, and the like, and have different advantages.
Small memory cards are widely used in mobile phones, digital cameras, MP3s, PDAs, and the like. In order to expand the application area, products that open up other application areas in addition to the storage function have appeared. For example, CF interface modem card, net card, etc. Digital camera card with MS interface, Bluetooth communication card. Bluetooth communication card with SD interface. In a memory card having only a storage function, applications of other functions are generally referred to as an IO card.
[0003]
The various memory card interfaces described above are applicable to each type of portable digital device, but have drawbacks when applied to different types.
In a CF card, the interface requires 50 sets of contacts. The mechanism is a combination of an insertion needle and an insertion hole. The electrical interface adopts an 8-bit and 16-bit coexisting parallel data bus, with 26 sets of address buses and many sets of control signal lines for various different uses. .
The disadvantage of the CF interface is that it requires as many as 50 sets of connection terminals on the mechanism. The quantity is the largest, and the insertion hole connection type connection design requires relatively strong insertion and retraction. If the orientation of the insertion hole and the insertion needle is incorrect, the insertion needle is easily distorted, shifted and damaged. Since a parallel bus is used, when a plurality of cards are connected, each of the electronic application devices needs to provide a start selection signal and cannot pass through the plurality of cards. Since there is no write protection design, the memory contents cannot be protected reliably.
[0004]
In SM cards, the interface requires 22 sets of contacts. The mechanism is of a resilient piece and a flat contact terminal contact type. Separately, two sets of elastic pieces are used to determine whether the detection memory card is inserted and positioned, and a write-protection conductive seal is attached.
Disadvantages of the SM interface are that it requires 22 sets of connection terminals on the mechanism, and requires the provision of a resilient piece of conductive seal for localization, detection and write protection, which increases costs and occupies space. Since the connection terminals are arranged in two rows before and after, the contact position in the first row is connected to the connection terminals in the second row first during insertion or withdrawal, which causes an unstable phenomenon at the time of insertion. The power supply connection signals VCC and GND traverse all the connection positions between the two-row connection terminals, and the terminals are unstable such that a short circuit easily occurs. In order to distinguish between write-protection of memory cards using the sticky adhesive method, a special write-protection sticker that passes special electricity is required in cities.Moreover, the write-protection function does not directly protect the contents of the memory card. It is necessary to rely on the write-prevention state by the search of the application device. Since the physical addressing method is employed, the linear logic addressing method employed in the general system cannot be directly supported, thereby increasing the cost and the difficulty of development of the electronic application device. When the contents of the storage medium are increased each time the physical address method is adopted, it is necessary to modify the new standard according to the form of the semiconductor chip standard and to support a large-capacity rewritable semiconductor chip.
[0005]
In the MM card, the interface requires seven sets of contacts, and the mechanism employs a contact type of a resilient piece and a flat contact terminal. Separately, a set of elastic pieces is used to detect whether the memory card has been inserted and localized.
The disadvantage of the MM interface is that the serial transmission mode is adopted, so that only one bit can be transmitted with a pulse period, so that the transmission rate is low. Since the write protection software mode is adopted, special software control is required, and the practicality of the write protection function is low.
[0006]
In an SD card, the interface requires nine sets of contacts. The mechanism adopts a resilient piece and a flat contact terminal contact type. In addition, two sets of elastic pieces are required to detect the insertion orientation of the memory card and to detect the position of the write-protection protection slide block.
The disadvantage of the SD interface is that the write-protection slide block supports its location detection and write-protection function by the electronic application device.
[0007]
In the MS card, the interface requires 10 sets of contacts, and the mechanism employs a resilient piece and a flat contact terminal contact type. The connection interface has an inserted card detection signal, and the memory card itself has a write protection switch. The advantage is that the memory card itself can support write protection.
The drawback of the MS interface is that it employs a parallel transmission mode, so that only one bit can be transmitted per first-order pulse period, and the transmission rate is low. Since the physical addressing method is employed, the linear logic addressing method employed in the general system cannot be directly supported, thereby increasing the cost and the difficulty of development of the electronic application device. When the contents of the storage medium are increased each time the physical address method is adopted, it is necessary to modify the new standard according to the form of the semiconductor chip standard and to support a large-capacity rewritable semiconductor chip.
As described above, the standards of many memory cards are different from each other, and therefore, there are differences between them. In addition, the PC needs to expand and deploy memory card electronic application devices of USB interface, PCMCIA interface, and IDE interface. Otherwise, no digital information can be exchanged with the memory card.
[0008]
[Problems to be solved by the invention]
In order to solve the above-mentioned disadvantages of the known structure, an object of the present invention is to provide a communication protocol for a multifunctional small memory card.
It develops smaller volumes, faster speeds and more suitable for portable digital products.
In addition, it can be easily connected to a PC system without the need to expand electronic application devices.
Furthermore, it also has IO application expandability.
[0009]
[Means for Solving the Problems]
In order to solve the above-mentioned problems, the present invention provides the following communication protocol of a multifunctional small memory card.
Mostly, the multi-function small memory card has a 4-pin and 8-pin design at the same time, and can support the traditional USB interface. Therefore, the communication protocol defined in the present invention can be applied to PC equipment and various kinds of electronic application devices.
The communication protocol mainly adopts a half-square, 4-bit serial method, based on the CLK signal, each pulse can transmit 4-bit information D0, D1, D2, D3, and the interface transmission method is packet unit. Is used. In addition, the communication protocol sets a simulated communication endpoint in the memory card, and is a source or target of information transmission. The data transmission packet includes a start bit, a packet identification number, a communication endpoint, a data length, payload data, a packet state number, a data format, and an end bit.
The present invention also provides a multifunctional small memory card insertion tank, which has a 4-pin and 8-pin design. The 4-pin design is used for the basic USB interface, and the 8-pin design is used for the SFMI interface. The 8-pin SFMI interface has four insertion pins, similar to the four pins of the USB interface, with the other four insertion pins being distributed between the four pins of the USB interface. The insertion tank is a plus insertion tank and a minus insertion tank.
The present invention also provides a case. The case converts the data to a multi-function small memory card communication protocol (SFMI), in which the data is output by a memory, and then the case forms a communication data packet conforming to the multi-function small memory card communication protocol; The packet includes a start bit, a packet identification number, a communication endpoint, a data length, payload data, a packet state number, a data format, and an end bit.
The present invention also provides a type converter. The format converter converts the USB data packet to a multi-function small memory communication protocol, releases the USB data packet, converts the obtained data format to a multi-function small memory card communication protocol communication data packet, and The data packet of the small memory card communication protocol includes a start bit, a packet identification number, a communication endpoint, a data length, a payload data, a packet state number, a data format, and an end bit.
That is, the present invention has the following features.
1. The communication protocol of the multi-function small memory card of the present invention mainly adopts a half-buffer, 4-bit serial system, and each pulse transmits 4-bit information D0, D1, D2, D3 based on the CLK signal. The interface transmission method uses packet units, and the communication protocol sets a simulated communication end point in the memory card, and sets a source or target of information transmission, and the data transmission packet has a start bit, a packet identification number, It is characterized by including a communication end point, data length, payload data, packet state number, data format, and end bit.
2. The communication protocol of the multi-function small memory card according to the present invention is such that the order of the data packets is a start bit, a packet identification number, a communication endpoint, a data length, a payload data, a packet state number, a data format, and an end bit. Features.
3. The communication protocol of the multifunctional small memory card according to the present invention is characterized in that the leading end of the data packet generates a start bit in which 4 bits become 0 during a pulse period.
4. The communication protocol of the multifunctional small memory card according to the present invention is characterized in that the leading end of the data packet generates a start bit in which 4 bits become 0 during a pulse period.
5. 2. The communication protocol according to
6. The data packets start with a packet identification number (PID), and based on the difference of the identification numbers, apply in different cases, each set of data packets includes a packet identification number, payload data, a packet state number,
The packet identification number indicates a direction of the packet transmission data, a transmission endpoint address, and a data length,
The payload data includes a set of CRC data error number detection numbers;
2. The communication protocol according to
7. The packet identification number is 4 bits in total, preventing communication errors, adding 4 bits in the opposite direction, forming an ascending sequence of 8 bits in total, and completing transmission in two sets of two pulses. The communication protocol for a multifunctional small memory card according to
8. 7. The communication protocol according to
11. 7. The communication protocol according to
12. 7. The communication protocol according to
13. 7. The communication protocol according to
14. The transmission indication packet designates a communication endpoint corresponding to a subsequent data packet or a status packet by a display communication endpoint, and the communication end point is 4 bits in the transmission indication packet, attached after the PID, and in one pulse cycle. 7. The communication protocol for a multifunctional small memory card according to
15. The corresponding individual communication endpoint has a data buffer section of a specific capacity size in a small memory card or an IO card, and is used for primary storage of payload data of a communication packet between the electronic application device and the small memory card. The communication protocol for a multifunctional small memory card according to
16. The communication endpoint includes a control endpoint, and the small memory card and the IO card need to have a set of control points, and the functions of the control endpoint are allowed when the electronic application device activates the small memory card. 7. The multifunctional small memory according to
17. 7. The communication protocol according to
18. 7. The communication protocol according to
19. The communication endpoint includes a status interruption input endpoint, which is used for allowing an interval period set by the small memory card or IO card to be set by the electronic application device, and for permitting state interruption input data input from the overlapping small memory card or IO card. 7. The communication protocol for a multifunctional small memory card according to
20. The data actually carried by the packet is transmitted to a communication end point, each bit set completes transmission within two pulse periods, and the transmission direction is specified in the packet identification number by the electronic application device. The communication protocol for a multifunctional small memory card according to
21. 7. The communication protocol according to
22. 7. The communication protocol according to
23. One of the received data, after the completion of the payload data reception, checks and confirms whether or not they match, based on the reception result, confirms whether or not the reception data is correct. 2. The communication protocol for a multi-function small memory card according to
24. The method according to
25. 2. The multi-function small memory card according to
26. 2. The communication of a multi-function small memory card according to
27. The communication protocol of claim 37, wherein the control transmission mode is divided into a setup phase, a data phase, and a status phase.
28. Mainly, the case converts the data to a multi-function small memory card communication protocol (SDM), in which the data is output by the memory, and then the case forms a communication data packet conforming to the multi-function small memory card communication protocol; A communication protocol for a multi-function small memory card, wherein the data packet includes a start bit, a packet identification number, a communication endpoint, a data length, a payload data, a packet state number, a data format, and an end bit.
29. 29. The multi-function according to claim 28, wherein the order of the data packets is, in order from a start bit, a packet identification number, a communication end point, a data length, a payload data, a packet state number, a data format, and an end bit. Communication protocol for small memory cards.
30. The communication packet starts with a packet identification number (PID), and is applied in different cases based on the difference in the type of the identification number. Each set of data packets includes a packet identification number and payload data,
The packet identification number indicates the direction of the packet transmission data, the transmission endpoint address, and the data length,
The payload data includes a set of CRC data error detection numbers and a packet status number, receives one of the payload data, transmits a reception status, and transmits whether the data was correctly received. A communication protocol for a multifunctional small memory card according to claim 28.
31. The format converter converts the USB data packet into a multi-function small memory communication protocol, releases the USB data packet, converts the obtained data format into a multi-function small memory card communication protocol communication data packet, and converts the multi-function small memory communication protocol into a multi-function small memory card communication protocol communication data packet. Multi-function small memory card communication protocol characterized in that the data packet of the memory card communication protocol includes start bit, packet identification number, communication end point, data length, payload data, packet state number, data format and end bit .
32. 32. The format converter according to claim 31, wherein the order of the data packets is a start bit, a packet identification number, a communication end point, a data length, a payload data, a packet status number, a data format, and an end bit. Communication protocol of the multifunctional small memory card described.
33. The communication packet starts with a packet identification number (PID), and is applied in different cases based on the difference in the type of the identification number. Each set of data packets includes a packet identification number and payload data,
The packet identification number indicates the direction of the packet transmission data, the transmission endpoint address, and the data length,
The payload data includes a set of CRC data error detection numbers and a packet status number, receives one of the payload data, transmits a reception status, and transmits whether the data was correctly received. The communication protocol of the multifunctional small memory card according to claim 31.
[0010]
BEST MODE FOR CARRYING OUT THE INVENTION
The multifunctional small memory card of the present invention is mainly classified into two types. One type mainly has a digital information storage function. The other type mainly supports other IO functions. Both functions include the following: 1. Support the main controller 220 of the multifunctional small memory card interface and provide a digital information storage function. It is necessary to provide a flash memory control interface capable of repeatedly writing and reading for each main controller 220. In order to provide the IO function, the main controller 220 includes a control interface of a function module capable of supporting the IO function. 2. To provide a digital information storage function, a flash memory storage module with a large capacity is used for storing digital information. For providing IO functions, an IO function module that supports the IO functions shall be provided.
[0011]
As shown in FIG. 1, the multifunctional small memory card 200 of the present invention includes a memory card I /
The memory card I /
[0012]
The multifunctional small memory card interface of the present invention has an 8-pin design, a 4-bit bidirectional command / data / status bus (D0 to D3), a pulse simultaneous signal (CLK), a system interface and a memory card insertion detection signal (CD), And a total of eight contact points of a power supply pin (VCC) and a ground pin (DND). The write-protection protection function is switched and selected by a write-protection switch mounted inside the multi-function small memory card, and is notified to the
GND is a ground contact, which is used for protecting the contact and providing a reference potential.
CLK is a simultaneous pulse signal, which provides simultaneous pulses for output and input data, and is used to re-examine the sequence of data signals and to symmetrical the signals. BC_CD is a signal for detecting system interface and memory card insertion. Detect input and output data and use for USB interface signal or SFMI interface signal. D0 is a bidirectional command / data / status bus signal bit0, which is a D-signal line during execution of the USB mode. D1 is a bidirectional command / data / status bus signal bit1, which is a D + signal line when the USB mode is being executed. D2 is a bidirectional command / data / status bus signal bit2, and this signal line does not exist during execution of the USB mode. D3 is a bidirectional command / data / status bus signal bit3, and this signal line does not exist during execution of the USB mode.
From the above description, it is possible to understand the SFMI interface of the present invention and the basic four contacts shared by the USB interface, that is, Vcc, GND D- (D0) and D + (D1). Further, since the present invention includes four contacts of CLK, BD_CD, D2 and D3, it is designed in an insertion connection structure (including an insertion terminal and an insertion tank). Four contacts are separately installed between the four contacts of the original USB interface. Thus, the insertion connection structure of the SFMI interface of the present invention is inserted and connected with the USB interface, the structure is shared, and it is not necessary to arrange a different insertion connection structure separately.
[0013]
Another feature of this interface is that, in the 4-bit bidirectional bus, the D0 and D1 signal lines are connected to a USB interface in the
The present invention also provides a multifunctional small memory card insertion tank, which has a 4-pin and 8-pin design. The 4-pin design is used for the basic USB interface, and the 8-pin design is used for the SFMI interface. The 8-pin SFMI interface has four insertion pins, similar to the four pins of the USB interface, with the other four insertion pins being distributed between the four pins of the USB interface. The insertion tank is a plus insertion tank and a minus insertion tank.
[0014]
As shown in FIG. 3, the main controller 220 of the present invention includes an I / O controller 221, a memory card controller 222, a model device 223, and a
[0015]
System interface and memory card insertion terminal signal:
The memory card insertion installation detection signal is connected to the multi-function input / output control signal of the control chip inside the memory card. At the end of the multifunction small memory card interface of the
Circuits detected by the interface of the memory card I /
The function of the memory card I /
[0016]
The small memory card is inserted and installed in the
Next, the state of the BD_CD signal is checked, and if the state of the BD_CD signal is high, indicating that the system end supports the small memory card interface, the operation mode of the small memory card interface is entered. Subsequently, the output CD signal is driven to a low potential to notify that the small memory card of the
On the other hand, if the state of the BD_CD signal is low, the system end does not connect the BD_CD signal to the power supply through the electric resistance and supports the USB interface, and enters the operation mode of the USB interface.
[0017]
As shown in FIGS. 4 and 5, the Vcc contact is connected to the power supply 310, the system interface and the memory card are inserted and installed in the detection signal BD_CD, and connected to the BD
[0018]
When the USB interface is inserted into the multifunctional small memory card, as shown in FIG. 4, the
Conversely, in the output mode, when the output signal is the SFMI interface signal, the
[0019]
Description of multi-function small memory card communication protocol:
A half-buzzer employs a 4-bit serial system, and each pulse can transmit 4-bit information based on the CLK signal. The data transmission method is controlled by the electronic application device, and after a given transmission command and transmission length, a data stage transmission length is determined. In order to improve the applicability of the interface and simplify the overall system design, the interface transmission uses a packet unit. In addition, the communication protocol sets a simulated communication endpoint in the memory card, and is a source or target of information transmission.
All memory cards or IO cards that support the "multifunctional small memory card interface" all support at least one set of communication endpoints and are called "control endpoints." Its endpoint address is 0. The
[0020]
(1) Start bit / end bit
When the
(2) Packet identification number
As shown in FIG. 6, a communication packet starts with a packet identification number, and is applied to a different case depending on the type of the identification number. Each set of data packets is: Including the packet identification number, it indicates the direction of the packet transmission data, the address of the transmission endpoint, and the length of the data. 2. The payload data includes a set of CRC data error number detection numbers. 3. The packet status number receives one of the payload data and returns whether the reception status confirmation data was correctly received. The packet identification number 0001 indicates that the
[0021]
The PID identification number is a total of 4 bits to prevent communication errors and add 4 bits in the opposite direction to form an ascending 8 bits total. The transmission is completed in two sets of two separate pulses. As shown in FIG. 7, the receiving end receives the correctly completed PID and PID ', and checks whether PID = (PID'), that is, whether the received PID is error free.
(3) Communication endpoint
The communication endpoint supports a small memory card or IO card of a small memory card interface and an electronic application device and performs a basic unit of data transmission. The corresponding individual communication endpoint has a data buffer of a specific capacity size in the small memory card or the IO card, and is used for primary storage of payload data of a communication packet between the electronic application device and the small memory card.
A small memory card or IO card supporting a small memory card interface can support up to 16 communication endpoints. Each packet transmission target is specified by a communication endpoint address in the communication packet.
A type memory card or IO card that supports a small memory card interface has a minimum of one set of communication endpoints. The address is set to 0. The electronic application device detects the insertion of the small memory card through the small memory card interface, and through the
[0022]
Communication endpoints are classified into the following four types. The present invention is applied to different types of data transmission between an electronic application device and a small memory card or IO card.
Control Endpoint-The small memory card and the IO card must have a set of control points with
Data input endpoint-used in electronic applications to allow large amounts of data to be input from small memory cards or IO cards.
Data output endpoint-used to allow large amounts of data to be output to small memory cards in electronic applications.
State interruption input endpoint-Small memory card or IO card is used to set the interval request set by the electronic application device, and to allow state interruption input data input from overlapping small memory card or IO card.
As shown in FIG. 8, the transmission indication packet specifies the communication endpoint corresponding to the subsequent data packet or status packet by the display communication endpoint. The communication end point is 4 bits after the PID in the transmission indication packet and completes transmission in one pulse period.
[0023]
(4) Data length
As shown in FIG. 9, after ENDP, 12-bit representative data length data is transmitted within three pulse periods. Data is in units of one BYTE. 0x000 represents 4096 BYTE. The
(5) Payload data
The data that the packet actually payloads (PDAT) is transmitted to the information of the communication endpoint. Data sets the length of the payload data. During transmission, each set of one bit completes transmission within two pulse periods. The transmission direction is specified in the packet identification number by the electronic application device, and as shown in FIG. 10, a CRC16 error check number of 16 pulse periods added to the end of the payload data. Among them, the calculation method of CRC16 is division by 2, and furthermore, a multi-item expression of the form G (X) = X16 + X15 + X12 + 1 is provided, and division by 2. FIG. 11 shows the data transmission order.
[0024]
(6) Packet status number
After completion of the reception of the payload data, one of the received data is checked to see if it matches. Then, whether or not the received data is correct is confirmed based on the reception result. If received correctly, return to ACK, if reception is not completed temporarily, or if the check number indicates a data error, return to NAK to request retransmission. If an error occurs in the memory card, or if the execution command results in an error, the process returns to STALL. As FIG. 12 shows.
(7) Data format
All communication packets are started to be transmitted by the electronic application device (system end), and the order of data packets is in order from the start bit, packet identification number, communication end point, data length, payload data, packet state number, data format. , End bit. The system end initiates data transmission, generates a packet identification number, and specifies the communication endpoint and data length.
If the packet belongs to an IN packet, the device end returns to the device state number NAK after receiving the data and if it does not produce the required data accordingly. The system end subsequently stops the subsequent transmission. Subsequently, the data transmission can be activated again. Again, one can try to get the data packet. If the device end has already returned to all the data, the device end will generate a start bit, and will subsequently begin returning to the data within the device internal communication endpoint. After the data length required by the system end is satisfied, a 16-bit CRC check number is added. After receiving the check number, the system end checks and confirms that there is no error, and returns to ACK. If there is an error in the data, the process returns to NAK, activates the side packet, and obtains accurate data.
If the packet belongs to an out or setup packet, the system end starts inputting data that is considered to be input after completing the packet identification number, communication endpoint address, and data length, and the data length input by the system end. After the request, a 16-bit CRC check number is added. When the device end receives the test number and confirms that there is no error through the test, the process returns to ACK. If there is an error in the data, the process returns to NAK, the system endomain controller determines whether or not to restart the packet, and obtains accurate data.
[0025]
(8) Control transmission mode
Through the control transmission mode, the electronic application device obtains from the preset
At the setup stage, the system end sends out a setup packet, the setup packet identification number, the communication endpoint address is 0, and the data length is 8 bits. Subsequently, the system device sends out an 8-bit set command number, a reference number, and a 2-bit set CRC16, and finally returns to the status confirmation packet by the device end to check whether the reception is normal.
In the command and reference numbers of the 8-bit set, the first bit set refers to the USB standard for definitions and applications representing bmRequestType, bRequest, wValue, wIndex, wLength, and the like, respectively. For the meaning of each part number, refer to the control transmission data format table in Table 1.
[0026]
Except for the standard command numbers, device type-specific commands and manufacturer-specific special commands are established according to the application of the individual device or by the manufacturer. All small memory cards or IO cards with a standard interface supporting small memory cards need to support standard command numbers. See the table below for the definition of standard directive numbers.
[0027]
In the data stage, a transmission direction and a length of a subsequent data stage are determined according to the bRequest number and wLength. The general data transmission operation is started by the system end, and the transmission length is set by wLength.
In the status stage, after the data stage is completed, it is checked whether the data transmission result is correct by the one-way transmission status number of the received data according to the direction of the data stage.
(9) Application of multifunctional small memory card interface
The multifunctional small memory card interface can be applied to different applications, and the above only describes the definition of the physical layer, and does not limit the application area. The command set and the communication protocol of the replenishment application can be applied to a storage device, a communication device, or other applicable application areas.
[0028]
【The invention's effect】
As described above, the present invention is a breakthrough invention in the design of the net packet classification, different from the features of the known technology in terms of the purpose, means, and effects.
[Brief description of the drawings]
FIG. 1 is a basic structure of a multifunctional small memory card interface of the present invention and a card reader to be connected.
FIG. 2 shows the definition and function of each insertion pin of the SDM interface according to the present invention.
FIG. 3 shows a basic structure of a main controller in the present invention.
FIG. 4 is a component layout diagram in a state where the detection circuit of the present invention is in an SDM interface.
FIG. 5 is a component arrangement diagram of the detection circuit of the present invention in a state of a USB interface.
FIG. 6 shows the contents of a packet identification number in the present invention.
FIG. 7 is a diagram showing a data structure of a packet identification number in the present invention and a relation between the data structure and a pulse.
FIG. 8 is a diagram showing a data structure of a communication endpoint according to the present invention and a relation between the data structure and a pulse.
FIG. 9 is a diagram showing a data structure of a data length and a relationship between the data structure and a pulse according to the present invention.
FIG. 10 is a diagram showing a data structure of a data transmission order in the present invention and a relation between the data structure and a pulse.
FIG. 11 is a diagram illustrating a data structure of an error check number according to the present invention and a relationship between the data structure and a pulse.
FIG. 12 is a diagram illustrating a data structure of a packet state number and a relationship between the data structure and a pulse according to the present invention.
[Explanation of symbols]
100 Electronic application equipment
110 Equipment module
120 format adapter
130 Device I / O
200 Multifunctional small memory card
210 Memory Card I / O Function Module
220 Memory card interface main controller
221 I / O controller
222 Memory card controller
223 Case
224 Disassembly formula
230 memory
310 power supply
320 BD input detection end
330 CD output detection end
340 First electrical resistance
350 Second electrical resistance
360 first diode
370 Second diode
Claims (33)
該パケット識別番号はパケット伝送データの方向、伝送エンドポイントアドレス、データ長さを表し、
該ペイロードデータは一組のCRCデータエラー番号探知番号を含み、
該パケット状態番号はペイロードデータの片方を受信し、受信状態確認データが正確に受信されたかどうかを返送することを特徴とする請求項1記載の多機能小型メモリカードの通信プロトコル。The data packets start with a packet identification number (PID), and based on the difference of the identification numbers, apply in different cases, each set of data packets includes a packet identification number, payload data, a packet state number,
The packet identification number indicates a direction of the packet transmission data, a transmission endpoint address, and a data length,
The payload data includes a set of CRC data error number detection numbers;
2. The communication protocol according to claim 1, wherein the packet status number receives one of the payload data and returns whether or not the reception status confirmation data has been correctly received.
該パケット識別番号はパケット伝送データの方向、伝送エンドポイントアドレス、データ長さを示し、
該ペイロードデータは一組のCRCデータエラー探知番号、パケット状態番号を含み、ペイロードデータの一方を受信し、受信状態を伝送し、データが正確に受信されたか否かを伝送することを特徴とする請求項28記載の多機能小型メモリカードの通信プロトコル。The communication packet starts with a packet identification number (PID), and is applied in different cases based on the difference in the type of the identification number. Each set of data packets includes a packet identification number and payload data,
The packet identification number indicates the direction of the packet transmission data, the transmission endpoint address, and the data length,
The payload data includes a set of CRC data error detection numbers and a packet status number, receives one of the payload data, transmits a reception status, and transmits whether the data was correctly received. A communication protocol for a multifunctional small memory card according to claim 28.
該パケット識別番号はパケット伝送データの方向、伝送エンドポイントアドレス、データ長さを示し、
該ペイロードデータは一組のCRCデータエラー探知番号、パケット状態番号を含み、ペイロードデータの一方を受信し、受信状態を伝送し、データが正確に受信されたか否かを伝送することを特徴とする請求項31記載の多機能小型メモリカードの通信プロトコル。The communication packet starts with a packet identification number (PID), and is applied in different cases based on the difference in the type of the identification number. Each set of data packets includes a packet identification number and payload data,
The packet identification number indicates the direction of the packet transmission data, the transmission endpoint address, and the data length,
The payload data includes a set of CRC data error detection numbers and a packet status number, receives one of the payload data, transmits a reception status, and transmits whether the data was correctly received. The communication protocol of the multifunctional small memory card according to claim 31.
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| TW91117942A TWI261788B (en) | 2002-08-09 | 2002-08-09 | Small-form-factor memory card interface (II) having multi-functional communication interface, formatter and format converter |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JP2004078880A true JP2004078880A (en) | 2004-03-11 |
Family
ID=31185936
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2002340218A Pending JP2004078880A (en) | 2002-08-09 | 2002-11-25 | Communication protocol of multi-functional small memory card |
Country Status (3)
| Country | Link |
|---|---|
| JP (1) | JP2004078880A (en) |
| DE (1) | DE10310770A1 (en) |
| TW (1) | TWI261788B (en) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP5150591B2 (en) | 2009-09-24 | 2013-02-20 | 株式会社東芝 | Semiconductor device and host device |
-
2002
- 2002-08-09 TW TW91117942A patent/TWI261788B/en not_active IP Right Cessation
- 2002-11-25 JP JP2002340218A patent/JP2004078880A/en active Pending
-
2003
- 2003-03-12 DE DE2003110770 patent/DE10310770A1/en not_active Ceased
Also Published As
| Publication number | Publication date |
|---|---|
| TWI261788B (en) | 2006-09-11 |
| DE10310770A1 (en) | 2004-02-26 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP2004078879A (en) | Multifunctional compact memory card interface 1 applicable to usb interface | |
| US7809866B2 (en) | Double interface SD flash memory card | |
| US7209995B2 (en) | Efficient connection between modules of removable electronic circuit cards | |
| TWI289313B (en) | Removable electronic device and method thereof | |
| CN100418079C (en) | serial peripheral interface memory element with parallel acceleration mode | |
| TW201025468A (en) | Method of preventing data loss during a solder reflow process and memory device using the same | |
| WO2012036751A2 (en) | Different types of memory integrated in one chip by using a novel protocol | |
| EP2058739B1 (en) | Electronic device, information processing device, adapter device, and information exchange system | |
| CN102063939B (en) | Method and device for implementing electrically erasable programmable read-only memory | |
| CN102915209B (en) | Storage control chip, storage equipment and system data writing method | |
| CN103034611B (en) | A system for sequence peripheral interface to enhance reading performance | |
| CN100505099C (en) | Nonvolatile memory | |
| JP2004078880A (en) | Communication protocol of multi-functional small memory card | |
| US7137564B2 (en) | Communication protocol for multi-functional mini-memory card suitable for small form memory interface and usb interfaces | |
| CN102543215A (en) | Nand FLASH intelligent detection method based on ARM controller | |
| CN1198196C (en) | Versatile compact memory card interface compatible with USB interface | |
| TWI322535B (en) | Adapter element, conversion apparatus and conversion method | |
| CN117741404A (en) | Multifunctional testing method and device for chip | |
| CN103365815B (en) | The SD memory card interface that under support SD pattern, IP realizes | |
| CN100426278C (en) | Communication method between electronic device and multifunctional small-sized memory card | |
| CN2590061Y (en) | A kind of multifunctional small memory card and its slot | |
| CN204129732U (en) | Based on the board self-adaptation equipment of satellite time transfer machine frame system | |
| CN100403232C (en) | Universal micro memory card | |
| CN100465933C (en) | Removable electronic device and method thereof | |
| US20250094301A1 (en) | Memory apparatus, test fixture, and test system |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20041122 |
|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20070808 |
|
| A02 | Decision of refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A02 Effective date: 20080206 |