JP4775329B2 - Electronic device, communication control device, and communication control method - Google Patents

Electronic device, communication control device, and communication control method Download PDF

Info

Publication number
JP4775329B2
JP4775329B2 JP2007151698A JP2007151698A JP4775329B2 JP 4775329 B2 JP4775329 B2 JP 4775329B2 JP 2007151698 A JP2007151698 A JP 2007151698A JP 2007151698 A JP2007151698 A JP 2007151698A JP 4775329 B2 JP4775329 B2 JP 4775329B2
Authority
JP
Japan
Prior art keywords
communication
task
processing unit
executed
communication control
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
JP2007151698A
Other languages
Japanese (ja)
Other versions
JP2008305164A (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.)
Sony Corp
Original Assignee
Sony Corp
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 Sony Corp filed Critical Sony Corp
Priority to JP2007151698A priority Critical patent/JP4775329B2/en
Publication of JP2008305164A publication Critical patent/JP2008305164A/en
Application granted granted Critical
Publication of JP4775329B2 publication Critical patent/JP4775329B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02EREDUCTION OF GREENHOUSE GAS [GHG] EMISSIONS, RELATED TO ENERGY GENERATION, TRANSMISSION OR DISTRIBUTION
    • Y02E60/00Enabling technologies; Technologies with a potential or indirect contribution to GHG emissions mitigation
    • Y02E60/10Energy storage using batteries

Landscapes

  • Power Sources (AREA)
  • Secondary Cells (AREA)
  • Battery Mounting, Suspending (AREA)
  • Cable Transmission Systems, Equalization Of Radio And Reduction Of Echo (AREA)

Description

本発明は、通信機能を備えた外部機器と接続して、その外部機器から電源の供給を受けて動作する電子機器、この電子機器に搭載される通信制御装置、および通信制御方法に関し、特に、外部機器からの電源供給のための電源端子と通信処理のための通信端子とで接地電位が共用されるような電子機器、通信制御装置、および通信制御方法に関する。   The present invention relates to an electronic device that is connected to an external device having a communication function and operates by receiving power supply from the external device, a communication control device mounted on the electronic device, and a communication control method. The present invention relates to an electronic device, a communication control device, and a communication control method in which a ground potential is shared between a power supply terminal for power supply from an external device and a communication terminal for communication processing.

従来、ビデオカメラやデジタルスチルカメラのような撮像装置、携帯型電話機、あるいはパーソナルコンピュータなどの電子機器には、電源としてリチウムイオン電池、ニッケルカドミウム(NiCd)電池、ニッケル水素電池などの2次電池を内蔵したバッテリパックが広く使用されている。今日では、マイクロコンピュータ(以下、マイコンと略称する)の低価格化や集積回路化が進み、こうしたバッテリパックにマイコンを内蔵して、電子機器との間で通信を行うようにしたものが普及している。   2. Description of the Related Art Conventionally, secondary devices such as lithium ion batteries, nickel cadmium (NiCd) batteries, and nickel hydride batteries have been used as power sources in electronic devices such as video cameras and digital still cameras, mobile phones, and personal computers. Built-in battery packs are widely used. Today, microcomputers (hereinafter abbreviated as "microcomputers") are becoming cheaper and integrated circuits, and these battery packs have built-in microcomputers that communicate with electronic devices. ing.

この種のバッテリパックには、マイコンにおいてバッテリセルの充放電電流を記憶し、撮像装置側に送信することで、残り使用時間を表示可能とするとともに、マイコンにより撮像装置側との間で認証処理を実行させることで、偽物バッテリを使用できないようにしたものがあった(例えば、特許文献1参照)。   In this type of battery pack, the charge / discharge current of the battery cell is stored in the microcomputer and transmitted to the imaging device side, so that the remaining usage time can be displayed and the microcomputer can perform authentication processing with the imaging device side. In some cases, the fake battery cannot be used by executing (see, for example, Patent Document 1).

また、電子機器間の通信方式としては、例えば、信号線を1本のみ使用する「1線式」と、2本の信号線により差動通信を行う「2線式」とが存在する。例えば、USB(Universal Serial Bus)ケーブルは、接地線および電源供給線に加えて、D+,D−の2本の信号線から構成されている(例えば、特許文献2参照)。   In addition, as a communication method between electronic devices, for example, there are a “1-wire type” in which only one signal line is used and a “2-wire type” in which differential communication is performed using two signal lines. For example, a USB (Universal Serial Bus) cable includes two signal lines D + and D− in addition to a ground line and a power supply line (see, for example, Patent Document 2).

ところで、電子機器と、それに接続されたバッテリパックとの間で通信する場合、これらの装置間は、電源端子、GND(グランド)端子、および信号端子によって接続される。また、各端子を含む配線は、端子間の接触抵抗や配線抵抗による抵抗成分を持ち、この抵抗成分は数十〜数百mΩとなることもある。   By the way, when communicating between an electronic device and the battery pack connected thereto, these devices are connected by a power supply terminal, a GND (ground) terminal, and a signal terminal. Further, the wiring including each terminal has a resistance component due to contact resistance between the terminals and wiring resistance, and this resistance component may be several tens to several hundreds mΩ.

一方、GND端子の電圧レベルは、信号端子に対するGNDレベルであるとともに、電源端子に対するGNDレベルでもある。このため、例えば、モータの駆動など、電子機器側で比較的消費電力が大きい動作が実行された場合には、GND端子に接続されるGND配線に数Aの電流が流れることがあり得る。このとき、GND端子を挟んだ電子機器側のGNDレベルと、バッテリパック側のGNDレベルとの間には、数百mV程度の電位差が生じることになる。   On the other hand, the voltage level of the GND terminal is the GND level for the signal terminal and the GND level for the power supply terminal. For this reason, for example, when an operation with relatively large power consumption is executed on the electronic device side, such as driving a motor, a current of several A may flow through the GND wiring connected to the GND terminal. At this time, a potential difference of about several hundred mV is generated between the GND level on the electronic device side across the GND terminal and the GND level on the battery pack side.

このように、電子機器側のGNDレベルとバッテリパック側のGNDレベルとの間に大きな電位差が生じた状態では、信号を送受信するための基準電圧が各装置間で大きく違ってしまうために、信号を正しく送受信できなくなることがあった。以下、このような事態について、撮像装置とバッテリパックとの通信を例に挙げて具体的に説明する。   As described above, in a state where a large potential difference is generated between the GND level on the electronic device side and the GND level on the battery pack side, the reference voltage for transmitting and receiving signals varies greatly between the devices. May not be able to send / receive correctly. Hereinafter, such a situation will be specifically described by taking communication between the imaging device and the battery pack as an example.

図8は、撮像装置からバッテリパックに信号を送信する場合の動作を模式的に示す図である。また、図9は、バッテリパックから撮像装置に信号を送信する場合の動作を模式的に示す図である。   FIG. 8 is a diagram schematically illustrating an operation when a signal is transmitted from the imaging apparatus to the battery pack. FIG. 9 is a diagram schematically illustrating an operation when a signal is transmitted from the battery pack to the imaging apparatus.

図8に示すように、送信側である撮像装置側では、送信信号のH(ハイ)レベルの最低電位Vout_hとL(ロー)レベルの最高電位Vout_lとが、送信側でのGND配線の電位Vout_gndを基準とした相対的な電位差により規定される。一方、受信側であるバッテリパック側では、受信信号のHレベルの判定のための最低電位Vin_hと、Lレベルの判定のための最高電位Vin_lとが、受信側でのGND配線の電位Vin_gndを基準とした相対的な電位差により規定される。   As shown in FIG. 8, on the imaging device side which is the transmission side, the lowest potential Vout_h at the H (high) level and the highest potential Vout_l at the L (low) level of the transmission signal are the potential Vout_gnd of the GND wiring on the transmission side. Is defined by the relative potential difference with reference to. On the other hand, on the battery pack side that is the receiving side, the lowest potential Vin_h for determining the H level of the received signal and the highest potential Vin_l for determining the L level are based on the potential Vin_gnd of the GND wiring on the receiving side. Is defined by the relative potential difference.

ここで、図8では、上記の各電位を絶対的な電位として、図中上下方向の位置によって表現している。図8(A)に示すように、絶対的な電位として、Vout_h>Vin_h,Vout_l<Vin_lの条件が満たされれば、受信側では送信されたデータを正常に受信できる。このように、受信側では、送信側で規定しているHレベルとLレベルとの電位差より、各レベルの判定しきい値の差を小さく規定しておくことで、電圧レベル変動などに対してマージンを持たせている。   Here, in FIG. 8, each of the above potentials is expressed as an absolute potential by a position in the vertical direction in the figure. As shown in FIG. 8A, if the conditions of Vout_h> Vin_h and Vout_l <Vin_l are satisfied as absolute potentials, the received data can be received normally. In this way, on the receiving side, by defining the difference between the determination threshold values of each level to be smaller than the potential difference between the H level and the L level specified on the transmitting side, it is possible to prevent voltage level fluctuations and the like. A margin is provided.

なお、送受信される信号の電流は、撮像装置側での電力消費や充電動作によってGND配線に流れる電流よりも十分小さいので(例えば50μA程度)、送信側と受信側との間の信号の電圧変動は無視できる程度であり、このため、図8では送信側、受信側の各信号レベルを同じにしている。一方、撮像装置側での電力消費や充電動作によって、GND配線には通常時でも1A程度の電流が流れることがある。このため、バッテリパック側の絶対的なGND配線の電位Vin_gndは、撮像装置側の絶対的なGND配線の電位Vout_gndより低下する。   Note that the current of the signal transmitted and received is sufficiently smaller than the current flowing through the GND wiring due to power consumption and charging operation on the imaging device side (for example, about 50 μA), so the voltage fluctuation of the signal between the transmission side and the reception side Therefore, the signal levels on the transmission side and the reception side are the same in FIG. On the other hand, a current of about 1 A may flow through the GND wiring even during normal operation due to power consumption and charging operation on the imaging device side. For this reason, the potential Vin_gnd of the absolute GND wiring on the battery pack side is lower than the potential Vout_gnd of the absolute GND wiring on the imaging device side.

受信側と送信側とで絶対的なGND電位が違っていたとしても、GND配線を流れる電流が比較的小さく、上記条件が満たされていれば、データの送受信を正常に実行できる。しかし、GND配線を流れる電流が過大になり、絶対的なGND電位の差が大きくなり過ぎると、上記の条件が成立しなくなる。図8(B)の例では、Vout_l>Vin_lとなっており、受信側ではLレベルを正しく受信できなくなる。   Even if the absolute GND potential is different between the reception side and the transmission side, if the current flowing through the GND wiring is relatively small and the above condition is satisfied, data transmission / reception can be performed normally. However, if the current flowing through the GND wiring becomes excessive and the difference in absolute GND potential becomes too large, the above condition is not satisfied. In the example of FIG. 8B, Vout_l> Vin_l is satisfied, and the reception side cannot correctly receive the L level.

また、バッテリパックから撮像装置に信号を送信する場合でも、同様の事態が起こり得る。この場合でも、図9(A)に示すように、絶対的な電位として、Vout_h>Vin_h,Vout_l<Vin_lの条件が満たされれば、受信側では送信されたデータを正常に受信できる。しかし、GND配線を流れる電流が過大になると、撮像装置側の絶対的なGND電位が上がり過ぎると、上記の条件が成立しなくなる。図9(B)の例では、Vout_h<Vin_hとなっており、受信側ではHレベルを正しく受信できなくなる。
特許第3838258号公報(段落番号[0035]〜[0042]、図1) 特開2001−125689号公報(段落番号[0013]、図10)
The same situation can occur even when a signal is transmitted from the battery pack to the imaging device. Even in this case, as shown in FIG. 9A, if the conditions of Vout_h> Vin_h and Vout_l <Vin_l are satisfied as absolute potentials, the transmitted data can be received normally. However, if the current flowing through the GND wiring becomes excessive, the above condition is not satisfied if the absolute GND potential on the imaging device side increases excessively. In the example of FIG. 9B, Vout_h <Vin_h, and the receiving side cannot receive the H level correctly.
Japanese Patent No. 3838258 (paragraph numbers [0035] to [0042], FIG. 1) JP 2001-125589 A (paragraph number [0013], FIG. 10)

ところで、近年のバッテリ駆動の電子機器では、高機能化や動作の高速化の要請から、内部の電力消費量のピークが大きくなる傾向にあり、そのためにGND配線により大きな電流が流れる事態が発生しやすくなっている。例えば、デジタル方式の撮像装置では、撮像間隔を短縮するために、撮像画像データの信号処理・記録処理やモータ駆動によるレンズ移動動作などが並列に実行されることもある。また、信号処理や記録の対象となるデータ量も大きくなっている。従って、上記のようなGNDレベルのずれによる通信エラーが発生しやすくなる傾向にある。   By the way, in recent battery-driven electronic devices, the peak of internal power consumption tends to increase due to the demand for higher functionality and higher speed of operation, which causes a situation where a large current flows through the GND wiring. It has become easier. For example, in a digital imaging device, in order to shorten the imaging interval, signal processing / recording processing of captured image data, lens movement operation by a motor drive, and the like may be executed in parallel. In addition, the amount of data that is subject to signal processing and recording is also increasing. Therefore, a communication error due to the above-described difference in GND level tends to occur.

