JP6516511B2 - Electronics - Google Patents

Electronics Download PDF

Info

Publication number
JP6516511B2
JP6516511B2 JP2015041186A JP2015041186A JP6516511B2 JP 6516511 B2 JP6516511 B2 JP 6516511B2 JP 2015041186 A JP2015041186 A JP 2015041186A JP 2015041186 A JP2015041186 A JP 2015041186A JP 6516511 B2 JP6516511 B2 JP 6516511B2
Authority
JP
Japan
Prior art keywords
signal line
connection
connection structure
storage unit
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.)
Expired - Fee Related
Application number
JP2015041186A
Other languages
Japanese (ja)
Other versions
JP2016162269A (en
Inventor
郷地 学
学 郷地
史和 松浦
史和 松浦
Original Assignee
センスシングスジャパン株式会社
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 センスシングスジャパン株式会社 filed Critical センスシングスジャパン株式会社
Priority to JP2015041186A priority Critical patent/JP6516511B2/en
Publication of JP2016162269A publication Critical patent/JP2016162269A/en
Application granted granted Critical
Publication of JP6516511B2 publication Critical patent/JP6516511B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Transfer Systems (AREA)

Description

本発明は、電子機器に関し、特に1対1通信を利用した電子機器に関する。   The present invention relates to an electronic device, and more particularly to an electronic device using one-to-one communication.

従来から1対1のデバイス間通信が用いられている。このような通信として、例えばUSB(Universal Serial Bus)通信が挙げられる。このUSB通信においては、第1デバイスと第2デバイスとが信号線を介して互いに通信する。なおUSB通信では、第1デバイスおよび第2デバイスの一方がマスタとして動作し、他方がスレーブとして動作する。例えばマスタのデバイスとして、パーソナルコンピュータを採用でき、スレーブのデバイスとして、例えばUSBメモリなどを採用できる。   Conventionally, one-to-one communication between devices is used. Examples of such communication include USB (Universal Serial Bus) communication. In the USB communication, the first device and the second device communicate with each other via a signal line. In USB communication, one of the first device and the second device operates as a master, and the other operates as a slave. For example, a personal computer can be employed as a master device, and a USB memory or the like can be employed as a slave device.

近年、マスタとしてもスレーブとしても動作可能な通信規格として、USB OTG(USB On The Go)が提案されている。例えば第1デバイスはマスタおよびスレーブとして動作可能である。これにより、第1デバイスは、相手方の第2デバイスのマスタ/スレーブに応じて、マスタ/スレーブを選択して動作することができる。したがって、第1デバイスは種々の第2デバイスとUSB通信を行うことができるのである。   In recent years, USB OTG (USB On The Go) has been proposed as a communication standard that can operate as both a master and a slave. For example, the first device can operate as a master and a slave. Thereby, the first device can select and operate the master / slave according to the master / slave of the second device of the other party. Thus, the first device can perform USB communication with various second devices.

ところで、第1デバイスは演算処理部と記憶部とを備えており、この演算処理部は、記憶部に記憶されたプログラム(例えばファームウェア)を読み出し、このプログラムに則って動作する。これにより、第1デバイスは第2デバイスに対してマスタとして動作することができる。   The first device includes an arithmetic processing unit and a storage unit. The arithmetic processing unit reads a program (for example, firmware) stored in the storage unit and operates according to the program. This allows the first device to act as a master for the second device.

このプログラムは、例えば製造工程において、外部の書込装置(例えばパーソナルコンピュータ)を用いて記憶部に書き込まれる。この書込装置を第1デバイスに接続すべく、第1デバイスには、第2デバイスと接続するためのUSBポートとは別に、書込装置と接続するためのUSBポートも設けられる。   This program is written in the storage unit using, for example, an external writing device (for example, a personal computer) in a manufacturing process. In order to connect the writing device to the first device, the first device is also provided with a USB port for connecting to the writing device separately from the USB port for connecting to the second device.

また本願に関連する技術として、特許文献1を掲示する。   Moreover, patent document 1 is posted as a technique relevant to this application.

特表2006−500672号公報JP 2006-500672 gazette

しかしながら、第2デバイス専用のUSBポートと、書込装置専用のUSBポートとを設けることは、製造コストの観点で好ましくない。   However, providing the USB port dedicated to the second device and the USB port dedicated to the writing device is not preferable from the viewpoint of manufacturing cost.

また、一つのUSBポートを第1デバイスに設けるべく、この一つのUSBポートにHUB(ハブ)を接続し、このHUBに、書込装置および第2デバイスを接続することが考えられる。しかしながら、このようなHUBは高価であるので、HUBの搭載も製造コストの観点では望ましくない。   Also, in order to provide one USB port in the first device, it is conceivable to connect a HUB (hub) to this one USB port and connect a writing device and a second device to this HUB. However, since such HUBs are expensive, mounting of the HUBs is also undesirable in terms of manufacturing costs.

そこで、本願は、低コストで書込装置とも通信可能な電子機器を提供することを目的とする。   Therefore, the present application aims to provide an electronic device that can communicate with a writing device at low cost.

電子機器の第1の態様は、1対1通信で用いられる信号線と、前記信号線に接続される第1デバイスと、前記信号線との通信的な接続/非接続を選択し、前記信号線と接続した状態において前記第1デバイスと通信を行う第2デバイスと、外部の第1接続構造と着脱可能に接続される第2接続構造とを備え、前記第2接続構造は、前記信号線に接続されるとともに、前記第1接続構造を介して外部装置に接続される第1接続部と、所定の第1電源電位に接続される第2接続部と、前記第2デバイスに接続されるとともに、前記第1接続構造を介して前記第2接続部と接続される第3接続部とを備え、前記第2デバイスは、前記第1接続構造が前記第2接続構造に接続されたときの前記第3接続部の電位に応じて、前記信号線通信的に切り離し、前記第1デバイスは、前記第2デバイスが前記信号線通信的に切り離した状態で、前記信号線を介して前記外部装置と通信し、前記第1接続構造が前記第2接続構造に接続されたときの前記第3接続部の電位が、リセット信号として前記第2デバイスに入力されるA first aspect of the electronic device selects a signal line used in one-to-one communication, a first device connected to the signal line, and communicative connection / disconnection between the signal line, and the signal A second device configured to communicate with the first device in a state of being connected to a line, and a second connection structure detachably connected to an external first connection structure, wherein the second connection structure includes the signal line Connected to an external device through the first connection structure, a second connection connected to a predetermined first power supply potential, and connected to the second device And a third connection portion connected to the second connection portion via the first connection structure, and the second device is connected to the second connection structure when the first connection structure is connected to the second connection portion. according to the potential of the third connecting portion, communicatively disconnect the signal line The first device, in a state where the second device is disconnected communication manner the signal line, to communicate with the external device via the signal line, connected to the first connecting structure to said second connecting structure The electric potential of the third connection when being turned on is input to the second device as a reset signal .

電子機器の第2の態様は、第1の態様にかかる電子機器であって、前記第1デバイスによって実行されるプログラムが書き込み可能な記憶部を更に備え、前記第1デバイスは、前記第2デバイスが前記信号線通信的に切り離した状態で、前記信号線を介して前記外部装置から受け取った前記プログラムを前記記憶部に書き込む。 A second aspect of the electronic device is the electronic device according to the first aspect, further comprising: a storage unit into which a program executed by the first device can be written; and the first device can be a device according to the second device in a state but which disconnects the signal line communicatively writes the program received from the external device via the signal line to the storage unit.

電子機器の第3の態様は、第2の態様にかかる電子機器であって、前記記憶部は、自身のアクセスについての有効/無効の入力を受け付け、前記電子機器は、前記第1接続構造が接続された状態で前記第1デバイスが前記記憶部から前記プログラムを読み込むときに、前記記憶部へのアクセスを無効にし、所定期間の経過後に、前記記憶部へのアクセスを有効にする、有効/無効設定部を更に備え、前記第1デバイスは、前記第2デバイスが前記信号線通信的に切り離し、かつ、前記記憶部から前記プログラムを読み込むことができないときに、前記外部装置からの前記プログラムの送信を待つ。 A third aspect of the electronic device is the electronic device according to the second aspect, wherein the storage unit receives valid / invalid input for its own access, and the electronic device has the first connection structure. When the first device reads the program from the storage unit in a connected state, the access to the storage unit is invalidated, and the access to the storage unit is validated after a predetermined period has elapsed. The apparatus further comprises an invalidation setting unit, and the first device is configured to receive the program from the external device when the second device disconnects the signal line in communication and can not read the program from the storage unit. Wait for the transmission of

電子機器の第4の態様は、第1から第3のいずれか一つの態様にかかる電子機器であって、前記第1デバイスと前記外部装置との間の通信速度を、前記第1デバイスと前記第2デバイスとの間の通信速度よりも低く設定する。   A fourth aspect of the electronic device is the electronic device according to any one of the first to third aspects, wherein a communication speed between the first device and the external device is equal to the communication speed between the first device and the external device. Set lower than the communication speed with the second device.

電子機器の第5の態様は、第4の態様にかかる電子機器であって、前記信号線は所定の基板上に形成されたパターンである。   A fifth aspect of the electronic device is the electronic device according to the fourth aspect, wherein the signal line is a pattern formed on a predetermined substrate.

電子機器の第6の態様は、第1から第5のいずれか一つの態様にかかる電子機器であって、前記信号線は、USB用の信号線であり、前記第1デバイスはマスタ/スレーブを選択可能に通信し、前記第1デバイスおよび前記第2デバイスはそれぞれマスタおよびスレーブとして動作して互いに通信し、前記第1接続構造が前記第2接続構造に接続された状態で、前記第1デバイスは前記外部装置に対してスレーブとして動作して通信する。   A sixth aspect of the electronic device is the electronic device according to any one of the first to fifth aspects, wherein the signal line is a signal line for USB, and the first device is a master / slave. In selective communication, the first device and the second device operate as a master and a slave, respectively, to communicate with each other, and with the first connection structure connected to the second connection structure, the first device Communicate with the external device as a slave.

電子機器の第7の態様は、1対1通信で用いられる信号線と、前記信号線に接続される第1デバイスと、前記信号線との通信的な接続/非接続を選択し、前記信号線と接続した状態において前記第1デバイスと通信を行う第2デバイスと、外部の第1接続構造と着脱可能に接続される第2接続構造とを備え、前記第2接続構造は、前記信号線に接続されるとともに、前記第1接続構造を介して外部装置に接続される第1接続部と、所定の第1電源電位に接続される第2接続部と、前記第2デバイスに接続されるとともに、前記第1接続構造を介して前記第2接続部と接続される第3接続部とを備え、前記第2デバイスは、前記第1接続構造が前記第2接続構造に接続されたときの前記第3接続部の電位に応じて、前記信号線を通信的に切り離し、前記第1デバイスは、前記第2デバイスが前記信号線を通信的に切り離した状態で、前記信号線を介して前記外部装置と通信し、前記第2接続構造は、第1電源電位と異なる第2電源電位に接続される第4接続部と、前記第1デバイスに接続されるとともに、前記第1接続構造が接続された状態で前記第4接続部に接続される第5接続部とを更に備え、前記第1デバイスは、前記第1接続構造が接続されたときの前記第5接続部の電位に応じて、前記信号線を介して前記外部装置と通信する。
According to a seventh aspect of the electronic device, a signal line used in one-to-one communication, a first device connected to the signal line, and communicative connection / disconnection between the signal line are selected, and the signal is selected. A second device configured to communicate with the first device in a state of being connected to a line, and a second connection structure detachably connected to an external first connection structure, wherein the second connection structure includes the signal line Connected to an external device through the first connection structure, a second connection connected to a predetermined first power supply potential, and connected to the second device And a third connection portion connected to the second connection portion via the first connection structure, and the second device is connected to the second connection structure when the first connection structure is connected to the second connection portion. The signal line is disconnected according to the potential of the third connection. The first device communicates with the external device through the signal line in a state in which the second device disconnects the signal line in a communicative manner, and the second connection structure communicates with the first power supply potential A fourth connection connected to a different second power supply potential, and a fifth connection connected to the first device and connected to the fourth connection in a state where the first connection structure is connected; The first device communicates with the external device via the signal line in accordance with the potential of the fifth connection when the first connection structure is connected.

電子機器の第1および第2の態様によれば、外部装置専用の信号線と、第2デバイス専用の信号線を設ける必要がない。換言すれば、第1デバイスに、外部装置専用の通信ポートと第2デバイス専用の通信ポートとを設ける必要がない。よって製造コストを低減できる。   According to the first and second aspects of the electronic device, it is not necessary to provide a signal line dedicated to the external device and a signal line dedicated to the second device. In other words, it is not necessary to provide the first device with a communication port dedicated to the external device and a communication port dedicated to the second device. Thus, the manufacturing cost can be reduced.

しかも、第1デバイスを、第2デバイスおよび外部装置と接続するために、HUBやスイッチなどを必要としない。よって、製造コストを低減することができる。   Moreover, in order to connect the first device to the second device and the external device, no HUB or switch is required. Thus, the manufacturing cost can be reduced.

電子機器の第3の態様によれば、記憶部にプログラムが記憶された状態であっても、記憶部にプログラムを書き込むこと(更新すること)ができる。   According to the third aspect of the electronic device, even when the program is stored in the storage unit, the program can be written (updated) in the storage unit.

また、記憶部からのプログラムを読み込むことができないときに、外部装置からプログラムの送信を待つ第1デバイスは既設であるところ、そのような第1デバイスをそのまま流用することができる。よって、記憶部におけるプログラムの更新のために、第1デバイスを開発・変更する必要がない。   In addition, when the first device waiting for the transmission of the program from the external device is existing when the program from the storage unit can not be read, such a first device can be diverted as it is. Therefore, there is no need to develop or change the first device in order to update the program in the storage unit.

電子機器の第4の態様によれば、プログラムを高い通信品質で第1デバイスへと送信することができる。   According to the fourth aspect of the electronic device, the program can be transmitted to the first device with high communication quality.

電子機器の第5の態様によれば、第1デバイスと第2デバイスとの間の通信速度を高く設定しても、通信品質を確保しやすい。   According to the fifth aspect of the electronic device, even if the communication speed between the first device and the second device is set high, communication quality can be easily ensured.

電子機器の第6の態様によれば、外部装置としてマスタとして動作する装置、例えばパーソナルコンピュータを採用することができる。   According to the sixth aspect of the electronic device, a device operating as a master, such as a personal computer, can be employed as the external device.

電子機器の第7の態様によれば、第1デバイスと第2デバイスとの電源電圧を異ならせることができる。よって第1デバイスと第2デバイスの設計の自由度を向上することができる。   According to the seventh aspect of the electronic device, the power supply voltages of the first device and the second device can be made different. Therefore, the degree of freedom in the design of the first device and the second device can be improved.

電子機器の内部構成の一例を概略的に示す図である。It is a figure showing roughly an example of internal composition of electronic equipment. 接続構造の構成の一例を概略的に示す図である。It is a figure showing roughly an example of composition of connection structure. 電子機器の動作の一例を示すフローチャートである。It is a flowchart which shows an example of operation | movement of an electronic device. 情報の流れを概略的に示す図である。It is a figure showing roughly the flow of information. 電子機器の動作の一例を示すフローチャートである。It is a flowchart which shows an example of operation | movement of an electronic device. 情報の流れを概略的に示す図である。It is a figure showing roughly the flow of information. 電子機器の内部構成の一例を概略的に示す図である。It is a figure showing roughly an example of internal composition of electronic equipment. 電子機器の動作の一例を示すフローチャートである。It is a flowchart which shows an example of operation | movement of an electronic device. 情報の流れを概略的に示す図である。It is a figure showing roughly the flow of information. 情報の流れを概略的に示す図である。It is a figure showing roughly the flow of information.

第1の実施の形態.
図1は電子機器の概略的な構成の一例を示す図である。電子機器1は特に限定されないが、例えばセキュリティシステムに搭載される装置であってもよい。かかる電子機器1には、例えば外部の監視カメラなどが接続され、撮像画像などに対して適宜に画像処理を施してもよい。
First Embodiment
FIG. 1 is a diagram showing an example of a schematic configuration of an electronic device. The electronic device 1 is not particularly limited, but may be, for example, a device mounted on a security system. For example, an external monitoring camera or the like may be connected to the electronic device 1 and image processing may be appropriately performed on a captured image or the like.

電子機器1は、第1デバイス(例えば制御部)10と、第2デバイス(例えば内蔵デバイス)20と、接続構造30と、不揮発性の記憶部40と、信号線50とを備えている。制御部10、内蔵デバイス20、接続構造30および記憶部40は例えば所定の基板上に設けられる。この基板上には配線パターンも形成されており、後述のように、各部が電気的に接続される。信号線50も例えば配線パターンで形成される。配線パターンは、例えば導電体(例えば金属)が基板上に積層され、これが所定の形状にエッチングされることによって、形成される。   The electronic device 1 includes a first device (for example, control unit) 10, a second device (for example, built-in device) 20, a connection structure 30, a non-volatile storage unit 40, and a signal line 50. The control unit 10, the built-in device 20, the connection structure 30, and the storage unit 40 are provided, for example, on a predetermined substrate. A wiring pattern is also formed on this substrate, and each part is electrically connected as described later. The signal lines 50 are also formed, for example, in a wiring pattern. The wiring pattern is formed, for example, by laminating a conductor (for example, metal) on a substrate and etching it into a predetermined shape.

信号線50は1対1通信で用いられる信号線であり、正極側の信号線と負極側の信号線とを有している。信号線50は制御部10と内蔵デバイス20とを相互に接続する。制御部10および内蔵デバイス20は、この信号線50を介して、1対1通信で互いに信号を送受信する。1対1通信としては例えばUSBに準拠した通信を採用できる。以下では、USBに準拠した通信を例に採って電子機器1を説明する。   The signal line 50 is a signal line used in one-to-one communication, and has a signal line on the positive side and a signal line on the negative side. The signal line 50 connects the control unit 10 and the built-in device 20 to each other. The control unit 10 and the built-in device 20 transmit and receive signals to each other in one-to-one communication via the signal line 50. As one-to-one communication, for example, communication conforming to USB can be adopted. Hereinafter, the electronic device 1 will be described by taking communication compliant with USB as an example.

制御部10は例えば半導体チップ(例えばSoC(Silicon on Chip))で形成されており、例えば演算処理部(例えばCPU)を有している。また制御部10は通信ポート11を有しており、この通信ポート11に信号線50が接続される。この通信ポート11は通信インターフェース(例えばUSBインターフェース)を有しており、この通信インターフェースが信号線50との通信を実現する。USBに準拠した通信(以下、USB通信と呼ぶ)においては、周知のように、一方のデバイスがマスタとして動作し、他方のデバイスがスレーブとして動作する。このUSB通信では、主としてマスタからスレーブへの信号の送信によって通信が行われる。言い換えれば、スレーブは主としてマスタからの信号に応答する形で、信号を送信する。   The control unit 10 is formed of, for example, a semiconductor chip (for example, SoC (Silicon on Chip)), and includes, for example, an arithmetic processing unit (for example, a CPU). Further, the control unit 10 has a communication port 11, and a signal line 50 is connected to the communication port 11. The communication port 11 has a communication interface (for example, a USB interface), and the communication interface realizes communication with the signal line 50. In USB-compliant communication (hereinafter referred to as USB communication), as is well known, one device operates as a master and the other device operates as a slave. In this USB communication, communication is performed mainly by transmitting a signal from the master to the slave. In other words, the slaves transmit signals mainly in response to the signals from the master.

本実施の形態では、制御部10はUSB−OTG(USB On-The-Go)に準拠している。即ち、制御部10はマスタおよびスレーブを選択して動作することができる。例えば制御部10は内蔵デバイス20に対してマスタとして動作しつつ、内蔵デバイス20と通信を行う。つまりこの通信では、内蔵デバイス20はスレーブとして動作する。また制御部10は、外部装置の一例たる書込装置60(後述)に対してスレーブとして動作しつつ、書込装置60と通信を行う。つまりこの通信では、書込装置60はマスタとして動作する。   In the present embodiment, the control unit 10 conforms to USB-OTG (USB On-The-Go). That is, the control unit 10 can select and operate the master and the slave. For example, the control unit 10 communicates with the embedded device 20 while operating as a master to the embedded device 20. That is, in this communication, the built-in device 20 operates as a slave. The control unit 10 communicates with the writing device 60 while operating as a slave to a writing device 60 (described later) which is an example of the external device. That is, in this communication, the writing device 60 operates as a master.

記憶部40は例えばROM(Read Only Memory)などであって、この記憶部14には、プログラムが書き込まれている。このプログラムは例えばファームウェアであり、制御部10は、例えば電源投入をトリガとして、このファームウェアを記憶部40から読み込み、このファームウェアに則った動作を行う。例えば制御部10は当該ファームウェアを実行して内蔵デバイス20との通信を行うことができる。   The storage unit 40 is, for example, a ROM (Read Only Memory), and a program is written in the storage unit 14. This program is, for example, firmware, and the control unit 10 reads this firmware from the storage unit 40, for example, triggered by power on and performs an operation according to the firmware. For example, the control unit 10 can execute the firmware to communicate with the built-in device 20.

内蔵デバイス20は例えば変換部21と内蔵メモリ22とを有している。内蔵メモリ22は例えばSDメモリカードであり、変換部21は信号線50と内蔵メモリ22との間の通信を仲介するインターフェースとして機能する。   The built-in device 20 has, for example, a conversion unit 21 and a built-in memory 22. The built-in memory 22 is, for example, an SD memory card, and the conversion unit 21 functions as an interface that mediates communication between the signal line 50 and the built-in memory 22.

この内蔵デバイス20は信号線50との通信的な接続/非接続を選択できる。例えば、内蔵デバイス20は信号線50との接続/遮断を選択するスイッチを有し、このスイッチをオン/オフすることで、内蔵デバイス20が信号線50との接続/非接続を選択してもよい。スイッチがオフすることで、内蔵デバイス20は信号線50から見てハイインピーダンス状態を採り、信号線50から内蔵デバイス20が実質的に切り離される。ハイインピーダンス状態は、内蔵デバイス20が信号線50に対して電気的に絶縁された状態と考えることができる。   The built-in device 20 can select communication connection / disconnection with the signal line 50. For example, the built-in device 20 has a switch for selecting connection / disconnection with the signal line 50, and turning this switch on / off allows the built-in device 20 to select connection / disconnection with the signal line 50. Good. When the switch is turned off, the embedded device 20 takes a high impedance state as viewed from the signal line 50, and the embedded device 20 is substantially disconnected from the signal line 50. The high impedance state can be considered as a state in which the built-in device 20 is electrically isolated from the signal line 50.

このスイッチには、信号線50とは別の経路で制御信号が入力され、当該スイッチは当該制御信号によって制御される。図1の例示では、変換部21に後述の信号S1が入力されており、例えば、この信号S1を制御信号として用いることができる。   A control signal is input to this switch through a path different from the signal line 50, and the switch is controlled by the control signal. In the example of FIG. 1, a signal S1 described later is input to the conversion unit 21. For example, the signal S1 can be used as a control signal.

あるいは、内蔵デバイス20が信号線50を用いた通信を行わないことで、信号線50に対する通信的な非接続を実現してもよい。例えば信号線50とは別の経路で内蔵デバイス20にリセット信号を入力し、内蔵デバイス20がこのリセット信号に応じてリセット状態(アイドル状態)を維持してもよい。リセット状態では、内蔵デバイス20は信号線50に信号を送信せず、また信号線50からの信号を受信しない。   Alternatively, when the built-in device 20 does not perform communication using the signal line 50, communication non-connection to the signal line 50 may be realized. For example, a reset signal may be input to the built-in device 20 through a path different from the signal line 50, and the built-in device 20 may maintain a reset state (idle state) in response to the reset signal. In the reset state, the built-in device 20 does not transmit a signal to the signal line 50 and does not receive a signal from the signal line 50.

図1の例示では、変換部21に後述の信号S1が入力されており、例えば、この信号S1を上述のリセット信号として入力することができる。変換部21は、リセット信号が入力されている期間において、リセット状態(アイドル状態)を維持する。リセット状態では、変換部21は信号線50に信号を送信せず、信号線50から信号を受信しない。つまり、内蔵デバイス20は信号線50の電位に実質的に影響を与えない。言い換えれば、内蔵デバイス20はハイインピーダンス状態と同様に、実質的に信号線50から切り離される。   In the example of FIG. 1, a signal S1 described later is input to the conversion unit 21. For example, the signal S1 can be input as the above-described reset signal. The converter 21 maintains the reset state (idle state) while the reset signal is being input. In the reset state, the conversion unit 21 does not transmit a signal to the signal line 50 and does not receive a signal from the signal line 50. That is, the built-in device 20 does not substantially affect the potential of the signal line 50. In other words, the embedded device 20 is substantially disconnected from the signal line 50 as in the high impedance state.

接続構造30は外部の書込装置60と接続可能であり、この書込装置60を信号線50に接続することができる。書込装置60は記憶部40にファームウェアを書き込むための装置であり、例えば電子機器1を製造する工程において用いられる。   The connection structure 30 can be connected to an external writing device 60, and the writing device 60 can be connected to the signal line 50. The writing device 60 is a device for writing firmware in the storage unit 40 and is used, for example, in the process of manufacturing the electronic device 1.

例えば書込装置60は入力部を有しており、作業員はこの入力部を介して書込装置60へと入力を行ってもよい。作業員は、この入力部への入力によって、ファームウェアの書き込みの開始を指示する。書込装置60としては、例えばパーソナルコンピュータを採用することができる。このとき、入力部は例えばキーボードまたはマウスなどである。   For example, the writing device 60 has an input unit, and a worker may input to the writing device 60 via the input unit. The operator instructs start of writing of the firmware by the input to this input unit. As the writing device 60, for example, a personal computer can be adopted. At this time, the input unit is, for example, a keyboard or a mouse.

図1の例示では、接続構造30は、外部の専用ケーブル61を介して書込装置60と接続可能である。つまり、接続構造30は専用ケーブル61を信号線50に接続することによって、書込装置60を信号線50に接続する。信号線50は1対1通信で用いられる信号線であるところ、書込装置60が信号線50に接続されるときには、内蔵デバイス20は信号線50に対する通信的な非接続を採用する。つまり、書込装置60が接続構造30に接続されるときには、内蔵デバイス20を実質的に信号線50から実質的に切り離すのである。これにより、1対1通信用の信号線50には、制御部10と書込装置60とが接続されることとなる。   In the example of FIG. 1, the connection structure 30 can be connected to the writing device 60 via an external dedicated cable 61. That is, the connection structure 30 connects the writing device 60 to the signal line 50 by connecting the dedicated cable 61 to the signal line 50. The signal line 50 is a signal line used in one-to-one communication, but when the writing device 60 is connected to the signal line 50, the built-in device 20 adopts communication non-connection to the signal line 50. That is, when the writing device 60 is connected to the connection structure 30, the embedded device 20 is substantially disconnected from the signal line 50. Thus, the control unit 10 and the writing device 60 are connected to the signal line 50 for one-to-one communication.

また図1の例示では、接続構造30は、専用ケーブル61が接続されたことに起因して、信号S2を制御部10へと入力させる。これにより、制御部10は専用ケーブル61が接続されたこと、ひいては書込装置60が接続されたことを了知できる。   Further, in the example of FIG. 1, the connection structure 30 causes the signal S2 to be input to the control unit 10 due to the connection of the dedicated cable 61. As a result, the control unit 10 can recognize that the dedicated cable 61 is connected and thus that the writing device 60 is connected.

図2は接続構造30の具体的な内部構成の一例を概略的に示している。接続構造30は複数の接続部31〜36を備えている。接続部31〜36は例えば接続端子である。専用ケーブル61の一端には、接続構造62が形成されており、この接続構造62は接続部611〜616を備えている。接続部31〜36はそれぞれ接続部621〜622に接続される。接続構造30および接続構造62は、互いに着脱可能に接続するコネクタであってもよい。   FIG. 2 schematically shows an example of a specific internal configuration of the connection structure 30. As shown in FIG. The connection structure 30 includes a plurality of connection parts 31 to 36. The connection parts 31 to 36 are, for example, connection terminals. A connection structure 62 is formed at one end of the dedicated cable 61, and the connection structure 62 includes connection portions 611 to 616. The connection parts 31 to 36 are connected to the connection parts 621 to 222, respectively. The connection structure 30 and the connection structure 62 may be connectors that detachably connect to each other.

接続部31は信号線50のうち、一方(例えば正極側)の信号線に接続され、接続部32は他方(例えば負極側)の信号線に接続される。これらの接続部31,32と接続される接続部621,622は、それぞれ専用ケーブル61の信号線を介して、書込装置60に接続される。よって、接続部31,32は接続構造62を介して書込装置60に接続されることとなる。   The connection portion 31 is connected to one (for example, positive electrode side) signal line of the signal lines 50, and the connection portion 32 is connected to the other (for example, negative electrode side) signal line. The connection parts 621 and 622 connected to the connection parts 31 and 32 are connected to the writing device 60 via signal lines of the dedicated cables 61 respectively. Therefore, the connection parts 31 and 32 are connected to the writing device 60 through the connection structure 62.

接続部33には第1電源電位(ここでは接地電位)が印加される。接続部34の電位は信号S1として内蔵デバイス20に入力される。また接続部34は例えば抵抗R1を介して第2電源電位(例えば直流電源E1の高電位端)に接続される。ここでは直流電源E1の低電位端は接地される。   The first power supply potential (here, ground potential) is applied to the connection portion 33. The potential of the connection portion 34 is input to the built-in device 20 as a signal S1. The connection unit 34 is connected to, for example, the second power supply potential (for example, the high potential end of the DC power supply E1) via the resistor R1. Here, the low potential end of the DC power supply E1 is grounded.

接続部33,34にそれぞれ接続可能な接続部623,624は、互いに接続されている。よって、接続構造62が接続構造30に接続された状態では、接続部34は接続部33に電気的に接続されることとなり、接続部34には接地電位が印加される。一方で、接続構造62が接続構造30に接続されていない状態では、接続部34には直流電源E1の高電位(直流電源E1の直流電圧)が印加される。   The connection parts 623 and 624 connectable to the connection parts 33 and 34 are connected to each other. Therefore, in the state where the connection structure 62 is connected to the connection structure 30, the connection portion 34 is electrically connected to the connection portion 33, and the ground potential is applied to the connection portion 34. On the other hand, when the connection structure 62 is not connected to the connection structure 30, the high potential (the DC voltage of the DC power supply E1) of the DC power supply E1 is applied to the connection portion 34.

以上のように、接続部34の電位(信号S1)は、接続構造62が接続されているか否かに応じて変化する。内蔵デバイス20は、接続構造62が接続されているときの接続部34の電位(例えば接地電位)に応じて、信号線50に対して通信的な非接続を採用する。よって、作業員が接続構造62を接続構造30に接続することによって、言い換えれば、書込装置60を信号線50に接続することによって、内蔵デバイス20が信号線50から実質的に切り離される。したがって、制御部10および書込装置60が信号線50を用いた1対1通信を行うことができる。   As mentioned above, the electric potential (signal S1) of the connection part 34 changes according to whether the connection structure 62 is connected. The built-in device 20 adopts communication non-connection to the signal line 50 in accordance with the potential (for example, the ground potential) of the connection portion 34 when the connection structure 62 is connected. Therefore, the embedded device 20 is substantially disconnected from the signal line 50 by the worker connecting the connection structure 62 to the connection structure 30, in other words, by connecting the writing device 60 to the signal line 50. Therefore, control unit 10 and writing device 60 can perform one-to-one communication using signal line 50.

なお図2の例示では、接続部623は専用ケーブル61の配線を介して書込装置60に接続される。これにより、書込装置60と電子機器1とにおいて共通の接地電位を採用することができる。   In the example of FIG. 2, the connection portion 623 is connected to the writing device 60 through the wiring of the dedicated cable 61. Thereby, the common ground potential can be employed in the writing device 60 and the electronic device 1.

また図2の例示では、接続部35,36も設けられている。接続部35は例えば抵抗R2を介して第1電源電位(接地電位)に接続される。接続部35の電位は信号S2として制御部10に入力される。接続部36は例えば抵抗R3を介して第2電源電位(例えば直流電源E2の高電位端)に接続される。直流電源E2の低電位端はここでは接地されている。これらの接続部35,36にそれぞれ接続可能な接続部625,626は、互いに接続されている。よって、接続構造62が接続構造30に接続された状態では、接続部35には接地電位が印加されることとなり、接続構造62が接続構造30に接続された状態では、接続部35の電位は、直流電源E1の電圧と抵抗R1,R2の抵抗値によって決まる値を採る。   Further, in the example of FIG. 2, connection portions 35 and 36 are also provided. The connection unit 35 is connected to the first power supply potential (ground potential) via, for example, the resistor R2. The potential of the connection unit 35 is input to the control unit 10 as a signal S2. The connection unit 36 is connected to, for example, the second power supply potential (for example, the high potential end of the DC power supply E2) via the resistor R3. The low potential end of the DC power supply E2 is grounded here. Connections 625 and 626 connectable to these connections 35 and 36 are connected to each other. Therefore, in a state in which the connection structure 62 is connected to the connection structure 30, the ground potential is applied to the connection portion 35, and in a state in which the connection structure 62 is connected to the connection structure 30, the potential of the connection portion 35 is And a value determined by the voltage of the DC power supply E1 and the resistance values of the resistors R1 and R2.

以上のように、接続部35の電位(信号S2)は、接続構造62が接続されているか否かに応じて変化する。これにより、制御部10は書込装置60が接続されているか否かを了知することができる。   As mentioned above, the electric potential (signal S2) of the connection part 35 changes according to whether the connection structure 62 is connected. Thereby, the control unit 10 can know whether the writing device 60 is connected or not.

なお、抵抗R2,R3の両方が設けられる必要はなく、いずれか一方のみが設けられていればよい。また抵抗R1が設けられずに、接続部33と接地電位との間に抵抗が設けられてもよく、あるいは、抵抗R1に加えて、接続部33と接地電位との間に抵抗が設けられてもよい。いずれにおいても、信号S1,S2の電位は、接続構造62が接続されたか否かに応じて変化するからである。   It is not necessary to provide both of the resistors R2 and R3, and only one of them may be provided. Further, a resistor may be provided between the connection portion 33 and the ground potential without being provided with the resistor R1, or in addition to the resistor R1, a resistance is provided between the connection portion 33 and the ground potential It is also good. In either case, the potentials of the signals S1 and S2 change depending on whether or not the connection structure 62 is connected.

制御部10は、書込装置60が接続された状態において、書込装置60に対してスレーブとして動作する。書込装置60は信号線50を介して制御部10と通信する。より具体的には、書込装置60はファームウェアを制御部10へと送信し、制御部10は、受け取ったファームウェアを記憶部40へと書き込む。   The control unit 10 operates as a slave with respect to the writing device 60 in a state where the writing device 60 is connected. The writing device 60 communicates with the control unit 10 via the signal line 50. More specifically, the writing device 60 transmits the firmware to the control unit 10, and the control unit 10 writes the received firmware into the storage unit 40.

<通常動作>
図3は、記憶部40にファームウェアが記憶された状態における電子機器1の通常動作の一例を示すフローチャートである。また図4では、電子機器1における情報の流れがブロック矢印で示されている。通常動作においては、書込装置60は接続されていない。まずステップST1にて、ユーザが電源を投入すると、電子機器1の上記の各部に電源が供給される。次にステップST2にて、電源が供給された制御部10は起動動作を行う。起動動作の一つとして、制御部10は記憶部40にアクセスしてファームウェアFW1を読み込む。かかる起動動作の手順は予め設定されており、例えば制御部10の内部に設けられた記憶部(例えばROM)にプログラムとして記憶されている。制御部10はまずこのプログラムを実行して、起動動作を行う。
<Normal operation>
FIG. 3 is a flowchart showing an example of the normal operation of the electronic device 1 in a state in which the storage unit 40 stores firmware. Further, in FIG. 4, the flow of information in the electronic device 1 is indicated by a block arrow. In normal operation, the writing device 60 is not connected. First, in step ST1, when the user turns on the power, the above-described units of the electronic device 1 are supplied with the power. Next, in step ST2, the control unit 10 to which power is supplied performs a start-up operation. As one of the start-up operations, the control unit 10 accesses the storage unit 40 and reads the firmware FW1. The procedure of the start-up operation is set in advance, and is stored as a program in, for example, a storage unit (for example, a ROM) provided inside the control unit 10. The control unit 10 first executes this program to perform a start operation.

次に、ステップST3にて制御部10はファームウェアFW1に則って動作を行い、内蔵デバイス20と情報D1の送受信を行う。   Next, in step ST3, the control unit 10 operates in accordance with the firmware FW1 and transmits / receives the information D1 to / from the built-in device 20.

<ファームウェアの書き込み動作>
図5は、記憶部40にファームウェアが記憶されていない状態での、ファームウェアの書き込み動作の一例を示すフローチャートである。この動作は、例えば電子機器1の製造工程において行われる。
<Firmware write operation>
FIG. 5 is a flowchart showing an example of the write operation of the firmware in a state where the storage unit 40 does not store the firmware. This operation is performed, for example, in the manufacturing process of the electronic device 1.

まずステップST11にて、作業員が書込装置60を電子機器1に接続する。より具体的には、書込装置60に接続された専用ケーブル61の接続構造62を、接続構造30に接続する。   First, in step ST11, a worker connects the writing device 60 to the electronic device 1. More specifically, the connection structure 62 of the dedicated cable 61 connected to the writing device 60 is connected to the connection structure 30.

次にステップST12にて、作業員は電源を投入する。例えば電子機器1に、電源投入のスイッチを設け、作業員がこれを操作することで、電源を投入する。これにより、電子機器1の上記の各部に電源が供給される。   Next, in step ST12, the worker turns on the power. For example, the electronic device 1 is provided with a switch for turning on the power, and the operator operates the switch to turn on the power. As a result, power is supplied to the above-described units of the electronic device 1.

内蔵デバイス20には、書込装置60が接続されたときの信号S1が入力され、制御部10には、書込装置60が接続されたときの信号S2が入力される。信号S2に応じて、ステップST12において、内蔵デバイス20がハイインピーダンス状態になる。これにより、内蔵デバイス20が信号線50から実質的に切り離される。   The built-in device 20 receives a signal S1 when the writing device 60 is connected, and the control unit 10 receives a signal S2 when the writing device 60 is connected. In response to the signal S2, in step ST12, the built-in device 20 is in a high impedance state. Thereby, the built-in device 20 is substantially disconnected from the signal line 50.

次にステップST14にて、電源が供給された制御部10は上述のように、起動動作を行う。起動動作の一つとして、制御部10は記憶部40にアクセスして、ファームウェアFW1を読み込もうとする。しかるに、ここでは記憶部40には未だファームウェアFW1が記憶されていなので、ファームウェアFW1が読み込めない。図6の例示では、ファームウェアFW1を読み込めないことが、「×」付のブロック矢印で示されている。   Next, in step ST14, as described above, the control unit 10 to which the power is supplied performs the start-up operation. As one of the start-up operations, the control unit 10 accesses the storage unit 40 and tries to read the firmware FW1. However, since the firmware FW1 is still stored in the storage unit 40 here, the firmware FW1 can not be read. In the example of FIG. 6, that the firmware FW1 can not be read is indicated by a block arrow with an “x”.

なおステップST13,ST14の実行順序は逆でもよく、ステップST13,ST14が互いに並行して実行されてもよい。   The execution order of steps ST13 and ST14 may be reversed, and steps ST13 and ST14 may be executed in parallel with each other.

制御部10は、記憶部40からファームウェアFW1を読み込むことができず、かつ、書込装置60が接続されたときの信号S2を受け取っているので、ステップST15において、書込装置60に対してスレーブとして動作する。制御部10と書込装置60とは互いに通信設定を行って、制御部10および書込装置60がそれぞれスレーブおよびマスタとして動作する。   The control unit 10 can not read the firmware FW1 from the storage unit 40 and receives the signal S2 when the writing device 60 is connected. Therefore, in step ST15, the control unit 10 slaves the writing device 60 to the slave. Act as. The control unit 10 and the writing device 60 mutually perform communication setting, and the control unit 10 and the writing device 60 operate as a slave and a master, respectively.

次にステップST16にて、例えば作業員が書込装置60へとファームウェアの書き込みの指示を入力する。これにより、書込装置60は制御部10へとファームウェアFW1を送信し、制御部10は受け取ったファームウェアFW1を記憶部40へと書き込む。   Next, in step ST16, for example, a worker inputs an instruction to write firmware to the writing device 60. Thereby, the writing device 60 transmits the firmware FW1 to the control unit 10, and the control unit 10 writes the received firmware FW1 in the storage unit 40.

以上のように、本電子機器1によれば、通信ポート11は、書込装置60および内蔵デバイス20の両方と接続されて、その両方と選択的に通信を行うことができる。よって、書込装置60専用の通信ポートと、内蔵デバイス20専用の通信ポートとを設ける場合に比べて、製造コストを低減できる。   As described above, according to the present electronic device 1, the communication port 11 can be connected to both the writing device 60 and the built-in device 20, and can selectively communicate with both of them. Therefore, the manufacturing cost can be reduced as compared with the case where a communication port dedicated to the writing device 60 and a communication port dedicated to the built-in device 20 are provided.

また本実施の形態とは異なって、接続構造30の替わりにHUBまたはスイッチを設けることも考えられるものの、これらは製造コストの増大を招く。一方で、本接続構造30は、スイッチ等のアクティブ素子を有する必要がなく、安価である。   Moreover, although it is also conceivable to provide a HUB or a switch instead of the connection structure 30 differently from the present embodiment, these lead to an increase in manufacturing cost. On the other hand, the connection structure 30 does not have to have an active element such as a switch, and is inexpensive.

なお上述の例では、専用ケーブル61を用いて書込装置60を信号線50に接続した。しかるに専用ケーブル61は必須ではない。例えばフィクスチャを用いてもよい。フィクスチャは、例えば、電子機器1を支持する台と、当該台に形成された接続構造62とを備えている。このとき、接続部621〜622は例えば導電性のピンによって形成される。書込装置60は上述のとおり接続構造62に接続されている。   In the above example, the writing device 60 is connected to the signal line 50 using the dedicated cable 61. However, the dedicated cable 61 is not essential. For example, a fixture may be used. The fixture includes, for example, a table for supporting the electronic device 1 and a connection structure 62 formed on the table. At this time, the connection parts 621 to 222 are formed of, for example, conductive pins. The writing device 60 is connected to the connection structure 62 as described above.

電子機器1側の接続部31〜36は、例えばパッドとして所定の絶縁基板上に形成される。接続部621〜626たるピンが、それぞれ接続部31〜36たるパッドに当接することで、これらが適宜に電気的に接続される。これによっても、書込装置60を信号線50に接続することができる。さらに、信号S1,S2をそれぞれ内蔵デバイス20および制御部10へと印加できる。   The connection parts 31 to 36 on the electronic device 1 side are formed, for example, as pads on a predetermined insulating substrate. The pins as the connection portions 621 to 626 abut on the pads as the connection portions 31 to 36, respectively, whereby these are appropriately electrically connected. This also allows the writing device 60 to be connected to the signal line 50. Furthermore, the signals S1 and S2 can be applied to the built-in device 20 and the control unit 10, respectively.

また、上述の例では、内蔵デバイス20および制御部10のそれぞれに信号S1,S2が入力された。しかるに、例えば制御部10と内蔵デバイス20とが同程度の電源電圧によって動作する場合には、共通の信号が入力されてもよい。他方、異なる信号S1,S2をそれぞれ内蔵デバイス20および制御部10へと入力する場合には、異なる電源電圧で動作する内蔵デバイス20および制御部10を採用することができる。よって制御部10と内蔵デバイス20の設計の自由度を向上することができる。   Further, in the above-described example, the signals S1 and S2 are input to the built-in device 20 and the control unit 10, respectively. However, for example, when the control unit 10 and the built-in device 20 operate with the same power supply voltage, a common signal may be input. On the other hand, when different signals S1 and S2 are respectively input to the built-in device 20 and the control unit 10, the built-in device 20 and the control unit 10 operating with different power supply voltages can be employed. Therefore, the degree of freedom in design of the control unit 10 and the embedded device 20 can be improved.

第2の実施の形態.
第1の実施の形態では、ファームウェアFW1が記憶部40に未だ書き込まれていないときに、ファームウェアFW1を書き込んだ。第2の実施の形態では、ファームウェアFW1の少なくとも一部が記憶部40に書き込まれた状態においても、ファームウェアFW1を記憶部40に書き込むことができる電子機器1を提供することを企図する。
Second Embodiment
In the first embodiment, when the firmware FW1 is not yet written to the storage unit 40, the firmware FW1 is written. In the second embodiment, it is intended to provide the electronic device 1 capable of writing the firmware FW1 to the storage unit 40 even when at least a part of the firmware FW1 is written to the storage unit 40.

図7は電子機器1の構成の一例を概略的に示している。図7の電子機器1は、図1の電子機器1に比して、有効/無効設定部70を更に備えている。   FIG. 7 schematically shows an example of the configuration of the electronic device 1. The electronic device 1 of FIG. 7 further includes an enable / disable setting unit 70 as compared to the electronic device 1 of FIG. 1.

有効/無効設定部70は記憶部40へとイネーブル信号S3を出力する。イネーブル信号S3は、記憶部40へのアクセスが有効か無効かを示す信号であり、例えばイネーブル信号S3が非活性(例えば低電位)を採るときに、記憶部40は自身へのアクセスを無効にする。よってこの状態においては、制御部10は記憶部40からファームウェアFW1を読み込むことができない。   The valid / invalid setting unit 70 outputs the enable signal S3 to the storage unit 40. The enable signal S3 is a signal indicating whether the access to the storage unit 40 is valid or invalid. For example, when the enable signal S3 is inactive (for example, low potential), the storage unit 40 invalidates the access to itself. Do. Therefore, in this state, the control unit 10 can not read the firmware FW1 from the storage unit 40.

有効/無効設定部70は、接続構造30からの信号S1を入力する。これにより、有効/無効設定部70は書込装置60が接続されているか否かを判別できる。また有効/無効設定部70は例えば電源の供給を受けており、ユーザによる電源投入を認識できる。   The valid / invalid setting unit 70 receives the signal S1 from the connection structure 30. Thus, the valid / invalid setting unit 70 can determine whether the writing device 60 is connected. Further, the valid / invalid setting unit 70 receives, for example, the supply of power, and can recognize the power-on by the user.

有効/無効設定部70は、書込装置60が接続された状態において電源が投入されると、記憶部40へのアクセスを無効にするイネーブル信号S3を、所定期間に亘って出力する。有効/無効設定部70は計時部(例えばタイマ回路)を有しており、所定期間はこの計時部によって計時されればよい。所定期間は、例えば予め設定されていればよく、例えば数秒よりも小さい値を採用できる。   When the power is turned on in the state where the writing device 60 is connected, the valid / invalid setting unit 70 outputs an enable signal S3 for invalidating the access to the storage unit 40 for a predetermined period. The valid / invalid setting unit 70 includes a clock unit (for example, a timer circuit), and the predetermined period may be clocked by the clock unit. The predetermined period may be set in advance, for example, and a value smaller than, for example, several seconds can be employed.

図8は電子機器1の動作の一例を示すフローチャートである。ステップST21において、作業員は、接続構造62を接続構造30に接続して、書込装置60を信号線50に接続させる。次にステップST22において、作業員は電子機器1に電源を投入する。このとき、接続構造30は、書込装置60が接続されたときの信号S1,S2を制御部10、内蔵デバイス20および有効/無効設定部70へと適宜に出力することとなる。   FIG. 8 is a flowchart showing an example of the operation of the electronic device 1. In step ST 21, the worker connects the connection structure 62 to the connection structure 30 and connects the writing device 60 to the signal line 50. Next, in step ST22, the worker turns on the electronic device 1. At this time, the connection structure 30 appropriately outputs the signals S1 and S2 when the writing device 60 is connected to the control unit 10, the built-in device 20, and the enable / disable setting unit 70.

有効/無効設定部70は、電源が投入され、かつ、書込装置60が接続されたときの信号S1を受け取っているので、ステップST23において、記憶部40を無効にするイネーブル信号S3を所定期間に亘って出力する。図9では、イネーブル信号S3は非活性である。この所定期間は後述するステップST27までの期間であり、例えば予め設定される。   Since the valid / invalid setting unit 70 receives the signal S1 when the power is turned on and the writing device 60 is connected, in step ST23, the enable signal S3 for disabling the storage unit 40 is given for a predetermined period. Output over. In FIG. 9, the enable signal S3 is inactive. The predetermined period is a period until step ST27 described later, and is set, for example, in advance.

ステップST23,ST24の実行順序は互いに逆であってもよく、ステップST23,ST24が互いに並行して実行されてもよい。   The execution order of steps ST23 and ST24 may be reversed, and steps ST23 and ST24 may be performed in parallel with each other.

一方で制御部10は、ステップST25において、電源投入に応答して、記憶部40へのアクセスを開始する。これは上述のようにファームウェアFW1の読み出しを行うためである。しかるに、有効/無効設定部70によって記憶部40へのアクセスが無効になっているので、図9に示すように、制御部10はファームウェアFW1の読み込みを行うことができない。ファームウェアFW1を読み込めず、かつ、書込装置60が接続されているので、制御部10はファームウェアFW1を書き込むべく、書込装置60に対してスレーブとして通信を行い、ファームウェアFW1の送信を待つ。   On the other hand, in step ST25, the control unit 10 starts access to the storage unit 40 in response to power on. This is to read the firmware FW1 as described above. However, since the access to the storage unit 40 is disabled by the enable / disable setting unit 70, as shown in FIG. 9, the control unit 10 can not read the firmware FW1. Since the firmware FW1 can not be read and the writing device 60 is connected, the control unit 10 communicates with the writing device 60 as a slave and waits for transmission of the firmware FW1 in order to write the firmware FW1.

なおステップST25は記憶部40へのアクセスが無効になった状態で実行されればよく、この限りにおいて、ステップST23〜ST25の実行順序は適宜に変更でき、またステップST23〜ST25が互いに並行に実行されてもよい。   Note that step ST25 may be executed in a state where access to storage unit 40 is invalidated, and in this limitation, the execution order of steps ST23 to ST25 can be appropriately changed, and steps ST23 to ST25 are executed in parallel with each other. It may be done.

ステップST24から所定期間が過経したステップST27において、有効/無効設定部70は、記憶部40へのアクセスを有効にするイネーブル信号S3を出力する。これにより、記憶部40へのアクセスが有効になる。図10では、イネーブル信号S3が活性している。   In step ST27 where the predetermined period has passed from step ST24, the valid / invalid setting unit 70 outputs the enable signal S3 for validating the access to the storage unit 40. Thereby, access to the storage unit 40 is enabled. In FIG. 10, the enable signal S3 is active.

次にステップST28において、作業員が書込装置60へとファームウェアFW1の書き込みの指示を入力する。書込装置60は作業員の入力に基づいて、図10に示すように、ファームウェアFW1を制御部10へと送信し、制御部10がこのファームウェアFW1を記憶部40へと書き込む。   Next, in step ST28, the worker inputs a writing instruction of the firmware FW1 to the writing device 60. The writing device 60 transmits the firmware FW1 to the control unit 10 as shown in FIG. 10 based on the input of the worker, and the control unit 10 writes the firmware FW1 in the storage unit 40.

以上のように、本電子機器1によれば、たとえ記憶部40にファームウェアFW1の少なくとも一部が記憶されていた場合でも、この記憶部40にファームウェアFW1を書き込むことができる。よって、例えばファームウェアFW1の一部が欠損して書き込まれた場合であっても、この記憶部40に再度ファームウェアFW1を書き込むことができる。   As described above, according to the present electronic device 1, even if at least a part of the firmware FW1 is stored in the storage unit 40, the firmware FW1 can be written to the storage unit 40. Therefore, for example, even when a part of the firmware FW1 is lost and written, the firmware FW1 can be written to the storage unit 40 again.

かかる書き込みは例えば検査工程において実行される。例えば検査工程において、適切にファームウェアFW1が記憶部40に記憶されていないと判断したときに、本動作によって、記憶部40にファームウェアFW1を書き直すことができるのである。   Such writing is performed, for example, in an inspection process. For example, when it is determined in the inspection step that the firmware FW1 is not properly stored in the storage unit 40, the firmware FW1 can be rewritten in the storage unit 40 by this operation.

そして本実施の形態によれば、次の場合に比べて製造コストを低減できる。即ち、ファームウェアFW1が欠損して書き込まれた記憶部40を破棄し、ファームウェアFW1が書き込まれていない記憶部40を取り付けた上で、この記憶部40にファームウェアFW1を書き込む場合に比べて、製造コストを低減できるのである。   And according to this embodiment, the manufacturing cost can be reduced as compared with the following case. That is, after the storage unit 40 in which the firmware FW1 is lost is written and discarded, and the storage unit 40 in which the firmware FW1 is not written is attached, the manufacturing cost is compared with the case where the firmware FW1 is written in the storage unit 40. Can be reduced.

なお制御部10は、記憶部40からファームウェアFW1の少なくとも一部を読み込むことができたときには、ファームウェアFW1の書き込みを行わないように設計されている。かかる制御部10は既設の制御部であり、本電子機器1にこの既設の制御部10を流用することができる。逆に言えば、このような制御部10を採用しても、記憶部40にファームウェアを書き直すことができるのである。そして既設の制御部10を採用すれば、制御部10を開発・変更するコストを回避できる。   The control unit 10 is designed not to write the firmware FW1 when at least a part of the firmware FW1 can be read from the storage unit 40. The control unit 10 is an existing control unit, and the existing control unit 10 can be diverted to the present electronic device 1. Conversely, even if such a control unit 10 is adopted, the firmware can be rewritten in the storage unit 40. And if the existing control part 10 is employ | adopted, the cost which develops and changes the control part 10 can be avoided.

第3の実施の形態.
第3の実施の形態では転送速度について述べる。例えばUSBに準拠した通信では、例えば高速(High Speed)と、高速よりも遅い全速(Full Speed)と、全速よりも遅い低速(Low Speed)とを選択的に採用することができる。
Third Embodiment
The third embodiment describes the transfer rate. For example, in the communication based on USB, for example, high speed (High Speed), full speed (Full Speed) slower than high speed, and low speed (Low Speed) slower than full speed can be selectively adopted.

そこで、制御部10と書込装置60との間の通信速度を、制御部10と内蔵デバイス20との間の通信速度よりも低く設定する。例えば制御部10と書込装置60との通信速度として低速を採用し、制御部10と内蔵デバイス20との間の通信速度として高速または全速を採用する。   Therefore, the communication speed between the control unit 10 and the writing device 60 is set lower than the communication speed between the control unit 10 and the built-in device 20. For example, low speed is adopted as the communication speed between the control unit 10 and the writing device 60, and high speed or full speed is adopted as the communication speed between the control unit 10 and the built-in device 20.

これにより、高速に対応しない安価な専用ケーブル61またはフィクスチャを採用しても、適切な通信品質でファームウェアFW1を制御部10へと送信することができる。   As a result, the firmware FW1 can be transmitted to the control unit 10 with appropriate communication quality even if an inexpensive dedicated cable 61 or fixture that does not support high speed is adopted.

また通常通信で用いる制御部10と内蔵デバイス20との間では、比較的に高い通信速度で通信を行う。これにより、電子機器1の処理速度を向上することができ、製品の能力を向上することができる。   Further, communication is performed at a relatively high communication speed between the control unit 10 used in normal communication and the built-in device 20. Thereby, the processing speed of the electronic device 1 can be improved, and the product capability can be improved.

また、信号線50が例えば配線パターンとして形成される場合には、比較的に高い通信速度で通信を行っても通信品質を確保することができる。よって、信号線50は配線パターンとして形成されることが望ましい。   In addition, when the signal line 50 is formed as, for example, a wiring pattern, communication quality can be ensured even if communication is performed at a relatively high communication speed. Therefore, it is desirable that the signal line 50 be formed as a wiring pattern.

上述の各実施の形態は、互いに阻害しない限り、相互に組み合わせることができる。   The embodiments described above can be combined with each other as long as they do not interfere with each other.

以上のように、電子機器1は詳細に説明されたが、上記した説明は、全ての局面において例示であって、この発明がそれに限定されるものではない。例えばUSB通信に替えて、SATA(Serial ATA)に準拠した通信を採用することもできる。また、上述した各種実施の形態は、相互に矛盾しない限り組み合わせて適用可能である。そして、例示されていない無数の変形例が、この発明の範囲から外れることなく想定され得るものと解される。   As mentioned above, although the electronic device 1 was demonstrated in detail, the above-mentioned description is an illustration in all the aspects, Comprising: This invention is not limited to it. For example, instead of USB communication, communication conforming to SATA (Serial ATA) may be employed. Further, the various embodiments described above can be applied in combination as long as they do not contradict each other. And, it is understood that innumerable modifications not illustrated may be assumed without departing from the scope of the present invention.

10 制御部
20 内蔵デバイス
30 接続構造
31〜36 接続部
40 記憶部
50 信号線
60 書込装置
Reference Signs List 10 control unit 20 built-in device 30 connection structure 31 to 36 connection unit 40 storage unit 50 signal line 60 writing device

Claims (7)

1対1通信で用いられる信号線と、
前記信号線に接続される第1デバイスと、
前記信号線との通信的な接続/非接続を選択し、前記信号線と接続した状態において前記第1デバイスと通信を行う第2デバイスと、
外部の第1接続構造と着脱可能に接続される第2接続構造と
を備え、
前記第2接続構造は、
前記信号線に接続されるとともに、前記第1接続構造を介して外部装置に接続される第1接続部と、
所定の第1電源電位に接続される第2接続部と、
前記第2デバイスに接続されるとともに、前記第1接続構造を介して前記第2接続部と接続される第3接続部と
を備え、
前記第2デバイスは、前記第1接続構造が前記第2接続構造に接続されたときの前記第3接続部の電位に応じて、前記信号線通信的に切り離し
前記第1デバイスは、前記第2デバイスが前記信号線通信的に切り離した状態で、前記信号線を介して前記外部装置と通信し、
前記第1接続構造が前記第2接続構造に接続されたときの前記第3接続部の電位が、リセット信号として前記第2デバイスに入力される、電子機器。
Signal lines used in one-to-one communication;
A first device connected to the signal line;
A second device which selects communicative connection / non-connection with the signal line and communicates with the first device in a state of being connected to the signal line;
An external first connection structure and a second connection structure detachably connected;
The second connection structure is
A first connection portion connected to the signal line and connected to an external device via the first connection structure;
A second connection connected to a predetermined first power supply potential;
And a third connection portion connected to the second device and connected to the second connection portion via the first connection structure,
The second device in response to the potential of the third connecting portion when said first connecting structure is connected to said second connecting structure, communicatively disconnecting the signal lines,
The first device, in a state where the second device is disconnected communication manner the signal line, to communicate with the external device via the signal line,
The electronic device according to claim 1, wherein a potential of the third connection portion when the first connection structure is connected to the second connection structure is input to the second device as a reset signal .
前記第1デバイスによって実行されるプログラムが書き込み可能な記憶部を更に備え、
前記第1デバイスは、前記第2デバイスが前記信号線通信的に切り離した状態で、前記信号線を介して前記外部装置から受け取った前記プログラムを前記記憶部に書き込む、請求項1に記載の電子機器。
The computer program further includes a storage unit writable to a program executed by the first device.
The first device according to claim 1, wherein the first device writes the program received from the external device via the signal line to the storage unit in a state where the second device disconnects the signal line in communication. Electronics.
前記記憶部は、自身のアクセスについての有効/無効の入力を受け付け、
前記電子機器は、
前記第1接続構造が接続された状態で前記第1デバイスが前記記憶部から前記プログラムを読み込むときに、前記記憶部へのアクセスを無効にし、所定期間の経過後に、前記記憶部へのアクセスを有効にする、有効/無効設定部を更に備え、
前記第1デバイスは、前記第2デバイスが前記信号線通信的に切り離し、かつ、前記記憶部から前記プログラムを読み込むことができないときに、前記外部装置からの前記プログラムの送信を待つ、請求項2に記載の電子機器。
The storage unit accepts valid / invalid input for its own access,
The electronic device is
When the first device reads the program from the storage unit in a state in which the first connection structure is connected, the access to the storage unit is invalidated, and the access to the storage unit is performed after a predetermined period has elapsed. It is further equipped with an enable / disable setting unit to enable
The first device waits for transmission of the program from the external device when the second device communicatively disconnects the signal line and can not read the program from the storage unit. The electronic device as described in 2.
前記第1デバイスと前記外部装置との間の通信速度を、前記第1デバイスと前記第2デバイスとの間の通信速度よりも低く設定する、請求項1から請求項3のいずれか一つに記載の電子機器。   The communication speed between the first device and the external device is set lower than the communication speed between the first device and the second device. Electronic device described. 前記信号線は所定の基板上に形成されたパターンである、請求項4に記載の電子機器。   The electronic device according to claim 4, wherein the signal line is a pattern formed on a predetermined substrate. 前記信号線は、USB用の信号線であり、
前記第1デバイスはマスタ/スレーブを選択可能に通信し、
前記第1デバイスおよび前記第2デバイスはそれぞれマスタおよびスレーブとして動作して互いに通信し、
前記第1接続構造が前記第2接続構造に接続された状態で、前記第1デバイスは前記外部装置に対してスレーブとして動作して通信する、請求項1から請求項5のいずれか一つに記載の電子機器。
The signal line is a signal line for USB,
The first device selectively communicates the master / slave,
The first device and the second device operate as a master and a slave, respectively, to communicate with each other,
6. The device according to claim 1, wherein the first device operates as a slave and communicates with the external device in a state where the first connection structure is connected to the second connection structure. Electronic device described.
1対1通信で用いられる信号線と、
前記信号線に接続される第1デバイスと、
前記信号線との通信的な接続/非接続を選択し、前記信号線と接続した状態において前記第1デバイスと通信を行う第2デバイスと、
外部の第1接続構造と着脱可能に接続される第2接続構造と
を備え、
前記第2接続構造は、
前記信号線に接続されるとともに、前記第1接続構造を介して外部装置に接続される第1接続部と、
所定の第1電源電位に接続される第2接続部と、
前記第2デバイスに接続されるとともに、前記第1接続構造を介して前記第2接続部と接続される第3接続部と
を備え、
前記第2デバイスは、前記第1接続構造が前記第2接続構造に接続されたときの前記第3接続部の電位に応じて、前記信号線を通信的に切り離し、
前記第1デバイスは、前記第2デバイスが前記信号線を通信的に切り離した状態で、前記信号線を介して前記外部装置と通信し、
前記第2接続構造は、
第1電源電位と異なる第2電源電位に接続される第4接続部と、
前記第1デバイスに接続されるとともに、前記第1接続構造が接続された状態で前記第4接続部に接続される第5接続部と
を更に備え、
前記第1デバイスは、前記第1接続構造が接続されたときの前記第5接続部の電位に応じて、前記信号線を介して前記外部装置と通信する、電子機器。
Signal lines used in one-to-one communication;
A first device connected to the signal line;
A second device which selects communicative connection / non-connection with the signal line and communicates with the first device in a state of being connected to the signal line;
A second connection structure detachably connected to an external first connection structure;
Equipped with
The second connection structure is
A first connection portion connected to the signal line and connected to an external device via the first connection structure;
A second connection connected to a predetermined first power supply potential;
And a third connection portion connected to the second device and connected to the second connection portion via the first connection structure.
Equipped with
The second device communicatively disconnects the signal line in accordance with the potential of the third connection when the first connection structure is connected to the second connection structure;
The first device communicates with the external device through the signal line in a state where the second device communicatively disconnects the signal line,
The second connection structure is
A fourth connection connected to a second power supply potential different from the first power supply potential;
And a fifth connection portion connected to the fourth connection portion in a state in which the first connection structure is connected while being connected to the first device.
Said first device, said first connecting structure according to the potential of the fifth connecting portion when connected, to communicate with the external device via the signal line, electronic devices.
JP2015041186A 2015-03-03 2015-03-03 Electronics Expired - Fee Related JP6516511B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2015041186A JP6516511B2 (en) 2015-03-03 2015-03-03 Electronics

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2015041186A JP6516511B2 (en) 2015-03-03 2015-03-03 Electronics

Publications (2)

Publication Number Publication Date
JP2016162269A JP2016162269A (en) 2016-09-05
JP6516511B2 true JP6516511B2 (en) 2019-05-22

Family

ID=56847053

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2015041186A Expired - Fee Related JP6516511B2 (en) 2015-03-03 2015-03-03 Electronics

Country Status (1)

Country Link
JP (1) JP6516511B2 (en)

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006031501A (en) * 2004-07-20 2006-02-02 Yokogawa Electric Corp Electronic equipment and program download method in electronic equipment
JP5907550B2 (en) * 2011-08-31 2016-04-26 Necプラットフォームズ株式会社 USB device and method for controlling USB device

Also Published As

Publication number Publication date
JP2016162269A (en) 2016-09-05

Similar Documents

Publication Publication Date Title
JP5283719B2 (en) Electronic equipment and electronic equipment system
US11030142B2 (en) Method, apparatus and system for dynamic control of clock signaling on a bus
KR20180050728A (en) Bridging and virtualizing input / output signals on multi-node networks
CN107391419B (en) Support general sequence busbar concentrator of many host computers and automobile-used host computer
JP2016536727A (en) Flexible mobile device connectivity with automotive systems with USB hubs
WO2002077835A1 (en) Communication control semiconductor device and interface system
TW201418988A (en) Interface between a host and a peripheral device
KR101706906B1 (en) Communication device and method
JP2018101185A5 (en) Semiconductor device, human interface device and electronic equipment
CN112639753A (en) Aggregated inband interruption
TW201602911A (en) A bridge module for updating basic input/output system and updating method thereof
CN104571294A (en) Server system
JP6604427B1 (en) Information processing system
US8897705B2 (en) Data transmitting system and data transmitting method
JP5913211B2 (en) Interface device and information processing device
KR20150066745A (en) I2c router system
JP6516511B2 (en) Electronics
JP2018500684A (en) USB OTG device identification system and apparatus
CN101853232B (en) Extensible adapter
US8583849B2 (en) Signal switch connector set applied to motherboard of computer system
CN108536633A (en) A kind of interface circuit and terminal of plug and play OTG equipment
TWI417728B (en) Serial peripheral interface communication circuit
JP5468061B2 (en) Electronic device system and electronic device
TWI648636B (en) Universal serial bus type c transmission line and transmission device
JP5763519B2 (en) USB hub controller, USB host controller, and system

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20180207

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20181017

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20181023

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20181114

A711 Notification of change in applicant

Free format text: JAPANESE INTERMEDIATE CODE: A711

Effective date: 20190116

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20190416

R150 Certificate of patent or registration of utility model

Ref document number: 6516511

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

LAPS Cancellation because of no payment of annual fees