JP5821345B2 - Communication line reliability confirmation device and method - Google Patents

Communication line reliability confirmation device and method Download PDF

Info

Publication number
JP5821345B2
JP5821345B2 JP2011151037A JP2011151037A JP5821345B2 JP 5821345 B2 JP5821345 B2 JP 5821345B2 JP 2011151037 A JP2011151037 A JP 2011151037A JP 2011151037 A JP2011151037 A JP 2011151037A JP 5821345 B2 JP5821345 B2 JP 5821345B2
Authority
JP
Japan
Prior art keywords
block
error
transmission
reception
communication line
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.)
Active
Application number
JP2011151037A
Other languages
Japanese (ja)
Other versions
JP2013019959A (en
Inventor
雅之 神村
雅之 神村
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ricoh Imaging Co Ltd
Original Assignee
Ricoh Imaging Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ricoh Imaging Co Ltd filed Critical Ricoh Imaging Co Ltd
Priority to JP2011151037A priority Critical patent/JP5821345B2/en
Publication of JP2013019959A publication Critical patent/JP2013019959A/en
Application granted granted Critical
Publication of JP5821345B2 publication Critical patent/JP5821345B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は、ファームウエアの書き換えにおける通信ラインの信頼性確認装置及びその方法に関する。   The present invention relates to a communication line reliability confirmation apparatus and method for rewriting firmware.

従来、レンズ交換式デジタルカメラにおいて、レンズ鏡筒又はカメラボディに搭載されたプロセッサのファームウエアの書き換え、いわゆるファームアップがレンズ通信により実施することが知られている(特許文献1)。レンズ通信とは、カメラボディにレンズ鏡筒を装着した際に、カメラボディとレンズ鏡筒との間で互いに当接して電気的に接続される、複数の接点端子を介した通信である。ファームウエアには、レンズ固有の画像補正データ等が含まれているため、精細に撮像するにはそれらが正しく書き換られる必要がある。しかし、カメラボディ側とレンズ鏡筒側の接点同士の接続状態や接触抵抗のバラつきなどにより、レンズ通信ラインの信頼性が十分に高くない場合には、ファームアップが正常に行われない可能性がある。一方で、開発費用との関係から、通信ラインの信頼性を確認する機能は、高度に設計されていない。これは、通常動作時のレンズ通信における不具合は、概ね接点の接触不良による一過性のものであり致命的な問題は発生しづらいためである。   2. Description of the Related Art Conventionally, in an interchangeable lens digital camera, it is known that rewriting of firmware of a processor mounted on a lens barrel or a camera body, so-called firmware upgrade, is performed by lens communication (Patent Document 1). Lens communication is communication via a plurality of contact terminals that are in contact with each other and electrically connected between the camera body and the lens barrel when the lens barrel is attached to the camera body. Since the firmware includes image correction data specific to the lens, it is necessary to rewrite them correctly in order to capture fine images. However, if the reliability of the lens communication line is not sufficiently high due to the connection state between the contact points on the camera body side and the lens barrel side or contact resistance variations, there is a possibility that the firmware upgrade will not be performed normally. is there. On the other hand, the function to confirm the reliability of the communication line is not highly designed because of the development cost. This is because malfunctions in lens communication during normal operation are generally transient due to poor contact of contacts, and fatal problems are unlikely to occur.

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

そこで、レンズ通信ラインの信頼性を確認する機能のひとつである誤り検出符号を用いた「誤り検出機能」を搭載することが考えられる。しかし、「誤り検出機能」は、検出精度を上げるにつれ回路規模が大きくなるとともに、ファームアップ作業が開始できなくなる場合が多くなる。その一方で、ファームアップを行う頻度は比較的少ないため、例えば、デジタルカメラの小型化を進めるにあたっては、精度を犠牲にして回路規模を小さく抑えざるを得ない。このため、全ての誤りを検出できない状況が生じ、ファームウエアが正しく書き換えられない可能性が出てくる。さらに、ユーザー自身がファームアップを実施することを想定すると、製品に精通している開発者が行う場合に比べて、ファームアップが正常に行われない可能性が高まる。   Therefore, it is conceivable to install an “error detection function” using an error detection code, which is one of the functions for confirming the reliability of the lens communication line. However, in the “error detection function”, as the detection accuracy is increased, the circuit scale becomes larger and the firmware upgrade operation cannot be started in many cases. On the other hand, since the frequency of firmware upgrades is relatively low, for example, in order to reduce the size of a digital camera, the circuit scale must be kept small at the expense of accuracy. For this reason, a situation occurs in which all errors cannot be detected, and there is a possibility that the firmware cannot be rewritten correctly. Furthermore, assuming that the user himself / herself performs the firmware upgrade, there is a higher possibility that the firmware upgrade will not be performed normally as compared with the case where a developer familiar with the product performs.

本発明は、電気的な構成を変えずに、常にファームウエアの書き換えを完結させることを可能にする通信ライン信頼性確認装置及びその方法を提供することを目的としている。   SUMMARY OF THE INVENTION An object of the present invention is to provide a communication line reliability confirmation apparatus and method capable of always completing firmware rewriting without changing the electrical configuration.

本発明に係るファームアップ時の通信ライン信頼性確認装置は、電気接点を介した通信を利用したファームアップであって、テストデータをブロック単位で送受信するとともにテストデータに誤りがあるか否かを検出し、誤りが所定割合より小さいとき通信ラインが正常であると判断し、誤りが所定割合より大きいときには通信ラインが異常であると判断するテストを実行する通信ライン確認手段を有することを特徴とする。   The communication line reliability confirmation device at the time of firmware upgrade according to the present invention is a firmware upgrade using communication via electrical contacts, and transmits / receives test data in units of blocks and determines whether there is an error in the test data. It has a communication line confirmation means for detecting and executing a test for judging that the communication line is normal when the error is smaller than a predetermined ratio, and judging that the communication line is abnormal when the error is larger than the predetermined ratio. To do.

また、通信ライン信頼性確認装置は、テストの後にファームアップを開始するファームアップ実行手段をさらに備え、ファームアップ実行手段は、ファームアップデータをブロック単位で送受信し、第1ブロックの送信に誤りが検出されないとき第1ブロックを記憶素子に書き込むとともに第2ブロックの送受信を開始し、第1ブロックの送信に誤りが検出されるときには第1ブロックの送受信を所定回数繰返し、所定回数に亘る第1ブロックの送受信の繰返しの間に誤りが検出されないとき、第1ブロックを記憶素子に書き込むとともに第2ブロックの送受信を開始し、所定回数に亘る第1ブロックの送受信の繰返しにおいて所定回数誤りが検出されるとき、第1ブロックを誤りを含んだまま記憶素子に書き込むとともに第2ブロックの送受信を開始しても良い。これにより、ファームアップを完結することが可能となる。   The communication line reliability confirmation device further includes a firmware update execution means for starting a firmware update after the test. The firmware update execution means transmits and receives the firmware update data in units of blocks, and an error is detected in the transmission of the first block. If not, the first block is written to the storage element and the transmission / reception of the second block is started. When an error is detected in the transmission of the first block, the transmission / reception of the first block is repeated a predetermined number of times. When no error is detected during repetition of transmission / reception, when the first block is written to the storage element and transmission / reception of the second block is started, and an error is detected a predetermined number of times in the repetition of transmission / reception of the first block for a predetermined number of times Write the first block to the storage element with errors and send the second block. It may start signal. This makes it possible to complete the firmware upgrade.

通信ライン信頼性確認装置におけるファームアップデータは、ファームアッププログラムを含んでいても良い。ファームアッププログラムを含む場合、ファームアップを完結させる効果がより顕著に表れる。   The firmware update data in the communication line reliability confirmation device may include a firmware update program. When the firmware upgrade program is included, the effect of completing the firmware upgrade is more noticeable.

本発明に係るファームアップ時の通信ライン信頼性確認方法は、電気接点を介した通信を利用したファームアップであって、テストデータをブロック単位で送受信するとともにテストデータに誤りがあるか否かを検出し、誤りが所定割合より小さいとき通信ラインが正常であると判断し、誤りが所定割合より大きいときには通信ラインが異常であると判断するテストを実行することを特徴とする。   The communication line reliability confirmation method at the time of firmware upgrade according to the present invention is a firmware upgrade using communication via an electrical contact, and transmits / receives test data in units of blocks and checks whether there is an error in the test data. A test is performed to detect that the communication line is normal when the error is smaller than a predetermined ratio, and to determine that the communication line is abnormal when the error is larger than the predetermined ratio.

また、通信ライン信頼性確認方法は、テストの後にファームアップを開始し、ファームアップデータをブロック単位で送受信し、第1ブロックの送信に誤りが検出されないとき第1ブロックを記憶素子に書き込むとともに第2ブロックの送受信を開始し、第1ブロックの送信に誤りが検出されるときには第1ブロックの送受信を所定回数繰返し、所定回数に亘る第1ブロックの送受信の繰返しの間に誤りが検出されないとき、第1ブロックを記憶素子に書き込むとともに第2ブロックの送受信を開始し、所定回数に亘る第1ブロックの送受信の繰返しにおいて所定回数誤りが検出されるとき、第1ブロックを誤りを含んだまま記憶素子に書き込むとともに第2ブロックの送受信を開始しても良い。   Further, the communication line reliability check method starts the firmware update after the test, transmits and receives the firmware update data in block units, writes the first block to the storage element when no error is detected in the transmission of the first block, and the second When transmission / reception of a block is started and an error is detected in transmission of the first block, transmission / reception of the first block is repeated a predetermined number of times, and when no error is detected during repetition of transmission / reception of the first block for a predetermined number of times, When one block is written to the storage element and transmission / reception of the second block is started and an error is detected a predetermined number of times in the repetition of transmission / reception of the first block for a predetermined number of times, the first block is stored in the storage element while containing the error. You may start transmission / reception of a 2nd block while writing.

通信ライン信頼性確認方法におけるファームアップデータは、ファームアッププログラムを含んでいても良い。   The firmware update data in the communication line reliability confirmation method may include a firmware update program.

本発明に係る携帯機器は、プログラムを実行するプロセッサを有する外部アクセサリ機器が着脱自在に取り付けられ、電気接点端子を介して外部アクセサリ機器と相互通信可能な携帯機器であって、アクセサリ機器に対して、テストデータをブロック単位で送受信するとともにテストデータに誤りがあるか否かを検出し、誤りが所定割合より小さいとき通信ラインが正常であると判断し、誤りが所定割合より大きいときには通信ラインが異常であると判断するテストを実行する通信ライン確認手段とを有することを特徴とする。   A portable device according to the present invention is a portable device in which an external accessory device having a processor for executing a program is detachably attached, and can communicate with the external accessory device via an electrical contact terminal. The test data is transmitted and received in blocks, and whether or not there is an error in the test data is detected. When the error is smaller than a predetermined ratio, it is determined that the communication line is normal. When the error is larger than the predetermined ratio, the communication line is It has a communication line confirmation means for executing a test for judging that it is abnormal.

また、携帯機器は、テストの後にファームアップを開始するファームアップ実行手段をさらに備え、ファームアップ実行手段は、ファームアップデータをブロック単位で送受信し、第1ブロックの送信に誤りが検出されないとき第1ブロックを記憶素子に書き込むとともに第2ブロックの送受信を開始し、第1ブロックの送信に誤りが検出されるときには第1ブロックの送受信を所定回数繰返し、所定回数に亘る第1ブロックの送受信の繰返しの間に誤りが検出されないとき、第1ブロックを記憶素子に書き込むとともに第2ブロックの送受信を開始し、所定回数に亘る第1ブロックの送受信の繰返しにおいて所定回数誤りが検出されるとき、第1ブロックを誤りを含んだまま記憶素子に書き込むとともに第2ブロックの送受信を開始しても良い。   The portable device further includes a firmware update execution unit that starts a firmware update after the test. The firmware update execution unit transmits and receives the firmware update data in units of blocks, and the first is performed when no error is detected in the transmission of the first block. The block is written to the storage element and transmission / reception of the second block is started. When an error is detected in transmission of the first block, transmission / reception of the first block is repeated a predetermined number of times, and transmission / reception of the first block is repeated a predetermined number of times. When no error is detected in the meantime, the first block is written into the storage element and the transmission / reception of the second block is started. When the error is detected a predetermined number of times in the repetition of the transmission / reception of the first block for a predetermined number of times, the first block Even if the second block is started to be transmitted / received There.

携帯機器におけるファームアップデータは、ファームアッププログラムを含んでいても良い。   The firmware update data in the portable device may include a firmware update program.

また、携帯機器はさらに表示手段を有し、表示手段は、通信ライン確認手段が通信ラインが異常と判断した場合は、アクセサリ機器との接続状態を確認させるための表示を行うことが好ましい。この表示により、ユーザーは即座に異常に気付くことができる。   The portable device further includes a display unit, and the display unit preferably performs a display for confirming a connection state with the accessory device when the communication line confirmation unit determines that the communication line is abnormal. By this display, the user can immediately notice an abnormality.

本発明によれば、電気的な構成を変えずに、常にファームウエアの書き換えを完結させることが可能となる。   According to the present invention, it is possible to always complete rewriting of firmware without changing the electrical configuration.

本発明の実施形態を適用したレンズ交換式カメラの斜視図である。It is a perspective view of an interchangeable lens camera to which an embodiment of the present invention is applied. 図1に示すカメラからレンズ鏡筒を外した状態におけるカメラボディの斜視図である。It is a perspective view of the camera body in the state which removed the lens-barrel from the camera shown in FIG. 本発明の実施形態を適用したレンズ交換式デジタルカメラシステムの全体を表すブロック図である。It is a block diagram showing the whole lens interchangeable digital camera system to which an embodiment of the present invention is applied. ファームウエアが書き込まれるFRASHROMのメモリマップである。It is a memory map of FASHROM in which firmware is written. 本発明の実施形態におけるテスト段階からファームアップ終了までのフローチャートである。It is a flowchart from the test stage in the embodiment of the present invention to the end of firmware upgrade.

以下、本発明の実施形態を図面を参照して説明する。図1はレンズ交換式カメラ(携帯機器)の外観を示し、図2はカメラボディ10からレンズ鏡筒15(外部アクセサリ機器)を外した状態を示している。このカメラシステムにおいてレンズ鏡筒15はカメラボディ10に対して着脱自在である。   Hereinafter, embodiments of the present invention will be described with reference to the drawings. FIG. 1 shows the appearance of an interchangeable lens camera (portable device), and FIG. 2 shows a state in which the lens barrel 15 (external accessory device) is removed from the camera body 10. In this camera system, the lens barrel 15 is detachable from the camera body 10.

カメラボディ10のレンズマウント11の内周側には、複数の電気接点12が円弧状に配置されている。電気接点12の下側には、撮像素子(図示せず)を収容した撮像素子ユニット13が設けられる。カメラボディ10の電源がオン状態であるとき、撮像素子によって動画像が得られ、ライブビューとしてモニタ(図示せず)に表示可能である。カメラボディ10の上面にはシャッタボタン14が設けられる。   A plurality of electrical contacts 12 are arranged in an arc shape on the inner peripheral side of the lens mount 11 of the camera body 10. An image sensor unit 13 that houses an image sensor (not shown) is provided below the electrical contact 12. When the camera body 10 is powered on, a moving image is obtained by the imaging device and can be displayed on a monitor (not shown) as a live view. A shutter button 14 is provided on the upper surface of the camera body 10.

図3を参照して、このレンズ交換式カメラの電気的構成を説明する。カメラボディに設けられたカメラプロセッサ20には、デジタル信号用接地ポート21、入出力ポート22、割込みポート23、シリアルデータ入力ポート24、シリアルデータ出力ポート25、クロック信号ポート26、垂直同期信号ポート27等の通信ポートが設けられる。カメラプロセッサ20は電源回路30に接続され、電源回路30は、電源端子31、検出端子32、電源用接地端子33に接続される。また、カメラプロセッサ20は、DRAM34に接続される。記録媒体35はカメラプロセッサ20に接続され、カメラプロセッサ20からの信号に応じて、記録媒体35に記録されたデータが一時的に記録される。記録媒体35には、後述するように、ファームアップ時にはファームアップデータが記録される。また、カメラボディ周辺回路36及び表示装置(LCD)37(表示手段)は、カメラプロセッサ20に接続され、カメラプロセッサ20から電力を供給されて制御される。カメラボディ周辺回路36は、例えば、手ブレ補正機能、ストロボ等を制御する回路で構成される。   The electrical configuration of this interchangeable lens camera will be described with reference to FIG. The camera processor 20 provided in the camera body includes a digital signal ground port 21, an input / output port 22, an interrupt port 23, a serial data input port 24, a serial data output port 25, a clock signal port 26, and a vertical synchronization signal port 27. Etc. are provided. The camera processor 20 is connected to a power supply circuit 30, and the power supply circuit 30 is connected to a power supply terminal 31, a detection terminal 32, and a power supply ground terminal 33. The camera processor 20 is connected to the DRAM 34. The recording medium 35 is connected to the camera processor 20, and data recorded on the recording medium 35 is temporarily recorded in accordance with a signal from the camera processor 20. As will be described later, firmware update data is recorded on the recording medium 35 at the time of firmware upgrade. The camera body peripheral circuit 36 and the display device (LCD) 37 (display means) are connected to the camera processor 20 and are controlled by being supplied with power from the camera processor 20. The camera body peripheral circuit 36 is configured by, for example, a circuit that controls a camera shake correction function, a strobe, and the like.

レンズ鏡筒15に設けられたレンズCPU40は、プログラムを実行するプロセッサである。レンズCPU40には、デジタル信号用接地ポート41、割込みポート42、入出力ポート43、シリアルデータ出力ポート44、シリアルデータ入力ポート45、クロック信号ポート46、垂直同期信号ポート47等の通信ポートが設けられる。レンズCPU40はレンズ電源50に接続され、レンズ電源50は、電源端子51、デジタル信号用接地端子52、電源用接地端子53に接続される。レンズ周辺回路54は、レンズCPU40に接続され、レンズCPU40から電力を供給されて制御される。レンズ周辺回路54は、例えば、シャッタモータ、AFモータ、絞りモータ等を制御する回路で構成される。また、レンズCPU40には、プログラムやレンズ固有の画像補正データを含むファームウエアが記録された不揮発性の記憶素子FRASHROM57が接続される。   The lens CPU 40 provided in the lens barrel 15 is a processor that executes a program. The lens CPU 40 is provided with communication ports such as a digital signal ground port 41, an interrupt port 42, an input / output port 43, a serial data output port 44, a serial data input port 45, a clock signal port 46, and a vertical synchronization signal port 47. . The lens CPU 40 is connected to a lens power supply 50, and the lens power supply 50 is connected to a power supply terminal 51, a digital signal ground terminal 52, and a power supply ground terminal 53. The lens peripheral circuit 54 is connected to the lens CPU 40 and is controlled by being supplied with power from the lens CPU 40. The lens peripheral circuit 54 is configured by, for example, a circuit that controls a shutter motor, an AF motor, an aperture motor, and the like. The lens CPU 40 is connected to a nonvolatile storage element FASHROM 57 in which firmware including a program and lens-specific image correction data is recorded.

レンズ鏡筒15がカメラボディ10に装着されると、カメラボディ10側の各電気接点12にレンズ鏡筒15側の各電気接点58が当接する。検出端子32がデジタル信号用接地端子52に電気的に接続されて接地されることにより、カメラプロセッサ20はレンズ鏡筒15の装着を認識し、電源端子31、51を介してレンズ電源50をオン状態に定め、カメラボディ10とレンズ鏡筒15の相互通信が可能になる。   When the lens barrel 15 is attached to the camera body 10, the electrical contacts 58 on the lens barrel 15 side abut on the electrical contacts 12 on the camera body 10 side. When the detection terminal 32 is electrically connected to the digital signal ground terminal 52 and grounded, the camera processor 20 recognizes the mounting of the lens barrel 15 and turns on the lens power supply 50 via the power supply terminals 31 and 51. In this state, the camera body 10 and the lens barrel 15 can communicate with each other.

ファームウエアの書き換え、いわゆるファームアップには、ファームアップデータが必要である。ユーザーがファームアップを行う場合、ファームアップデータはユーザーによって、例えば、製品開発会社のホームページからインターネットを介して、パソコンに装着された記録媒体35へダウンロードされる。ファームアップデータが記録された記録媒体35は、カメラボディ10に装着される。ファームアップデータは、カメラプロセッサ20により、記録媒体35から読み出され、DRAM34へ一時的に記録される。DRAM34内に一時的に記録されたファームアップデータは、カメラプロセッサ20によって読み出され、通信ラインBLを介して、レンズCPU40へ送信される。レンズCPU40へ送信されたファームアップデータは、レンズCPU40によって、FRASHROM57に書き込まれる。   Firmware update data is required for rewriting firmware, so-called firmware update. When the user performs a firmware update, the firmware update data is downloaded by the user to the recording medium 35 attached to the personal computer from the website of the product development company via the Internet, for example. The recording medium 35 on which the firmware update data is recorded is attached to the camera body 10. The firmware update data is read from the recording medium 35 by the camera processor 20 and temporarily recorded in the DRAM 34. The firmware update data temporarily recorded in the DRAM 34 is read by the camera processor 20 and transmitted to the lens CPU 40 via the communication line BL. The firmware update data transmitted to the lens CPU 40 is written into the FASHROM 57 by the lens CPU 40.

図4は、FRASHROM57に書き込まれるデータのメモリマップを表している。FRASHROM57のメモリ領域は、レンズ制御用ソフトウエアを更新するためのファームアッププログラムを含むプログラムが書き込まれる領域M1と、画像処理用データ等が書き込まれるデータ領域M3と、空き領域M5とで構成される。   FIG. 4 shows a memory map of data written in the FRASHROM 57. The memory area of the FASHROM 57 includes an area M1 in which a program including a firmware update program for updating lens control software is written, a data area M3 in which image processing data and the like are written, and an empty area M5. .

本実施形態では、M1、M3、M5の全てが書き換えられる。つまり、プログラムが書き込まれる領域であるM1が正しく書き換えられない場合レンズ鏡筒15が動作しない等の不具合が生じ、レンズとしての機能が失われる可能性がある。   In the present embodiment, all of M1, M3, and M5 are rewritten. That is, there is a possibility that the lens function may be lost due to problems such as the lens barrel 15 not operating when M1, which is the area in which the program is written, is not correctly rewritten.

図5は、ファームアップの流れを表している。ファームアップは、大きく3つの段階に分けられ、レンズ鏡筒15において実施される。初期設定段階のステップS01〜S02ではレンズ通信の準備が行われ、テスト段階(通信ライン確認手段)のステップT01〜T05ではテストデータの送受信による通信ラインのチェックループが実行され、ファームアップ段階(ファームアップ実行手段)のステップF01〜F06ではファームウエア書き換えループが実施されて終了する。   FIG. 5 shows the flow of firmware upgrade. The firmware upgrade is roughly divided into three stages and is performed in the lens barrel 15. In steps S01 to S02 in the initial setting stage, preparation for lens communication is performed. In steps T01 to T05 in the test stage (communication line confirmation means), a communication line check loop is performed by transmitting and receiving test data. In steps F01 to F06 of the up execution means, a firmware rewrite loop is executed and the process ends.

図3、図5を参照して、ファームアップの流れを説明する。初期設定段階において、ステップS01では、カメラの電源が入れられることにより、レンズ通信が可能な状態となる。所定の操作ボタン(図示せず)が押されることによって、ステップS02が実行され、カメラプロセッサ20からレンズCPU40へファームアップを要求する信号が送信される。   With reference to FIG. 3 and FIG. 5, the flow of firmware upgrade will be described. In the initial setting stage, in step S01, when the camera is turned on, lens communication is enabled. When a predetermined operation button (not shown) is pressed, step S02 is executed, and a signal requesting firmware upgrade is transmitted from the camera processor 20 to the lens CPU 40.

テスト段階における、テストデータは、誤りを起こしやすいデータで構成される。このテストデータは、カメラプロセッサ20により、複数、例えば20種類、生成されてDRAM34に用意される。これらのデータは、ある一定の長さのビットの並びであるブロック単位、例えば、512バイト毎に分割され、カメラ側のシリアルデータ出力ポート25とレンズ側のシリアルデータ入力ポート45とを結ぶ通信ラインBLを介して、カメラプロセッサ20からレンズCPU40へ送信される。送信とともに、レンズ側のシリアルデータ出力ポート44とシリアルデータ入力ポート24とを結ぶ通信ラインLBを介して、レンズCPU40からカメラプロセッサ20へ応答及び誤り検出結果が送られる。誤り検出結果はカメラ側のコマンド及び1ブロック送信毎に受信される。   The test data in the test stage is composed of data that is prone to error. A plurality of, for example, 20 types of test data are generated by the camera processor 20 and prepared in the DRAM 34. These data are divided into blocks each having a certain length of bit sequence, for example, every 512 bytes, and a communication line connecting the serial data output port 25 on the camera side and the serial data input port 45 on the lens side. The data is transmitted from the camera processor 20 to the lens CPU 40 via BL. Along with the transmission, a response and an error detection result are sent from the lens CPU 40 to the camera processor 20 via the communication line LB connecting the serial data output port 44 and the serial data input port 24 on the lens side. Error detection results are received for each camera command and each block transmission.

全データが送信された時点で、ステップT02において、全データにおいて誤りが無いと判断されるとき、通信ラインチェックループは終了し、ファームアップ段階へ移行する。これに対し、ステップT02において、誤りが有ると判断されたとき、ステップT03において、誤りの割合が所定割合、例えば5%、より小さいか否かが判断される。5%より小さいとき、通信ラインが正常であると判断され、通信ラインチェックループは終了し、ファームアップ段階へ移行する。5%より大きいとき、ステップT04に進み、通信ラインが異常であると判断されてステップT05に進む。ステップT05では、表示装置(LCD)37に、例えば、「ファームアップ不可。レンズを外した後、再装着してください。」といった接続状態を確認させるための警告が表示されるとともに、ファームアップは開始されない。   When it is determined that there is no error in all data at the time point when all the data is transmitted, the communication line check loop is completed and the process proceeds to the firmware upgrade stage. On the other hand, when it is determined in step T02 that there is an error, it is determined in step T03 whether the error rate is smaller than a predetermined rate, for example, 5%. When the value is smaller than 5%, it is determined that the communication line is normal, the communication line check loop ends, and the process proceeds to the firmware upgrade stage. When it is larger than 5%, the process proceeds to step T04, where it is determined that the communication line is abnormal, and the process proceeds to step T05. In step T05, a warning for confirming the connection state is displayed on the display device (LCD) 37, for example, “Firm up is not possible. Please remove the lens and then reattach.” Not started.

このように、テスト段階では、テストデータの送受信の段階で誤りの割合が所定割合より大きい場合、ファームアップが開始されずに終了する。つまり、ユーザーはファームアップを行う前にレンズ通信ラインの異常に気付くことができるため、カメラボディ10とカメラ鏡筒15との接点を掃除する等の対処ができる。結果的に、レンズ通信の信頼性が低い状態でファームアップは行われない。   As described above, in the test stage, if the error rate is larger than the predetermined ratio in the test data transmission / reception stage, the firmware update is terminated without being started. That is, since the user can notice the abnormality of the lens communication line before performing the firmware upgrade, the user can take measures such as cleaning the contact point between the camera body 10 and the camera barrel 15. As a result, firmware upgrade is not performed in a state where the reliability of lens communication is low.

ファームアップ段階では、テスト段階と同様に、ステップF01において、ファームアップデータが、通信ラインBL、LBを介してブロック単位で送受信される。第1ブロックの送信とともに応答及び誤り検出が行われ、F02において、誤りの有無が判断される。第1ブロックに誤りが検出されないとき、F03に進み、第1ブロックはFRASHROM57へ書き込まれ、第2ブロックの送信が開始される。   In the firmware upgrade stage, as in the test stage, firmware update data is transmitted and received in block units via the communication lines BL and LB in step F01. Response and error detection are performed together with the transmission of the first block, and in F02, it is determined whether there is an error. When no error is detected in the first block, the process proceeds to F03, where the first block is written into the FASHROM 57, and transmission of the second block is started.

これに対し、ステップF02において第1ブロックに誤りが検出されるとき、ステップF04に進み、誤りの回数が判断される。誤りの回数が所定回数、例えば5回、より少ないとき、ステップF05に進み、第1ブロックは再度送受信される。ステップF05における第1ブロックの送受信の繰返しの間、例えば、3回目の送受信で、ステップF02において誤りが検出されないとき、ステップF03に進み、第1ブロックはFRASHROM57に書き込まれるとともに、ステップF01において第2ブロックの送受信が開始される。   On the other hand, when an error is detected in the first block in step F02, the process proceeds to step F04, and the number of errors is determined. When the number of errors is less than a predetermined number, for example, 5 times, the process proceeds to step F05, and the first block is transmitted and received again. During the repetition of transmission / reception of the first block in step F05, for example, when no error is detected in step F02 in the third transmission / reception, the process proceeds to step F03, where the first block is written in FASHROM57 and second in step F01. Block transmission / reception starts.

ステップF05における、第1ブロックの送受信の繰返しの間で、ステップF02において第1ブロックに誤りが検出されて、かつ、ステップF04において誤りの回数が所定回数の5回と判断されたとき、ステップF06へ進む。ステップF06では、強制書き込みモードが実行される。強制書き込みモードとは、受信データが、誤り検出されることなしにFLASHROM57へ書き込まれるモードである。すなわち、誤りを含んだまま、ファームアップデータがFLASHROM57へ書き込まれる。ステップF06において、ファームアップデータが書き込まれるとともに、ステップF01において、第2のブロックの送受信が開始される。ステップF01〜F06の処理がブロック毎に繰返され、全てのブロックが書き込まれると、ステップE01へ進み、ファームアップは終了する。   When an error is detected in the first block in step F02 during the repetition of transmission / reception of the first block in step F05, and when it is determined in step F04 that the number of errors is a predetermined number of five, step F06 Proceed to In step F06, the forced write mode is executed. The forced write mode is a mode in which received data is written to the FLASH ROM 57 without error detection. That is, the firmware update data is written into the FLASH ROM 57 while including an error. In step F06, the firmware update data is written, and in step F01, transmission / reception of the second block is started. When the processes in steps F01 to F06 are repeated for each block and all the blocks are written, the process proceeds to step E01, and the firmware upgrade ends.

このように、ファームアップ段階では、データの受信を行うことにより誤りが検出される。誤りが検出されたブロックは、所定回数に亘り繰返し送信が行われるため、最終的に正しく書き込まれる可能性が高まる。   Thus, in the firmware upgrade stage, an error is detected by receiving data. Since the block in which the error is detected is repeatedly transmitted a predetermined number of times, the possibility that the block is finally correctly written increases.

また、本実施形態では、ファームアップが完結されないと、上述したように、レンズの機能が失われる可能性を秘めている。つまり、プログラムが書き込まれる前にファームアップが中止されれば、レンズは操作不可能となるが、プログラムさえ正しく書き込まれれば、少なくともレンズは操作可能な状態に保たれる。したがって、ファームアップ段階では、ファームアップデータに誤りが検出された場合においても、全ブロックに対して強制的に書き込みが実施される仕様となっている。これにより、レンズ鏡筒15が機能しなくなる可能性も低減できる。   In the present embodiment, if the firmware upgrade is not completed, the lens function may be lost as described above. In other words, if the firmware update is stopped before the program is written, the lens cannot be operated, but if the program is written correctly, at least the lens is kept in an operable state. Therefore, in the firmware upgrade stage, even if an error is detected in the firmware update data, the specification is such that writing is forcibly performed on all blocks. Thereby, the possibility that the lens barrel 15 does not function can also be reduced.

以上のように、初期設定段階、テスト段階、ファームアップ段階、の3段階を経てファームアップは終了する。テスト段階で、テストデータの送受信による通信ラインチェックループが実行されることでレンズ通信ラインの信頼性が確認され、信頼性が低い場合ファームアップは開始されない。さらに、信頼性が高いと判断されてファームアップが開始される場合においても、誤り検出を実施しつつファームアップが行われる。また、ファームアップ段階で誤りが検出された場合、強制的に書き込みが実施されることにより、ファームアップは常に完結され、最悪の事態であるレンズの機能が失われる状況を回避できる可能性が高まる。   As described above, the firmware upgrade is completed through the three phases of the initial setting phase, the test phase, and the firmware upgrade phase. In the test stage, the reliability of the lens communication line is confirmed by executing a communication line check loop based on transmission / reception of test data. If the reliability is low, firmware upgrade is not started. Further, even when it is determined that the reliability is high and the firmware upgrade is started, the firmware upgrade is performed while performing error detection. Also, if an error is detected at the firmware upgrade stage, writing is forcibly performed, so firmware upgrade is always completed, and the possibility of avoiding the worst situation where the lens function is lost increases. .

なお、FLASHROM57のデータは、M1、M3、M5の他に追加されても良く、書き込まれる順番は問わない。   Note that the data in the FLASH ROM 57 may be added in addition to M1, M3, and M5, and the order of writing is not limited.

また、本発明の実施形態は、デジタルカメラのレンズ通信に限らず、ファームウエアが記録されている不揮発性の記憶素子を備え、かつ、電気接点を介した通信によるファームアップが可能な機器に適用することが出来る。例えば、カメラボディとストロボ間の通信、携帯電話とパーソナルコンピュータとの間の通信、が挙げられる。   The embodiment of the present invention is not limited to lens communication of a digital camera, and is applied to a device that includes a nonvolatile storage element in which firmware is recorded and can be upgraded by communication via an electrical contact. I can do it. For example, communication between a camera body and a strobe and communication between a mobile phone and a personal computer can be mentioned.

10 カメラボディ
11 レンズマウント
12 (カメラボディ側の)電気接点
15 レンズ鏡筒
57 FRASHROM
58 (レンズ鏡筒側の)電気接点
BL (カメラボディからレンズ鏡筒へのデータ)通信ライン
LB (レンズ鏡筒からレンズボディへのデータ)通信ライン
M1 プログラム領域
M3 データ領域
M5 空き領域
S01〜S02 初期設定段階
T01〜T05 テスト段階(通信ライン確認手段)
F01〜F06 ファームアップ段階(ファームアップ実行手段)
E01 ファームアップ終了

DESCRIPTION OF SYMBOLS 10 Camera body 11 Lens mount 12 Electrical contact (on the camera body side) 15 Lens barrel 57 FASHROM
58 Electrical contact (on the lens barrel side) BL (Data from the camera body to the lens barrel) Communication line LB (Data from the lens barrel to the lens body) Communication line M1 Program area M3 Data area M5 Empty area S01 to S02 Initial setting stage T01-T05 Test stage (communication line confirmation means)
F01 to F06 Firmware upgrade stage (firmware upgrade execution means)
E01 end of firmware upgrade

Claims (7)

電気接点を介した通信を利用したファームアップであって、
テストデータをブロック単位で送受信するとともに前記テストデータに誤りがあるか否かを検出し、前記誤りが所定割合より小さいとき通信ラインが正常であると判断し、前記誤りが所定割合より大きいときには前記通信ラインが異常であると判断するテストを実行する通信ライン確認手段を有し、
前記テストの後にファームアップを開始するファームアップ実行手段をさらに備え、前記ファームアップ実行手段は、
ファームアップデータをブロック単位で送受信し、第1ブロックの送信に誤りが検出されないとき前記第1ブロックを記憶素子に書き込むとともに第2ブロックの送受信を開始し、
前記第1ブロックの送信に誤りが検出されるときには前記第1ブロックの送受信を所定回数繰返し、
前記所定回数に亘る前記第1ブロックの送受信の繰返しの間に誤りが検出されないとき、前記第1ブロックを前記記憶素子に書き込むとともに第2ブロックの送受信を開始し、
前記所定回数に亘る前記第1ブロックの送受信の繰返しにおいて前記所定回数誤りが検出されるとき、前記第1ブロックを前記誤りを含んだまま前記記憶素子に書き込むとともに前記第2ブロックの送受信を開始することを特徴とするファームアップ時の通信ライン信頼性確認装置。
Firmware upgrade using communication through electrical contacts,
Test data is transmitted and received in units of blocks, and whether or not there is an error in the test data is detected. When the error is smaller than a predetermined ratio, it is determined that the communication line is normal. have a communication line confirmation means for performing a test to determine the communication line is abnormal,
Further comprising a firmware upgrade execution means for starting a firmware upgrade after the test, the firmware upgrade execution means,
The firmware update data is transmitted and received in units of blocks, and when no error is detected in the transmission of the first block, the first block is written to the storage element and transmission / reception of the second block is started,
When an error is detected in the transmission of the first block, the transmission / reception of the first block is repeated a predetermined number of times,
When no error is detected during repetition of transmission / reception of the first block for the predetermined number of times, writing the first block to the storage element and starting transmission / reception of the second block;
When an error is detected a predetermined number of times in the repetition of transmission / reception of the first block over the predetermined number of times, the first block is written into the storage element while containing the error, and transmission / reception of the second block is started . A communication line reliability confirmation device at the time of firmware upgrade.
前記ファームアップデータは、ファームアッププログラムを含むことを特徴とする請求項に記載のファームアップ時の通信ライン信頼性確認装置。 The apparatus of claim 1 , wherein the firmware update data includes a firmware update program. 電気接点を介した通信を利用したファームアップであって、
テストデータをブロック単位で送受信するとともに前記テストデータに誤りがあるか否かを検出し、前記誤りが所定割合より小さいとき通信ラインが正常であると判断し、前記誤りが所定割合より大きいときには通信ラインが異常であると判断するテストを実行し、
前記テストの後にファームアップを開始し、
ファームアップデータをブロック単位で送受信し、第1ブロックの送信に誤りが検出されないとき前記第1ブロックを記憶素子に書き込むとともに第2ブロックの送受信を開始し、
前記第1ブロックの送信に誤りが検出されるときには前記第1ブロックの送受信を所定回数繰返し、
前記所定回数に亘る前記第1ブロックの送受信の繰返しの間に誤りが検出されないとき、前記第1ブロックを前記記憶素子に書き込むとともに第2ブロックの送受信を開始し、
前記所定回数に亘る前記第1ブロックの送受信の繰返しにおいて前記所定回数誤りが検出されるとき、前記第1ブロックを前記誤りを含んだまま前記記憶素子に書き込むとともに前記第2ブロックの送受信を開始することを特徴とするファームアップ時の通信ライン信頼性確認方法。
Firmware upgrade using communication through electrical contacts,
Test data is transmitted and received in blocks, and whether or not there is an error in the test data is detected. When the error is smaller than a predetermined ratio, it is determined that the communication line is normal. When the error is larger than a predetermined ratio, communication is performed. Run a test to determine that the line is abnormal ,
After the test, start up the farm,
The firmware update data is transmitted and received in units of blocks, and when no error is detected in the transmission of the first block, the first block is written to the storage element and transmission / reception of the second block is started,
When an error is detected in the transmission of the first block, the transmission / reception of the first block is repeated a predetermined number of times,
When no error is detected during repetition of transmission / reception of the first block for the predetermined number of times, writing the first block to the storage element and starting transmission / reception of the second block;
When an error is detected a predetermined number of times in the repetition of transmission / reception of the first block over the predetermined number of times, the first block is written into the storage element while containing the error, and transmission / reception of the second block is started . A communication line reliability confirmation method at the time of firmware upgrade.
前記ファームアップデータは、ファームアッププログラムを含むことを特徴とする請求項に記載のファームアップ時の通信ライン信頼性確認方法。 The communication line reliability confirmation method at the time of firmware update according to claim 3 , wherein the firmware update data includes a firmware update program. プログラムを実行するプロセッサを有する外部アクセサリ機器が着脱自在に取り付けられ、電気接点端子を介して前記外部アクセサリ機器と相互通信可能な携帯機器であって、
前記アクセサリ機器に対して、テストデータをブロック単位で送受信するとともに前記テストデータに誤りがあるか否かを検出し、前記誤りが所定割合より小さいとき通信ラインが正常であると判断し、前記誤りが所定割合より大きいときには前記通信ラインが異常であると判断するテストを実行する通信ライン確認手段とを有し、
前記テストの後にファームアップを開始するファームアップ実行手段をさらに備え、前記ファームアップ実行手段は、
ファームアップデータをブロック単位で送受信し、第1ブロックの送信に誤りが検出されないとき前記第1ブロックを記憶素子に書き込むとともに第2ブロックの送受信を開始し、
前記第1ブロックの送信に誤りが検出されるときには前記第1ブロックの送受信を所定回数繰返し、
前記所定回数に亘る前記第1ブロックの送受信の繰返しの間に誤りが検出されないとき、前記第1ブロックを前記記憶素子に書き込むとともに第2ブロックの送受信を開始し、
前記所定回数に亘る前記第1ブロックの送受信の繰返しにおいて前記所定回数誤りが検出されるとき、前記第1ブロックを前記誤りを含んだまま前記記憶素子に書き込むとともに前記第2ブロックの送受信を開始することを特徴とする携帯機器。
An external accessory device having a processor for executing a program is detachably attached, and is a portable device capable of mutual communication with the external accessory device via an electrical contact terminal,
Sending / receiving test data to / from the accessory device in block units, detecting whether the test data has an error, and determining that the communication line is normal when the error is smaller than a predetermined ratio, the error There have a communication line confirmation means for performing a test to determine that when greater than the predetermined ratio is the communication line is abnormal,
Further comprising a firmware upgrade execution means for starting a firmware upgrade after the test, the firmware upgrade execution means,
The firmware update data is transmitted and received in units of blocks, and when no error is detected in the transmission of the first block, the first block is written to the storage element and transmission / reception of the second block is started,
When an error is detected in the transmission of the first block, the transmission / reception of the first block is repeated a predetermined number of times,
When no error is detected during repetition of transmission / reception of the first block for the predetermined number of times, writing the first block to the storage element and starting transmission / reception of the second block;
When an error is detected a predetermined number of times in the repetition of transmission / reception of the first block over the predetermined number of times, the first block is written into the storage element while containing the error, and transmission / reception of the second block is started . A portable device characterized by that.
前記ファームアップデータは、ファームアッププログラムを含むことを特徴とする請求項に記載の携帯機器6. The portable device according to claim 5 , wherein the firmware update data includes a firmware update program. 前記携帯機器はさらに表示手段を有し、前記表示手段は、前記通信ライン確認手段が前記通信ラインが異常と判断した場合は、前記アクセサリ機器との接続状態を確認させるための表示を行うことを特徴とする請求項に記載の携帯機器。
The portable device further includes display means, and the display means performs display for confirming a connection state with the accessory device when the communication line confirmation means determines that the communication line is abnormal. The portable device according to claim 5 , wherein
JP2011151037A 2011-07-07 2011-07-07 Communication line reliability confirmation device and method Active JP5821345B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2011151037A JP5821345B2 (en) 2011-07-07 2011-07-07 Communication line reliability confirmation device and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2011151037A JP5821345B2 (en) 2011-07-07 2011-07-07 Communication line reliability confirmation device and method

Publications (2)

Publication Number Publication Date
JP2013019959A JP2013019959A (en) 2013-01-31
JP5821345B2 true JP5821345B2 (en) 2015-11-24

Family

ID=47691484

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2011151037A Active JP5821345B2 (en) 2011-07-07 2011-07-07 Communication line reliability confirmation device and method

Country Status (1)

Country Link
JP (1) JP5821345B2 (en)

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS63136851A (en) * 1986-11-28 1988-06-09 Yokogawa Medical Syst Ltd Data communication equipment
JP2001195245A (en) * 2000-01-17 2001-07-19 Konica Corp Method and system for rewriting program
JP4085930B2 (en) * 2002-11-08 2008-05-14 コニカミノルタホールディングス株式会社 Image processing device
US20060169392A1 (en) * 2002-11-25 2006-08-03 Naruhiro Akiyama Tire building system, tire manufacturing system having the same, and tire manufacturing method
JP2004240679A (en) * 2003-02-05 2004-08-26 Fuji Electric Systems Co Ltd Computer control system, and method for rewriting software
JP2009033325A (en) * 2007-07-25 2009-02-12 Sony Corp Electronic device, imaging system, and data write-in method
JP5416699B2 (en) * 2008-08-05 2014-02-12 ソフトバンクBb株式会社 Small base station

Also Published As

Publication number Publication date
JP2013019959A (en) 2013-01-31

Similar Documents

Publication Publication Date Title
US9513900B2 (en) Peripheral device and method for updating firmware thereof
JP4827693B2 (en) Optical equipment
JP6786937B2 (en) Information processing system, client terminal and program
TW201209657A (en) Electronic apparatus with touch panel and updating method for touch panel
CN105045671A (en) Method and device for upgrading systems of intelligent terminals
JP2000245681A (en) Version updating method for firmware for electronic endoscope device and electronic endoscope device
JP5821345B2 (en) Communication line reliability confirmation device and method
JP2006243997A (en) Download system
CN110908733B (en) Working mode determining method and device, and control method and device
JP4591486B2 (en) Information processing apparatus, information processing method, and computer program
US11106450B2 (en) Information extraction apparatus, and automatic firmware update system and method for embedded system
KR20150019836A (en) Multimedia device with error detection function while boot time and method thereof
JP2008009799A (en) Image forming device
CN104054022A (en) Camera body, interchangeable-lens camera, and method for determining mounting of lens
KR20070044268A (en) Apparatus and method of processing booting in main board
JP4880352B2 (en) Electronic device and version upgrade method
JP2010117944A (en) Software update system, software update method, mobile phone terminal, and program
JP2004185235A (en) Electronic equipment and control program downloading method for electronic equipment
KR101644825B1 (en) Automatic NVR and Camera Firmware Update Method by Using USB and Popup
JP5624943B2 (en) Electronic device and method for updating program module of electronic device
CN114816974A (en) System generation method and device, electronic equipment and storage medium
JP4752962B2 (en) Firmware upgrade method for communication line connection device and communication line connection device
JP2009123134A (en) Usb host device and method for manufacturing usb host device
JP2006202053A (en) Electronic equipment
JP6168469B2 (en) Electronic equipment

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20140613

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20150218

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20150303

RD05 Notification of revocation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7425

Effective date: 20150327

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20150410

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20150921

R150 Certificate of patent or registration of utility model

Ref document number: 5821345

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250