このように通信エラーが頻発する事態については、例えば、電源用のGND配線と通信用のGND配線とを分離することで回避することができる。また、差動信号を送受信する2線式通信を行うことでも回避することは可能である。しかし、バッテリパックと電子機器との通信では、構成を単純化して製造コストを抑制する、あるいは、端子数を少なくして、脱着時の故障発生を防止し、設計の自由度を高めるなどの観点から、1線式通信が用いられることが多い。従って、1線式通信を行う場合でも、上記のような事態が発生したときに、できるだけ安定して正常な通信を続行できるようにすることが望まれていた。   Such a situation in which communication errors frequently occur can be avoided, for example, by separating the power supply GND wiring and the communication GND wiring. It can also be avoided by performing two-wire communication for transmitting and receiving differential signals. However, in communication between the battery pack and the electronic device, the configuration is simplified to reduce the manufacturing cost, or the number of terminals is reduced to prevent the occurrence of a failure at the time of attachment / detachment, and the degree of freedom in design is increased. Therefore, one-wire communication is often used. Therefore, even when performing one-wire communication, it has been desired that normal communication can be continued as stably as possible when the above situation occurs.

本発明はこのような課題に鑑みてなされたものであり、外部機器から電源供給を受けて動作する電子機器において、比較的消費電流が大きい動作を行っても外部機器との通信処理を安定的に実行できるようにした電子機器、このような電子機器に搭載される通信制御装置、および通信制御方法を提供することを目的とする。   The present invention has been made in view of such a problem, and an electronic device that operates by receiving power supply from an external device can stably perform communication processing with the external device even when an operation with a relatively large current consumption is performed. It is an object of the present invention to provide an electronic device that can be executed on the Internet, a communication control device mounted on such an electronic device, and a communication control method.

本発明では上記課題を解決するために、通信機能を備えた外部機器と接続し、前記外部機器から電源の供給を受けて動作する電子機器において、前記外部機器から電源の供給を受けるための電源端子および接地端子と、前記接地端子の電位を基準とした信号を通信端子を介して送受信する通信処理部と、前記通信処理部による前記外部機器との通信処理を、あらかじめ決められた一連の通信処理からなる通信タスク単位で制御する通信制御部と、実行時の電力消費が比較的高い内部動作があらかじめ規定され、前記内部動作が前記電子機器内で実行されたか否かを管理する内部動作管理部と、を有し、前記通信制御部は、前記通信タスクの実行中に、前記通信処理部において通信エラーが発生し、かつ、前記内部動作管理部により前記内部動作が実行されたと認識されていた場合には、前記通信処理部をリセットした後、前記通信エラーの発生時に実行していた前記通信タスクを再度実行させることを特徴とする電子機器が提供される。   In the present invention, in order to solve the above-mentioned problem, in an electronic device that is connected to an external device having a communication function and operates by receiving power supply from the external device, a power source for receiving power supply from the external device A communication processing unit that transmits and receives a signal based on the potential of the terminal and the ground terminal via the communication terminal, and a communication process with the external device by the communication processing unit, a predetermined series of communication A communication control unit that controls each communication task consisting of processing, and an internal operation management that manages whether or not the internal operation with relatively high power consumption during execution is specified in advance and the internal operation is executed in the electronic device A communication error occurs in the communication processing unit during the execution of the communication task, and the internal operation management unit performs the internal operation. There if it was recognized to have been executed, after resetting the communication processing unit, an electronic apparatus, characterized in that to execute the communication task which has been executed upon the occurrence of the communication error again is provided.

このような電子機器では、外部機器からの電源供給のための電源端子と、通信処理のための通信端子とで、接地端子が共用される。また、通信処理部における通信処理は、通信制御部により、あらかじめ決められた一連の通信処理からなる通信タスク単位で制御され、実行される。さらに、電子機器で実行される内部動作のうち、比較的電力消費が高い内部動作があらかじめ規定され、このような内部動作が実行されたか否かが内部動作管理部によって管理される。ここで、通信タスクの実行中に、通信処理部において通信エラーが発生したとき、内部動作管理部によりあらかじめ規定された内部動作が実行されたと認識されていれば、その内部動作により接地端子に大きな電流が流れたために通信エラーが発生したと判断できる。このため、通信制御部はこのような場合に、通信処理部をリセットした後、通信エラーの発生時に実行していた通信タスクを再度実行させて、通信処理を復旧させる。   In such an electronic device, a ground terminal is shared by a power supply terminal for supplying power from an external device and a communication terminal for communication processing. The communication processing in the communication processing unit is controlled and executed by the communication control unit in units of communication tasks including a predetermined series of communication processes. Further, among the internal operations executed by the electronic device, an internal operation with relatively high power consumption is defined in advance, and whether or not such an internal operation has been executed is managed by the internal operation management unit. Here, when a communication error occurs in the communication processing unit during the execution of the communication task, if the internal operation management unit recognizes that the internal operation defined in advance has been executed, the internal operation will cause a large It can be determined that a communication error has occurred due to the flow of current. For this reason, in such a case, after resetting the communication processing unit, the communication control unit re-executes the communication task that was being executed when the communication error occurred to restore the communication processing.

本発明によれば、通信タスクの実行中に通信処理部において通信エラーが発生したとき、内部動作管理部により管理されている、あらかじめ規定された内部動作の実行管理状態に応じて、その内部動作の実行により接地端子に大きな電流が流れたために通信エラーが発生したのか否かを正確に判断でき、その内部動作のための通信エラーであれば、通信処理を短時間で復旧させることができる。従って、電子機器において比較的消費電流が大きい動作を行うようにしても、外部機器との通信処理をより安定的に実行できるようになる。   According to the present invention, when a communication error occurs in the communication processing unit during the execution of the communication task, the internal operation is managed according to the predetermined internal operation execution management state managed by the internal operation management unit. It is possible to accurately determine whether or not a communication error has occurred due to a large current flowing through the grounding terminal. If the communication error is due to the internal operation, the communication process can be restored in a short time. Therefore, even when an operation with a relatively large current consumption is performed in the electronic device, the communication process with the external device can be executed more stably.

以下、この発明の電子機器として、デジタルスチルカメラあるいはデジタルビデオカメラなどとして実現される撮像装置に適用した場合を例にして、本発明の実施の形態を図面を参照しながら説明する。   Hereinafter, embodiments of the present invention will be described with reference to the drawings, taking as an example the case where the present invention is applied to an imaging apparatus realized as a digital still camera, a digital video camera, or the like.

図1は、実施の形態に係る撮像装置およびバッテリパックの構成を示すブロック図である。
図1において、撮像装置1は、バッテリパック2から供給される電源によって駆動される装置であり、電源供給を受けるための正極端子11および負極端子12、通信端子13、ホストコントローラとしてのマイクロコンピュータ(以下、ホストマイコンと呼ぶ)14、レギュレータ15、撮像・記録処理部16、表示部17、通信制御回路18などを備えている。また、この撮像装置1に対して着脱可能に接続されるバッテリパック2は、撮像装置1との通信機能を備えている。このバッテリパック2は、電源供給用の正極端子21および負極端子22、通信端子23、バッテリセル24、マイクロコンピュータ(以下、バッテリマイコンと呼ぶ)25、通信インタフェース回路26などを備えている。
FIG. 1 is a block diagram illustrating configurations of an imaging device and a battery pack according to the embodiment.
In FIG. 1, an imaging device 1 is a device driven by a power supply supplied from a battery pack 2, and includes a positive terminal 11 and a negative terminal 12, a communication terminal 13, and a microcomputer as a host controller for receiving power supply. (Hereinafter referred to as a host microcomputer) 14, a regulator 15, an imaging / recording processing unit 16, a display unit 17, a communication control circuit 18, and the like. The battery pack 2 that is detachably connected to the imaging device 1 has a communication function with the imaging device 1. The battery pack 2 includes a positive terminal 21 and a negative terminal 22 for supplying power, a communication terminal 23, a battery cell 24, a microcomputer (hereinafter referred to as a battery microcomputer) 25, a communication interface circuit 26, and the like.

撮像装置1にバッテリパック2が装着されると、バッテリパック2の正極端子21、負極端子22および通信端子23が、それぞれ撮像装置1の正極端子11、負極端子12および通信端子13に接続される。そして、正極端子11および負極端子12を通じて、バッテリパック2から撮像装置1に電源が供給される。   When the battery pack 2 is attached to the imaging apparatus 1, the positive terminal 21, the negative terminal 22, and the communication terminal 23 of the battery pack 2 are connected to the positive terminal 11, the negative terminal 12, and the communication terminal 13 of the imaging apparatus 1, respectively. . Then, power is supplied from the battery pack 2 to the imaging device 1 through the positive terminal 11 and the negative terminal 12.

撮像装置1のホストマイコン14は、撮像装置1の動作を統括的に制御する制御部である。このホストマイコン14は、通信制御回路18に対してコマンドを送信することで、バッテリパック2側と通信して、バッテリパック2から所望のデータを受信することが可能になっている。そして、例えば、受信したデータを利用して、バッテリ残量を表示するための表示情報を生成して、表示部17に出力する。   The host microcomputer 14 of the imaging device 1 is a control unit that controls the operation of the imaging device 1 in an integrated manner. The host microcomputer 14 can communicate with the battery pack 2 side by receiving a command to the communication control circuit 18 and receive desired data from the battery pack 2. Then, for example, using the received data, display information for displaying the remaining battery level is generated and output to the display unit 17.

通信制御回路18は、バッテリパック2側と通信するための電気的なインタフェース回路と、その通信手順を制御するための制御回路(CPU:Central Processing Unit)とが一体化された回路であり、IC(Integrated Circuit)などとして実現される。この通信制御回路18は、ホストマイコン14からのコマンドに応じて、バッテリパック2側と通信端子13を介して通信する。   The communication control circuit 18 is a circuit in which an electrical interface circuit for communicating with the battery pack 2 side and a control circuit (CPU: Central Processing Unit) for controlling the communication procedure are integrated. (Integrated Circuit) etc. The communication control circuit 18 communicates with the battery pack 2 side via the communication terminal 13 in accordance with a command from the host microcomputer 14.

なお、通信制御回路18とホストマイコン14との間は、パラレル通信インタフェースにより接続される。また、通信制御回路18と、バッテリパック2の通信インタフェース回路26とは、通信端子13および23を介して1本の通信線で接続されて、いわゆる1線式通信が行われる。   The communication control circuit 18 and the host microcomputer 14 are connected by a parallel communication interface. The communication control circuit 18 and the communication interface circuit 26 of the battery pack 2 are connected by a single communication line via the communication terminals 13 and 23, and so-called one-wire communication is performed.

レギュレータ15は、正極端子11および負極端子12に印加された電源電圧を所定の電圧に安定化して、装置内部に供給する。撮像・記録処理部16は、画像の撮像や、撮像により得られた画像データの記録媒体への記録、撮像中の画像や記録された画像の表示データ生成などの処理を行うブロックである。表示部17は、例えばLCD(Liquid Crystal Display)などを備え、撮像・記録処理部16およびホストマイコン14において生成された表示データを受けて画像を表示する。   The regulator 15 stabilizes the power supply voltage applied to the positive terminal 11 and the negative terminal 12 to a predetermined voltage, and supplies it to the inside of the apparatus. The imaging / recording processing unit 16 is a block that performs processing such as imaging of an image, recording of image data obtained by imaging on a recording medium, generation of an image being captured and display data of the recorded image, and the like. The display unit 17 includes, for example, an LCD (Liquid Crystal Display) or the like, and displays an image in response to display data generated by the imaging / recording processing unit 16 and the host microcomputer 14.

一方、バッテリパック2は、バッテリセル24が発生する電圧を正極端子21および負極端子22を通じて撮像装置1に供給する。バッテリセル24としては、例えばリチウムイオン型などの二次電池を用いることができる。なお、リチウムイオン二次電池のように、放電電圧が比較的緩やかでかつ直線的に低下する放電特性を有する二次電池を用いることにより、撮像装置1側でバッテリ残量を高精度に検出して、例えば使用可能な残り時間としてバッテリ残量を表示することが可能となる。   On the other hand, the battery pack 2 supplies the voltage generated by the battery cell 24 to the imaging device 1 through the positive terminal 21 and the negative terminal 22. As the battery cell 24, for example, a lithium ion type secondary battery can be used. In addition, by using a secondary battery having a discharge characteristic in which the discharge voltage is relatively gradual and linearly reduced, such as a lithium ion secondary battery, the remaining amount of the battery is detected with high accuracy on the imaging device 1 side. For example, the remaining battery level can be displayed as the remaining usable time.

