JP3977240B2 - Electronics - Google Patents

Electronics Download PDF

Info

Publication number
JP3977240B2
JP3977240B2 JP2002358038A JP2002358038A JP3977240B2 JP 3977240 B2 JP3977240 B2 JP 3977240B2 JP 2002358038 A JP2002358038 A JP 2002358038A JP 2002358038 A JP2002358038 A JP 2002358038A JP 3977240 B2 JP3977240 B2 JP 3977240B2
Authority
JP
Japan
Prior art keywords
electronic device
service
link layer
ieee
self
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.)
Expired - Fee Related
Application number
JP2002358038A
Other languages
Japanese (ja)
Other versions
JP2004193862A (en
Inventor
光久 金矢
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 JP2002358038A priority Critical patent/JP3977240B2/en
Publication of JP2004193862A publication Critical patent/JP2004193862A/en
Application granted granted Critical
Publication of JP3977240B2 publication Critical patent/JP3977240B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Small-Scale Networks (AREA)

Description

【0001】
【発明の属する技術分野】
本発明は、電子機器に関する。
【0002】
【従来の技術】
IEEE1394規格は、デジタルデータ通信用のシリアルバス規格である。IEEE1394規格は、1995年に「IEEE1394−1995規格」として承認され、これを明確化するための「P1394a規格」や「P1394b規格」についても検討されている。なお、IEEE1394規格に係るシリアルバスは「IEEE1394シリアルバス」と呼ばれる。
【0003】
図1は、IEEE1394規格に係るシステムを表す。ノード11はIEEE1394規格に準拠した電子機器であり、シリアルバス12(IEEEシリアルバス)はIEEE1394規格に準拠したケーブルである。すなわち、電子機器同士がケーブルを介して接続されている。なお、上記ケーブルの接続端子は「4ピン」「6ピン」等のコネクタである。
【0004】
図2は、IEEE1394規格に係るプロトコルを表す。IEEE1394規格に係るプロトコルは、物理層21と、リンク層22と、トランザクション層23と、上記3層を管理するシリアルバス管理25により構成される。物理層21とリンク層22はハードウェアであり、トランザクション層23とシリアルバス管理25はファームウェアである。なお、上記3層の上位層としてアプリケーション層24が存在する。
【0005】
物理層21は「バス初期化」「ツリー認識」「自己認識」等のバスリセットの際のバスコンフィグレーションに係る処理や「アービトレーション」等のパケット転送の際のバス獲得に係る処理などに関与する。リンク層22は「アイソクロナス転送」「アシンクロナス転送」「非同期ストリーム」等のパケット転送に係る処理などに関与する。トランザクション層23は「Read」「Write」「Lock」等の命令に係る処理などに関与する。
【0006】
アプリケーション層24については、IEEE1394−1995規格では規格化されていない。そのため、アプリケーション層24については、例えば「SBP2規格」や「SBP3規格」として規格化されている。SBP2規格では、イニシエータ(命令を出すノード)やターゲット(命令を受けるノード)に係る処理などについて規格化されている。
【0007】
シリアルバス管理25は、バスマネージャと、アイソクロナスリソースマネージャと、ノードコントローラにより構成される。バスマネージャは「トポロジマップの提供」「スピードマップの提供」等のバス管理を行う。アイソクロナスリソースマネージャは「アイソクロナス帯域の割付」「チャネル番号の割付」等のアイソクロナス資源管理を行う。ノードコントローラはノード制御を行う。
【0008】
最後にIEEE1394規格の利点を挙げる。第1の利点として、アイソクロナス転送による「リアルタイム性の保証」が挙げられる。第2の利点として、電源をONにしたままで抜き挿しできるという「Hot_Plug_In」が挙げられる。第3の利点として、抜き挿しに応じてバスコンフィグレーションが自動的に実行されるという「Plug_&_Play」が挙げられる。
【0009】
【発明が解決しようとする課題】
ここで、IEEE1394規格に準拠した電子機器であって、IEEE1394シリアルバスを介して接続されているIEEE1394規格に準拠した他の電子機器に対してサービスを提供する電子機器について考察する。
【0010】
バスに接続されている電子機器の電源をOFFにすると、その電子機器から他の電子機器へのサービス提供は停止されることになる。しかし、電源をOFFにした電子機器はバスリセット信号を送信できないため、バスリセットが実行されず、バスコンフィグレーションが実行されない。そのため、バスに接続されている他の電子機器は、電源をOFFにした電子機器からのサービス提供が停止されていることを即座には知ることができないという問題がある。
【0011】
この問題を解決する発明として、特開2001−160806には、電源をOFFにする前にバスリセット信号を送信するための発明が記載されている。当該文献の記載によると、電源をOFFにする前にバスリセット信号を送信しておけば、これによりバスリセットが実行されてバスコンフィグレーションが実行されることから、他の電子機器はサービス提供が停止されていることを確実に知ることができるとのことである。
【0012】
ここで、ある電子機器が提供するサービスの存在等を他の電子機器が知る手段は、「バスリセット」「バスの初期化」「ツリー認識」「自己認識」に引き続いて実行する「コンフィグレーションROMの読み出し」である。各電子機器が自己のコンフィグレーションROMに「サービスに係る情報」を書き込んでおき、他の電子機器がそのコンフィグレーションROMからその「サービスに係る情報」を読み出すことにより、サービスの存在等を知るのである。
【0013】
したがって、特開2001−160806のように、電源をOFFにする前にバスリセット信号を送信することにより、他の電子機器がサービス提供が停止されていることを知るようにした場合、上述の「コンフィグレーションROMの読み出し」の際には、他の電子機器がコンフィグレーションROMから「サービスに係る情報」を読み出すことができないようにしておく必要がある。
【0014】
ところが、当該文献の記載によると、CPUが電源OFFの要求を処理し、CPUがリンク層コントローラにバスリセット信号の送信要求を出し、リンク層コントローラが物理層コントローラにバスリセット信号の送信要求を送り、その動作完了の確認後に電源OFFの要求を許可するとされている。
【0015】
そのため、バスリセット信号の送信から電源のOFFまでに時間がかかると、その間に、他の電子機器がコンフィグレーションROMから「サービスに係る情報」を読み出すことができてしまうため、他の電子機器はサービス提供が継続されていると誤認してしまう。
【0016】
ちなみに、IEEE1394規格の実装規格であるOpenHCI規格に準拠した電子機器においては、コンフィグレーションROMからの読み出しは全てリンク層コントローラ内のDMAコンテキストにより処理させるため、リンク層コントローラに電力が供給されている限り、コンフィグレーションROMからの読み出しは可能である。バスリセット信号の送信完了は、通常、リンク層コントローラを経由しなければ実行できないため、それより前にリンク層コントローラの電源のみをOFFにすることもできない。
【0017】
なお、バスリセット信号の送信からコンフィグレーションROMの読み出しまでの時間は数ミリ秒程度であるため、他の電子機器が「サービスに係る情報」を読み出すことができないようにしておく必要は、実際的な観点から言っても十分あると言える。しかし、リンク層コントローラへの電力供給停止までの時間等は各電子機器の設計に依存しており、リンク層コントローラへの電力供給停止までの時間等を速める確実な手段はないと言える。
【0018】
仮に、他の電子機器が「サービスに係る情報」を読み出すことができないようにしておくことができたとしても、別の問題が存在する。他の電子機器が「サービスに係る情報」を読み出そうとしてくるために、バス上に無駄な非同期リードトランザクションが発生してしまうという問題である。読み出し失敗に続いて読み出しリトライが発生することが、バスの帯域の無駄な消費を招いてしまう。
【0019】
したがって、本発明は、シリアルバスを介して接続されている他の電子機器に対してサービスを提供する電子機器において、電源がOFFになることに伴ってサービスの提供を停止するとき、他の電子機器がサービスの提供が停止されていることを比較的即座に知ることができるようにすることを課題とする。
【0020】
特に、本発明は、IEEE1394規格に準拠した電子機器であって、IEEE1394シリアルバスを介して接続されているIEEE1394規格に準拠した他の電子機器に対してサービスを提供する電子機器において、電源がOFFになることに伴ってサービスの提供を停止するとき、他の電子機器がサービスの提供が停止されていることを比較的即座に知ることができるようにすることを課題とする。
【0021】
【課題を解決するための手段】
請求項1に記載の発明(電子機器)は、シリアルバスを介して接続されている他の電子機器に対してサービスを提供する電子機器において、前記サービスを提供することを停止するとき、バスリセット信号を送信してバスリセットを実行した後の自己認識プロセスにおいて、実際にはリンク層コントローラがアクティブであっても、リンク層の存在を示すビットを0にセットした自己認識パケットを送信することを特徴とする。
【0024】
請求項に記載の発明(電子機器)は、IEEE1394規格に準拠した電子機器であって、IEEE1394シリアルバスを介して接続されているIEEE1394規格に準拠した他の電子機器に対してサービスを提供する電子機器において、前記サービスを提供することを停止するとき、バスリセット信号を送信してバスリセットを実行した後の自己認識プロセスにおいて、実際にはリンク層コントローラがアクティブであっても、リンク層の存在を示すビットを0にセットした自己認識パケットを送信することを特徴とする。
【0025】
請求項に記載の発明(電子機器)は、請求項又はに記載の発明(電子機器)に関して、物理層コントローラのレジスタの操作により、前記自己認識パケット内のリンク層の存在を示すビットを0にセットすることを特徴とする。
【0026】
請求項に記載の発明(電子機器)は、請求項又はに記載の発明(電子機器)に関して、物理層コントローラのLPS端子の操作により、前記自己認識パケット内のリンク層の存在を示すビットを0にセットすることを特徴とする。
【0027】
請求項に記載の発明(電子機器)は、請求項1乃至のいずれか1項に記載の発明(電子機器)に関して、前記サービスとして、プリントサービス、ファクシミリサービス、スキャンサービスの内の1個または2個以上を提供することを特徴とする。
【0029】
請求項又はに記載の発明(電子機器)では、サービスを提供することを停止するとき、バスリセット信号を送信して、リンク層の存在を示すビットを0にセットした自己認識パケットを送信することにより、電源がOFFになることに伴ってサービスの提供を停止するとき、他の電子機器がサービスの提供が停止されていることを比較的即座に知ることができる。
【0030】
【発明の実施の形態】
本発明の実施の形態について説明する。
【0031】
図3は、IEEE1394規格に係るシステムを表す。ノード11はIEEE1394規格に準拠した電子機器であり、シリアルバス12(IEEEシリアルバス)はIEEE1394規格に準拠したケーブルである。
【0032】
図4は、本発明の実施の形態の例である電子機器41を表す。図4の電子機器41は、物理層コントローラ42と、リンク層コントローラ43と、CPU44と、コンフィグレーションROM45とを備える。図4の電子機器41は、図3のシステムを構成するノード11であって、図3のシステムを構成する他のノード11に対してサービスを提供する。例えば、プリントサービス、ファクシミリサービス、スキャンサービス等が挙げられる。これらの内の1個を提供しても2個以上を提供してもよい。
【0033】
図5は、図4のコンフィグレーションROM45内の情報の階層を表す。電子機器41は、図5におけるInstance_directory51やこれに付随するFeature_directory53やKeyword_leaf54を使用して「サービスに係る情報」であるサービスの種類に関する情報(プリントサービス、ファクシミリサービス、スキャンサービス等)を書き込む。また、図5におけるUnit_directory52やこれに付随するFeature_leaf53やDependent_leaf55を使用して「サービスに係る情報」であるサービスを利用するためのプロトコルに関する情報を書き込む。なお、IEEE1394規格に準拠した電子機器は、その電子機器内オフセットFFFFF0000400hより1024バイトの領域と、その領域からのリンク情報により辿ることができる領域に、コンフィグレーションROMを有する。
【0034】
図6は、図5のBus_information_block56のフォーマットを表す。自己のコンフィグレーションROM45内の情報を書き換えた電子機器41は、Bus_information_block56内のgeneration_field61の値を書き換え、他の電子機器はこのgeneration_field61の値を読み出すことにより、コンフィグレーションROM45内の情報が書き換えられたことを知ることができる。
【0035】
以下、図3から図6までの設定を前提として各実施例について説明する。
【0036】
(第1実施例)
第1実施例では、図4の電子機器41は、電源がOFFになることなどに伴ってサービスの提供を停止することになったとき、まずサービスに係る情報をコンフィグレーションROM45から削除する。ここで削除されるのは、サービスの種類に関する情報や、サービスを利用するためのプロトコルに関する情報や、これら情報に係る親directoryに書き込まれているリンク情報である。
【0037】
サービスに係る情報を削除した後、図4の電子機器41は、generation_field61の値を書き換えて、バスリセット信号を送信する。すなわち、CPU44がリンク層コントローラ43にバスリセット信号の送信要求を出し、リンク層コントローラ43が物理層コントローラ42にバスリセット信号の送信要求を送る。これにより、バスリセットが実行される。なお、電源がOFFになることに伴ってサービスの提供を停止する場合においては、バスリセット信号を送信した後に、実際に電源がOFFになる。
【0038】
バスリセットに引き続いて、図4の電子機器41のコンフィグレーションROM45から、他の電子機器がgeneration_field61の値を読み出す。その際、generation_field61の値が書き換えられていることから、当該他の電子機器はコンフィグレーションROM45内の情報が書き換えられたことを知ることができる。これにより、当該他の電子機器は、図4の電子機器41についての「サービスに係る情報」を破棄して、新たな「サービスに係る情報」を読み出そうと試みる。しかし、サービスに係る情報は削除されており当然読み出すことができないので、これをもって当該他の電子機器はサービスの提供が停止されていることを知ることができるのである。
【0039】
なお、第1実施例をOpenHCI規格に準拠した電子機器に適用する場合には、リンク層コントローラへの電力供給停止までの時間を速めずとも、他の電子機器がコンフィグレーションROMから「サービスに係る情報」を読み出すことができないようにすることができるという利点がある。
【0040】
また、サービスに係る情報をコンフィグレーションROMから削除して、バスリセット信号を送信するという動作は、IEEE1394規格に準拠した従来の電子機器のファームフェアを改良することで実現可能であるという利点がある。こうすれば、リンク層コントローラや物理層コントローラを改良する場合に比べて、コスト面で有利である。
【0041】
(第2実施例)
第2実施例では、図4の電子機器41は、電源がOFFになることなどに伴ってサービスの提供を停止することになったとき、まずバスリセット信号を送信する。すなわち、CPU44がリンク層コントローラ43にバスリセット信号の送信要求を出し、リンク層コントローラ43が物理層コントローラ42にバスリセット信号の送信要求を送る。これにより、バスリセットが実行される。
【0042】
ここで、図3のようなIEEE1394規格に係るシステムにおいては、バスリセットが実行された後に自己認識プロセスが実行される。自己認識プロセスにおいて、各電子機器は自己認識パケットを送信する。図7は、自己認識パケットのフォーマットを表す。各電子機器は、この自己認識パケットに基づいてバスコンフィグレーションを実行することになる。
【0043】
第2実施例では、図4の電子機器41は、バスリセットの後の自己認識プロセスにおいて、実際にはリンク層コントローラ43がアクティブであるにもかかわらず、リンク層の存在を示すビットである「Lビット」を0(リンク層コントローラ43がアクティブである場合、通常であればLビットは1)にセットした自己認識パケットを送信する。なお、電源がOFFになることに伴ってサービスの提供を停止する場合においては、自己認識パケットを送信した後に、実際に電源がOFFになる。
【0044】
図4の電子機器41から送信された自己認識パケットは、他の電子機器により受信される。当該他の電子機器は、自己認識パケットのLビットが0にセットされていることから、図4の電子機器41のリンク層コントローラ42はアクティブでないと判断することになる。すなわち、これをもって当該他の電子機器はサービスの提供が停止されていることを知ることができるのである。
【0045】
ここで、図3のようなIEEE1394規格に係るシステムにおいては、自己認識プロセスが実行された後にコンフィグレーションROMの読み出しが実行される。しかし、図4の電子機器41のコンフィグレーションROM45に関しては、他の電子機器による読み出しが実行されない。ある電子機器のコンフィグレーションROMの読み出しが実行されるには、その電子機器のリンク層コントローラがアクティブであることが必要となるからである。したがって、図4の電子機器41のコンフィグレーションROM45の読み出しのための無駄なトランザクションが発生しないという利点がある。
【0046】
最後に、図4の電子機器41に関して、自己認識パケット内のLビットを0にセットする具体的手段の例について説明する。
【0047】
第1の例としては、バスリセット信号の送信前に物理層コントローラ42のレジスタを操作することにより、バスリセット信号の送信後に送信される自己認識パケット内のLビットを0にセットする。例えば、P1394a規格に準拠した電子機器に適用する場合には、アドレス4(0100)に位置するレジスタのLCt1ビットを0にセットすればよい。
【0048】
第2の例としては、バスリセット信号の送信前に物理層コントローラ42のLPS(LINK_Power_Status)端子を操作することにより、バスリセット信号の送信後に送信される自己認識パケット内のLビットを0にセットする。LPS端子は、リンク層コントローラ43がアクティブであるか否かを物理層コントローラ42に知らせるための端子であり、通常はリンク層コントローラ43の該当する端子(アクティブ信号が出力される端子)に接続される。例えば、このLPS端子に入力される信号を、リンク層コントローラ43のアクティブ信号と電源OFF要求により非アクティブとなる(電源OFF要求の論理NOT)信号との論理ANDにすればよい。
【0049】
なお、物理層コントローラのレジスタやLPS端子の操作は、IEEE1394規格に準拠した従来の電子機器の物理層コントローラがそのままでも実現可能であるという利点がある。こうすれば、物理層コントローラを改良する場合に比べて、コスト面で有利である。
【0050】
【発明の効果】
このように、本発明は、シリアルバスを介して接続されている他の電子機器に対してサービスを提供する電子機器において、電源がOFFになることに伴ってサービスの提供を停止するとき、他の電子機器がサービスの提供が停止されていることを比較的即座に知ることができるようにすることを可能にする。
【0051】
特に、本発明は、IEEE1394規格に準拠した電子機器であって、IEEE1394シリアルバスを介して接続されているIEEE1394規格に準拠した他の電子機器に対してサービスを提供する電子機器において、電源がOFFになることに伴ってサービスの提供を停止するとき、他の電子機器がサービスの提供が停止されていることを比較的即座に知ることができるようにすることを可能にする。
【図面の簡単な説明】
【図1】IEEE1394規格に係るシステムを表す。
【図2】IEEE1394規格に係るプロトコルを表す。
【図3】IEEE1394規格に係るシステムを表す。
【図4】本発明の実施の形態の例である電子機器を表す。
【図5】コンフィグレーションROM内の情報の階層を表す。
【図6】Bus_information_blockのフォーマットを表す。
【図7】自己認識パケットのフォーマットを表す。
【符号の説明】
11 ノード
12 シリアルバス
21 物理層
22 リンク層
23 トランザクション層
24 アプリケーション層
25 シリアルバス管理
41 電子機器
42 物理層コントローラ
43 リンク層コントローラ
44 CPU
45 コンフィグレーションROM
51 Instance_directory
52 Unit_directory
53 Feature_directory
54 Keyword_leaf
55 Dependent_leaf
56 Bus_information_block
61 generation_field
[0001]
BACKGROUND OF THE INVENTION
The present invention relates to an electronic device.
[0002]
[Prior art]
The IEEE 1394 standard is a serial bus standard for digital data communication. The IEEE 1394 standard was approved as the “IEEE 1394-1995 standard” in 1995, and the “P1394a standard” and the “P1394b standard” for clarifying this are also being studied. The serial bus according to the IEEE 1394 standard is referred to as “IEEE 1394 serial bus”.
[0003]
FIG. 1 represents a system according to the IEEE 1394 standard. The node 11 is an electronic device compliant with the IEEE 1394 standard, and the serial bus 12 (IEEE serial bus) is a cable compliant with the IEEE 1394 standard. That is, the electronic devices are connected via a cable. The connection terminal of the cable is a connector such as “4 pins” or “6 pins”.
[0004]
FIG. 2 shows a protocol according to the IEEE 1394 standard. The protocol according to the IEEE 1394 standard includes a physical layer 21, a link layer 22, a transaction layer 23, and a serial bus management 25 that manages the three layers. The physical layer 21 and the link layer 22 are hardware, and the transaction layer 23 and the serial bus management 25 are firmware. Note that an application layer 24 exists as an upper layer of the three layers.
[0005]
The physical layer 21 is involved in processing related to bus configuration at the time of bus reset such as “bus initialization”, “tree recognition”, and “self recognition”, processing related to bus acquisition at the time of packet transfer such as “arbitration”, and the like. . The link layer 22 is involved in processing related to packet transfer such as “isochronous transfer”, “asynchronous transfer”, and “asynchronous stream”. The transaction layer 23 is involved in processing related to instructions such as “Read”, “Write”, and “Lock”.
[0006]
The application layer 24 is not standardized in the IEEE 1394-1995 standard. Therefore, the application layer 24 is standardized as, for example, “SBP2 standard” or “SBP3 standard”. In the SBP2 standard, processing related to an initiator (a node that issues a command) and a target (a node that receives a command) is standardized.
[0007]
The serial bus management 25 includes a bus manager, an isochronous resource manager, and a node controller. The bus manager performs bus management such as “providing a topology map” and “providing a speed map”. The isochronous resource manager performs isochronous resource management such as “assignment of isochronous bandwidth” and “assignment of channel number”. The node controller performs node control.
[0008]
Finally, the advantages of the IEEE 1394 standard are listed. The first advantage is “guarantee of real-time property” by isochronous transfer. A second advantage is “Hot_Plug_In” that can be inserted and removed while the power is on. A third advantage is “Plug _ & _ Play” in which bus configuration is automatically executed in response to insertion / removal.
[0009]
[Problems to be solved by the invention]
Here, an electronic device that conforms to the IEEE 1394 standard, and that provides services to other electronic devices conforming to the IEEE 1394 standard connected via the IEEE 1394 serial bus will be considered.
[0010]
When the power of an electronic device connected to the bus is turned off, service provision from the electronic device to other electronic devices is stopped. However, since the electronic device whose power is turned off cannot transmit the bus reset signal, the bus reset is not executed and the bus configuration is not executed. Therefore, there is a problem that other electronic devices connected to the bus cannot immediately know that service provision from the electronic device whose power is turned off is stopped.
[0011]
As an invention for solving this problem, Japanese Patent Laid-Open No. 2001-160806 describes an invention for transmitting a bus reset signal before turning off the power. According to the description in this document, if a bus reset signal is transmitted before the power is turned off, a bus reset is executed by this and a bus configuration is executed. It is possible to know for certain that it has been stopped.
[0012]
Here, the means for other electronic devices to know the existence of services provided by a certain electronic device is “configuration ROM” that is executed following “bus reset”, “bus initialization”, “tree recognition”, and “self-recognition”. Read out ”. Each electronic device writes “service information” in its own configuration ROM, and other electronic devices read the “service information” from the configuration ROM to know the existence of the service. is there.
[0013]
Therefore, as described in Japanese Patent Laid-Open No. 2001-160806, by transmitting a bus reset signal before turning off the power so that other electronic devices can know that the service provision has been stopped, At the time of “reading the configuration ROM”, it is necessary to prevent other electronic devices from reading “information relating to the service” from the configuration ROM.
[0014]
However, according to the description in the document, the CPU processes the power-off request, the CPU issues a bus reset signal transmission request to the link layer controller, and the link layer controller sends the bus reset signal transmission request to the physical layer controller. Then, after confirming the completion of the operation, a request to turn off the power is permitted.
[0015]
Therefore, if it takes time from the transmission of the bus reset signal until the power is turned off, the other electronic device can read “information related to the service” from the configuration ROM in the meantime. Misunderstanding that service provision is continuing.
[0016]
Incidentally, in an electronic device compliant with the OpenHCI standard, which is an implementation standard of the IEEE 1394 standard, all reading from the configuration ROM is processed by the DMA context in the link layer controller, so as long as power is supplied to the link layer controller. Reading from the configuration ROM is possible. Since the completion of transmission of the bus reset signal cannot normally be executed without going through the link layer controller, only the power of the link layer controller cannot be turned off before that.
[0017]
Since the time from the transmission of the bus reset signal to the reading of the configuration ROM is about several milliseconds, it is practically necessary to prevent other electronic devices from reading the “information related to the service”. It can be said that there is enough from a simple point of view. However, the time until the power supply to the link layer controller is stopped depends on the design of each electronic device, and it can be said that there is no reliable means for speeding up the time until the power supply to the link layer controller is stopped.
[0018]
Even if other electronic devices can be prevented from reading “information related to the service”, another problem exists. This is a problem that a wasteful asynchronous read transaction occurs on the bus because other electronic devices try to read “information related to the service”. The occurrence of a read retry following a read failure causes a wasteful consumption of the bus bandwidth.
[0019]
Therefore, according to the present invention, when an electronic device that provides a service to another electronic device connected via a serial bus stops providing the service when the power is turned off, It is an object to make it possible for a device to know relatively quickly that the service is stopped.
[0020]
In particular, the present invention relates to an electronic device that conforms to the IEEE 1394 standard, and is turned off in an electronic device that provides services to other electronic devices conforming to the IEEE 1394 standard connected via the IEEE 1394 serial bus. Accordingly, it is an object of the present invention to make it possible for other electronic devices to know relatively quickly that the service is stopped when the service is stopped.
[0021]
[Means for Solving the Problems]
According to the first aspect of the present invention (electronic device), when an electronic device that provides a service to another electronic device connected via a serial bus stops providing the service, a bus reset is performed. In the self-recognition process after sending a signal and performing a bus reset, even if the link layer controller is actually active, sending a self-recognition packet with the bit indicating the existence of the link layer set to 0 Features.
[0024]
The invention (electronic device) described in claim 2 is an electronic device compliant with the IEEE 1394 standard, and provides a service to another electronic device compliant with the IEEE 1394 standard connected via the IEEE 1394 serial bus. When the electronic device stops providing the service, the self-recognition process after transmitting the bus reset signal and executing the bus reset, even if the link layer controller is actually active, A self-recognition packet in which a bit indicating presence is set to 0 is transmitted.
[0025]
The invention (electronic device) according to claim 3 relates to the invention (electronic device) according to claim 1 or 2, and is a bit indicating the presence of the link layer in the self-recognition packet by an operation of a register of the physical layer controller. Is set to 0.
[0026]
The invention (electronic device) described in claim 4 relates to the invention (electronic device) described in claim 1 or 2 , and indicates the presence of the link layer in the self-recognition packet by operating the LPS terminal of the physical layer controller. The bit is set to 0.
[0027]
The invention (electronic device) according to claim 5 relates to the invention (electronic device) according to any one of claims 1 to 4 , wherein the service is one of a print service, a facsimile service, and a scan service. Alternatively, two or more are provided.
[0029]
In the invention (electronic device) according to claim 1 or 2 , when stopping providing the service, a bus reset signal is transmitted and a self-identification packet in which a bit indicating the presence of the link layer is set to 0 is transmitted. By doing so, when the service provision is stopped as the power is turned off, the other electronic devices can know relatively quickly that the service provision is stopped.
[0030]
DETAILED DESCRIPTION OF THE INVENTION
Embodiments of the present invention will be described.
[0031]
FIG. 3 represents a system according to the IEEE 1394 standard. The node 11 is an electronic device compliant with the IEEE 1394 standard, and the serial bus 12 (IEEE serial bus) is a cable compliant with the IEEE 1394 standard.
[0032]
FIG. 4 shows an electronic device 41 which is an example of an embodiment of the present invention. 4 includes a physical layer controller 42, a link layer controller 43, a CPU 44, and a configuration ROM 45. The electronic device 41 in FIG. 4 is a node 11 configuring the system in FIG. 3 and provides a service to the other nodes 11 configuring the system in FIG. For example, there are a print service, a facsimile service, a scan service, and the like. One or more of these may be provided.
[0033]
FIG. 5 shows a hierarchy of information in the configuration ROM 45 of FIG. The electronic device 41 writes information related to the type of service (print service, facsimile service, scan service, etc.) that is “information related to the service” using the Instance_directory 51 and the accompanying Feature_directory 53 and Keyword_leaf 54 in FIG. Also, information related to the protocol for using the service, which is “information related to the service”, is written using the Unit_directory 52 and the Feature_leaf 53 and Dependent_leaf 55 associated therewith in FIG. Note that an electronic device compliant with the IEEE 1394 standard has a configuration ROM in a region of 1024 bytes from the offset FFFFF0000400h in the electronic device and a region that can be traced by link information from the region.
[0034]
FIG. 6 shows the format of Bus_information_block 56 of FIG. The electronic device 41 that has rewritten the information in its own configuration ROM 45 has rewritten the value of generation_field 61 in Bus_information_block 56, and the other electronic devices have rewritten the information in configuration ROM 45 by reading the value of this generation_field 61. Can know.
[0035]
Hereinafter, each embodiment will be described on the premise of the settings shown in FIGS.
[0036]
(First embodiment)
In the first embodiment, when the electronic device 41 in FIG. 4 stops providing the service due to the power being turned off or the like, first, information related to the service is deleted from the configuration ROM 45. What is deleted here is information on the type of service, information on a protocol for using the service, and link information written in a parent directory related to the information.
[0037]
After deleting the information related to the service, the electronic device 41 in FIG. 4 rewrites the value of the generation_field 61 and transmits a bus reset signal. That is, the CPU 44 issues a bus reset signal transmission request to the link layer controller 43, and the link layer controller 43 sends a bus reset signal transmission request to the physical layer controller 42. Thereby, a bus reset is executed. In the case where the provision of service is stopped when the power is turned off, the power is actually turned off after the bus reset signal is transmitted.
[0038]
Subsequent to the bus reset, another electronic device reads the value of generation_field 61 from the configuration ROM 45 of the electronic device 41 in FIG. At this time, since the value of generation_field 61 is rewritten, the other electronic device can know that the information in the configuration ROM 45 has been rewritten. As a result, the other electronic device discards the “service-related information” for the electronic device 41 in FIG. 4 and tries to read a new “service-related information”. However, since the information related to the service has been deleted and cannot be read as a matter of course, the other electronic device can know that the provision of the service has been stopped.
[0039]
In addition, when the first embodiment is applied to an electronic device compliant with the OpenHCI standard, other electronic devices can read from the configuration ROM “service-related” without increasing the time until the power supply to the link layer controller is stopped. There is an advantage that information cannot be read out.
[0040]
Further, the operation of deleting the information related to the service from the configuration ROM and transmitting the bus reset signal has an advantage that it can be realized by improving the firmware of the conventional electronic device compliant with the IEEE1394 standard. . This is advantageous in terms of cost as compared with the case of improving the link layer controller and the physical layer controller.
[0041]
(Second embodiment)
In the second embodiment, the electronic device 41 of FIG. 4 first transmits a bus reset signal when it stops providing the service due to the power being turned off. That is, the CPU 44 issues a bus reset signal transmission request to the link layer controller 43, and the link layer controller 43 sends a bus reset signal transmission request to the physical layer controller 42. Thereby, a bus reset is executed.
[0042]
Here, in the system according to the IEEE 1394 standard as shown in FIG. 3, the self-recognition process is executed after the bus reset is executed. In the self-recognition process, each electronic device transmits a self-recognition packet. FIG. 7 shows the format of the self-recognition packet. Each electronic device executes bus configuration based on the self-recognition packet.
[0043]
In the second embodiment, the electronic device 41 of FIG. 4 is a bit indicating the presence of the link layer in the self-recognition process after the bus reset even though the link layer controller 43 is actually active. A self-recognition packet having “L bit” set to 0 (when the link layer controller 43 is active, the L bit is normally 1) is transmitted. In the case where service provision is stopped as the power is turned off, the power is actually turned off after the self-recognition packet is transmitted.
[0044]
The self-recognition packet transmitted from the electronic device 41 in FIG. 4 is received by another electronic device. The other electronic device determines that the link layer controller 42 of the electronic device 41 in FIG. 4 is not active because the L bit of the self-recognition packet is set to 0. That is, with this, the other electronic device can know that the provision of the service is stopped.
[0045]
In the system according to the IEEE 1394 standard as shown in FIG. 3, the configuration ROM is read after the self-recognition process is executed. However, the configuration ROM 45 of the electronic device 41 in FIG. 4 is not read by another electronic device. This is because in order to read the configuration ROM of an electronic device, the link layer controller of the electronic device needs to be active. Therefore, there is an advantage that a useless transaction for reading the configuration ROM 45 of the electronic device 41 of FIG. 4 does not occur.
[0046]
Finally, an example of specific means for setting the L bit in the self-recognition packet to 0 will be described with respect to the electronic device 41 of FIG.
[0047]
As a first example, by operating the register of the physical layer controller 42 before transmission of the bus reset signal, the L bit in the self-recognition packet transmitted after transmission of the bus reset signal is set to 0. For example, when applied to an electronic device compliant with the P1394a standard, the LCt1 bit of the register located at address 4 (0100 2 ) may be set to 0.
[0048]
As a second example, by operating the LPS (LINK_Power_Status) terminal of the physical layer controller 42 before transmission of the bus reset signal, the L bit in the self-recognition packet transmitted after transmission of the bus reset signal is set to 0. To do. The LPS terminal is a terminal for notifying the physical layer controller 42 whether or not the link layer controller 43 is active, and is normally connected to a corresponding terminal (terminal to which an active signal is output) of the link layer controller 43. The For example, the signal input to the LPS terminal may be a logical AND between the active signal of the link layer controller 43 and a signal that becomes inactive due to a power OFF request (a logical NOT request for the power OFF request).
[0049]
Note that the operation of the registers and LPS terminals of the physical layer controller has an advantage that the physical layer controller of a conventional electronic device compliant with the IEEE 1394 standard can be realized as it is. This is advantageous in terms of cost compared with the case where the physical layer controller is improved.
[0050]
【The invention's effect】
In this way, the present invention provides an electronic device that provides a service to another electronic device connected via a serial bus when the service is stopped when the power is turned off. It is possible to make it possible to know relatively quickly that the electronic equipment of the service is stopped.
[0051]
In particular, the present invention is an electronic device that conforms to the IEEE 1394 standard, and is turned off in an electronic device that provides services to other electronic devices conforming to the IEEE 1394 standard connected via the IEEE 1394 serial bus. When the provision of the service is stopped, the other electronic device can know relatively quickly that the provision of the service is stopped.
[Brief description of the drawings]
FIG. 1 represents a system according to the IEEE 1394 standard.
FIG. 2 represents a protocol according to the IEEE 1394 standard.
FIG. 3 represents a system according to the IEEE 1394 standard.
FIG. 4 illustrates an electronic device that is an example of an embodiment of the present invention.
FIG. 5 shows a hierarchy of information in the configuration ROM.
FIG. 6 shows a format of Bus_information_block.
FIG. 7 shows a format of a self-recognition packet.
[Explanation of symbols]
11 Node 12 Serial bus 21 Physical layer 22 Link layer 23 Transaction layer 24 Application layer 25 Serial bus management 41 Electronic device 42 Physical layer controller 43 Link layer controller 44 CPU
45 Configuration ROM
51 Instance_directory
52 Unit_directory
53 Feature_directory
54 Keyword_leaf
55 Dependent_leaf
56 Bus_information_block
61 generation_field

Claims (5)

シリアルバスを介して接続されている他の電子機器に対してサービスを提供する電子機器において、
前記サービスを提供することを停止するとき、バスリセット信号を送信してバスリセットを実行した後の自己認識プロセスにおいて、実際にはリンク層コントローラがアクティブであっても、リンク層の存在を示すビットを0にセットした自己認識パケットを送信することを特徴とする電子機器。
In electronic devices that provide services to other electronic devices connected via a serial bus,
A bit indicating the presence of the link layer in the self-aware process after sending a bus reset signal and performing a bus reset when actually stopping the service, even though the link layer controller is actually active An electronic apparatus characterized by transmitting a self-recognition packet in which is set to 0.
IEEE1394規格に準拠した電子機器であって、IEEE1394シリアルバスを介して接続されているIEEE1394規格に準拠した他の電子機器に対してサービスを提供する電子機器において、
前記サービスを提供することを停止するとき、バスリセット信号を送信してバスリセットを実行した後の自己認識プロセスにおいて、実際にはリンク層コントローラがアクティブであっても、リンク層の存在を示すビットを0にセットした自己認識パケットを送信することを特徴とする電子機器。
An electronic device that conforms to the IEEE 1394 standard and provides services to other electronic devices that conform to the IEEE 1394 standard connected via the IEEE 1394 serial bus.
A bit indicating the presence of the link layer in the self-aware process after sending a bus reset signal and performing a bus reset when actually stopping the service, even though the link layer controller is actually active An electronic apparatus characterized by transmitting a self-recognition packet in which is set to 0.
物理層コントローラのレジスタの操作により、前記自己認識パケット内のリンク層の存在を示すビットを0にセットすることを特徴とする請求項又はに記載の電子機器。The operation of the physical layer controller registers, electronic device according to claim 1 or 2 bits indicating the presence of a link layer in said self-recognition packet, characterized in that set to 0. 物理層コントローラのLPS端子の操作により、前記自己認識パケット内のリンク層の存在を示すビットを0にセットすることを特徴とする請求項又はに記載の電子機器。The operation of the physical layer controller of LPS terminal electronic device according to claim 1 or 2 bits indicating the presence of a link layer in said self-recognition packet, characterized in that set to 0. 前記サービスとして、プリントサービス、ファクシミリサービス、スキャンサービスの内の1個または2個以上を提供することを特徴とする請求項1乃至のいずれか1項に記載の電子機器。As the service, the print service, fax service, one or electronic device according to any one of claims 1 to 4, characterized in that it provides two or more of the scan service.
JP2002358038A 2002-12-10 2002-12-10 Electronics Expired - Fee Related JP3977240B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2002358038A JP3977240B2 (en) 2002-12-10 2002-12-10 Electronics

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2002358038A JP3977240B2 (en) 2002-12-10 2002-12-10 Electronics

Publications (2)

Publication Number Publication Date
JP2004193862A JP2004193862A (en) 2004-07-08
JP3977240B2 true JP3977240B2 (en) 2007-09-19

Family

ID=32757867

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2002358038A Expired - Fee Related JP3977240B2 (en) 2002-12-10 2002-12-10 Electronics

Country Status (1)

Country Link
JP (1) JP3977240B2 (en)

Also Published As

Publication number Publication date
JP2004193862A (en) 2004-07-08

Similar Documents

Publication Publication Date Title
US6157972A (en) Apparatus and method for processing packetized information over a serial bus
US6996112B2 (en) Information communication system, information communication method, information signal processing device and information signal processing method, and storage medium
JP4278439B2 (en) Information communication apparatus, system thereof, method thereof, program thereof, and recording medium recording the program
EP0827062A1 (en) Electronic apparatus and operation mode controlling method therefor
KR100746900B1 (en) Electronic equipment, and method for controlling state of physical layer circuit thereof
US6904022B2 (en) Data transfer control device, information storage medium and electronic equipment
JP3599048B2 (en) Data transfer control system, electronic device, program, and data transfer control method
WO2024045742A1 (en) Computing device
JP3977240B2 (en) Electronics
US6993022B1 (en) Method of and apparatus for directly mapping communications through a router between nodes on different buses within a network of buses
US7420930B2 (en) Communication apparatus, communication method, communication program and information recording medium having the program recorded thereon
JP3598924B2 (en) Data transfer control device, information storage medium, and electronic device
JP4683120B2 (en) Electronic device and communication method
KR100628320B1 (en) Apparatus for accelerating VPN IPsec
JP3882618B2 (en) Communication apparatus and network system
JP3606145B2 (en) Data transfer control device and electronic device
JPH11215132A (en) Device and method for processing information and distribution medium
JP4244474B2 (en) Information processing apparatus and method
JP2001320376A (en) Electronic apparatus control method and semiconductor device
JP3598922B2 (en) Data transfer control device, information storage medium, and electronic device
JP2006324869A (en) Communication processing method and communication equipment for network system
JP2005223545A (en) Apparatus for managing data transmission apparatus
JP3758045B2 (en) Connection equipment to IEEE1394 serial bus
JP3749625B2 (en) Node management method, network adapter, and recording medium
KR100546563B1 (en) method for controlling connection between nodes in bus system

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20050401

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20070125

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20070206

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20070409

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20070620

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100629

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110629

Year of fee payment: 4

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110629

Year of fee payment: 4

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120629

Year of fee payment: 5

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130629

Year of fee payment: 6

LAPS Cancellation because of no payment of annual fees