JP2011224091A - Electronic endoscope and system - Google Patents

Electronic endoscope and system Download PDF

Info

Publication number
JP2011224091A
JP2011224091A JP2010095353A JP2010095353A JP2011224091A JP 2011224091 A JP2011224091 A JP 2011224091A JP 2010095353 A JP2010095353 A JP 2010095353A JP 2010095353 A JP2010095353 A JP 2010095353A JP 2011224091 A JP2011224091 A JP 2011224091A
Authority
JP
Japan
Prior art keywords
area
electronic endoscope
firmware
program
control unit
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.)
Granted
Application number
JP2010095353A
Other languages
Japanese (ja)
Other versions
JP5439263B2 (en
Inventor
Satoshi Kaiki
諭 魁生
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.)
Hoya Corp
Original Assignee
Hoya 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 Hoya Corp filed Critical Hoya Corp
Priority to JP2010095353A priority Critical patent/JP5439263B2/en
Publication of JP2011224091A publication Critical patent/JP2011224091A/en
Application granted granted Critical
Publication of JP5439263B2 publication Critical patent/JP5439263B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Endoscopes (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide an electronic endoscope and a system which quickly write firmware in a memory, and even if the writing is failed, make the operation of the electronic endoscope function.SOLUTION: A data file having a new firmware B is read from the outside, and a header area 510 is removed from the data file to create new compressed data Bc. Compressed data Ac stored in a compressed data second area is rewritten into the new compressed data Bc. In a step S23, the compressed data Bc is decompressed to create the firmware B, and the firmware B is stored in a first area 224. In a step S24, an endoscope MPU 221 decompresses the compressed data Bc stored in the second area 225 to create a new firmware Bd. The firmware Bd is stored in the first area 224.

Description

本発明は、更新可能なファームウェアを有する電子内視鏡及びシステムに関する。   The present invention relates to an electronic endoscope and system having updatable firmware.

電子内視鏡システムは、被験者の体内に挿入される電子内視鏡と被験者の体外に設けられて画像処理を行うビデオプロセッサとを備える。電子内視鏡の動作を制御するMPUと、MPUのファームウェアを記録するメモリとが電子内視鏡の内部に設けられる。   The electronic endoscope system includes an electronic endoscope that is inserted into a subject's body and a video processor that is provided outside the subject's body and performs image processing. An MPU for controlling the operation of the electronic endoscope and a memory for recording the firmware of the MPU are provided inside the electronic endoscope.

ユーザは、外部とのインターフェースを介して、メモリに記憶されたファームウェアを書き換え可能である(特許文献1及び2)。ファームウェアは、画像やプログラムなど様々な情報を含み、電子内視鏡の性能を向上し、かつ機能を追加するために書き換えられる。   The user can rewrite the firmware stored in the memory via an external interface (Patent Documents 1 and 2). The firmware includes various information such as images and programs, and is rewritten to improve the performance of the electronic endoscope and add functions.

特許第3515922号公報Japanese Patent No. 3515922 特開2005−185691号公報JP 2005-185691 A

電子内視鏡の性能を向上し、かつ機能を追加するたびに、ファームウェアの大きさが大きくなる傾向がある。ファームウェアが大きくなるとファームウェアをメモリに送信する時間が長くなる。また、ファームウェアに様々な情報を含ませると、ファームウェア内部において各情報の境界を見つけることが困難になり、ファームウェアに含まれる例えば画像の一部のみが破損した場合であってもプログラムを読み込むことができなくなる。プログラムを読み込むことができなくなったMPUは動作を停止するため、電子内視鏡自体もまた機能を停止する。   Each time the performance of an electronic endoscope is improved and functions are added, the size of firmware tends to increase. As the firmware becomes larger, the time for transmitting the firmware to the memory becomes longer. In addition, if various information is included in the firmware, it becomes difficult to find the boundaries of each information in the firmware, and the program can be read even when only a part of the image included in the firmware is damaged, for example. become unable. Since the MPU that cannot read the program stops operating, the electronic endoscope itself also stops functioning.

本発明はこれらの問題に鑑みてなされたものであり、ファームウェアを迅速にメモリに書き込み、かつ書き込みが失敗しても電子内視鏡の動作が機能する電子内視鏡及びシステムを得ることを目的とする。   The present invention has been made in view of these problems, and it is an object of the present invention to obtain an electronic endoscope and system in which firmware is quickly written into a memory and the operation of the electronic endoscope functions even if the writing fails. And

本願第1の発明による電子内視鏡は、プログラムを記録する記録部と、記録部にプログラムを書き込み、記録部に記録されているプログラムを実行する制御部とを備え、記録部は、制御部が実行するプログラムを記録する第1の領域と、圧縮されたプログラムを記録する第2の領域とを有し、制御部は、外部から受信した圧縮されたプログラムを解凍して第1の領域に書き込み、第1の領域に書き込まれたプログラムが動作することを検知した後に、第1の領域に書き込まれたプログラムを圧縮して第2の領域に書き込むことを特徴とする。   An electronic endoscope according to a first invention of the present application includes a recording unit that records a program, and a control unit that writes the program in the recording unit and executes the program recorded in the recording unit. The control unit has a first area for recording a program to be executed and a second area for recording a compressed program, and the control unit decompresses the compressed program received from the outside and stores it in the first area. After detecting that the program written in the first area is written, the program written in the first area is compressed and written in the second area.

プログラムは、電子内視鏡に固有の識別符号を有し、制御部は、電子内視鏡と識別符号とが対応するときに、圧縮されたプログラムを解凍して第1の領域に書き込むことが好ましい。   The program has an identification code unique to the electronic endoscope, and the control unit can decompress and write the compressed program into the first area when the electronic endoscope and the identification code correspond to each other. preferable.

本願第2の発明による電子内視鏡システムは、前記電子内視鏡と、電子内視鏡に接続されるビデオプロセッサとを備え、ビデオプロセッサは、プロセッサの動作を制御するプロセッサ制御部を有し、電子内視鏡は、プロセッサ制御部に情報を送信し、プロセッサ制御部は、電子内視鏡から受信した情報に誤りがあったとき誤りに関する誤り情報を蓄積し、誤り情報が所定の条件に合致したとき制御部に復帰命令を送信し、制御部は、復帰命令を受信したとき、第2の領域に書き込まれたプログラムを解凍して第1の領域に書き込むことを特徴とする。   An electronic endoscope system according to a second invention of the present application includes the electronic endoscope and a video processor connected to the electronic endoscope, and the video processor includes a processor control unit that controls the operation of the processor. The electronic endoscope transmits information to the processor control unit, and the processor control unit accumulates error information regarding the error when there is an error in the information received from the electronic endoscope, and the error information is set to a predetermined condition. When they match, a return command is transmitted to the control unit, and when the return command is received, the control unit decompresses the program written in the second area and writes it in the first area.

本発明によれば、ファームウェアを迅速にメモリに書き込み、かつ書き込みが失敗しても電子内視鏡の動作が機能する電子内視鏡及びシステムを得る。   According to the present invention, an electronic endoscope and system in which firmware is quickly written in a memory and the operation of the electronic endoscope functions even if the writing fails are obtained.

第1の実施形態による電子内視鏡システムを示した概略図である。It is the schematic which showed the electronic endoscope system by 1st Embodiment. ファームウェア及び圧縮ファイルの構造を模式的に示した図である。It is the figure which showed the structure of the firmware and the compression file typically. メモリの各領域に記憶されるプログラムを示した図である。It is the figure which showed the program memorize | stored in each area | region of memory. 第1のアップデート処理を示すフローチャートである。It is a flowchart which shows a 1st update process. 復帰指示処理を示すフローチャートである。It is a flowchart which shows a return instruction | indication process. 復帰処理を示すフローチャートである。It is a flowchart which shows a return process. 第2の実施形態によるファームウェア及び圧縮ファイルの構造を模式的に示した図である。It is the figure which showed typically the structure of the firmware by 2nd Embodiment, and a compression file. 第2のアップデート処理を示すフローチャートである。It is a flowchart which shows a 2nd update process.

以下、本発明による電子内視鏡システム100について添付図面を参照して説明する。   Hereinafter, an electronic endoscope system 100 according to the present invention will be described with reference to the accompanying drawings.

図1を用いて電子内視鏡システム100の構成について説明する。電子内視鏡システム100は、被験者の体内に挿入される電子内視鏡200と、被験者の体外に設けられて画像処理を行うビデオプロセッサ300とを主に備える。   The configuration of the electronic endoscope system 100 will be described with reference to FIG. The electronic endoscope system 100 mainly includes an electronic endoscope 200 that is inserted into the subject's body and a video processor 300 that is provided outside the subject's body and performs image processing.

電子内視鏡200は、被験者の体内に挿入される挿入部210と、術者が保持する操作部220とを主に備える。図示しないコネクタにより操作部220が電子内視鏡200と接続される。   The electronic endoscope 200 mainly includes an insertion unit 210 that is inserted into the body of a subject and an operation unit 220 that is held by an operator. The operation unit 220 is connected to the electronic endoscope 200 by a connector (not shown).

挿入部210は、可撓性の管状体であって、被写体に接近する遠位端部211と操作部220に接続される近位端部212とを有する。遠位端部211には、撮像レンズ213、照明レンズ214、及び撮像素子であるCCD215が設けられる。   The insertion portion 210 is a flexible tubular body, and has a distal end portion 211 that approaches the subject and a proximal end portion 212 that is connected to the operation portion 220. The distal end portion 211 is provided with an imaging lens 213, an illumination lens 214, and a CCD 215 that is an imaging element.

撮像レンズ213はCCD215に被写体像を結像させる。CCD215は結像した被写体像を撮像し、アナログ信号出力線216を介してアナログ画像信号を出力する。   The imaging lens 213 forms a subject image on the CCD 215. The CCD 215 captures the formed subject image and outputs an analog image signal via the analog signal output line 216.

操作部220から挿入部210に渡ってライトガイドファイバ218が設けられる。ライトガイドファイバ218は、ビデオプロセッサ300が生成した照明光を照明レンズ214まで運び、照明レンズ214は、照明光を被写体に向けて照射する。   A light guide fiber 218 is provided from the operation unit 220 to the insertion unit 210. The light guide fiber 218 carries the illumination light generated by the video processor 300 to the illumination lens 214, and the illumination lens 214 irradiates the subject with the illumination light.

操作部220は、アナログ信号処理部223、制御部を成す内視鏡MPU221、及び記録部を成すメモリ222を有する。   The operation unit 220 includes an analog signal processing unit 223, an endoscope MPU 221 that forms a control unit, and a memory 222 that forms a recording unit.

アナログ信号処理部223は、アナログ信号出力線216を介してCCD215からアナログ画像信号を受信する。そして、アナログ画像信号を画像処理して画像信号を生成した後、画像信号線219を介して画像信号をビデオプロセッサ300に送信する。   The analog signal processing unit 223 receives an analog image signal from the CCD 215 via the analog signal output line 216. Then, the analog image signal is subjected to image processing to generate an image signal, and then the image signal is transmitted to the video processor 300 via the image signal line 219.

内視鏡MPU221は、CCD制御信号線217を介してCCD制御信号をCCD215に送信し、CCD215の動作を制御する。内視鏡MPU221が実行するファームウェアは、メモリ222に記憶される。電子内視鏡200の電源が入れられると、内視鏡MPU221はメモリ222からファームウェアを読み出して実行する。   The endoscope MPU 221 transmits a CCD control signal to the CCD 215 via the CCD control signal line 217 to control the operation of the CCD 215. Firmware executed by the endoscope MPU 221 is stored in the memory 222. When the electronic endoscope 200 is turned on, the endoscope MPU 221 reads the firmware from the memory 222 and executes it.

操作部220は、図示しない複数のスイッチ等を有する。ユーザは、これらのスイッチを操作して電子内視鏡及びビデオプロセッサ300の動作を制御する。これらのスイッチをユーザが操作すると、スイッチが操作された旨を示す操作信号が内視鏡MPU221に送信される。内視鏡MPU221は、操作信号に応じて電子内視鏡200の動作を制御する。また、ビデオプロセッサ300が行う動作に対応するスイッチが操作されると、内視鏡MPU221は、操作信号をビデオプロセッサMPU301に送信する。ビデオプロセッサMPU301は、操作信号に応じて電子内視鏡200の動作を制御する。   The operation unit 220 includes a plurality of switches (not shown). The user operates these switches to control the operation of the electronic endoscope and the video processor 300. When the user operates these switches, an operation signal indicating that the switches have been operated is transmitted to the endoscope MPU 221. The endoscope MPU 221 controls the operation of the electronic endoscope 200 according to the operation signal. When a switch corresponding to an operation performed by the video processor 300 is operated, the endoscope MPU 221 transmits an operation signal to the video processor MPU 301. The video processor MPU 301 controls the operation of the electronic endoscope 200 according to the operation signal.

ビデオプロセッサ300は、プロセッサ制御部を成すビデオプロセッサMPU301、外部インターフェース302、フロントパネル303、画像信号処理部304、及び光源305を主に有する。   The video processor 300 mainly includes a video processor MPU 301 that forms a processor control unit, an external interface 302, a front panel 303, an image signal processing unit 304, and a light source 305.

ビデオプロセッサMPU301は、ビデオプロセッサ300の動作を制御する。内視鏡MPU221とビデオプロセッサ300は、UARTを各々有し、制御信号線312を介して互いに接続される。外部インターフェース302は、例えばRS−232C、あるいはUSBであって、電子内視鏡システム100の外部に設けられるコンピュータとビデオプロセッサ300とを接続する。   The video processor MPU 301 controls the operation of the video processor 300. The endoscope MPU 221 and the video processor 300 each have a UART and are connected to each other via a control signal line 312. The external interface 302 is, for example, RS-232C or USB, and connects a video processor 300 to a computer provided outside the electronic endoscope system 100.

フロントパネル303は、ビデオプロセッサ300の外面に露出し、内視鏡システムの動作状況を表示する。画像信号処理部304は、電子内視鏡200から受信した画像信号を画像処理して、モニタ400に出力する。光源305はビデオプロセッサ300に制御され、ライトガイドファイバ218に照明光を供給する。   The front panel 303 is exposed on the outer surface of the video processor 300 and displays the operation status of the endoscope system. The image signal processing unit 304 performs image processing on the image signal received from the electronic endoscope 200 and outputs the image signal to the monitor 400. The light source 305 is controlled by the video processor 300 and supplies illumination light to the light guide fiber 218.

外部に設けられたコンピュータは、外部インターフェース302を介して電子内視鏡200のファームウェアを備えるデータファイルをビデオプロセッサMPU301に送信する。ビデオプロセッサMPU301は、制御信号線312を介してデータファイルを内視鏡MPU221に送信する。   A computer provided outside transmits a data file including firmware of the electronic endoscope 200 to the video processor MPU 301 via the external interface 302. The video processor MPU 301 transmits the data file to the endoscope MPU 221 via the control signal line 312.

内視鏡MPU221は、電子内視鏡200の電源が投入されたときに後述する第1のアップデート処理を実行し、メモリ222に記録されているファームウェアを書き換える。また、メモリ222に記録されているファームウェアが破損したときに、正常なファームウェアをメモリ222に書き込む復帰処理を実行する。   The endoscope MPU 221 executes a first update process described later when the power of the electronic endoscope 200 is turned on, and rewrites the firmware recorded in the memory 222. In addition, when the firmware recorded in the memory 222 is damaged, a restoration process for writing normal firmware into the memory 222 is executed.

次に図2を用いてメモリ222の構造、第1のアップデート処理、及び復帰処理の概略について説明する。   Next, the outline of the structure of the memory 222, the first update process, and the return process will be described with reference to FIG.

メモリ222は、第1の領域224及び第2の領域225を有する。第1の領域224は、内視鏡MPU221が実行するファームウェアを記憶する。第2の領域225は、圧縮されたファームウェアを記憶する。   The memory 222 has a first area 224 and a second area 225. The first area 224 stores firmware executed by the endoscope MPU 221. The second area 225 stores the compressed firmware.

ステップS21からステップS23は、第1のアップデート処理の概略を表す。ステップS21では、現在実行中のファームウェアAが第1の領域224に記憶されており、ファームウェアAを圧縮して得られる圧縮データAcが第2の領域225に記憶されている。   Steps S21 to S23 represent an outline of the first update process. In step S 21, the firmware A currently being executed is stored in the first area 224, and compressed data Ac obtained by compressing the firmware A is stored in the second area 225.

ステップS22は、第2の領域225に記憶されている圧縮データが書き換えられた状態を表す。新たなファームウェアBを有するデータファイルが外部から読み込まれ、データファイルからヘッダ領域510を取り除くことにより、新たな圧縮データBcが作成される。そして、第2の領域に記憶されている圧縮データAcが新たな圧縮データBcに書き換えられる。   Step S22 represents a state where the compressed data stored in the second area 225 has been rewritten. A data file having the new firmware B is read from the outside, and the header area 510 is removed from the data file, whereby new compressed data Bc is created. Then, the compressed data Ac stored in the second area is rewritten with new compressed data Bc.

ステップS23では、圧縮データBcを解凍してファームウェアBを作成し、このファームウェアBを第1の領域224に記憶する。   In step S 23, the compressed data Bc is decompressed to create firmware B, and this firmware B is stored in the first area 224.

以上により、第1のアップデート処理が完了する。   Thus, the first update process is completed.

ステップS24は復帰処理の概略を表す。復帰処理は、ビデオプロセッサMPU301から復帰命令を内視鏡MPU221が受信したときに、内視鏡MPU221によって実行される。   Step S24 represents an outline of the return process. The return process is executed by the endoscope MPU 221 when the endoscope MPU 221 receives a return command from the video processor MPU 301.

第1の領域224に記憶されているファームウェアBが何らかの原因により破損したとき、電子内視鏡200からビデオプロセッサ300に送信される様々な信号にエラーが生じる。ビデオプロセッサMPU301は、これらのエラーを検出し、エラーの数が所定数に達したときに、内視鏡MPU221に復帰命令を発信する。エラーを検出して復帰命令を発信する処理を復帰指示処理と呼ぶ。   When the firmware B stored in the first area 224 is damaged for some reason, errors occur in various signals transmitted from the electronic endoscope 200 to the video processor 300. The video processor MPU 301 detects these errors, and sends a return command to the endoscope MPU 221 when the number of errors reaches a predetermined number. The process of detecting an error and sending a return instruction is called a return instruction process.

復帰命令を受信した内視鏡MPU221は、第2の領域225に記憶されている圧縮データBcを解凍して新たなファームウェアBdを作成する。そして、このファームウェアBdを第1の領域224に記憶する。そして、新たに第1の領域224に記憶されたファームウェアBdを実行する。以上により、復帰処理が完了する。   Receiving the return command, the endoscope MPU 221 decompresses the compressed data Bc stored in the second area 225 and creates a new firmware Bd. Then, the firmware Bd is stored in the first area 224. Then, the firmware Bd newly stored in the first area 224 is executed. Thus, the return process is completed.

次に、図3を用いて本実施形態におけるデータファイルについて説明する。   Next, the data file in this embodiment will be described with reference to FIG.

データファイルは、電子内視鏡システム100の外部に設けられたコンピュータにより予め作成されている。電子内視鏡200のファームウェア540を備えるデータファイルは、ヘッダ領域510と圧縮データ領域520とから成る。ヘッダ領域510は、データファイルの先頭部分に設けられ、対象装置識別子を記録する装置識別領域511と、ファームウェアのバージョン情報を記録するバージョン記録領域512とを有する。対象装置識別子は、ファームウェアが対応する電子内視鏡200の識別子を示す。電子内視鏡200の識別子は、1種類の電子内視鏡200に固有の値である。対象装置識別子及びバージョン情報は英数字で構成される。図示した例では、対象装置識別子は「1」であり、バーション情報は「4」である。対象装置識別子及びバージョン情報が識別情報を構成する。   The data file is created in advance by a computer provided outside the electronic endoscope system 100. A data file including the firmware 540 of the electronic endoscope 200 includes a header area 510 and a compressed data area 520. The header area 510 is provided at the beginning of the data file, and includes a device identification area 511 for recording the target apparatus identifier and a version recording area 512 for recording firmware version information. The target device identifier indicates the identifier of the electronic endoscope 200 to which the firmware corresponds. The identifier of the electronic endoscope 200 is a value unique to one type of electronic endoscope 200. The target device identifier and version information are composed of alphanumeric characters. In the illustrated example, the target device identifier is “1”, and the version information is “4”. The target device identifier and the version information constitute identification information.

圧縮データ領域520は、データファイルにおいてヘッダ領域510に次いで設けられ、ファームウェア540を圧縮して得られた圧縮データ530を記録する。圧縮は、例えばランレングス符号化方式による。   The compressed data area 520 is provided next to the header area 510 in the data file, and records compressed data 530 obtained by compressing the firmware 540. The compression is performed by, for example, a run length encoding method.

次に、図4を用いて第1のアップデート処理について説明する。第1のアップデート処理は、電子内視鏡200の電源が投入されたときに実行される。電子内視鏡200の電源が前回切断される前に、ファームウェアを含むデータファイルがメモリ222に記憶される。   Next, the first update process will be described with reference to FIG. The first update process is executed when the power of the electronic endoscope 200 is turned on. Before the electronic endoscope 200 is powered off last time, a data file including firmware is stored in the memory 222.

まず、ステップS41では、ファームウェアを書き換えるために用いるアップデートプログラムを内視鏡MPU221が起動する。アップデートプログラムは、ファームウェア内に記録されている。   First, in step S41, the endoscope MPU 221 starts an update program used for rewriting firmware. The update program is recorded in the firmware.

次にステップS42では、内視鏡MPU221がメモリ222からデータファイルを読み込む。そして、ステップS43において、ヘッダ領域510から識別情報を読み取る。   Next, in step S <b> 42, the endoscope MPU 221 reads a data file from the memory 222. In step S43, the identification information is read from the header area 510.

ステップS44では、電子内視鏡200の識別子が対象装置識別子と一致するか、及びバージョン情報が現在第1の領域に記憶されているファームウェアよりも新しいかを判断する。対象装置識別子と一致し、かつバージョン情報が新しい場合、処理はステップS46に進む。そうでない場合、処理はステップS45に進む。   In step S44, it is determined whether the identifier of the electronic endoscope 200 matches the target device identifier and whether the version information is newer than the firmware currently stored in the first area. If it matches the target device identifier and the version information is new, the process proceeds to step S46. Otherwise, the process proceeds to step S45.

ステップS45では、アップデートプログラムを終了して、処理がステップS48に進む。   In step S45, the update program is terminated, and the process proceeds to step S48.

ステップS46では、データファイルからヘッダ領域510を取り除くことにより、新たな圧縮データBcが作成される。そして、第2の領域225に記憶されている圧縮データAcが新たな圧縮データBcに書き換えられる(図2のステップS22参照)。   In step S46, new compressed data Bc is created by removing the header area 510 from the data file. Then, the compressed data Ac stored in the second area 225 is rewritten with new compressed data Bc (see step S22 in FIG. 2).

ステップS47では、圧縮データBcを解凍してファームウェアBを作成し、このファームウェアBを第1の領域224に記憶する(図2のステップS23参照)。   In step S47, the compressed data Bc is decompressed to create firmware B, and this firmware B is stored in the first area 224 (see step S23 in FIG. 2).

次のステップS48では、電子内視鏡200をリセット、すなわち再起動する。そして電子内視鏡200の一般処理、つまり通常の観察動作を行う。   In the next step S48, the electronic endoscope 200 is reset, that is, restarted. Then, general processing of the electronic endoscope 200, that is, normal observation operation is performed.

以上により、第1のアップデート処理が完了する。   Thus, the first update process is completed.

次に、図5を用いて復帰指示処理について説明する。復帰指示処理は、ビデオプロセッサ300に電子内視鏡200が接続されたときに開始される。   Next, the return instruction process will be described with reference to FIG. The return instruction process is started when the electronic endoscope 200 is connected to the video processor 300.

スイッチが操作された旨を示す操作信号をビデオプロセッサMPU301が受信すると、ステップS51において、受信した操作信号にエラーが含まれているかを検出する。操作信号は、ユーザがスイッチを操作してホワイトバランスを変更したり、画像を拡大縮小したりするときに送信される。   When the video processor MPU 301 receives an operation signal indicating that the switch has been operated, in step S51, it is detected whether an error is included in the received operation signal. The operation signal is transmitted when the user operates the switch to change the white balance or to enlarge or reduce the image.

また、アナログ信号処理部223から送られた画像信号をビデオプロセッサMPU301が受信すると、ステップS52において、画像信号が有する色情報にエラーが含まれているかを検出する。色情報は、電子内視鏡各々が有する色の特性、例えばゲイン値であって、電子内視鏡固有の値である。   When the video processor MPU 301 receives the image signal sent from the analog signal processing unit 223, in step S52, it is detected whether the color information included in the image signal includes an error. The color information is a color characteristic of each electronic endoscope, such as a gain value, and is a value unique to the electronic endoscope.

そして、ステップS53では、ステップS51及びS52において検出したエラーの数を積算する。   In step S53, the number of errors detected in steps S51 and S52 is integrated.

次のステップS54では、ステップS53において積算したエラーの数が所定数を超えたか否かを判断する。所定数を超えた場合、電子内視鏡200のファームウェアが破損していると判断し、処理がステップS55に進む。所定数を超えない場合、電子内視鏡200のファームウェアは正常であると判断し、処理がステップS56に進む。   In the next step S54, it is determined whether or not the number of errors accumulated in step S53 exceeds a predetermined number. If the predetermined number is exceeded, it is determined that the firmware of the electronic endoscope 200 is damaged, and the process proceeds to step S55. If the predetermined number is not exceeded, it is determined that the firmware of the electronic endoscope 200 is normal, and the process proceeds to step S56.

ステップS55では、ビデオプロセッサMPU301が、復帰命令を内視鏡MPU221に送信する。そして、ステップS56に進む。   In step S55, the video processor MPU301 transmits a return instruction to the endoscope MPU221. Then, the process proceeds to step S56.

ステップS56では、ビデオプロセッサ300の一般的な処理を行い、処理が終了する。   In step S56, general processing of the video processor 300 is performed, and the processing ends.

次に、図2及び6を用いて復帰処理について説明する。復帰処理は、内視鏡MPU221が復帰命令を受信したときに実行される。   Next, the return process will be described with reference to FIGS. The return process is executed when the endoscope MPU 221 receives a return command.

内視鏡MPU221が復帰命令を受信すると、ステップS61において、第2の領域225に記憶されている圧縮データBcを読み出す(図2のステップS24参照)。   When the endoscope MPU 221 receives the return command, the compressed data Bc stored in the second area 225 is read in step S61 (see step S24 in FIG. 2).

次のステップS62では、圧縮データBcを解凍してファームウェアBdを作成し、ファームウェアBdを第1の領域224に書き込む。   In the next step S62, the compressed data Bc is decompressed to create firmware Bd, and the firmware Bd is written in the first area 224.

ステップS63では、ファームウェアBdが正常に動作するかを確認する。正常に動作しない場合、ファームウェアBdが破損していると判断し、ステップS61に戻る。そして、圧縮データBcを再度解凍してファームウェアBdを第1の領域224に再度書き込む。正常に動作する場合、ファームウェアBdは破損していないと判断し、ステップS64に進む。   In step S63, it is confirmed whether the firmware Bd operates normally. If it does not operate normally, it is determined that the firmware Bd is damaged, and the process returns to step S61. Then, the compressed data Bc is decompressed again, and the firmware Bd is written in the first area 224 again. If it operates normally, it is determined that the firmware Bd is not damaged, and the process proceeds to step S64.

ステップS64では、電子内視鏡200の一般的な処理を行い、処理が終了する。   In step S64, general processing of the electronic endoscope 200 is performed, and the processing ends.

本実施形態によれば、圧縮したファームウェアを内視鏡システムに送信することにより、送信時間を短縮できる。また、第2の領域225に圧縮したファームウェアを記憶しておくことにより、第1の領域224に記憶したファームウェアが破損しても、第2の領域225に記憶している圧縮データを解凍して新たなファームウェアとして使用することにより、電子内視鏡200が使用不可能となることがない。さらに、データファイルのヘッダ領域510に識別情報を付加することにより、対応するファームウェアのみを第1の領域224に書き込むことができる。そして、圧縮したファームウェアと識別情報とを1つのデータファイルにすることにより、第三者がファームウェアを解析することが困難となる。   According to this embodiment, the transmission time can be shortened by transmitting the compressed firmware to the endoscope system. Further, by storing the compressed firmware in the second area 225, even if the firmware stored in the first area 224 is damaged, the compressed data stored in the second area 225 is decompressed. By using the new firmware, the electronic endoscope 200 is not disabled. Furthermore, by adding identification information to the header area 510 of the data file, only the corresponding firmware can be written in the first area 224. Then, by making the compressed firmware and identification information into one data file, it becomes difficult for a third party to analyze the firmware.

次に、図7及び8を用いて第2の実施形態について説明する。第1の実施形態と同様の構成については同じ符号を付して説明を省略する。第2の実施形態による内視鏡システムは、第1のアップデート処理の代わりに、その一部が異なる第2のアップデート処理を実行する。   Next, a second embodiment will be described with reference to FIGS. The same components as those in the first embodiment are denoted by the same reference numerals and description thereof is omitted. The endoscope system according to the second embodiment executes a second update process in which a part thereof is different instead of the first update process.

ステップS71からステップS73は、第2のアップデート処理の概略を表す。ステップS71では、現在実行中のファームウェアAが第1の領域224に記憶されており、第1の領域224に記憶されているファームウェアを圧縮して得られる圧縮データAcが第2の領域225に記憶されている。   Steps S71 to S73 represent an outline of the second update process. In step S 71, the currently executed firmware A is stored in the first area 224, and compressed data Ac obtained by compressing the firmware stored in the first area 224 is stored in the second area 225. Has been.

ステップS72は、第1の領域224に記憶されているファームウェアが書き換えられた状態を表す。まず、第1の領域224に記憶されているファームウェアAを圧縮して圧縮データAccを作成し、この圧縮データAccを第2の領域225に記憶する。そして、第1の領域224に記憶されているファームウェアAが新たなファームウェアBに書き換えられ、新たなファームウェアBが第1の領域224に記憶される。   Step S72 represents a state where the firmware stored in the first area 224 has been rewritten. First, the firmware A stored in the first area 224 is compressed to create compressed data Acc, and the compressed data Acc is stored in the second area 225. Then, the firmware A stored in the first area 224 is rewritten with the new firmware B, and the new firmware B is stored in the first area 224.

ステップS73では、ファームウェアBが正常に動作するかを確認した後、ファームウェアBを圧縮して圧縮データBcを作成し、この圧縮データBcを第2の領域225に記憶する。   In step S73, after confirming whether the firmware B operates normally, the firmware B is compressed to create compressed data Bc, and the compressed data Bc is stored in the second area 225.

以上により、第2のアップデート処理が完了する。   Thus, the second update process is completed.

次に、図7及び8を用いて第2のアップデート処理について説明する。ステップS41からS45、ステップS48、及びステップS49は第1のアップデート処理と同様であるため、説明を省略する。   Next, the second update process will be described with reference to FIGS. Steps S41 to S45, step S48, and step S49 are the same as those in the first update process, and thus description thereof is omitted.

ステップS44において、電子内視鏡200の識別子が対象装置識別子と一致し、かつバージョン情報が現在第1の領域224に記憶されているファームウェアよりも新しい場合、ステップS86を実行する。ステップS86では、第1の領域224に記憶されているファームウェアAを圧縮して圧縮データAccを作成し、この圧縮データAccを第2の領域225に記憶する(図7のステップS72参照)。   In step S44, when the identifier of the electronic endoscope 200 matches the target device identifier and the version information is newer than the firmware currently stored in the first area 224, step S86 is executed. In step S86, the firmware A stored in the first area 224 is compressed to create compressed data Acc, and this compressed data Acc is stored in the second area 225 (see step S72 in FIG. 7).

次のステップS87では、第1の領域224に記憶されているファームウェアAを新たなファームウェアBで書き換える。これにより、新たなファームウェアBが第1の領域224に記憶される。そして、ファームウェアBが正常に動作するかを確認した後、ファームウェアBを圧縮して圧縮データBcを作成し、この圧縮データBcを第2の領域225に記憶する(図7のステップS73参照)。その後、処理がステップS48に進む。   In the next step S87, the firmware A stored in the first area 224 is rewritten with the new firmware B. As a result, the new firmware B is stored in the first area 224. Then, after confirming whether the firmware B operates normally, the firmware B is compressed to create compressed data Bc, and the compressed data Bc is stored in the second area 225 (see step S73 in FIG. 7). Thereafter, the process proceeds to step S48.

本実施形態によれば、新たに書き込んだファームウェアが正常に動作することを確認した上で第2の領域225に圧縮データを記憶するため、ファームウェアの書き換えにより電子内視鏡200が動作しなくなる可能性を第1の実施形態よりも低減できる。   According to the present embodiment, the compressed data is stored in the second area 225 after confirming that the newly written firmware operates normally. Therefore, the electronic endoscope 200 may not operate by rewriting the firmware. Can be reduced as compared with the first embodiment.

いずれの実施形態においても、対象装置識別子及びバージョン情報は英数字で構成されなくても良い。対象装置識別子は数字でなく、ファームウェアが対応する電子内視鏡200の名前であってもよい。   In any embodiment, the target device identifier and the version information may not be composed of alphanumeric characters. The target device identifier may not be a number but the name of the electronic endoscope 200 corresponding to the firmware.

さらに、外部に設けられたコンピュータに制御信号線312を直接接続することによって、電子内視鏡200とコンピュータとを接続し、コンピュータから電子内視鏡200にデータファイルを直接送信しても良い。   Further, the electronic endoscope 200 and the computer may be connected by directly connecting the control signal line 312 to a computer provided outside, and the data file may be directly transmitted from the computer to the electronic endoscope 200.

なお、撮像素子はCCD215に限定されない。   Note that the imaging element is not limited to the CCD 215.

100 電子内視鏡システム
200 電子内視鏡
210 挿入部
211 遠位端部
212 近位端部
213 撮像レンズ
214 照明レンズ
215 CCD
216 アナログ信号出力線
217 CCD制御信号線
218 ライトガイドファイバ
219 画像信号線
220 操作部
221 内視鏡MPU
222 メモリ
223 アナログ信号処理部
224 第1の領域
225 第2の領域
300 ビデオプロセッサ
301 ビデオプロセッサMPU
302 外部インターフェース
303 フロントパネル
304 画像信号処理部
305 光源
312 制御信号線
400 モニタ
510 ヘッダ領域
511 装置識別領域
512 バージョン記録領域
520 圧縮データ領域
DESCRIPTION OF SYMBOLS 100 Electronic endoscope system 200 Electronic endoscope 210 Insertion part 211 Distal end part 212 Proximal end part 213 Imaging lens 214 Illumination lens 215 CCD
216 Analog signal output line 217 CCD control signal line 218 Light guide fiber 219 Image signal line 220 Operation unit 221 Endoscope MPU
222 Memory 223 Analog signal processing unit 224 First area 225 Second area 300 Video processor 301 Video processor MPU
302 External Interface 303 Front Panel 304 Image Signal Processing Unit 305 Light Source 312 Control Signal Line 400 Monitor 510 Header Area 511 Device Identification Area 512 Version Recording Area 520 Compressed Data Area

Claims (3)

プログラムを記録する記録部と、
前記記録部にプログラムを書き込み、前記記録部に記録されているプログラムを実行する制御部とを備え、
前記記録部は、前記制御部が実行するプログラムを記録する第1の領域と、圧縮されたプログラムを記録する第2の領域とを有し、
前記制御部は、外部から受信した圧縮されたプログラムを解凍して前記第1の領域に書き込み、前記第1の領域に書き込まれたプログラムが動作することを検知した後に、前記第1の領域に書き込まれたプログラムを圧縮して前記第2の領域に書き込む電子内視鏡。
A recording unit for recording the program;
A control unit that writes a program in the recording unit and executes the program recorded in the recording unit,
The recording unit has a first area for recording a program executed by the control unit, and a second area for recording a compressed program,
The control unit decompresses the compressed program received from the outside, writes the compressed program in the first area, detects that the program written in the first area operates, and then stores the program in the first area. An electronic endoscope that compresses a written program and writes the compressed program in the second area.
前記プログラムは、電子内視鏡に固有の識別符号を有し、
前記制御部は、電子内視鏡と識別符号とが対応するときに、圧縮されたプログラムを解凍して前記第1の領域に書き込む請求項1に記載の電子内視鏡。
The program has an identification code unique to an electronic endoscope,
2. The electronic endoscope according to claim 1, wherein when the electronic endoscope corresponds to an identification code, the control unit decompresses the compressed program and writes the decompressed program in the first area.
請求項1に記載の電子内視鏡と、
前記電子内視鏡に接続されるビデオプロセッサとを備え、
前記ビデオプロセッサは、前記プロセッサの動作を制御するプロセッサ制御部を有し、
前記電子内視鏡は、前記プロセッサ制御部に情報を送信し、
前記プロセッサ制御部は、前記電子内視鏡から受信した情報に誤りがあったとき誤りに関する誤り情報を蓄積し、誤り情報が所定の条件に合致したとき前記制御部に復帰命令を送信し、
前記制御部は、前記復帰命令を受信したとき、前記第2の領域に書き込まれたプログラムを解凍して前記第1の領域に書き込む電子内視鏡システム。
An electronic endoscope according to claim 1,
A video processor connected to the electronic endoscope,
The video processor has a processor control unit that controls the operation of the processor,
The electronic endoscope transmits information to the processor control unit,
The processor control unit accumulates error information regarding an error when there is an error in the information received from the electronic endoscope, and sends a return command to the control unit when the error information matches a predetermined condition.
When the control unit receives the return instruction, the control unit decompresses the program written in the second area and writes the program in the first area.
JP2010095353A 2010-04-16 2010-04-16 Electronic endoscope and system Expired - Fee Related JP5439263B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2010095353A JP5439263B2 (en) 2010-04-16 2010-04-16 Electronic endoscope and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2010095353A JP5439263B2 (en) 2010-04-16 2010-04-16 Electronic endoscope and system

Publications (2)

Publication Number Publication Date
JP2011224091A true JP2011224091A (en) 2011-11-10
JP5439263B2 JP5439263B2 (en) 2014-03-12

Family

ID=45040238

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2010095353A Expired - Fee Related JP5439263B2 (en) 2010-04-16 2010-04-16 Electronic endoscope and system

Country Status (1)

Country Link
JP (1) JP5439263B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013215464A (en) * 2012-04-11 2013-10-24 Hoya Corp Endoscope apparatus

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000163268A (en) * 1998-11-27 2000-06-16 Nec Corp Computer
JP2000284957A (en) * 1999-03-31 2000-10-13 Fuji Photo Optical Co Ltd Multi-microcomputer system
JP3515922B2 (en) * 1999-03-03 2004-04-05 富士写真光機株式会社 Electronic endoscope device
JP2004199277A (en) * 2002-12-17 2004-07-15 Fujitsu Ltd Bios redundancy management method, data processor, and storage system
JP2005185691A (en) * 2003-12-26 2005-07-14 Fujinon Corp Electronic endoscopic apparatus and method of forwarding program
JP2007149003A (en) * 2005-11-30 2007-06-14 Olympus Corp Software operating unit
JP2008142153A (en) * 2006-12-07 2008-06-26 Pentax Corp Processor for electronic endoscope and electronic endoscope system
JP2009022490A (en) * 2007-07-19 2009-02-05 Toshiba Corp Medical image diagnostic system, medical image diagnostic apparatus, and program

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000163268A (en) * 1998-11-27 2000-06-16 Nec Corp Computer
JP3515922B2 (en) * 1999-03-03 2004-04-05 富士写真光機株式会社 Electronic endoscope device
JP2000284957A (en) * 1999-03-31 2000-10-13 Fuji Photo Optical Co Ltd Multi-microcomputer system
JP2004199277A (en) * 2002-12-17 2004-07-15 Fujitsu Ltd Bios redundancy management method, data processor, and storage system
JP2005185691A (en) * 2003-12-26 2005-07-14 Fujinon Corp Electronic endoscopic apparatus and method of forwarding program
JP2007149003A (en) * 2005-11-30 2007-06-14 Olympus Corp Software operating unit
JP2008142153A (en) * 2006-12-07 2008-06-26 Pentax Corp Processor for electronic endoscope and electronic endoscope system
JP2009022490A (en) * 2007-07-19 2009-02-05 Toshiba Corp Medical image diagnostic system, medical image diagnostic apparatus, and program

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013215464A (en) * 2012-04-11 2013-10-24 Hoya Corp Endoscope apparatus

Also Published As

Publication number Publication date
JP5439263B2 (en) 2014-03-12

Similar Documents

Publication Publication Date Title
JP4504339B2 (en) Endoscope device
US20090290016A1 (en) Endoscope system
US20060106284A1 (en) Communication method of storage device, image storage system and image storage device
US20110145804A1 (en) Imaging system
WO2006085415A1 (en) Endoscope device
JP2008149125A (en) Endoscope and endoscope system
JP6038413B1 (en) Signal processing apparatus and endoscope system
JP6663571B2 (en) Endoscope image processing apparatus, method of operating endoscope image processing apparatus, and program
JP2012248031A (en) Electronic apparatus, endoscopic device, and program module update method of electronic apparatus
JP5439263B2 (en) Electronic endoscope and system
US20090207242A1 (en) Signal processing system
JP6615550B2 (en) Image recording system for electronic endoscope
JP5511623B2 (en) Endoscope apparatus and control method of endoscope apparatus
JP6184394B2 (en) Endoscope system
JP4468525B2 (en) Endoscope system
JP3923601B2 (en) Endoscope system
JP4609170B2 (en) Imaging apparatus, image processing apparatus and method, and computer program
JP5624943B2 (en) Electronic device and method for updating program module of electronic device
JP4973270B2 (en) Camera accessory equipment and camera system
JP2009279074A (en) Endoscope system
JP4253206B2 (en) Digital camera
JPH07302268A (en) Picture recording controller
US11877046B2 (en) Endoscope, driving method, and endoscope system
JP6418734B2 (en) Endoscope device
JP2016077432A (en) Processor and endoscope system

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20130204

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20131121

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20131216

R150 Certificate of patent or registration of utility model

Ref document number: 5439263

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313531

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

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

LAPS Cancellation because of no payment of annual fees