バッテリマイコン25は、バッテリセル24の電圧やこれに流れる電流を検出する。また、通信インタフェース回路26および通信端子23を介して、撮像装置1の通信制御回路18と通信し、撮像装置1側から送信される認証情報を処理して応答したり、撮像装置1側から要求されたデータを送信する。   The battery microcomputer 25 detects the voltage of the battery cell 24 and the current flowing through it. Further, it communicates with the communication control circuit 18 of the imaging device 1 via the communication interface circuit 26 and the communication terminal 23, and processes and responds to authentication information transmitted from the imaging device 1 side, or requests from the imaging device 1 side. Send the transmitted data.

通信インタフェース回路26は、撮像装置1側と通信するための電気的なインタフェース回路であり、通信端子23を介して撮像装置1側と信号を送受信する。なお、通信インタフェース回路26とバッテリマイコン25とは、パラレル通信インタフェースにより接続される。   The communication interface circuit 26 is an electrical interface circuit for communicating with the imaging apparatus 1 side, and transmits and receives signals to and from the imaging apparatus 1 side via the communication terminal 23. The communication interface circuit 26 and the battery microcomputer 25 are connected by a parallel communication interface.

ここで、撮像装置1とバッテリパック2との間で通信する目的は、主に、バッテリ残量を撮像装置1側で表示すること、接続されたバッテリパック2が正しい通信相手であることを確認(認証処理)すること、および、バッテリパック2に使用履歴を書き込むことなどである。   Here, the purpose of communication between the imaging device 1 and the battery pack 2 is mainly to display the remaining battery level on the imaging device 1 side and to confirm that the connected battery pack 2 is the correct communication partner. (Authentication processing) and writing a use history in the battery pack 2.

バッテリ残量の表示は、以下のように行われる。バッテリマイコン25では、バッテリマイコン25が、バッテリセル24の電圧および放電電流(または充電電流、または充放電電流でもよい)を、内蔵するADコンバータを介して測定する。なお、放電電流は、電流検出抵抗27の両端電圧を基に測定できる。バッテリマイコン25は、これらの電圧および放電電流の測定情報から、撮像装置1に送信すべき情報を計算する。例えば、放電電流を一定周期で積算した積算値を計算する。   The battery remaining amount is displayed as follows. In the battery microcomputer 25, the battery microcomputer 25 measures the voltage and discharge current (or charge current or charge / discharge current) of the battery cell 24 via a built-in AD converter. The discharge current can be measured based on the voltage across the current detection resistor 27. The battery microcomputer 25 calculates information to be transmitted to the imaging device 1 from these voltage and discharge current measurement information. For example, an integrated value obtained by integrating the discharge current at a constant period is calculated.

バッテリマイコン25は、これらの情報を、撮像装置1からの要求に応じて送信する。撮像装置1では、ホストマイコン14が、撮像装置1での消費電力などの情報をあらかじめ保持しており、この保持している情報と、バッテリパック2から供給された情報とから、例えばバッテリセル24を使用可能な残り時間などの残量情報を計算する。そして、計算結果に応じた残量表示画像が表示部17に表示される。   The battery microcomputer 25 transmits these pieces of information in response to a request from the imaging device 1. In the imaging apparatus 1, the host microcomputer 14 holds information such as power consumption in the imaging apparatus 1 in advance, and from this held information and information supplied from the battery pack 2, for example, a battery cell 24. The remaining amount information such as the remaining time that can be used is calculated. Then, a remaining amount display image corresponding to the calculation result is displayed on the display unit 17.

また、バッテリパック2に対する認証処理では、例えば、ホストマイコン14とバッテリマイコン25の双方が複数個の固有のデータを保持していて、バッテリマイコン25が通信インタフェース回路26、通信端子23、通信端子13を介して通信制御回路18と複数回の通信を実行する。ホストマイコン14は、通信制御回路18を通じて供給された、バッテリマイコン25側の固有のデータを鍵情報で解読した後、自身が保持する固有のデータと比較して、バッテリパック2が正しい通信相手であることを確認する。ホストマイコン14では、通信相手のバッテリパック2が正規のものではないと判定した場合、例えば、撮像装置1を電源オフの状態に移行させて、不正なバッテリパック2を使用できないように制御する。   In the authentication process for the battery pack 2, for example, both the host microcomputer 14 and the battery microcomputer 25 hold a plurality of unique data, and the battery microcomputer 25 includes the communication interface circuit 26, the communication terminal 23, and the communication terminal 13. The communication control circuit 18 is communicated with the communication control circuit 18 a plurality of times. The host microcomputer 14 decrypts the unique data on the battery microcomputer 25 side supplied through the communication control circuit 18 with the key information, and then compares the unique data held by itself with the battery pack 2 as the correct communication partner. Make sure that there is. When the host microcomputer 14 determines that the communication partner battery pack 2 is not legitimate, for example, the imaging device 1 is shifted to a power-off state and controlled so that the unauthorized battery pack 2 cannot be used.

また、バッテリパック2に使用履歴を書き込む処理では、バッテリパック2を使用した記録データを、ホストマイコン14から通信制御回路18、通信端子13、通信端子23、通信インタフェース回路26を介して、バッテリマイコン25へ送信し、バッテリマイコン25がそのデータを保存する。バッテリマイコン25に保存されたデータは、例えば、バッテリパック2が充電器などに装着されたとき、「撮像装置1に挿入された場合に使用可能な時間」として充電器で表示するために読み出される。   In the process of writing the usage history to the battery pack 2, the recording data using the battery pack 2 is transferred from the host microcomputer 14 via the communication control circuit 18, the communication terminal 13, the communication terminal 23, and the communication interface circuit 26. 25 and the battery microcomputer 25 stores the data. For example, when the battery pack 2 is attached to a charger or the like, the data stored in the battery microcomputer 25 is read out for display on the charger as “time available when inserted into the imaging device 1”. .

本実施の形態において、ホストマイコン14は、以上のバッテリ残量表示のための通信処理、認証処理のための通信処理、使用履歴書き込みのための通信処理を、それぞれバッテリ残量表示タスク、認証処理タスク、使用履歴タスクとして管理する。そして、各タスクを通信制御回路18に対して制御コマンドによって指定することで、指定したタスクに対応する一連の通信処理を通信制御回路18に自動的に実行させる。さらに、通信処理が実行された後、ホストマイコン14から通信制御回路18に対して、タスクの実行結果を要求するための制御コマンドを送信することで、実行された通信処理に対応する所定の情報が、通信制御回路18からホストマイコン14に対して送信され、また、指定した処理が正しく実行されたか否かをホストマイコン14が判断できるようになる。   In the present embodiment, the host microcomputer 14 performs the above-described communication process for displaying the remaining battery level, the communication process for the authentication process, and the communication process for writing the usage history. Manage tasks and usage history tasks. Each task is designated by a control command to the communication control circuit 18 so that the communication control circuit 18 automatically executes a series of communication processes corresponding to the designated task. Furthermore, after the communication process is executed, the host microcomputer 14 transmits a control command for requesting the execution result of the task to the communication control circuit 18 to thereby obtain predetermined information corresponding to the executed communication process. Is transmitted from the communication control circuit 18 to the host microcomputer 14, and the host microcomputer 14 can determine whether or not the designated processing is correctly executed.

ここで、バッテリ残量表示タスクが要求された場合を例に挙げて、撮像装置1とバッテリパック2との間の通信時における基本的な処理について説明する。図2は、バッテリ残量表示タスクの実行時における処理を模式的に示すタイミングチャートである。   Here, a basic process at the time of communication between the imaging apparatus 1 and the battery pack 2 will be described by taking as an example a case where a battery remaining amount display task is requested. FIG. 2 is a timing chart schematically showing processing at the time of execution of the battery remaining amount display task.

通信制御回路18は、各タスクに対応する処理内容を1つ以上のサブタスクとして管理する。例えば、バッテリ残量表示タスクは、図2に示すように、通信リセット、バッテリ電圧取得、バッテリ電流取得、バッテリ温度取得、バッテリ劣化率取得の5つのサブタスクから構成される。   The communication control circuit 18 manages the processing contents corresponding to each task as one or more subtasks. For example, as shown in FIG. 2, the battery remaining amount display task is composed of five subtasks: communication reset, battery voltage acquisition, battery current acquisition, battery temperature acquisition, and battery deterioration rate acquisition.

タイミングT11において、ホストマイコン14から通信制御回路18に対して、バッテリ残量表示タスクの実行を指示するタスク実行コマンドが送信されると、通信制御回路18内のCPUは、この制御コマンドを解析して、バッテリ残量表示タスクに対応する上記の各サブタスクを、あらかじめ決められた順番で実行する。基本的に、これらの各サブタスクの処理では、通信制御回路18から、バッテリパック2の通信インタフェース回路26に対して、所定の処理を実行するための制御情報や、処理に必要なデータが送信される。そして、その送信動作に応答して通信インタフェース回路26から応答データが返送されると、通信制御回路18では、例えば、その応答データに付与されたチェックサム(Check Sum)などを基に、要求した処理が正しく実行されたか否かが判定され、正しく実行されていた場合に、次のサブタスクが実行される。   When a task execution command for instructing execution of the battery remaining amount display task is transmitted from the host microcomputer 14 to the communication control circuit 18 at timing T11, the CPU in the communication control circuit 18 analyzes the control command. Then, the subtasks corresponding to the battery remaining amount display task are executed in a predetermined order. Basically, in the processing of each of these subtasks, control information for executing predetermined processing and data necessary for processing are transmitted from the communication control circuit 18 to the communication interface circuit 26 of the battery pack 2. The When response data is returned from the communication interface circuit 26 in response to the transmission operation, the communication control circuit 18 makes a request based on, for example, a check sum given to the response data. It is determined whether or not the process has been correctly executed. If the process has been executed correctly, the next subtask is executed.

タイミングT12において、通信制御回路18は、通信リセットを指示する制御情報、およびその処理に必要なデータを、バッテリパック2の通信インタフェース回路26に対して送信する。通信インタフェース回路26からの応答を受けた後、通信制御回路18は、次のタイミングT13において、バッテリセル24の残量表示のための電圧データを要求する制御情報を、通信インタフェース回路26に送信する。そして、通信インタフェース回路26から電圧データを受信すると、内部のRAM(Random Access Memory)に一時的に記憶する。   At timing T <b> 12, the communication control circuit 18 transmits control information for instructing communication reset and data necessary for the processing to the communication interface circuit 26 of the battery pack 2. After receiving the response from the communication interface circuit 26, the communication control circuit 18 transmits control information requesting voltage data for displaying the remaining amount of the battery cell 24 to the communication interface circuit 26 at the next timing T13. . When voltage data is received from the communication interface circuit 26, it is temporarily stored in an internal RAM (Random Access Memory).

次のタイミングT14において、通信制御回路18は、バッテリセル24の電流データを要求し、通信インタフェース回路26からこのデータを受信して、RAMに記憶する。次のタイミングT15において、バッテリセル24の温度データを要求し、通信インタフェース回路26からこのデータを受信して、RAMに記憶する。次のタイミングT16において、バッテリセル24の劣化率データを要求し、通信インタフェース回路26からこのデータを受信して、RAMに記憶する。この後、通信制御回路18は、以上のサブタスクにより受信したデータをRAMに保持したまま、ホストマイコン14からのコマンドを待機する。   At the next timing T14, the communication control circuit 18 requests current data of the battery cell 24, receives this data from the communication interface circuit 26, and stores it in the RAM. At the next timing T15, the temperature data of the battery cell 24 is requested, and this data is received from the communication interface circuit 26 and stored in the RAM. At the next timing T16, the deterioration rate data of the battery cell 24 is requested, and this data is received from the communication interface circuit 26 and stored in the RAM. Thereafter, the communication control circuit 18 waits for a command from the host microcomputer 14 while holding the data received by the above subtasks in the RAM.

ホストマイコン14は、タスク実行コマンドの送信から所定時間が経過したタイミングT17において、このタスク実行コマンドに対応する結果要求コマンドを、通信制御回路18に対して送信する。通信制御回路18は、結果要求コマンドを受信すると、対応するタスクが正しく実行されたか否かを示す情報を通信制御回路18に返送する。また、この例ではさらに、RAMに記憶していた受信データを通信制御回路18に転送する。ホストマイコン14では、タスクの正常終了を判断できるとともに、それらの受信データと、撮像装置1の消費電力データとを基に、バッテリ残量を計算して、表示部17に表示できるようになる。   The host microcomputer 14 transmits a result request command corresponding to the task execution command to the communication control circuit 18 at a timing T17 when a predetermined time has elapsed from the transmission of the task execution command. When receiving the result request command, the communication control circuit 18 returns information indicating whether or not the corresponding task has been correctly executed to the communication control circuit 18. In this example, the received data stored in the RAM is further transferred to the communication control circuit 18. The host microcomputer 14 can determine the normal end of the task, and can calculate the remaining battery level based on the received data and the power consumption data of the imaging device 1 and display it on the display unit 17.

なお、このようなバッテリ残量表示タスクの実行は、ホストマイコン14により一定時間ごとに指示され、これにより表示部17における残量表示が更新される。
また、認証処理タスクは、例えば、通信リセット処理、認証のための固有データをバッテリマイコン25側に送信する処理、固有データをバッテリマイコン25側から受信する処理にそれぞれ対応する3つのサブタスクによって構成される。また、使用履歴タスクは、例えば、通信リセット処理、バッテリパック2の使用履歴データをバッテリマイコン25側に送信して記録させる処理にそれぞれ対応する2つのサブタスクによって構成される。
The execution of such a battery remaining amount display task is instructed by the host microcomputer 14 at regular intervals, whereby the remaining amount display on the display unit 17 is updated.
The authentication processing task includes, for example, three subtasks respectively corresponding to a communication reset process, a process for transmitting unique data for authentication to the battery microcomputer 25 side, and a process for receiving unique data from the battery microcomputer 25 side. The Further, the usage history task includes, for example, two subtasks respectively corresponding to a communication reset process and a process of transmitting and recording the usage history data of the battery pack 2 to the battery microcomputer 25 side.

ここで、図3は、撮像装置の通信制御回路が備えるメモリ領域の構成例を示す図である。なお、ここでは例として、バッテリ残量表示タスクが実行される際に必要となるメモリ領域についてのみ示す。   Here, FIG. 3 is a diagram illustrating a configuration example of a memory area included in the communication control circuit of the imaging apparatus. Here, as an example, only the memory area required when the battery remaining amount display task is executed is shown.

通信制御回路18に搭載されたRAM18aの内部には、例として、バッテリ残量表示タスクの実行のための残量表示タスク領域30と、通信処理の実行を管理するための通信管理領域40の2つのメモリ領域が確保されている。残量表示タスク領域30には、受信データ有効フラグ31と、サブタスク実行ポインタ32と、バッテリパック2側からの受信データ33〜36とが格納される。また、通信管理領域40には、エラー回数データ41と、通信エラーフラグ42とが格納される。   The RAM 18a mounted in the communication control circuit 18 includes, for example, a remaining amount display task area 30 for executing a battery remaining amount display task and a communication management area 40 for managing execution of communication processing. Two memory areas are reserved. In the remaining amount display task area 30, a reception data valid flag 31, a subtask execution pointer 32, and reception data 33 to 36 from the battery pack 2 side are stored. The communication management area 40 stores error count data 41 and a communication error flag 42.

受信データ有効フラグ31は、撮像装置1の動作が開始されてから、ホストマイコン14から指示されたタスク(ここではバッテリ残量表示タスクを示す)の実行により、バッテリパック2側から受信すべきデータが1つでも正常に受信されたか否かを示すフラグである。   The reception data valid flag 31 is data to be received from the battery pack 2 side by executing a task (here, a battery remaining amount display task) instructed from the host microcomputer 14 after the operation of the imaging apparatus 1 is started. Is a flag indicating whether or not one has been normally received.

サブタスク実行ポインタ32は、バッテリ残量表示タスクのうち、次に実行すべきサブタスクを示す情報である。この値としては、例えば、通信制御回路18内のメモリに格納されたプログラムにおいて、次に実行すべき行を示すものであってもよく、あるいは、単にサブタスクを識別する番号であってもよい。   The subtask execution pointer 32 is information indicating a subtask to be executed next in the battery remaining amount display task. This value may indicate, for example, a line to be executed next in the program stored in the memory in the communication control circuit 18, or may simply be a number for identifying a subtask.

受信データ33〜36は、ここでは例として、バッテリ残量表示タスクに含まれる4つのサブタスク(バッテリ電圧取得処理、バッテリ電流取得処理、バッテリ温度取得処理、バッテリ劣化率取得処理)に対応するデータ領域となっている。   In this example, the received data 33 to 36 are data areas corresponding to four subtasks (battery voltage acquisition process, battery current acquisition process, battery temperature acquisition process, battery deterioration rate acquisition process) included in the battery remaining amount display task. It has become.

例えば、バッテリパック2からの電源供給により撮像装置1の動作が開始され、さらに認証処理タスクが正常に実行されて、バッテリパック2が認証された後、ホストマイコン14がバッテリ残量表示タスクの実行を指示すると、通信制御回路18は、上述した手順により対応するサブタスクを順次実行する。このとき、サブタスクの実行に従って、サブタスク実行ポインタ32を順次更新していく。   For example, after the operation of the imaging device 1 is started by power supply from the battery pack 2 and the authentication processing task is normally executed and the battery pack 2 is authenticated, the host microcomputer 14 executes the battery remaining amount display task. Is instructed, the communication control circuit 18 sequentially executes the corresponding subtasks according to the above-described procedure. At this time, the subtask execution pointer 32 is sequentially updated in accordance with the execution of the subtask.

各サブタスクの実行により、バッテリパック2側から、バッテリ電圧、バッテリ電流、バッテリ温度、バッテリ劣化率が順次送信されると、通信制御回路18は、これらのデータを受信データ33〜36の領域に格納していく。通信制御回路18は、これらのサブタスクによる受信データ33〜36の中から1つでも受信されると、受信データ有効フラグ31を“0”から“1”に変化させる。このように、対応するタスクの実行が1度でも開始され、かつ、受信データが1つでも正常に受信されれば、受信データ有効フラグ31は“1”とされる。なお、この他の例として、対応するタスクが1回でも正常に終了した場合(すなわち、受信データ33〜36のすべてが1回でも正常に受信された場合)に、受信データ有効フラグ31を“1”としてもよい。   When the battery voltage, the battery current, the battery temperature, and the battery deterioration rate are sequentially transmitted from the battery pack 2 side by the execution of each subtask, the communication control circuit 18 stores these data in the received data 33 to 36 area. I will do it. When any one of the received data 33 to 36 by these subtasks is received, the communication control circuit 18 changes the received data valid flag 31 from “0” to “1”. As described above, if the execution of the corresponding task is started even once and at least one received data is normally received, the received data valid flag 31 is set to “1”. As another example, when the corresponding task is completed normally even once (that is, when all of the received data 33 to 36 are normally received even once), the received data valid flag 31 is set to “ It may be 1 ″.

なお、受信データ33〜36は、ホストマイコン14からの結果要求コマンドに応じて、ホストマイコン14に対して送信される。そして、次に同じタスクの実行が指示されると、対応するサブタスクの実行に従って、受信データ33〜36が順次書き換えられる。このとき、以前に格納されていた受信データを、次の受信データがバッテリパック2側から受信されるまでの間、消去せずに保持しておいてもよい。   The received data 33 to 36 are transmitted to the host microcomputer 14 in response to a result request command from the host microcomputer 14. When next execution of the same task is instructed, the received data 33 to 36 are sequentially rewritten according to the execution of the corresponding subtask. At this time, the reception data stored before may be held without being erased until the next reception data is received from the battery pack 2 side.

エラー回数データ41は、サブタスクに対応する1つの通信処理を実行したときの通信エラー発生回数を示す。通信制御回路18は、サブタスクに対応する通信処理により通信エラーが発生すると、所定の回数だけその通信処理をリトライする。このとき、エラー回数データ41によりエラーの発生回数を積算する。そして、所定の回数だけリトライしても正常な通信ができなかった場合に、通信エラーフラグ42を“0”から“1”に変化させて、処理停止状態に遷移する。   The error count data 41 indicates the communication error occurrence count when one communication process corresponding to the subtask is executed. When a communication error occurs due to the communication process corresponding to the subtask, the communication control circuit 18 retries the communication process a predetermined number of times. At this time, the number of error occurrences is integrated by the error number data 41. If normal communication is not possible after a predetermined number of retries, the communication error flag 42 is changed from “0” to “1”, and the process is shifted to the process stop state.

通信制御回路18は、ホストマイコン14からの結果要求コマンドを受信すると、自身の状態を示す情報として、「正常終了」「通信中」「通信エラー」のいずれかの情報も返送する。例えば、通信エラーフラグ42が“1”であれば「通信エラー」を送信し、このフラグが“0”である場合には、サブタスク実行ポインタ32およびエラー回数データ41などを基に、「正常終了」あるいは「通信中」のいずれかを送信する。例えば、サブタスク実行ポインタ32が初期状態に戻っていなければ、「通信中」と判断できる。   When the communication control circuit 18 receives the result request command from the host microcomputer 14, it returns either “normal end”, “during communication”, or “communication error” as information indicating its own state. For example, if the communication error flag 42 is “1”, a “communication error” is transmitted. If this flag is “0”, the “normal end” is determined based on the subtask execution pointer 32 and the error count data 41. "Or" Communicating ". For example, if the subtask execution pointer 32 has not returned to the initial state, it can be determined that “communication is in progress”.

また、通信制御回路18は、「正常終了」を送信するときには、これとともに受信データ33〜36を読み出して送信する。従って、ホストマイコン14は、通信制御回路18において通信が正常に終了したと判断できた場合のみ、そこに保持された受信データを正しく受信されたものと判断して取り込むことができるようになる。   Further, when transmitting “normal end”, the communication control circuit 18 reads and transmits the received data 33 to 36 together with this. Accordingly, only when the communication control circuit 18 can determine that the communication has been completed normally, the host microcomputer 14 can determine that the received data held therein has been received correctly and take it in.

なお、ここでは例として、バッテリ残量表示タスクに対応する残量表示タスク領域30について説明したが、他にバッテリパック2側から取得した情報をホストマイコン14に引き渡す処理を含むタスクが存在する場合には、そのタスクに対応するメモリ領域が設けられてもよい。この場合、残量表示タスク領域30と同様に、そのメモリ領域に格納された受信データは、ホストマイコン14からの結果要求コマンドを受信したとき、「正常終了」を示す情報とともに返送される。   Here, as an example, the remaining amount display task area 30 corresponding to the battery remaining amount display task has been described. However, there is another task including a process of transferring information acquired from the battery pack 2 side to the host microcomputer 14. May be provided with a memory area corresponding to the task. In this case, similarly to the remaining amount display task area 30, the received data stored in the memory area is returned together with information indicating “normal end” when a result request command from the host microcomputer 14 is received.

ところで、撮像装置1とバッテリパック2との間で接続端子を介して接続される配線は、端子間の接触抵抗や配線抵抗による数十〜数百mΩといった抵抗成分を有する。また、負極端子12および22を介して接続される配線(GND配線)の電圧レベルは、正極端子11および21を介して接続される配線に対するGNDレベルであるとともに、通信端子13および23を通じて送受信される信号に対するGND電位でもある。   By the way, the wiring connected between the imaging device 1 and the battery pack 2 via the connection terminal has a resistance component of several tens to several hundreds mΩ due to contact resistance between the terminals and wiring resistance. Further, the voltage level of the wiring (GND wiring) connected through the negative terminals 12 and 22 is the GND level for the wiring connected through the positive terminals 11 and 21, and is transmitted / received through the communication terminals 13 and 23. This is also the GND potential for the signal.

通信制御回路18においてバッテリパック2との間で送受信される信号の電流は、例えば50μA程度であり、撮像装置1側とバッテリパック2側との間での信号電圧の絶対的な変動量は無視できる程度となる。これに対し、撮像・記録処理部16により比較的消費電力が大きい動作が実行されたときには、正極端子11および21を介して数Aといった電流が流れ、この電流はGND配線にも流れる。このような大きな電流が流れると、GND配線の抵抗成分により、撮像装置1側とバッテリパック2側とのそれぞれの絶対的なGNDレベルに数百mVといった大きな電位差が生じてしまい、このために、撮像装置1とバッテリパック2との間で正しい通信ができなくなってしまうことがある。   The current of the signal transmitted / received to / from the battery pack 2 in the communication control circuit 18 is, for example, about 50 μA, and the absolute fluctuation amount of the signal voltage between the imaging device 1 side and the battery pack 2 side is ignored. It will be possible. On the other hand, when an operation with relatively large power consumption is executed by the imaging / recording processing unit 16, a current of several A flows through the positive terminals 11 and 21, and this current also flows through the GND wiring. When such a large current flows, a large potential difference of several hundred mV occurs in the absolute GND level between the imaging device 1 side and the battery pack 2 side due to the resistance component of the GND wiring. Correct communication between the imaging device 1 and the battery pack 2 may not be possible.

特に、レンズ交換が可能な撮像装置など、比較的高機能の撮像装置では、撮像動作やそれに伴う信号処理をより高速化することが求められている。例えば、撮像間隔を短縮するために、取り込んだ大容量の画像データの信号処理や記録処理、ストロボ発光・充電動作、次の撮像のためのフォーカス調整や露出調整のためのモータ駆動によるレンズ移動動作などが、それぞれ並列に実行されることがある。また、撮像時にはモータ駆動によりミラーを跳ね上げる動作も必要な機種もある。このような動作のために消費電力が一時的に高まった場合、GND配線には例えば5Aを超えるような大電流が流れる可能性があり、これにより、撮像装置1とバッテリパック2との間での通信エラーが発生する頻度が高くなってしまう。   In particular, in an imaging device having a relatively high function, such as an imaging device capable of exchanging lenses, it is required to increase the imaging operation and the signal processing associated therewith. For example, in order to shorten the imaging interval, signal processing and recording processing of captured large-capacity image data, strobe lighting / charging operation, lens movement operation by motor drive for focus adjustment and exposure adjustment for the next imaging May be executed in parallel. In addition, there is a model that requires an operation of flipping the mirror by driving a motor during imaging. When the power consumption temporarily increases due to such an operation, there is a possibility that a large current exceeding 5 A, for example, flows through the GND wiring, and thus, between the imaging device 1 and the battery pack 2. The frequency of communication errors will increase.

本実施の形態の撮像装置1では、このような事態が発生した場合でも、通信エラーを迅速に復旧させるとともに、通信により得られる情報を用いた撮像装置1側の処理(例えばバッテリ残量表示)にも、できるだけ通信エラーの影響を与えないようにする。上記のような比較的消費電力が大きくなる動作についてはあらかじめ特定しておくことが可能であり、これらの動作を制御しているホストマイコン14では、当然、これらの動作が実行されているか否かを容易に認識できる。そこで、この撮像装置では、通信エラーが発生したときに、上記のような動作が実行されたと判断された場合には、装置全体を完全にリセットせずに必要な部分だけをリセットして、エラーで中断された動作を再開することで、上記の目的を達成するようにする。   In the imaging apparatus 1 of the present embodiment, even when such a situation occurs, the communication error is quickly recovered, and processing on the imaging apparatus 1 side using information obtained by communication (for example, battery remaining amount display) In addition, the influence of communication errors should be avoided as much as possible. The operations that consume relatively large power as described above can be specified in advance, and it is natural that the host microcomputer 14 that controls these operations is executing these operations. Can be easily recognized. Therefore, in this imaging device, when it is determined that the above operation has been performed when a communication error occurs, only the necessary part is reset without completely resetting the entire device. The above-mentioned purpose is achieved by resuming the operation interrupted at.

図4は、撮像装置のホストマイコンが保持する動作管理用データの例を示す図である。
ホストマイコン14に搭載されたRAM14aには、上記のような消費電力の大きい動作を管理するための情報として、シャッタレリーズONフラグ51と、ストロボ充電フラグ52とが記憶される。
FIG. 4 is a diagram illustrating an example of operation management data held by the host microcomputer of the imaging apparatus.
The RAM 14a mounted on the host microcomputer 14 stores a shutter release ON flag 51 and a strobe charge flag 52 as information for managing the above-described operation with large power consumption.

ホストマイコン14は、撮像・記録処理部16に対して、シャッタレリーズボタンの押下などに応じて撮像画像データの記録を指示したときに、シャッタレリーズONフラグ51を“0”から“1”に変化させる。撮像画像データの記録が指示されると、撮像・記録処理部16では、撮像素子から取り込んだ画像データに記録用の各種信号処理を施し、処理後のデータを記録媒体に記録する処理が、高速に実行される。また、このような処理と並行して、現在撮像中の画像に対するフォーカス調整や露出調整も継続され、そのためにモータ駆動によるレンズ移動動作が実行される場合もある。   The host microcomputer 14 changes the shutter release ON flag 51 from “0” to “1” when instructing the imaging / recording processing unit 16 to record the captured image data in response to pressing of the shutter release button or the like. Let When recording of the captured image data is instructed, the image capturing / recording processing unit 16 performs various signal processing for recording on the image data captured from the image sensor, and records the processed data on the recording medium at a high speed. To be executed. In parallel with such processing, focus adjustment and exposure adjustment for an image currently being picked up are continued. For this reason, a lens moving operation by motor drive may be executed.

また、ホストマイコン14は、撮像・記録処理部16に対して、上記のように撮像画像データに記録を指示した際にストロボ発光を指示していた場合には、その後にストロボ充電回路の充電動作を開始する際に、ストロボ充電フラグ52を“0”から“1”に変化させる。なお、例えば上記のような記録用データの信号処理や記録処理と、ストロボ充電動作とが並列に実行される場合には、このストロボ充電フラグ52は特に必要ではない。   In addition, when the host microcomputer 14 instructs the image capturing / recording processing unit 16 to emit strobe light when instructing to record the captured image data as described above, the charging operation of the strobe charging circuit is thereafter performed. Is started, the strobe charge flag 52 is changed from “0” to “1”. Note that, for example, when the signal processing or recording processing of the recording data as described above and the strobe charging operation are executed in parallel, the strobe charging flag 52 is not particularly necessary.

ホストマイコン14は、これらのシャッタレリーズONフラグ51およびストロボ充電フラグ52を“1”に変化させた後、各フラグに対応する動作が完了すると、その値を“0”に戻す。ただし、各フラグを“0”にしたときに、上記のバッテリ残量表示タスクなど、バッテリパック2側からの受信データをホストマイコン14に引き渡すようなタスクが実行されていた場合(すなわち、そのタスクに対応するタスク実行コマンドを発行した後である場合)には、そのタスクに対応する結果要求コマンドを送信して、その応答を受けるまでの間、これらのフラグの値を“1”に保持し続けるようにする。これにより、通信制御回路18において通信エラーが発生したときに、その発生原因が上記各フラグに対応する動作に起因するものか否かを確実に判定できるようになる。   The host microcomputer 14 changes the shutter release ON flag 51 and the strobe charge flag 52 to “1” and then returns the values to “0” when the operation corresponding to each flag is completed. However, when each flag is set to “0”, a task that passes received data from the battery pack 2 side to the host microcomputer 14 such as the battery remaining amount display task is executed (that is, the task) If the result request command corresponding to the task is sent and the response is received, the values of these flags are held at “1”. Try to continue. As a result, when a communication error occurs in the communication control circuit 18, it can be reliably determined whether or not the cause is due to the operation corresponding to each flag.

なお、この他の例としては、上記の各フラグに対応する動作が完了したとき、バッテリ残量表示タスクなどの所定のタスクが実行中である場合は、その後の一定時間だけ各フラグを“1”に保持するようにしてもよい。   As another example, when an operation corresponding to each of the above flags is completed, if a predetermined task such as a battery remaining amount display task is being executed, each flag is set to “1” for a certain period thereafter. It may be held at "."

次に、通信制御回路18において大電流による通信エラーが発生した場合に、上記の各種データを用いて実行される処理について、具体的に説明する。図5は、通信エラー発生時における撮像装置の動作を示すタイミングチャートである。   Next, processing that is executed using the various data described above when a communication error due to a large current occurs in the communication control circuit 18 will be specifically described. FIG. 5 is a timing chart showing the operation of the imaging apparatus when a communication error occurs.

タイミングT21において、ホストマイコン14は、通信制御回路18に対して、バッテリ残量表示タスクの実行を指示するタスク実行コマンドを送信する。このコマンドを受信した通信制御回路18は、タイミングT22から、対応するサブタスクを順次実行して、バッテリパック2の通信インタフェース回路26との間で通信を行う。   At timing T <b> 21, the host microcomputer 14 transmits a task execution command for instructing execution of the battery remaining amount display task to the communication control circuit 18. The communication control circuit 18 that has received this command executes the corresponding subtasks sequentially from the timing T22, and communicates with the communication interface circuit 26 of the battery pack 2.

ここで、タイミングT23〜T26の期間において、撮像・記録処理部16における動作により、GND配線にしきい値Vthを超える電流が流れたとする。指示されたタスクを実行中の通信制御回路18では、タイミングT23の後のサブタスクの実行時に、GNDレベルの変動による通信エラー(図中“E”と表示)が発生する。通信制御回路18は、通信エラーが発生すると、同じ通信処理を所定の回数(ここでは2回)だけリトライし、正常に通信できない場合には、通信エラーフラグ42を“1”とするとともに、処理停止状態に遷移する(タイミングT24)。   Here, it is assumed that a current exceeding the threshold value Vth flows in the GND wiring due to the operation in the imaging / recording processing unit 16 in the period of the timing T23 to T26. In the communication control circuit 18 that is executing the instructed task, a communication error (indicated as “E” in the figure) due to the fluctuation of the GND level occurs when the subtask is executed after the timing T23. When a communication error occurs, the communication control circuit 18 retries the same communication process a predetermined number of times (here, twice). If communication cannot be performed normally, the communication control flag 18 sets the communication error flag 42 to “1”. Transition to the stop state (timing T24).

ホストマイコン14は、タスク実行コマンドを送信した後、所定の時間が経過したタイミングT25において、通信制御回路18に対して結果要求コマンドを送信する。このとき、通信制御回路18は、「通信エラー」を示す情報を返送し、これによりホストマイコン14は、通信エラーが発生したことを検出する。   After transmitting the task execution command, the host microcomputer 14 transmits a result request command to the communication control circuit 18 at a timing T25 when a predetermined time has elapsed. At this time, the communication control circuit 18 returns information indicating “communication error”, whereby the host microcomputer 14 detects that a communication error has occurred.

ホストマイコン14は、通信エラーの発生を検出すると、シャッタレリーズONフラグ51およびストロボ充電フラグ52を参照する。これらのフラグのうち1つでも“1”となっていれば、ホストマイコン14は、消費電力が大きい動作による通信エラーと判断し、次のタイミングT27において、通信制御回路18に対してリセットコマンドを送信し、リセットを要求する。ただし、このときのリセットコマンドは、通信エラー発生時の専用のリセットを指示する制御コマンド(以下、通信リセットコマンドと呼ぶ)であり、通信制御回路18では、少なくとも通信インタフェース回路26からの受信データ33〜36を保持したままの状態で、リセット処理が行われる。この後、タイミングT28において、通信制御回路18ではリセット処理が終了し、通常処理状態に遷移する。   When the host microcomputer 14 detects the occurrence of a communication error, the host microcomputer 14 refers to the shutter release ON flag 51 and the strobe charge flag 52. If any one of these flags is “1”, the host microcomputer 14 determines that the communication error is caused by an operation with large power consumption, and issues a reset command to the communication control circuit 18 at the next timing T27. Send and request a reset. However, the reset command at this time is a control command for instructing a dedicated reset when a communication error occurs (hereinafter referred to as a communication reset command), and the communication control circuit 18 receives at least received data 33 from the communication interface circuit 26. The reset process is performed while holding .about.36. Thereafter, at timing T28, the communication control circuit 18 finishes the reset process and transitions to the normal process state.

なお、通信エラーの発生検出後、上記のいずれのフラグも“1”でない場合には、他の原因による通信エラーと判断できる。このときホストマイコン14は、正規のバッテリパック2が接続されていないものと判断して、従来通り、撮像装置1の動作を停止させるように制御する。あるいは、通信制御回路18に対して完全にリセットして起動時の状態に戻すための制御コマンドを送信し、通信制御回路18が再起動した後、バッテリパック2との間の認証処理を再度実行させて、正しく認証された場合には、バッテリ残量表示タスクなどの他のタスクを実行させるようにしてもよい。   If any of the above flags is not “1” after detecting the occurrence of a communication error, it can be determined that the communication error is caused by another cause. At this time, the host microcomputer 14 determines that the regular battery pack 2 is not connected, and controls the operation of the imaging device 1 to stop as usual. Alternatively, a control command for completely resetting the communication control circuit 18 to return to the start-up state is transmitted, and after the communication control circuit 18 is restarted, the authentication process with the battery pack 2 is executed again. If the authentication is correctly performed, another task such as a battery remaining amount display task may be executed.

ホストマイコン14は、通信リセットコマンドの送信(タイミングT27)から所定時間が経過したタイミングT29において、タイミングT25で送信したものと同じ結果要求タスクを再度送信する。通信制御回路18は、ホストマイコン14に対して「正常終了」を示す情報を返送するとともに、保持したままにしていた通信インタフェース回路26からの受信データを、ホストマイコン14に返送する。   The host microcomputer 14 transmits again the same result request task transmitted at the timing T25 at the timing T29 when a predetermined time has elapsed from the transmission of the communication reset command (timing T27). The communication control circuit 18 returns information indicating “normal end” to the host microcomputer 14 and returns the received data from the communication interface circuit 26 that has been held to the host microcomputer 14.

この受信データには、少なくとも、前回のバッテリ残量表示タスクの実行時(タイミングT22)において、バッテリパック2からの受信に成功したデータが含まれる。ホストマイコン14は、返送されたデータを基にバッテリ残量を演算し直し、表示部17における残量表示を更新する。例えば、バッテリ残量の演算において必要性が高い測定値は、バッテリセルの電圧および電流であり、バッテリ温度やバッテリ劣化率は、電圧や電流から算出されるバッテリ残量を補正するために使用される。従って、通信エラーが発生したときでも、バッテリセルの電圧および電流だけでも受信できれば、これらの値を基にバッテリ残量を暫定的に算出して、表示部17に表示させることができる。   This received data includes at least data that has been successfully received from the battery pack 2 at the time of execution of the previous battery remaining amount display task (timing T22). The host microcomputer 14 recalculates the battery remaining amount based on the returned data, and updates the remaining amount display on the display unit 17. For example, the measurement values that are highly necessary in the calculation of the remaining battery level are the voltage and current of the battery cell, and the battery temperature and the battery deterioration rate are used to correct the remaining battery level calculated from the voltage and current. The Therefore, even when a communication error occurs, if the battery cell voltage and current can be received, the remaining battery level can be temporarily calculated based on these values and displayed on the display unit 17.

この後、タイミングT30において、ホストマイコン14は、バッテリ残量表示タスクの実行を指示するタスク実行コマンドを再度送信する。このコマンドを受信した通信制御回路18は、タイミングT31から対応するサブタスクを順次実行し、タイミングT32において、ホストマイコン14からの結果要求コマンドを受信すると、新たに取得された受信データをホストマイコン14に対して返送し、バッテリ残量表示タスクが正常に終了される。   Thereafter, at timing T30, the host microcomputer 14 transmits again a task execution command instructing execution of the battery remaining amount display task. Upon receiving this command, the communication control circuit 18 sequentially executes the corresponding subtasks from timing T31. When the result request command is received from the host microcomputer 14 at timing T32, the newly acquired received data is sent to the host microcomputer 14. The battery remaining amount display task is normally completed.

以上の処理では、通信制御回路18において通信エラーが発生して、通信処理が停止されたときに、ホストマイコン14において、シャッタレリーズONフラグ51およびストロボ充電フラグ52を基に、消費電力が大きい動作による通信エラーが発生したことが認識され、通信制御回路18をリセットさせた後、中断された通信処理が再実行される。これにより、例えば装置全体をリセットした場合、あるいはバッテリパック2を再装着した場合などと比較して、通信処理を短時間で復帰させることができる。   In the above processing, when a communication error occurs in the communication control circuit 18 and the communication processing is stopped, the host microcomputer 14 operates with high power consumption based on the shutter release ON flag 51 and the strobe charging flag 52. It is recognized that a communication error has occurred, and the communication control circuit 18 is reset, and then the interrupted communication process is re-executed. Thereby, for example, communication processing can be restored in a shorter time than when the entire apparatus is reset or when the battery pack 2 is remounted.

特に、相互認証機能を備えたバッテリパック2を使用している場合、装置全体のリセットやバッテリパック2の再装着を行うと、最初に認証処理タスクをあらためて実行する必要がある。しかし、上記処理手順により、例えばバッテリ残量表示タスクを時間を空けずに再実行できるようになる。従って、上記処理により、撮像装置1の安全性を低下させることなく、通信処理を短時間で復帰させることが可能になる。   In particular, when the battery pack 2 having the mutual authentication function is used, when the entire apparatus is reset or the battery pack 2 is remounted, it is necessary to first execute the authentication processing task again. However, according to the above processing procedure, for example, the battery remaining amount display task can be re-executed without leaving time. Therefore, the above processing makes it possible to return the communication processing in a short time without reducing the safety of the imaging device 1.

また、消費電力が大きい動作が行われ、GND配線に大電流が流れたことによる通信エラーが発生したときには、通信リセットコマンドにより、その事態に対処するための専用のリセット処理を通信制御回路18に実行させて、完全なリセット処理を行わないようにすることで、通信処理の中断時間を短縮できる。   In addition, when a communication error occurs due to a large power consumption and a large current flowing through the GND wiring, a dedicated reset process for dealing with the situation is given to the communication control circuit 18 by a communication reset command. By executing it and not performing a complete reset process, the interruption time of the communication process can be shortened.

さらに、この通信リセットコマンドによるリセット処理では、通信制御回路18がこの時点で通信インタフェース回路26からの受信に成功していたデータをそのまま残し、リセット処理後にこれらのデータをホストマイコン14が即座に読み出すようにしたことで、通信エラーがホストマイコン14側の処理に与える影響を小さくすることができる。例えば、表示部17に表示していた残量表示が途切れる、あるいは、残量演算の精度が低下するなどの事態を回避できる。   Further, in the reset process by the communication reset command, the communication control circuit 18 leaves the data that has been successfully received from the communication interface circuit 26 at this time as it is, and the host microcomputer 14 immediately reads out the data after the reset process. By doing so, the influence of the communication error on the processing on the host microcomputer 14 side can be reduced. For example, it is possible to avoid such a situation that the remaining amount display displayed on the display unit 17 is interrupted or the accuracy of the remaining amount calculation is lowered.

そして、撮像装置1とバッテリパック2との間で、電源供給とGND配線を共通化して1線式通信を行うようにしながらも、上記の効果を得ることができるので、撮像動作や各種の処理が高速かつ安定的に実行可能な撮像装置を、低コストで実現できる。さらに、バッテリパック2との接続端子や通信線、回路などの配置の自由度も高めることができ、撮像装置1を小型化できる。   The above-described effects can be obtained between the image pickup apparatus 1 and the battery pack 2 while common power supply and GND wiring are used to perform one-wire communication. However, it is possible to realize an imaging apparatus that can be stably executed at high speed at low cost. Furthermore, the degree of freedom of arrangement of connection terminals, communication lines, circuits, and the like with the battery pack 2 can be increased, and the imaging device 1 can be downsized.

図6は、通信リセットコマンドによるリセット処理の流れを示すフローチャートである。
通信制御回路18は、例えばバッテリ残量表示タスクの実行中に通信エラーが発生し、これを検出したホストマイコン14から通信リセットコマンドを受信すると、次のような処理を実行する。まず、サブタスク実行ポインタ32をクリアする(ステップS11)。次に、受信データ有効フラグ31を参照し(ステップS12)、フラグの値が“1”であれば、ホストマイコン14に対してACK(Acknowledge)を返信し(ステップS13)、その後に、通信管理領域40の情報をクリアする(ステップS14)。一方、受信データ有効フラグ31の値が“0”である場合には、ホストマイコン14に対して何の応答もせずに、通信管理領域40の情報をクリアする(ステップS14)。
FIG. 6 is a flowchart showing a flow of reset processing by a communication reset command.
When the communication control circuit 18 receives a communication reset command from the host microcomputer 14 that has detected a communication error during execution of the remaining battery amount display task, for example, the following processing is executed. First, the subtask execution pointer 32 is cleared (step S11). Next, the received data valid flag 31 is referred to (step S12). If the value of the flag is “1”, an ACK (Acknowledge) is returned to the host microcomputer 14 (step S13), and then communication management is performed. The information in area 40 is cleared (step S14). On the other hand, if the value of the received data valid flag 31 is “0”, the information in the communication management area 40 is cleared without making any response to the host microcomputer 14 (step S14).

図7は、通信エラーが発生したときの撮像装置のホストマイコンの処理手順を示すフローチャートである。
バッテリパック2からホストマイコン14にデータを引き渡すようなタスク(ここではバッテリ残量表示タスク)の実行を指示した後に、通信制御回路18における通信エラーを検出すると(ステップS21)、ホストマイコン14は、次のステップS22以降の処理を実行する。なお、ホストマイコン14は、上述したように、結果要求コマンドに応答して、通信制御回路18から「通信エラー」を示す情報が返送されることで、通信エラーを検出する。また、この他の例として、通信エラーが発生すると、通信制御回路18側からホストマイコン14に対して、通信エラーの発生を通知するようにしてもよい。
FIG. 7 is a flowchart illustrating a processing procedure of the host microcomputer of the imaging apparatus when a communication error occurs.
When a communication error is detected in the communication control circuit 18 after instructing execution of a task (in this case, a battery remaining amount display task) that transfers data from the battery pack 2 to the host microcomputer 14, the host microcomputer 14 The process after the next step S22 is executed. As described above, the host microcomputer 14 detects a communication error by returning information indicating a “communication error” from the communication control circuit 18 in response to the result request command. As another example, when a communication error occurs, the communication control circuit 18 may notify the host microcomputer 14 of the occurrence of the communication error.

通信エラーを検出すると、ホストマイコン14は、シャッタレリーズONフラグ51およびストロボ充電フラグ52の値を参照する(ステップS22)。これらのフラグがともに“0”である場合、ホストマイコン14は、撮像装置1全体の動作を終了するための処理を実行する(ステップS23)。あるいは、上述したように、撮像装置1全体をリセットして、バッテリパック2との認証処理をあらためて実行してもよい。   When detecting a communication error, the host microcomputer 14 refers to the values of the shutter release ON flag 51 and the strobe charge flag 52 (step S22). When both of these flags are “0”, the host microcomputer 14 executes a process for ending the operation of the entire imaging apparatus 1 (step S23). Alternatively, as described above, the entire imaging apparatus 1 may be reset and the authentication process with the battery pack 2 may be executed again.

また、シャッタレリーズONフラグ51およびストロボ充電フラグ52のいずれか一方でも“1”である場合、ホストマイコン14は、通信リセットコマンドを通信制御回路18に送信し(ステップS24)、一定時間以内に応答があるか否かを判定する(ステップS25)。ACKの応答があった場合、通信制御回路18のRAM18aに有効な受信データが格納されていると判断できるので、ホストマイコン14は、所定時間後に、その受信データを読み込むための結果要求コマンドを、通信制御回路18に送信する(ステップS26)。   If either one of the shutter release ON flag 51 and the flash charge flag 52 is “1”, the host microcomputer 14 transmits a communication reset command to the communication control circuit 18 (step S24), and responds within a predetermined time. It is determined whether or not there is (step S25). If there is an ACK response, it can be determined that valid received data is stored in the RAM 18a of the communication control circuit 18, so that the host microcomputer 14 outputs a result request command for reading the received data after a predetermined time. It transmits to the communication control circuit 18 (step S26).

通信制御回路18から受信データが返送されると、ホストマイコン14はこれを受信し、受信データを用いて所定の処理(ここではバッテリ残量の演算処理)を実行する(ステップS27)。そして、ホストマイコン14は、その後の所定時間後に、再びタスク実行コマンド(ここではバッテリ残量表示タスクに対応する)を送信し、通信制御回路18に、中断されたタスクを再度実行するように要求する(ステップS28)。   When the received data is returned from the communication control circuit 18, the host microcomputer 14 receives it and executes a predetermined process (in this case, a battery remaining amount calculation process) using the received data (step S27). Then, the host microcomputer 14 transmits a task execution command (corresponding to the battery remaining amount display task in this case) again after a predetermined time thereafter, and requests the communication control circuit 18 to execute the interrupted task again. (Step S28).

なお、ステップS27でホストマイコン14に返送される受信データは、基本的には、その直前に実行されて中断されたタスクにより、バッテリパック2側からの受信に成功していたデータである。しかし、通信制御回路18のRAM18aにおいて、1度格納された受信データを、次に新たな受信データにより上書きするまでの間、消去せずに保持しておくようにして、結果要求コマンドに応じてRAM18a内のすべての受信データを返送する仕様としてもよい。   The received data returned to the host microcomputer 14 in step S27 is basically data that has been successfully received from the battery pack 2 side by the task that was executed immediately before and was interrupted. However, the received data stored once in the RAM 18a of the communication control circuit 18 is held without being erased until it is overwritten with new received data next, and according to the result request command. The specification may return all received data in the RAM 18a.

一方、通信リセットコマンドの送信(ステップS24)に対して、通信制御回路18からの応答がなかった場合には、通信制御回路18のRAM18aに有効な受信データが格納されていないと判断できるので、ホストマイコン14は、結果要求コマンドの送信を行わず、再度タスク実行コマンドを送信して、通信制御回路18に、中断されたタスクを再度実行させる(ステップS28)。   On the other hand, if there is no response from the communication control circuit 18 in response to the transmission of the communication reset command (step S24), it can be determined that valid received data is not stored in the RAM 18a of the communication control circuit 18. The host microcomputer 14 transmits the task execution command again without transmitting the result request command, and causes the communication control circuit 18 to execute the interrupted task again (step S28).

以上の図6および図7の処理によれば、ホストマイコン14は、エラーを検出した後、通信リセットコマンドに対する応答が通信制御回路18からあるか否かに応じて、通信制御回路18内に取得し得る受信データが存在するか否かを判断でき、存在する場合には即座にこの受信データを取得して、必要な処理を暫定的に実行することができる。逆に、通信制御回路18内に取得し得る受信データが存在しない場合には、即座にタスク実行コマンドを送信して、中断されたタスクを再実行させることができる。   6 and 7, after the host microcomputer 14 detects an error, the host microcomputer 14 acquires it in the communication control circuit 18 depending on whether or not there is a response to the communication reset command from the communication control circuit 18. It is possible to determine whether or not there is reception data that can be received. If there is, the reception data can be immediately acquired and necessary processing can be temporarily executed. Conversely, if there is no received data that can be acquired in the communication control circuit 18, a task execution command can be immediately transmitted to re-execute the interrupted task.

なお、上記の説明では、主にバッテリ残量表示タスクの実行中に通信エラーが発生した場合について述べたが、バッテリパック2側からホストマイコン14に対して何らかのデータを引き渡すような他のタスクの実行中であっても、基本的には図6と同様の手順によりリセット処理が実行される。すなわち、少なくともバッテリパック2側から受信済みのデータについては消去せずにそのまま保持し、その他の情報をリセットする。これにより、タスクの再実行の前に受信済みのデータを用いて可能な限りの処理を実行できる。また、装置全体のリセットや通信制御回路18の完全リセットなどを行うことなく、中断されたタスクを即座に再実行できる。従って、撮像装置1における撮像動作を高速化することができる。   In the above description, the case where a communication error has occurred during the execution of the battery remaining amount display task has been described. However, other tasks such as passing some data from the battery pack 2 side to the host microcomputer 14 are described. Even during execution, the reset process is basically executed by the same procedure as in FIG. That is, at least data received from the battery pack 2 side is retained without being erased, and other information is reset. As a result, as much processing as possible can be executed using the received data before re-execution of the task. Further, the interrupted task can be immediately re-executed without resetting the entire apparatus or completely resetting the communication control circuit 18. Therefore, the imaging operation in the imaging device 1 can be speeded up.

例えば、認証処理タスクの場合には、その実行中に大電流による通信エラーが発生すると、通信制御回路18の通信処理が停止状態となった後、通信リセットコマンドによるリセット処理が実行されて、その後に認証処理タスクがあらためて実行される。   For example, in the case of an authentication processing task, if a communication error due to a large current occurs during its execution, after the communication processing of the communication control circuit 18 is stopped, a reset processing by a communication reset command is executed, and thereafter The authentication processing task is executed again.

従来、認証処理タスクの実行中に通信エラーが発生した場合には、接続されたバッテリパック2を正規のものでないと判断して、撮像装置1全体の動作を終了させ、そのバッテリパック2をあらためて装着するまで、撮像装置1を起動しないように制御していた。しかし、図7の処理と同様に、シャッタレリーズONフラグ51およびストロボ充電フラグ52のいずれか一方でも“1”であれば、通信リセットコマンドによるリセット処理を実行して、撮像装置1全体を停止させることなく、認証処理タスクを再実行できるようにすることで、バッテリパック2を再装着する必要がなくなる。また、通信エラーの発生からタスク再実行の完了までの間、撮像装置1の内部の処理(例えば、撮像画像を記録可能となるまでの初期処理や露出・フォーカスの調整処理など)を通常通り続行させることができ、撮像装置1における撮像動作を起動から短時間で開始することもできる。   Conventionally, when a communication error occurs during the execution of an authentication processing task, it is determined that the connected battery pack 2 is not legitimate, the operation of the entire imaging apparatus 1 is terminated, and the battery pack 2 is renewed. The image pickup apparatus 1 is controlled not to be activated until it is attached. However, as in the process of FIG. 7, if either one of the shutter release ON flag 51 and the strobe charge flag 52 is “1”, a reset process by a communication reset command is executed to stop the entire imaging apparatus 1. Thus, it becomes unnecessary to remount the battery pack 2 by enabling the authentication processing task to be re-executed. In addition, the internal processing of the imaging apparatus 1 (for example, initial processing until the captured image can be recorded, exposure / focus adjustment processing, etc.) is continued as usual from the occurrence of a communication error to the completion of task re-execution. The imaging operation in the imaging apparatus 1 can be started in a short time from the start.

なお、この例の場合でも、認証処理タスクの実行中に通信エラーが発生した場合、シャッタレリーズONフラグ51およびストロボ充電フラグ52の値がともに“0”であれば、図7のステップS23と同様に(すなわち、従来の認証エラー発生時と同様に)撮像装置1全体の動作が終了される。   Even in this example, if a communication error occurs during the execution of the authentication processing task, if both the shutter release ON flag 51 and the strobe charge flag 52 are “0”, the same as step S23 in FIG. (I.e., the same as when a conventional authentication error occurs), the entire operation of the imaging apparatus 1 is terminated.

また、この認証処理タスクにおいても、通信リセットコマンドによるリセット処理が実行された後に、すでにバッテリパック2側から受信済みのデータを利用できるようにしてもよい。   In this authentication processing task, data already received from the battery pack 2 side may be used after the reset processing by the communication reset command is executed.

また、上記の実施の形態では、ホストマイコン14は、通信制御回路18での通信エラーの発生を検出した後、シャッタレリーズONフラグ51やストロボ充電フラグ52から、GND配線への過大な電流による通信エラーと判断していたが、この他に例えば、これらのフラグが“1”となるような動作が実行されると、ホストマイコン14が通信制御回路18に対して必ず通信リセットコマンドを送信するようにしてもよい。この場合、通信制御回路18では、通信エラーが発生して処理停止状態となっているときにのみ、通信リセットコマンドを受け付け、その他の状態ではこのコマンドを無視するようにしておく。通信制御回路18が通信リセットコマンドを受け付けた後の処理は、上述した通りである。   In the above embodiment, the host microcomputer 14 detects the occurrence of a communication error in the communication control circuit 18 and then performs communication due to an excessive current from the shutter release ON flag 51 or the strobe charge flag 52 to the GND wiring. In addition to this, for example, when an operation that sets these flags to “1” is executed, the host microcomputer 14 always sends a communication reset command to the communication control circuit 18. It may be. In this case, the communication control circuit 18 accepts a communication reset command only when a communication error occurs and the process is stopped, and ignores this command in other states. The processing after the communication control circuit 18 receives the communication reset command is as described above.

また、上記の実施の形態では、通信制御回路18が、ホストマイコン14からの制御コマンドに従って動作する構成としていたが、このような構成に限らず、例えば、すべての通信処理をホストマイコン14が制御する構成としてもよい。また、上記の通信制御回路18とホストマイコン14の各機能が一体の半導体基板上に設けられていてもよい。   In the above embodiment, the communication control circuit 18 is configured to operate according to the control command from the host microcomputer 14. However, the present invention is not limited to such a configuration. For example, the host microcomputer 14 controls all communication processes. It is good also as composition to do. The functions of the communication control circuit 18 and the host microcomputer 14 may be provided on an integrated semiconductor substrate.

また、上記の実施の形態では、撮像装置1とバッテリパック2との間で1本の通信線により通信が行われていたが、複数の通信線により通信が行われていてもよい。すなわち、差動信号を用いず、電源供給用配線のGNDレベルと共通の電位を基準として信号を送受信するような電子機器に、本発明を適用可能である。   In the above-described embodiment, communication is performed between the imaging device 1 and the battery pack 2 using one communication line. However, communication may be performed using a plurality of communication lines. That is, the present invention can be applied to an electronic device that does not use a differential signal and transmits and receives a signal based on a potential common to the GND level of the power supply wiring.

また、以上説明した実施の形態では、電子機器の例として撮像装置を挙げたが、これに限らず、外部機器から電源の供給を受けて動作し、かつ、その外部機器との通信機能を備えたいかなる電子機器にも、本発明を適用可能である。例えば、外部機器としてPC(パーソナルコンピュータ)からの電源の供給を受けて何らかの動作を行う機能を備えた、音楽プレーヤなどの携帯型の機器に適用することもできる。   In the embodiment described above, the imaging apparatus is described as an example of the electronic device. However, the present invention is not limited to this, and the device operates by receiving power from an external device and has a communication function with the external device. The present invention can be applied to any electronic device. For example, the present invention can be applied to a portable device such as a music player having a function of performing some operation upon receiving power supply from a PC (personal computer) as an external device.

実施の形態に係る撮像装置およびバッテリパックの構成を示すブロック図である。It is a block diagram which shows the structure of the imaging device and battery pack which concern on embodiment. バッテリ残量表示タスクの実行時における処理を模式的に示すタイミングチャートである。It is a timing chart which shows typically processing at the time of execution of a battery remaining amount display task. 撮像装置の通信制御回路が備えるメモリ領域の構成例を示す図である。It is a figure which shows the structural example of the memory area with which the communication control circuit of an imaging device is provided. 撮像装置のホストマイコンが保持する動作管理用データの例を示す図である。It is a figure which shows the example of the data for operation management which the host microcomputer of an imaging device hold | maintains. 通信エラー発生時における撮像装置の動作を示すタイミングチャートである。It is a timing chart which shows operation of an imaging device at the time of communication error occurrence. 通信リセットコマンドによるリセット処理の流れを示すフローチャートである。It is a flowchart which shows the flow of the reset process by a communication reset command. 通信エラーが発生したときの撮像装置のホストマイコンの処理手順を示すフローチャートである。It is a flowchart which shows the process sequence of the host microcomputer of an imaging device when a communication error generate | occur | produces. 撮像装置からバッテリパックに信号を送信する場合の動作を模式的に示す図である。It is a figure which shows typically operation | movement in the case of transmitting a signal from an imaging device to a battery pack. バッテリパックから撮像装置に信号を送信する場合の動作を模式的に示す図である。It is a figure which shows typically operation | movement in case a signal is transmitted to an imaging device from a battery pack.

符号の説明Explanation of symbols

1……撮像装置、2……バッテリパック、11,21……正極端子、12,22……負極端子、13,23……通信端子、14……ホストマイコン、15……レギュレータ、16……撮像・記録処理部、17……表示部、18……通信制御回路、24……バッテリセル、25……バッテリマイコン、26……通信インタフェース回路、27……電流検出抵抗   DESCRIPTION OF SYMBOLS 1 ... Imaging device, 2 ... Battery pack, 11, 21 ... Positive electrode terminal, 12, 22 ... Negative electrode terminal, 13, 23 ... Communication terminal, 14 ... Host microcomputer, 15 ... Regulator, 16 ... Imaging / recording processing unit, 17 ... display unit, 18 ... communication control circuit, 24 ... battery cell, 25 ... battery microcomputer, 26 ... communication interface circuit, 27 ... current detection resistor

Claims (11)

通信機能を備えた外部機器と接続し、前記外部機器から電源の供給を受けて動作する電子機器において、
前記外部機器から電源の供給を受けるための電源端子および接地端子と、
前記接地端子の電位を基準とした信号を通信端子を介して送受信する通信処理部と、
前記通信処理部による前記外部機器との通信処理を、あらかじめ決められた一連の通信処理からなる通信タスク単位で制御する通信制御部と、
実行時の電力消費が比較的高い内部動作があらかじめ規定され、前記内部動作が前記電子機器内で実行されたか否かを管理する内部動作管理部と、
を有し、
前記通信制御部は、前記通信タスクの実行中に、前記通信処理部において通信エラーが発生し、かつ、前記内部動作管理部により前記内部動作が実行されたと認識されていた場合には、前記通信処理部をリセットした後、前記通信エラーの発生時に実行していた前記通信タスクを再度実行させることを特徴とする電子機器。
In an electronic device that is connected to an external device having a communication function and operates by receiving power supply from the external device,
A power supply terminal and a ground terminal for receiving power supply from the external device;
A communication processing unit that transmits and receives a signal based on the potential of the ground terminal via the communication terminal;
A communication control unit that controls communication processing with the external device by the communication processing unit in units of communication tasks including a predetermined series of communication processing;
An internal operation management unit that manages whether or not an internal operation with relatively high power consumption during execution is defined in advance and the internal operation is executed in the electronic device;
Have
When the communication control unit recognizes that a communication error has occurred in the communication processing unit and the internal operation is performed by the internal operation management unit during execution of the communication task, the communication control unit An electronic apparatus characterized by causing the communication task that was being executed when the communication error occurred to be executed again after resetting the processing unit.
前記通信処理部は、前記通信タスクの実行により前記外部機器から受信したデータを順次記憶するデータ記憶部を備え、
前記通信制御部は、前記通信エラーが発生し、かつ、前記内部動作が実行されていたと判断すると、前記通信エラーの発生以前に前記データ記憶部に正常に記憶されたデータを保持し続けた状態で前記通信処理部をリセットする通信エラー用リセット処理を実行させることを特徴とする請求項1記載の電子機器。
The communication processing unit includes a data storage unit that sequentially stores data received from the external device by execution of the communication task,
When the communication control unit determines that the communication error has occurred and the internal operation has been executed, the communication control unit continues to hold data normally stored in the data storage unit before the communication error occurs The electronic apparatus according to claim 1, wherein a communication error reset process for resetting the communication processing unit is executed.
前記通信タスクの実行により前記外部機器から取得されたデータを用いて所定の処理を実行するデータ処理部をさらに有し、
前記通信制御部は、前記通信処理部に前記通信エラー用リセット処理を実行させた後、前記データ記憶部に記憶されたデータを読み込んで、前記データ処理部に処理させ、その後に、前記通信エラーの発生時に実行していた前記通信タスクを前記通信処理部に再度実行させることを特徴とする請求項2記載の電子機器。
A data processing unit that executes predetermined processing using data acquired from the external device by execution of the communication task;
The communication control unit causes the communication processing unit to execute the communication error reset processing, reads the data stored in the data storage unit, causes the data processing unit to process, and then performs the communication error. The electronic device according to claim 2, wherein the communication processing unit is executed again when the communication task is executed at the time of occurrence.
前記外部機器は、2次電池によって前記電子機器に電源を供給するバッテリパックであり、
前記データ処理部は、前記2次電池の残容量を計算して表示情報を生成する機能を備え、
前記通信制御部は、前記通信タスクの1つとして、前記残容量の計算のための複数の検出データを前記バッテリパックから受信するためのバッテリ残量タスクを前記通信処理部に実行させていた場合に、前記通信エラーが発生し、かつ、前記内部動作が実行されていたと判断すると、前記通信処理部に前記通信エラー用リセット処理を実行させた後、前記データ記憶部に記憶された前記検出データを読み込み、前記データ処理部に転送して前記残容量の計算および前記表示情報の生成の処理を実行させ、その後に、前記バッテリ残量タスクを前記通信処理部に再度実行させることを特徴とする請求項3記載の電子機器。
The external device is a battery pack that supplies power to the electronic device by a secondary battery,
The data processing unit has a function of calculating display capacity of the secondary battery and generating display information,
When the communication control unit causes the communication processing unit to execute a battery remaining amount task for receiving a plurality of detection data for calculating the remaining capacity from the battery pack as one of the communication tasks When the communication error has occurred and the internal operation has been executed, the communication processing unit is caused to execute the communication error reset process, and then the detection data stored in the data storage unit is stored. Is transferred to the data processing unit, the remaining capacity calculation and the display information generation processing are executed, and then the battery remaining amount task is executed again by the communication processing unit. The electronic device according to claim 3.
前記データ処理部は、前記バッテリパックが正規のものであるか否かを判定するための認証処理を実行する機能をさらに備え、
前記通信制御部は、前記電子機器が起動した後、まず、前記通信タスクの1つとして、前記認証処理に必要な認証情報を前記バッテリパックとの間で送受信するための認証タスクを前記通信処理部に実行させた後、前記バッテリ残量タスクを一定時間ごとに実行させ、前記バッテリ残量タスクを実行させているときに、前記通信エラーが発生し、かつ、前記内部動作が実行されていたと判断すると、前記通信処理部に前記通信エラー用リセット処理を実行させた後、前記データ記憶部に記憶された前記検出データを読み込み、前記データ処理部に転送して前記残容量の計算および前記表示情報の生成の処理を実行させ、その後に、前記認証タスクを再度実行させることなく、前記バッテリ残量タスクを前記通信処理部に再度実行させることを特徴とする請求項4記載の電子機器。
The data processing unit further includes a function of executing an authentication process for determining whether or not the battery pack is genuine,
After the electronic device is activated, the communication control unit first performs an authentication task for transmitting / receiving authentication information necessary for the authentication process with the battery pack as one of the communication tasks. The battery remaining amount task is executed at regular intervals, and when the remaining battery amount task is executed, the communication error occurs and the internal operation is performed. When the determination is made, the communication processing unit is caused to execute the communication error reset process, and then the detection data stored in the data storage unit is read and transferred to the data processing unit to calculate and display the remaining capacity. Causing the communication processing unit to re-execute the battery remaining amount task without causing the authentication task to be re-executed. Electronic device according to claim 4, symptoms.
前記通信処理部は、前記通信制御部から制御コマンドによりいずれかの前記通信タスクの実行を指示されると、当該通信タスクを構成する一連の通信処理を自動的に実行し、また、前記通信タスクを構成する個々の通信処理の進捗状況を管理するための処理進捗情報と、当該通信タスクの実行中における前記通信エラーの発生を示すエラー情報とを記憶し、
前記通信エラー用リセット処理を実行する際には、前記データ記憶部に記憶されたデータを保持し続けるとともに、少なくとも前記処理進捗情報および前記エラー情報を初期化する
ことを特徴とする請求項2記載の電子機器。
When the communication processing unit is instructed to execute any of the communication tasks by a control command from the communication control unit, the communication processing unit automatically executes a series of communication processes constituting the communication task, and the communication task Storing process progress information for managing the progress of individual communication processes constituting the error information and error information indicating the occurrence of the communication error during the execution of the communication task,
3. When executing the communication error reset process, the data stored in the data storage unit is continuously held, and at least the process progress information and the error information are initialized. Electronic equipment.
接続された前記外部機器が正規の通信相手であるか否かを判定するための認証処理を実行するデータ処理部を備え、
前記通信制御部は、前記通信タスクの1つとして、前記認証処理に必要な認証情報を前記外部機器との間で送受信するための認証タスクを前記通信処理部に実行させていた場合に、前記通信エラーが発生し、かつ、前記内部動作が実行されていたと判断すると、前記通信処理部をリセットした後、前記認証タスクを再度実行させることを特徴とする請求項1記載の電子機器。
A data processing unit that executes an authentication process for determining whether or not the connected external device is a regular communication partner;
When the communication control unit causes the communication processing unit to execute an authentication task for transmitting / receiving authentication information necessary for the authentication processing to / from the external device as one of the communication tasks, The electronic device according to claim 1, wherein if it is determined that a communication error has occurred and the internal operation has been executed, the authentication task is executed again after resetting the communication processing unit.
前記通信制御部は、前記通信タスクの1つとして、前記認証処理に必要な認証情報を前記外部機器との間で送受信するための認証タスクを前記通信処理部に実行させていたときに、前記通信エラーが発生したとき、前記内部動作管理部により前記内部動作が実行されたと認識されていない場合には、前記電子機器の動作を終了させるように制御することを特徴とする請求項7記載の電子機器。   The communication control unit, as one of the communication tasks, when causing the communication processing unit to execute an authentication task for transmitting and receiving authentication information necessary for the authentication processing with the external device, 8. The control according to claim 7, wherein, when a communication error occurs, if the internal operation management unit does not recognize that the internal operation has been executed, control is performed to end the operation of the electronic device. Electronics. 前記外部機器は、2次電池によって前記電子機器に電源を供給するバッテリパックであることを特徴とする請求項7記載の電子機器。   The electronic device according to claim 7, wherein the external device is a battery pack that supplies power to the electronic device by a secondary battery. 外部機器から電源の供給を受けて動作する電子機器に搭載されて、前記外部機器と通信するための通信制御装置において、
前記外部機器から電源の供給を受けるための前記電子機器の接地端子の電位を基準とした信号を、通信端子を介して送受信する通信処理部と、
前記通信処理部による前記外部機器との通信処理を、あらかじめ決められた一連の通信処理からなる通信タスク単位で制御する通信制御部と、
実行時の電力消費が比較的高い前記電子機器の内部動作があらかじめ規定され、前記内部動作が前記電子機器内で実行されたか否かを管理する内部動作管理部と、
を有し、
前記通信制御部は、前記通信タスクの実行中に、前記通信処理部において通信エラーが発生し、かつ、前記内部動作管理部により前記内部動作が実行されたと認識されていた場合には、前記通信処理部をリセットした後、前記通信エラーの発生時に実行していた前記通信タスクを再度実行させることを特徴とする通信制御装置。
In a communication control device that is mounted on an electronic device that operates by receiving power supply from an external device and communicates with the external device,
A communication processing unit that transmits and receives a signal based on a potential of a ground terminal of the electronic device for receiving power supply from the external device via a communication terminal;
A communication control unit that controls communication processing with the external device by the communication processing unit in units of communication tasks including a predetermined series of communication processing;
An internal operation management unit for managing whether or not the internal operation of the electronic device with relatively high power consumption at the time of execution is defined in advance and the internal operation is executed in the electronic device;
Have
When the communication control unit recognizes that a communication error has occurred in the communication processing unit and the internal operation is performed by the internal operation management unit during execution of the communication task, the communication control unit A communication control device that causes the communication task that was being executed when the communication error occurred to be executed again after resetting the processing unit.
外部機器から電源の供給を受けて動作する電子機器において、前記外部機器と通信するための通信制御方法であって、
前記外部機器から電源の供給を受けるための前記電子機器の接地端子の電位を基準とした信号を、通信端子を介して送受信する通信処理部における通信処理を、通信制御部が、あらかじめ決められた一連の通信処理からなる通信タスク単位で実行させ、
内部動作管理部が、実行時の電力消費が比較的高い前記電子機器の内部動作をあらかじめ規定しておき、前記内部動作が前記電子機器内で実行されたか否かを管理し、
前記通信制御部が、前記通信タスクの実行中に、前記通信処理部において通信エラーが発生し、かつ、前記内部動作管理部により前記内部動作が実行されたと認識されていた場合には、前記通信処理部をリセットした後、前記通信エラーの発生時に実行していた前記通信タスクを再度実行させる、
ことを特徴とする通信制御方法。
In an electronic device that operates by receiving power supply from an external device, a communication control method for communicating with the external device,
The communication control unit has predetermined communication processing in the communication processing unit that transmits and receives a signal based on the potential of the ground terminal of the electronic device for receiving power supply from the external device via the communication terminal. Execute by communication task unit consisting of a series of communication processing,
The internal operation management unit preliminarily defines the internal operation of the electronic device that consumes relatively high power during execution, and manages whether the internal operation is executed in the electronic device;
When the communication control unit recognizes that a communication error has occurred in the communication processing unit during execution of the communication task and the internal operation is performed by the internal operation management unit, the communication control unit After resetting the processing unit, the communication task that was being executed when the communication error occurred is executed again.
A communication control method characterized by the above.
JP2007151698A 2007-06-07 2007-06-07 Electronic device, communication control device, and communication control method Expired - Fee Related JP4775329B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2007151698A JP4775329B2 (en) 2007-06-07 2007-06-07 Electronic device, communication control device, and communication control method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2007151698A JP4775329B2 (en) 2007-06-07 2007-06-07 Electronic device, communication control device, and communication control method

Publications (2)

Publication Number Publication Date
JP2008305164A JP2008305164A (en) 2008-12-18
JP4775329B2 true JP4775329B2 (en) 2011-09-21

Family

ID=40233841

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2007151698A Expired - Fee Related JP4775329B2 (en) 2007-06-07 2007-06-07 Electronic device, communication control device, and communication control method

Country Status (1)

Country Link
JP (1) JP4775329B2 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5461152B2 (en) * 2009-11-16 2014-04-02 三洋電機株式会社 Pack battery
JP6305358B2 (en) * 2015-02-03 2018-04-04 株式会社東芝 Cell monitoring apparatus, method and program
US11777324B2 (en) 2016-11-24 2023-10-03 Nec Corporation Monitoring system, server, terminal device, monitoring method, and program
CN114138699B (en) * 2021-11-01 2024-03-26 珠海格力电器股份有限公司 Serial communication processing method, device, equipment, control system and storage medium

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS57212516A (en) * 1981-06-25 1982-12-27 Fujitsu Ltd Retry controlling method of data transfer between devices
JPS6025002A (en) * 1983-07-20 1985-02-07 Shiro Okamura Magnetic recording and reproducing device
JPH02287633A (en) * 1989-04-27 1990-11-27 Hokkaido Nippon Denki Software Kk Data processing control system
US6809649B1 (en) * 1999-01-26 2004-10-26 Telefonaktiebolaget Lm Ericsson(Publ) Method and apparatus for communication between an electronic device and a connected battery
JP3838258B2 (en) * 2005-03-10 2006-10-25 ソニー株式会社 Battery level display method

Also Published As

Publication number Publication date
JP2008305164A (en) 2008-12-18

Similar Documents

Publication Publication Date Title
JP4780062B2 (en) battery pack
JP4125328B2 (en) Electronic device, control method of peripheral device by electronic device, program, and storage medium
JP3819658B2 (en) Portable electronic devices with a common serial bus connector
US8816643B2 (en) Rechargeable device and power feeding control method
JP4419097B2 (en) Electronic device, display control method, recording medium, and program
JP4775329B2 (en) Electronic device, communication control device, and communication control method
US11165269B2 (en) Electronic apparatus, charging method, and non-transitory computer readable recording medium
JP2001067156A (en) Peripheral equimenht of computer, control method therefor, image pickup device, and storage medium
US8527224B2 (en) Apparatus using a battery
JP7305427B2 (en) Electronics
JP5607053B2 (en) Electronic device, method for controlling electronic device, computer program, and recording medium
JP5094655B2 (en) Imaging device
US11394225B2 (en) Method and apparatus for changing impedance of terminal included in connector
US10691555B2 (en) Electronic Device
JP2018022369A (en) Electronic device, control method, program, and storage medium
JP2005216790A (en) Battery pack
JP2006085248A (en) Portable apparatus having host function
JP2019062690A (en) Charger and electronic apparatus
US20220179816A1 (en) Relay device and method of controlling relay device
JP5794031B2 (en) Electronic equipment, system, program
JP5056805B2 (en) Electronic device, supply power control method and program
JP2008205609A (en) Electronic apparatus, communication controller, method and program thereof
JP2008158658A (en) Electronic device, communication control device, method and program
JP2021107984A (en) Electronic apparatus, control method, and program
JP2020067918A (en) Electronic apparatus, control method, and program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20100510

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20110524

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

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20110613

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

Free format text: PAYMENT UNTIL: 20140708

Year of fee payment: 3

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

LAPS Cancellation because of no payment of annual fees