JP2005085054A5 - - Google Patents

Download PDF

Info

Publication number
JP2005085054A5
JP2005085054A5 JP2003317625A JP2003317625A JP2005085054A5 JP 2005085054 A5 JP2005085054 A5 JP 2005085054A5 JP 2003317625 A JP2003317625 A JP 2003317625A JP 2003317625 A JP2003317625 A JP 2003317625A JP 2005085054 A5 JP2005085054 A5 JP 2005085054A5
Authority
JP
Japan
Prior art keywords
program
mobile station
information
base station
correction
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.)
Pending
Application number
JP2003317625A
Other languages
Japanese (ja)
Other versions
JP2005085054A (en
Filing date
Publication date
Application filed filed Critical
Priority to JP2003317625A priority Critical patent/JP2005085054A/en
Priority claimed from JP2003317625A external-priority patent/JP2005085054A/en
Publication of JP2005085054A publication Critical patent/JP2005085054A/en
Publication of JP2005085054A5 publication Critical patent/JP2005085054A5/ja
Pending legal-status Critical Current

Links

Description

プログラム変更方法およびこのプログラムの変更方法を用いる移動局Program change method and mobile station using the program change method

本発明は、プログラムによって動作するCPUを搭載した機器よりなる移動局と、移動局との間で情報を送受信可能な通信手段を備えた基地局よりなり、移動局が基地局より送信されたプログラム修正情報によってプログラムを変更するプログラム変更方法およびこのプログラムの変更方法を用いる移動局に関する。   The present invention comprises a mobile station comprising a device equipped with a CPU that operates according to a program, and a base station provided with communication means capable of transmitting and receiving information between the mobile stations, and the mobile station is transmitted from the base station. The present invention relates to a program changing method for changing a program according to correction information and a mobile station using the method for changing the program.

車両に搭載された機器は、一般的にメモリ等の記憶素子に記憶されている制御手順(以下、プログラムという。)に従い制御動作を行っている。制御プログラムの記憶媒体としては、読み込み専用のROM(リード オンリー メモリ)が多く使用されていたが、近年、製品発売後のプログラム書き換えによる機能拡張対応のために、フラッシュROM等の書き換えが可能なメモリを使用して新たなプログラムを直接フラッシュROMに書き込むことが行われている。   Devices mounted on a vehicle generally perform control operations according to a control procedure (hereinafter referred to as a program) stored in a storage element such as a memory. As a storage medium for control programs, read-only ROM (read-only memory) has been used in many cases. However, in recent years, memory that can be rewritten such as flash ROM in order to support function expansion by program rewriting after product release. A new program is directly written in the flash ROM using the.

このようなROMあるいはフラッシュROMに記憶された機器の動作プログラムを修正する場合には、新たなプログラムが書き込まれたROMへの交換、フラッシュROMの書換え等といった端末での特別な作業を行うことにより対処しているが、ROM交換、フラッシュROMの書換え等の作業は特別な技術を要し、手間暇がかかる作業であった。
例えば、車両等の移動局のソフトウェアのプログラム変更を行うときは、移動局の機器を一度回収し、その機器に精通した技術者がROMあるいは基板等の交換を行うか、あるいは別の機器を接続し、フラッシュROMの内容を書き換えるといった処理が必要であった。しかし、全車両でこれらの作業を行うには、多くの時間や費用がかかり、特に、業務に使用している機器の場合は、業務を中断することになり、顧客への影響も大きい。
When correcting the operation program of the device stored in such a ROM or flash ROM, it is necessary to perform special work on the terminal such as replacement to a ROM in which a new program is written, rewriting of the flash ROM, etc. Although this is being dealt with, operations such as ROM replacement and flash ROM rewriting require special techniques and are time-consuming operations.
For example, when changing the software program of a mobile station such as a vehicle, the mobile station equipment is collected once, and an engineer familiar with the equipment replaces the ROM or board, or connects another equipment. However, processing such as rewriting the contents of the flash ROM is necessary. However, it takes a lot of time and money to perform these operations on all vehicles. Especially, in the case of equipment used for work, the work is interrupted and the influence on customers is great.

一方、輸配送業やタクシーにおいては、各車両に通信手段の搭載が必須となっているので、この通信手段を使って各車両にプログラム修正情報を送信してプログラムを変更することが提案されている(例えば、特許文献1参照。)。
特開2000−132401号公報
On the other hand, in the transportation and delivery industry and taxis, it is essential to install communication means in each vehicle, so it is proposed to change the program by sending program correction information to each vehicle using this communication means. (For example, refer to Patent Document 1).
JP 2000-132401 A

上記の通信手段を使用したプログラム変更方法では、送信するデータが多くなるとともに、送信されてきたプログラム修正情報でフラッシュROMのプログラム自体を書き換えてしまうため、通信路でのエラーが発生したり、修正プログラム自体にエラーがあった場合には、その機器が動作しなくなる、という危険性があった。   In the program change method using the above communication means, the amount of data to be transmitted increases, and the flash ROM program itself is rewritten with the transmitted program correction information. If there was an error in the program itself, there was a risk that the device would not work.

本発明は、上記の問題に鑑みてなされたもので、移動局での通信によるプログラム変更をより安全に、少ないデータ量で実現することができるプログラム変更方法およびこのプログラムの変更方法を用いる移動局を提供することを目的とする。   The present invention has been made in view of the above problems, and a program change method capable of realizing a program change by communication in a mobile station more safely and with a small amount of data, and a mobile station using the program change method The purpose is to provide.

上述の目的を達成するため、本発明に係るプログラム変更方法(1)は、
プログラムによって動作するCPUを搭載した機器よりなる移動局と、
上記移動局との間で情報を送受信可能な通信手段を備えた基地局からなり、
ROMに記憶されたプログラムをRAMに転送し、RAM上で実行する上記機器のプログラムの変更方法であって、
上記基地局から上記移動局にプログラム修正情報を送信し、
上記移動局が受信した修正情報によってRAM内のプログラム情報を変更することを特
徴とする。
In order to achieve the above object, a program change method (1) according to the present invention includes:
A mobile station comprising a device equipped with a CPU that operates according to a program;
A base station provided with a communication means capable of transmitting and receiving information to and from the mobile station,
A method for changing a program of the above-described device for transferring a program stored in a ROM to a RAM and executing the program on the RAM,
Send program correction information from the base station to the mobile station,
The program information in the RAM is changed according to the correction information received by the mobile station.

また、本発明に係るプログラム変更方法(2)は、プログラム変更方法(1)において、
上記移動局が上記基地局から送信されたプログラム修正情報を電源オフ時にも保持可能なメモリに保存し、
修正情報があるときは、上記移動局が機器の起動時に、ROMに記憶されたプログラムをRAMに転送した後、RAMに展開されたプログラム情報を上記メモリに記憶されたプログラム修正情報によって変更することを特徴とする。
The program change method (2) according to the present invention is the program change method (1),
The mobile station stores the program correction information transmitted from the base station in a memory that can be held even when the power is turned off,
When there is correction information, the mobile station transfers the program stored in the ROM to the RAM when the device is started up, and then changes the program information expanded in the RAM with the program correction information stored in the memory. It is characterized by.

また、本発明に係るプログラム変更方法(3)は、プログラム変更方法(1)において、
上記基地局がプログラム修正情報と、修正情報によりプログラム情報を変更する変更指示情報を送信し、
上記移動局が上記変更指示情報を受信した場合に、RAM内のプログラム情報を変更することを特徴とする。
The program change method (3) according to the present invention is the program change method (1),
The base station transmits program modification information and change instruction information for changing the program information according to the modification information,
When the mobile station receives the change instruction information, the program information in the RAM is changed.

また、本発明に係るプログラム変更方法(4)は、プログラム変更方法(1)において、
上記基地局がプログラム修正情報及び指定移動局情報を送信し、
上記移動局が、自局が上記基地局の指定移動局情報によって指定された移動局か否かを判断し、
自局が指定移動局のときのみ、RAM内のプログラム情報を変更することを特徴とする。
The program change method (4) according to the present invention is the program change method (1),
The base station transmits program modification information and designated mobile station information,
The mobile station determines whether or not the mobile station is a mobile station designated by the designated mobile station information of the base station,
The program information in the RAM is changed only when the own station is a designated mobile station.

また、本発明に係るプログラム変更方法(5)は、プログラム変更方法(1)において、
上記基地局がプログラム修正情報及び指定エリア情報を送信し、
上記移動局が位置検出手段により検出した自局の位置により、自局が上記基地局の指定エリア情報によって指定されたエリア内にいるか否かを判断し、
指定エリア内にいるときのみ、RAM内のプログラム情報を変更することを特徴とする。
The program change method (5) according to the present invention is the program change method (1),
The base station transmits program correction information and designated area information,
Based on the position of the mobile station detected by the mobile station, the mobile station determines whether the mobile station is within the area designated by the designated area information of the base station,
The program information in the RAM is changed only when in the designated area.

また、本発明に係るプログラム変更方法(6)は、プログラム変更方法(1)において、
上記移動局が移動局の機器の稼動状態に応じて、RAM内のプログラム情報を変更するか否かを決定することを特徴とする。
The program change method (6) according to the present invention is the program change method (1),
The mobile station determines whether or not to change the program information in the RAM according to the operating state of the equipment of the mobile station.

また、本発明に係るプログラム変更方法(7)は、プログラム変更方法(1)において、
上記移動局が位置検出手段により検出した自局の位置情報を上記基地局に送信し、
上記基地局が上記移動局からの位置情報に基づき所定のエリア内の移動局のみに、プログラム修正情報を送信することを特徴とする。
The program change method (7) according to the present invention is the program change method (1),
The mobile station transmits its own location information detected by the location detection means to the base station,
The base station transmits program correction information only to mobile stations within a predetermined area based on position information from the mobile station.

また、本発明に係るプログラム変更方法(8)は、プログラム変更方法(1)において、
上記移動局が移動局の機器の稼動状態情報を上記基地局に送信し、
上記基地局が上記移動局からの稼動状態情報に基づき所定の稼動状態の移動局のみに、プログラム修正情報を送信することを特徴とする。
The program change method (8) according to the present invention is the program change method (1),
The mobile station sends the mobile station device operating status information to the base station,
The base station transmits the program correction information only to a mobile station in a predetermined operating state based on the operating state information from the mobile station.

また、本発明に係るプログラム変更方法(9)は、プログラム変更方法(1)において、
上記基地局がプログラム修正情報とともに、該当する修正プログラムの識別コードを送信し、
上記移動局がプログラム修正情報によりプログラムを変更している場合には、その修正情報の識別コードを上記基地局に送信することを特徴とする。
The program change method (9) according to the present invention is the program change method (1),
The above base station transmits the identification code of the corresponding correction program together with the program correction information,
When the mobile station is changing the program according to the program correction information, the mobile station transmits an identification code of the correction information to the base station.

また、本発明に係るプログラム変更方法(10)は、プログラム変更方法(1)〜(8)のいずれかにおいて、
上記移動局が修正プログラムにより正常に起動、終了したか否かを判別し、正常に起動、終了していない場合には、当該修正プログラムによるプログラム変更を実行しないことを特徴とする。
Moreover, the program change method (10) according to the present invention is any one of the program change methods (1) to (8),
It is determined whether or not the mobile station has been normally activated and terminated by the correction program. If the mobile station has not been normally activated and terminated, the program change by the correction program is not executed.

また、本発明に係るプログラム変更方法(11)は、プログラム変更方法(10)において、
上記移動局が修正プログラムの識別コード毎に正常起動、終了を管理し、正常終了していないことを検知した場合には、当該識別コードの修正プログラムによるプログラム変更を実行しないことを特徴とする。
The program change method (11) according to the present invention is the program change method (10),
The mobile station manages normal activation and termination for each identification code of the correction program, and when detecting that the mobile station has not terminated normally, no program change by the correction program for the identification code is performed.

また、本発明に係るプログラム変更方法(12)は、プログラム変更方法(1)〜(8)のいずれかにおいて、
上記移動局がプログラムが正常に起動、終了したか否かを判別し、正常に起動、終了した場合には、上記基地局に起動、終了を通知し、
上記基地局が上記移動局の起動、終了通知により、移動局の異常終了を検知することを特徴とする。
Moreover, the program change method (12) according to the present invention is any one of the program change methods (1) to (8),
The mobile station determines whether or not the program has started and ended normally, and when it has started and ended normally, notifies the base station of the start and end,
The base station detects an abnormal end of the mobile station based on a start / end notification of the mobile station.

本発明に係るプログラム変更方法(1)、(2)によれば、動作時にROMに記憶されたプログラムをRAMに転送し、移動局が受信した修正情報によってRAM内のプログラム情報を変更するので、プログラムを記録している主メモリを書き換えることなく、移動局の動作を変更可能であり、プログラム変更作業工数を軽減できるとともに、エラーが発生しても修復が容易となる。   According to the program changing methods (1) and (2) according to the present invention, the program stored in the ROM is transferred to the RAM during operation, and the program information in the RAM is changed by the correction information received by the mobile station. The operation of the mobile station can be changed without rewriting the main memory in which the program is recorded, so that the man-hour for changing the program can be reduced and the repair can be facilitated even if an error occurs.

また、本発明に係るプログラム変更方法(3)によれば、基地局がプログラム修正情報と、修正情報によりプログラム情報を変更する変更指示情報を送信するので、プログラム変更を基地局から制御可能であり、プログラム変更における予期しない異常動作のリスクを軽減することができる。   Further, according to the program change method (3) according to the present invention, since the base station transmits the program correction information and the change instruction information for changing the program information by the correction information, the program change can be controlled from the base station. It is possible to reduce the risk of unexpected abnormal operation in program change.

さらに、本発明に係るプログラム変更方法(4)によれば、移動局が基地局の指定移動局情報によって指定された移動局のときのみ、RAM内のプログラム情報を変更するので、移動局を限定して、プログラム変更を実現可能であり、特定の車両、例えば、特殊なプログラムで動作している特殊車両や、新規プログラムの効果確認を行うための試験車両等にのみプログラムの変更を実施させることができる。   Furthermore, according to the program change method (4) according to the present invention, the program information in the RAM is changed only when the mobile station is designated by the designated mobile station information of the base station. The program can be changed, and only a specific vehicle, for example, a special vehicle operating with a special program, or a test vehicle for confirming the effect of the new program should be changed. Can do.

さらに、本発明に係るプログラム変更方法(5)、(7)によれば、指定エリア内にいるときのみ、移動局がRAM内のプログラム情報を変更するので、移動局の受信感度がいい場所を特定できている場合、その場所を指定すれば、プログラム修正情報をより確実に伝送することが可能となる。また、特定の地域で稼動する車両のみ変更が必要なプログラムが発生した場合には、その地域の車両についてのみプログラム変更を実施させることができる。   Furthermore, according to the program changing methods (5) and (7) according to the present invention, the mobile station changes the program information in the RAM only when it is in the designated area. If the location can be specified, the program correction information can be transmitted more reliably by specifying the location. Further, when a program that needs to be changed only for vehicles operating in a specific area is generated, the program can be changed only for vehicles in that area.

さらに、本発明に係るプログラム変更方法(6)、(8)によれば、移動局の機器の稼動状態に応じて、RAM内のプログラム情報を変更するか否かを決定するので、移動局の稼動状態に合わせたプログラム変更が実現可能となり、実際の運用への影響を考慮した制御を行うことができる。   Furthermore, according to the program change methods (6) and (8) according to the present invention, since it is determined whether or not to change the program information in the RAM according to the operating state of the equipment of the mobile station, Program change according to the operating state can be realized, and control in consideration of the influence on the actual operation can be performed.

さらに、本発明に係るプログラム変更方法(9)によれば、移動局がプログラム修正情報により動作している場合には、その修正情報の識別コードを基地局に送信するので、各移動局のプログラム変更状況を基地局で管理でき、必要な移動局のみに必要な修正プログラムを送信することが可能となる。   Furthermore, according to the program change method (9) of the present invention, when the mobile station is operating with the program correction information, the identification code of the correction information is transmitted to the base station. The change status can be managed by the base station, and the necessary correction program can be transmitted only to the necessary mobile station.

さらに、本発明に係るプログラム変更方法(10)、(11)によれば、移動局が修正プログラムにより正常に起動、終了したか否かを判別するので、伝送中誤ったデータを受信した場合や、異常動作を生じる修正情報で動作した場合には、異常動作を繰り返さず、元の状態での動作に復旧することが可能となる。   Furthermore, according to the program change methods (10) and (11) according to the present invention, it is determined whether or not the mobile station has been normally activated and terminated by the correction program. When the operation is performed with the correction information that causes the abnormal operation, it is possible to restore the operation in the original state without repeating the abnormal operation.

さらに、本発明に係るプログラム変更方法(12)によれば、移動局からの起動、終了通知により、基地局で各移動局の制御プログラムの正常終了を監視することができるので、基地局で移動局の異常終了を検知した場合には、新たな修正プログラムの送信を中止したり、異常終了した修正識別コードの修正プログラムを再度送信することにより、その移動局の異常終了に必要な措置を取ることが可能となる。   Furthermore, according to the program change method (12) according to the present invention, since the base station can monitor the normal end of the control program of each mobile station by the start and end notification from the mobile station, If an abnormal termination of a station is detected, take measures necessary for abnormal termination of the mobile station by canceling the transmission of a new modification program or re-sending the modification program of the modified identification code that terminated abnormally. It becomes possible.

以下、本発明のプログラム変更方法をタクシーの配送システムに適用した実施例について図面を用いて説明する。
図1はタクシーの配送システムの概略ブロック図であり、1はタクシー会社等の基地局、2はタクシーに搭載された機器としての移動局である。移動局2は、CPU21、F−ROM(フラッシュROM)22、RAM(ランダム アクセス メモリ)23、SRAM(スタティックRAM)24、無線機25、GPS26により構成されている。
Hereinafter, an embodiment in which the program changing method of the present invention is applied to a taxi delivery system will be described with reference to the drawings.
FIG. 1 is a schematic block diagram of a taxi delivery system, in which 1 is a base station of a taxi company or the like, and 2 is a mobile station as equipment mounted on a taxi. The mobile station 2 includes a CPU 21, an F-ROM (flash ROM) 22, a RAM (random access memory) 23, an SRAM (static RAM) 24, a radio device 25, and a GPS 26.

CPU21は移動局2のハードウェア各部を制御するとともに、F−ROM22に記憶されたプログラムに基づいて各種のプログラムを実行し、F−ROM22は制御プログラムを書換え可能に格納するROMであり、移動局2の動作に必要な種々のプログラムを予め記憶している。RAM23はプログラムの実行時に発生する一時的なデータを記憶するものであり、プログラムの実行時にF−ROM22に記憶された制御プログラムがこのRAM23に転送され、RAM23上で機器のプログラムが実行される。   The CPU 21 controls each part of the hardware of the mobile station 2 and executes various programs based on the program stored in the F-ROM 22. The F-ROM 22 is a ROM that stores the control program in a rewritable manner. Various programs necessary for the second operation are stored in advance. The RAM 23 stores temporary data generated when the program is executed. The control program stored in the F-ROM 22 is transferred to the RAM 23 when the program is executed, and the device program is executed on the RAM 23.

また、SRAM24は電源がオフとなっても記憶内容を保持可能なメモリであり、図2に示すように、基地局1から送信されてきた修正プログラムを格納する修正プログラム格納部31、制御プログラムの起動終了フラグを格納する起動終了フラグ格納部32、実行している修正プログラムの識別コードの情報を記憶する識別コード情報格納部33、各識別コードの修正プログラムの異常を記憶する異常フラグ格納部34を備えている。無線部25は基地局1の無線部と交信可能とするための自動車電話や携帯電話等の無線装置であり、基地局1から無線送信された修正プログラムや指示情報を受信するとともに、基地局1に移動局2の位置情報や機器の動作情報を送信する。また、GPS26はGPS衛星からの位置情報を受信して移動局2の現在位置を測定する。   The SRAM 24 is a memory that can retain the stored contents even when the power is turned off. As shown in FIG. 2, the correction program storage unit 31 that stores the correction program transmitted from the base station 1 and the control program A start / end flag storage unit 32 for storing a start / end flag, an identification code information storage unit 33 for storing identification code information of a correction program being executed, and an abnormality flag storage unit 34 for storing an abnormality of a correction program for each identification code It has. The wireless unit 25 is a wireless device such as a car phone or a cellular phone that enables communication with the wireless unit of the base station 1. The wireless unit 25 receives a correction program and instruction information transmitted wirelessly from the base station 1, and The mobile station 2 transmits the position information of the mobile station 2 and the operation information of the device. The GPS 26 receives position information from a GPS satellite and measures the current position of the mobile station 2.

次に、タクシー会社等の基地局1から多数の移動局2に一斉にプログラム修正情報を送信する場合の、移動局2でのプログラム変更の動作を図3のフローチャートにより説明する。
基地局1から修正プログラム及び変更指示情報が一斉に移動局2に送信されると、移動局2の無線部25が基地局1からの送信情報を受信して、CPU21に送る。一方、CPU21は機器の動作中、修正プログラムを受信したか否かを常時判別しており(ステップ101)、無線部25から修正プログラムを受けると、修正プログラムをSRAM24の修正プログラム格納部31に記憶する(ステップ102)。
Next, the operation of changing the program in the mobile station 2 when the program correction information is transmitted all at once from the base station 1 such as a taxi company to a large number of mobile stations 2 will be described with reference to the flowchart of FIG.
When the correction program and the change instruction information are simultaneously transmitted from the base station 1 to the mobile station 2, the radio unit 25 of the mobile station 2 receives the transmission information from the base station 1 and sends it to the CPU 21. On the other hand, the CPU 21 always determines whether or not a correction program has been received during the operation of the device (step 101). When the correction program is received from the wireless unit 25, the correction program is stored in the correction program storage unit 31 of the SRAM 24. (Step 102).

そして、基地局1から受信した情報に変更指示があるか否かを判別し(ステップ103)、基地局1から変更指示があった場合には、CPU21はRAM23上に展開されている制御プログラムをSRAM24の修正プログラム格納部31に記憶されている修正プログラムで変更する(ステップ104)。なお、プログラムの変更は機器の制御動作を停止した状態で行うことが好ましいが、修正プログラムには修正すべきプログラムのアドレスが記載されているので、そのアドレスをバッチ処理していない期間に、その部分を修正することが可能である。
一方、ステップ103において、変更指示がないと判別した場合には、CPU21は変更プログラムを終了する。
Then, it is determined whether or not there is a change instruction in the information received from the base station 1 (step 103). When there is a change instruction from the base station 1, the CPU 21 loads a control program developed on the RAM 23. The modification program stored in the modification program storage unit 31 of the SRAM 24 is changed (step 104). Note that it is preferable to change the program while the control operation of the device is stopped. However, since the address of the program to be corrected is described in the correction program, the address is not changed during the batch processing. It is possible to modify the part.
On the other hand, if it is determined in step 103 that there is no change instruction, the CPU 21 ends the change program.

上記の実施例では、基地局1から変更指示情報をすべての移動局2に送信し、すべての移動局2でプログラム変更を行う場合を説明したが、特定の移動局を指定して、指定された移動局のみプログラム変更を実行させるようにすることも可能である。
図4のフローチャートは、プログラム変更を行う車両を指定する場合の移動局2でのプログラム変更の動作を示す。
この場合、基地局1は変更指示情報にプログラム変更を行うべき車両の車両IDを付加して各移動局に送信する。そして、上記と同様に、基地局1から修正プログラム及び指定車両IDを含む変更指示情報が一斉に移動局2に送信されると、移動局2の無線部25が基地局1からの送信情報を受信してCPU21に送る。一方、CPU21は機器の動作中、修正プログラムを受信したか否かを常時判別しており(ステップ201)、無線部25から修正プログラムを受けると、修正プログラムをSRAM24の修正プログラム格納部31に記憶する(ステップ202)。
In the above embodiment, the case where the change instruction information is transmitted from the base station 1 to all the mobile stations 2 and the program change is performed in all the mobile stations 2 has been described. It is also possible to cause only the mobile station to execute the program change.
The flowchart of FIG. 4 shows the program change operation in the mobile station 2 when a vehicle for program change is designated.
In this case, the base station 1 adds the vehicle ID of the vehicle whose program is to be changed to the change instruction information and transmits it to each mobile station. Similarly to the above, when the change instruction information including the correction program and the designated vehicle ID is transmitted from the base station 1 to the mobile station 2 at the same time, the radio unit 25 of the mobile station 2 transmits the transmission information from the base station 1. Receive and send to CPU 21. On the other hand, the CPU 21 always determines whether or not a correction program has been received during operation of the device (step 201). When the CPU 21 receives the correction program from the wireless unit 25, the correction program is stored in the correction program storage unit 31 of the SRAM 24. (Step 202).

次に、変更指示があるか否かを判別し(ステップ203)、基地局1から変更指示があった場合には、CPU21は変更指示情報に含まれる指定車両IDと自車両の車両IDとを比較することにより、自車両が指定車両か否かを判別する(ステップ204)。自車両が指定車両であった場合には、CPU21はRAM23上に展開されている制御プログラムをSRAM24の修正プログラム格納部31に記憶されている修正プログラムで変更する(ステップ205)。
一方、ステップ203、204において、変更指示なしあるいは、自車両が指定車両でないと判別した場合には、CPU21は変更プログラムを終了する。
これにより、特定の車両、例えば、特殊なプログラムで動作している特殊車両や、新規プログラムの効果確認を行うための試験車両等にのみプログラムの変更を実施させることができる。
Next, it is determined whether or not there is a change instruction (step 203). When there is a change instruction from the base station 1, the CPU 21 obtains the designated vehicle ID and the vehicle ID of the host vehicle included in the change instruction information. By comparing, it is determined whether or not the host vehicle is a designated vehicle (step 204). If the host vehicle is a designated vehicle, the CPU 21 changes the control program developed on the RAM 23 with the correction program stored in the correction program storage unit 31 of the SRAM 24 (step 205).
On the other hand, if it is determined in steps 203 and 204 that there is no change instruction or that the host vehicle is not a designated vehicle, the CPU 21 ends the change program.
As a result, the program can be changed only for a specific vehicle, for example, a special vehicle operating with a special program, a test vehicle for confirming the effect of the new program, or the like.

また、車両を指定するのではなく、所定のエリア内にいる車両のみプログラム変更を実行させることも可能であり、図5のフローチャートはこのように所定のエリア内にいる車両のみプログラム変更を行う場合の、移動局2でのプログラム変更の動作を示す。
この場合、基地局1は変更指示情報にプログラム変更を行うべきエリアの情報を付加して各移動局2に送信する。そして、上記と同様に、基地局1から修正プログラム及び指定エリア情報を含む変更指示情報が一斉に移動局2に送信されると、移動局2の無線部25が基地局1からの送信情報を受信してCPU21に送る。一方、CPU21は機器の動作中、修正プログラムを受信したか否かを常時判別しており(ステップ301)、無線部25から修正プログラムを受けると、修正プログラムをSRAM24の修正プログラム格納部31に記憶する(ステップ302)。
Further, instead of designating a vehicle, it is also possible to execute a program change only for a vehicle in a predetermined area, and the flowchart of FIG. 5 shows a case where the program is changed only for a vehicle in a predetermined area as described above. The operation of program change in the mobile station 2 is shown.
In this case, the base station 1 adds information on the area where the program should be changed to the change instruction information and transmits the information to each mobile station 2. Similarly to the above, when the change instruction information including the correction program and the designated area information is transmitted from the base station 1 to the mobile station 2 at the same time, the radio unit 25 of the mobile station 2 transmits the transmission information from the base station 1. Receive and send to CPU 21. On the other hand, the CPU 21 always determines whether or not a correction program has been received during the operation of the device (step 301). When the correction program is received from the wireless unit 25, the correction program is stored in the correction program storage unit 31 of the SRAM 24. (Step 302).

次に、CPU21は変更指示があるか否かを判別し(ステップ303)、基地局1から変更指示があった場合には、CPU21は変更指示情報に含まれる指定エリア情報とGPS26からの自車両の位置情報とを比較することにより、自車両が指定エリア内にいるか否かを判別する(ステップ304)。そして、自車両の位置が指定エリア内であった場合には、CPU1はRAM23上に展開されている制御プログラムをSRAM24の修正プログラム格納部31に記憶されている修正プログラムで変更する(ステップ305)。
一方、ステップ303、304において、変更指示なし、あるいは自車両が指定エリア外と判別した場合には、CPU21は変更プログラムを終了する。
これにより、移動局の受信感度がいい場所を特定できている場合、その場所を指定すれば、プログラム修正情報をより確実に伝送することが可能となる。また、例えば、特定の地域で稼動する車両のみ変更が必要なプログラムが発生した場合には、その地域の車両のみでプログラム変更を実施させることができる。
Next, the CPU 21 determines whether or not there is a change instruction (step 303), and when there is a change instruction from the base station 1, the CPU 21 specifies the designated area information included in the change instruction information and the own vehicle from the GPS 26. It is determined whether or not the host vehicle is in the designated area by comparing with the position information (step 304). If the position of the host vehicle is within the designated area, the CPU 1 changes the control program developed on the RAM 23 with the correction program stored in the correction program storage unit 31 of the SRAM 24 (step 305). .
On the other hand, if it is determined in steps 303 and 304 that there is no change instruction or that the host vehicle is outside the designated area, the CPU 21 ends the change program.
As a result, when a location having good reception sensitivity of the mobile station can be identified, the program correction information can be transmitted more reliably by designating the location. Further, for example, when a program that needs to be changed only for a vehicle operating in a specific area is generated, the program change can be performed only with the vehicle in that area.

また、基地局からの指定によらず、移動局の機器の稼動状態に応じてプログラムを変更するかどうかを決定することも可能である。
例えば、タクシーの車両配送システムでは、車両の状態として、「実車」、「空車(待機中)」、「空車(流し中)」、「配車」、「休憩」、「回送」、「閉局」等の設定が可能であり、配送メータからの信号及び乗務員の指示によりこれらの設定が変更される。なお、「実車」は乗客輸送中であり、「空車(待機中)」は停車状態で客待ちしている状態であり、「空車(流し中)」は運転状態で客待ちしている状態である。また、「配車」は配車指示を受けて顧客の場所への移動中であり、「休憩」は休憩中、「回送」は車庫へ戻る途中であり、「閉局」はシステムの動作を終了した状態である。このうち、例えば、「休憩」、「回送」の状態のときのみ、プログラムの変更を行うように設定することができる。
It is also possible to determine whether to change the program according to the operating state of the mobile station device, regardless of designation from the base station.
For example, in a taxi vehicle delivery system, the status of the vehicle is “actual vehicle”, “empty vehicle (standby)”, “empty vehicle (moving)”, “allocation”, “rest”, “forwarding”, “closed”, etc. These settings are changed by a signal from the delivery meter and an instruction from the crew. The “actual vehicle” is in passenger transportation, the “empty vehicle (standby)” is in a state where the passenger is waiting while the vehicle is stopped, and the “empty vehicle (in the sink)” is in a state where the passenger is waiting while driving. is there. In addition, “Vehicle allocation” is moving to the customer's location after receiving the vehicle allocation instruction, “Rest” is resting, “Forwarding” is in the middle of returning to the garage, and “Closed” is the state where the operation of the system is finished It is. Among these, for example, it is possible to set so as to change the program only in the states of “break” and “forward”.

図6のフローチャートはこのように移動局の機器の稼動状態に応じてプログラム変更を行う場合の、移動局2でのプログラム変更の動作を示す。
上記と同様に、基地局1から修正プログラム及び変更指示情報が一斉に移動局2に送信されると、移動局2の無線部25が基地局1からの送信情報を受信してCPU21に送る。一方、CPU21は機器の動作中、修正プログラムを受信したか否かを常時判別しており(ステップ401)、無線部25から修正プログラムを受けると、修正プログラムをSRAM24の修正プログラム格納部31に記憶する(ステップ402)。
The flowchart of FIG. 6 shows the operation of changing the program in the mobile station 2 when the program is changed according to the operating state of the mobile station device.
Similarly to the above, when the correction program and the change instruction information are simultaneously transmitted from the base station 1 to the mobile station 2, the radio unit 25 of the mobile station 2 receives the transmission information from the base station 1 and sends it to the CPU 21. On the other hand, the CPU 21 always determines whether or not a correction program has been received during operation of the device (step 401). When the correction program is received from the wireless unit 25, the correction program is stored in the correction program storage unit 31 of the SRAM 24. (Step 402).

次に、変更指示があるか否かを判別し(ステップ403)、基地局1から変更指示があった場合には、CPU21は現在の機器の稼動状態が「休憩」または「回送」であるかを判別することにより、プログラム変更が可能な状態か否かを判別する(ステップ404)。そして、自車両の機器の稼動状態が「休憩」または「回送」であった場合には、CPU21はRAM23上に展開されている制御プログラムをSRAM24の修正プログラム格納部31に記憶されている修正プログラムで変更し(ステップ405)、「休憩」または「回送」以外の状態であった場合には、プログラムを変更せずに変更プログラムを終了する。
これにより、例えば、「実車」、「配送中」等のプログラム変更が好ましくない場合には、プログラム変更を実行しないようにすることができる。
Next, it is determined whether or not there is a change instruction (step 403), and if there is a change instruction from the base station 1, the CPU 21 determines whether the current operating state of the device is “rest” or “forward”. Is determined to determine whether or not the program can be changed (step 404). If the operating state of the equipment of the host vehicle is “rest” or “forward”, the CPU 21 stores the control program developed on the RAM 23 in the correction program storage unit 31 of the SRAM 24. (Step 405), and if it is in a state other than “rest” or “forward”, the program is not changed and the change program is terminated.
Thereby, for example, when a program change such as “actual vehicle” or “during delivery” is not preferable, the program change can be prevented from being executed.

上記では、システム機器の稼動中の動作について説明したが、次に、移動局2のシステム機器の起動時の動作について、図7のフローチャートにより説明する。
システム機器の電源を投入すると、CPU21はF−ROM22に記憶されている制御プログラムをRAM23に転送する(ステップ501)。次に、CPU21はSRAM24の修正プログラム格納部31に記憶されている修正プログラムの有無を判別することにより、プログラムの修正があるか否かを判別する(ステップ502)。プログラム修正がない場合には、CPU21はRAM23に展開されているプログラムに基づいて起動を行う(ステップ504)。一方、プログラム修正があった場合には、CPU21はRAM23上に展開されているプログラムをSRAM24の修正プログラム格納部31に記憶されているプログラムで変更した(ステップ503)後、起動を行う(ステップ504)。
In the above, the operation during the operation of the system device has been described. Next, the operation when the system device of the mobile station 2 is activated will be described with reference to the flowchart of FIG.
When the system device is turned on, the CPU 21 transfers the control program stored in the F-ROM 22 to the RAM 23 (step 501). Next, the CPU 21 determines whether there is a program correction by determining whether there is a correction program stored in the correction program storage unit 31 of the SRAM 24 (step 502). If there is no program correction, the CPU 21 starts up based on the program developed in the RAM 23 (step 504). On the other hand, if there is a program correction, the CPU 21 changes the program developed on the RAM 23 with the program stored in the correction program storage unit 31 of the SRAM 24 (step 503) and then starts (step 504). ).

上記のシステム機器の起動の実施例では、修正プログラムがあった場合には、自動的にプログラムを修正したが、修正プログラムの受信中にエラーが発生した場合など、修正プログラムにより機器の動作が不良となることがあるので、このような場合の対処として、修正プログラムを識別コードで管理する方法について、以下、図8のシステム機器の起動時のフローチャートにより説明する。   In the above example of starting the system device, if there was a correction program, the program was automatically corrected. However, if an error occurred while receiving the correction program, the operation of the device was defective due to the correction program. Therefore, as a countermeasure for such a case, a method of managing the correction program with the identification code will be described below with reference to a flowchart at the time of activation of the system device in FIG.

システム機器の電源を投入すると、CPU21はSRAM24の起動終了フラグ格納部32に記憶されている起動終了フラグがオフになっているか否かを判別する(ステップ601)。起動終了フラグがオフの場合、CPU21はSRAM24の起動終了フラグ格納部32に記憶されている起動終了フラグをオンにする(ステップ602)。次に、CPU21はF−ROM22に記憶されている制御プログラムをRAM23に転送する(ステップ603)。この後、SRAM24の修正プログラム格納部31に記憶されている修正プログラムの有無を判別することにより、プログラムの修正があるか否かを判別する(ステップ604)。プログラム修正がない場合には、RAM23に展開されているプログラムに基づいて起動を行う(ステップ608)。   When the power of the system device is turned on, the CPU 21 determines whether or not the activation end flag stored in the activation end flag storage unit 32 of the SRAM 24 is off (step 601). When the activation end flag is off, the CPU 21 turns on the activation end flag stored in the activation end flag storage unit 32 of the SRAM 24 (step 602). Next, the CPU 21 transfers the control program stored in the F-ROM 22 to the RAM 23 (step 603). Thereafter, it is determined whether there is a program correction by determining whether there is a correction program stored in the correction program storage unit 31 of the SRAM 24 (step 604). If there is no program correction, activation is performed based on the program loaded in the RAM 23 (step 608).

一方、プログラム修正があった場合には、CPU21はSRAM24の識別コード情報格納部33に記憶されている修正プログラムの識別コードの更新情報とSRAM23の修正プログラム格納部31に記憶されている修正プログラムの識別コードとを比較し、新しい修正プログラムがあるか否かを判別する(ステップ605)。新しい修正プログラムがあった場合には、その修正プログラムの識別コードをSRAM24の識別コード情報格納部33に追加する(ステップ606)。次に、CPU21はRAM23上に展開されているプログラムをSRAM24の修正プログラム格納部31に記憶されている修正プログラムで変更した(ステップ607)後、制御プログラムを起動する(ステップ608)。なお、ステップ607において、CPU21はSRAM24の異常フラグ格納部34に記憶されている各識別コードの異常フラグを確認し、異常フラグがオンになっていない識別コードの修正情報のみによってプログラムを変更する。   On the other hand, when there is a program modification, the CPU 21 updates the identification code update information of the modification program stored in the identification code information storage unit 33 of the SRAM 24 and the modification program stored in the modification program storage unit 31 of the SRAM 23. The identification code is compared to determine whether there is a new correction program (step 605). If there is a new correction program, the identification code of the correction program is added to the identification code information storage unit 33 of the SRAM 24 (step 606). Next, the CPU 21 changes the program developed on the RAM 23 with the correction program stored in the correction program storage unit 31 of the SRAM 24 (step 607), and then starts the control program (step 608). In step 607, the CPU 21 checks the abnormality flag of each identification code stored in the abnormality flag storage unit 34 of the SRAM 24, and changes the program only by the correction information of the identification code for which the abnormality flag is not turned on.

そして、この制御プログラム実行中、CPU21は制御終了が指示されたか否かを判別する(ステップ609)。制御終了が指示された場合、CPU21は制御プログラムの終了処理を実行し(ステップ610)、終了処理が完了した後、CPU21はSRAM24の起動終了フラグ格納部32に記憶されている起動終了フラグをオフにする(ステップ611)。これにより、制御プログラムが異常終了した場合には、起動終了フラグがオンのままとなる。   Then, during execution of the control program, the CPU 21 determines whether or not an instruction to end control is given (step 609). When the control end is instructed, the CPU 21 executes a control program end process (step 610). After the end process is completed, the CPU 21 turns off the start end flag stored in the start end flag storage unit 32 of the SRAM 24. (Step 611). As a result, when the control program ends abnormally, the start / end flag remains on.

一方、ステップ601において、起動終了フラグがオンとなっていると判別した場合には、前回修正を行ったプログラムにエラーがあると判断して、CPU21はSRAM24の識別コード情報格納部33に記憶されている最新の識別コードの修正プログラムにエラーがあると判断し、SRAM24の異常フラグ格納部34に記憶されている、その修正プログラムの識別コードの異常フラグをオンにする。この後、ステップ602に移り、上記と同様に制御プログラムを起動する。
このように、修正プログラムにエラーがあって、プログラムが異常終了した場合には、次回からはエラーがあった修正プログラムによるプログラム変更が実施されないので、異常終了を防止することができる。
On the other hand, if it is determined in step 601 that the start / end flag is on, the CPU 21 determines that there is an error in the previously corrected program and the CPU 21 stores it in the identification code information storage unit 33 of the SRAM 24. It is determined that there is an error in the latest correction program of the identification code, and the abnormality flag of the identification code of the correction program stored in the abnormality flag storage unit 34 of the SRAM 24 is turned on. Thereafter, the process proceeds to step 602, and the control program is started in the same manner as described above.
As described above, when there is an error in the correction program and the program ends abnormally, the program change by the correction program having the error is not performed from the next time, so that the abnormal end can be prevented.

以上、基地局からすべての移動局に一斉に修正プログラムを送信する場合について説明したが、基地局から個別の移動局に接続して、あるいは各移動局が基地局に接続してプログラムを変更することも可能であり、以下これについて説明する。
図9は接続した移動局が設定エリア内にいる場合にのみプログラム修正を行なう場合の通信フローであり、基地局1と移動局2の通信が確立されると、移動局2はGPS26により検出した自車両の位置情報を基地局1に送信する。基地局1は送信されてきた移動局2の位置情報から移動局が設定エリア内にいるか否かを判別する。移動局2が設定エリア内にいない場合には、通信を終了し、移動局が設定エリア内にいる場合には、プログラム修正情報を送信する。これにより、移動局2は修正プログラムをSRAM24の修正プログラム格納部31に記憶した後、RAM23上に展開されている制御プログラムをSRAM24の修正プログラム格納部31に記憶されている修正プログラムで変更する。この後、移動局2は基地局1との通信を終了する。
As described above, the case where the correction program is transmitted from the base station to all the mobile stations at the same time has been described. However, the program is changed by connecting the base station to individual mobile stations or connecting each mobile station to the base station. This will be described below.
FIG. 9 is a communication flow when the program is corrected only when the connected mobile station is within the setting area. When the communication between the base station 1 and the mobile station 2 is established, the mobile station 2 detects by the GPS 26. The position information of the own vehicle is transmitted to the base station 1. The base station 1 determines whether or not the mobile station is within the set area from the transmitted position information of the mobile station 2. When the mobile station 2 is not within the setting area, the communication is terminated, and when the mobile station is within the setting area, program correction information is transmitted. As a result, the mobile station 2 stores the correction program in the correction program storage unit 31 of the SRAM 24, and then changes the control program developed on the RAM 23 with the correction program stored in the correction program storage unit 31 of the SRAM 24. Thereafter, the mobile station 2 ends communication with the base station 1.

上記の実施例では、移動局2が設定エリア内にいる場合に修正プログラムを送信したが、移動局の機器の稼動状態に応じて修正プログラムの送信の是非を決定することも可能である。
図10は移動局の機器が所定の稼動状態にある場合にのみプログラム変更を行なう場合の通信フローであり、基地局1と移動局2の通信が確立されると、移動局2は自車両の機器の稼動状態情報を基地局1に送信する。基地局1は送信されてきた移動局2の機器の稼動状態情報から修正情報を送信可能か否かを判別する。移動局2の機器の稼動状態が、例えば、「休憩」または「回送」以外の状態であった場合には、基地局1は通信を終了し、移動局2の稼動状態が「休憩」または「回送」であった場合には、プログラム修正情報を送信する。これにより、上記と同様に、移動局2は修正プログラムをSRAM24の修正プログラム格納部31に記憶した後、RAM23上に展開されている制御プログラムをSRAM24の修正プログラム格納部31に記憶されている修正プログラムで変更する。この後、移動局2は基地局1との通信を終了する。
In the above embodiment, the correction program is transmitted when the mobile station 2 is within the setting area, but it is also possible to determine whether the correction program should be transmitted according to the operating state of the mobile station device.
FIG. 10 is a communication flow when the program change is performed only when the mobile station device is in a predetermined operating state. When communication between the base station 1 and the mobile station 2 is established, the mobile station 2 The device operating state information is transmitted to the base station 1. The base station 1 determines whether or not the correction information can be transmitted from the operating state information of the device of the mobile station 2 that has been transmitted. For example, when the operation state of the device of the mobile station 2 is a state other than “rest” or “forward”, the base station 1 ends the communication, and the operation state of the mobile station 2 is “rest” or “ If it is “forward”, the program correction information is transmitted. Thus, as described above, the mobile station 2 stores the correction program in the correction program storage unit 31 of the SRAM 24, and then the control program developed on the RAM 23 is stored in the correction program storage unit 31 of the SRAM 24. Change programmatically. Thereafter, the mobile station 2 ends communication with the base station 1.

また、移動局で変更を実施した修正プログラムの識別コードを基地局で管理することもでき、このように移動局の修正プログラムの識別コードの管理を行う場合の通信フローを図11により説明する。
基地局1と移動局2の通信が確立されると、基地局1は移動局2に修正プログラム情報、修正識別コードを送信する。これにより、移動局2は修正プログラムをSRAM24の修正プログラム格納部31に記憶した後、RAM23上に展開されている制御プログラムをSRAM24の修正プログラム格納部31に記憶されている修正プログラムで変更するとともに、SRAM24の識別コード情報格納部33に新たに変更を行った修正プログラムの識別コードを追加する。この後、移動局2はSRAM24の識別コード情報格納部33に記憶されている識別コードを基地局1に送信し、基地局1は対象の移動局2のプログラム変更情報を更新した後、移動局2との通信を終了する。
これにより、各移動局のプログラム変更状況を基地局で管理でき、移動局毎に必要な修
正プログラムを送信することが可能となる。
Further, the identification code of the correction program changed in the mobile station can be managed by the base station, and the communication flow when managing the identification code of the correction program of the mobile station in this way will be described with reference to FIG.
When communication between the base station 1 and the mobile station 2 is established, the base station 1 transmits the correction program information and the correction identification code to the mobile station 2. As a result, the mobile station 2 stores the correction program in the correction program storage unit 31 of the SRAM 24 and then changes the control program developed on the RAM 23 with the correction program stored in the correction program storage unit 31 of the SRAM 24. Then, the identification code of the modified program that has been newly changed is added to the identification code information storage unit 33 of the SRAM 24. Thereafter, the mobile station 2 transmits the identification code stored in the identification code information storage unit 33 of the SRAM 24 to the base station 1. After updating the program change information of the target mobile station 2, the base station 1 2 is terminated.
Thereby, the program change status of each mobile station can be managed by the base station, and a necessary correction program can be transmitted for each mobile station.

また、修正プログラムにエラーがあったか否かを基地局で管理することも可能であり、このように基地局でエラーを管理する場合の通信フローを図12により説明する。
移動局2は制御プログラムを起動すると、基地局1との通信を行い、基地局1との通信が確立されると、移動局2は基地局1に起動通知を行う。起動通知を受けると、基地局1は該当する移動局2の起動終了フラグをオンした後、その移動局2に送信すべき修正プログラムがあった場合、修正情報、修正識別コードを移動局2に送信する。これにより、移動局2は修正プログラムをSRAM24の修正プログラム格納部31に記憶した後、RAM23上に展開されている制御プログラムをSRAM24の修正プログラム格納部31に記憶されている修正プログラムで変更するとともに、SRAM24の識別コード情報格納部33に新たに変更を行った修正プログラムの識別コードを追加する。
It is also possible for the base station to manage whether or not there is an error in the correction program, and the communication flow when the error is managed in this way in the base station will be described with reference to FIG.
When the mobile station 2 activates the control program, the mobile station 2 communicates with the base station 1. When communication with the base station 1 is established, the mobile station 2 notifies the base station 1 of activation. Upon receiving the activation notification, the base station 1 turns on the activation end flag of the corresponding mobile station 2, and if there is a modification program to be transmitted to the mobile station 2, the modification information and the modification identification code are sent to the mobile station 2. Send. As a result, the mobile station 2 stores the correction program in the correction program storage unit 31 of the SRAM 24 and then changes the control program developed on the RAM 23 with the correction program stored in the correction program storage unit 31 of the SRAM 24. Then, the identification code of the modified program that has been newly changed is added to the identification code information storage unit 33 of the SRAM 24.

この後、移動局2はSRAM24の識別コード情報格納部33に記憶されている識別コードを基地局1に送信して移動局2との通信を終了する。そして、移動局2の制御プログラムが終了する場合、正常終了すると、移動局2は基地局1との通信を行い、通信が確立すると、移動局2は基地局1に正常終了を通知し、基地局1はこの正常終了を受信すると、該当する移動局2の起動終了フラグをオフした後、通信を終了する。   Thereafter, the mobile station 2 transmits the identification code stored in the identification code information storage unit 33 of the SRAM 24 to the base station 1 and ends the communication with the mobile station 2. When the control program of the mobile station 2 ends, when the mobile station 2 ends normally, the mobile station 2 communicates with the base station 1, and when communication is established, the mobile station 2 notifies the base station 1 of the normal end, Upon receiving this normal end, the station 1 turns off the activation end flag of the corresponding mobile station 2 and then ends the communication.

このように、基地局で各移動局の制御プログラムの正常終了を監視することにより、次回起動通知があった場合に、その移動局の起動終了フラグがオンの場合には、その移動局の制御プログラムが前回異常終了したことを判別することができるので、新たな修正プログラムの送信を中止したり、異常終了した識別コードの修正プログラムを再度送信することにより、その移動局の異常終了に対処することが可能となる。   In this way, by monitoring the normal termination of the control program of each mobile station at the base station, when the next activation notification is received and the activation termination flag of that mobile station is on, the control of the mobile station Since it is possible to determine that the program ended abnormally last time, it is possible to cope with the abnormal termination of the mobile station by stopping the transmission of a new correction program or sending the correction program of the identification code that ended abnormally again It becomes possible.

なお、上記の実施例では、本発明のプログラム変更方法をタクシーの配送システムに適用した例について説明したが、本発明のプログラム変更方法は移動局を備えたシステム、特に車両よりなる移動局を備えた様々なシステムに適用することが可能である。   In the above embodiment, an example in which the program change method of the present invention is applied to a taxi delivery system has been described. However, the program change method of the present invention includes a system including a mobile station, particularly a mobile station including a vehicle. It can be applied to various systems.

本発明を実施するタクシーの配送システムの概略ブロック図である。It is a schematic block diagram of the delivery system of the taxi which implements this invention. SRAM24の記憶内容を説明する図である。FIG. 4 is a diagram for explaining storage contents of an SRAM 24. プログラム変更の動作を示すフローチャートである。It is a flowchart which shows the operation | movement of a program change. プログラム変更を行う車両を指定する場合のプログラム変更の動作を示すフローチャートである。It is a flowchart which shows the operation | movement of a program change in the case of designating the vehicle which changes a program. 所定のエリア内にいる車両のみプログラム変更を行う場合の動作を示すフローチャートである。It is a flowchart which shows operation | movement in the case of changing a program only for the vehicle in a predetermined area. 移動局の機器の稼動状態に応じてプログラム変更を行う場合の動作を示すフローチャートである。It is a flowchart which shows operation | movement in the case of changing a program according to the operation state of the apparatus of a mobile station. システム機器の起動時の動作を示すフローチャートである。It is a flowchart which shows the operation | movement at the time of starting of a system apparatus. システム機器の起動時の他の動作を示すフローチャートである。It is a flowchart which shows the other operation | movement at the time of starting of a system apparatus. 移動局が設定エリア内にいる場合にのみプログラム修正を行なう場合の通信フローを示す図である。It is a figure which shows the communication flow in the case of performing program correction only when a mobile station exists in a setting area. 移動局の機器が所定の稼動状態にある場合にのみプログラム変更を行なう場合の通信フローを示す図である。It is a figure which shows the communication flow in the case of changing a program only when the apparatus of a mobile station is in a predetermined operation state. 基地局で移動局の修正プログラムの識別コードの管理を行う場合の通信フローを示す図である。It is a figure which shows the communication flow in the case of managing the identification code of the correction program of a mobile station in a base station. 基地局で移動局でのエラーを管理する場合の通信フローを示す図である。It is a figure which shows the communication flow in the case of managing the error in a mobile station in a base station.

符号の説明Explanation of symbols

1 基地局
2 移動局
21 CPU
22 F−ROM
23 RAM
24 SRAM
25 無線機
26 GPS
1 base station 2 mobile station 21 CPU
22 F-ROM
23 RAM
24 SRAM
25 Radio 26 GPS

Claims (13)

プログラムによって動作するCPUを搭載した機器よりなる移動局と、
上記移動局との間で情報を送受信可能な通信手段を備えた基地局からなり、
ROMに記憶されたプログラムをRAMに転送し、RAM上で実行する上記機器のプログラムの変更方法であって、
上記基地局から上記移動局にプログラム修正情報を送信し、
上記移動局が受信した修正情報によってRAM内のプログラム情報を変更することを特
徴とするプログラム変更方法。
A mobile station comprising a device equipped with a CPU that operates according to a program;
A base station provided with a communication means capable of transmitting and receiving information to and from the mobile station,
A method for changing a program of the above-described device for transferring a program stored in a ROM to a RAM and executing the program on the RAM,
Send program correction information from the base station to the mobile station,
A program change method, comprising: changing program information in a RAM according to correction information received by the mobile station.
請求項1に記載のプログラム変更方法において、
上記移動局が上記基地局から送信されたプログラム修正情報を電源オフ時にも保持可能なメモリに保存し、
修正情報があるときは、上記移動局が機器の起動時に、ROMに記憶されたプログラムをRAMに転送した後、RAMに展開されたプログラム情報を上記メモリに記憶されたプログラム修正情報によって変更することを特徴とするプログラム変更方法。
In the program change method of Claim 1,
The mobile station stores the program correction information transmitted from the base station in a memory that can be held even when the power is turned off,
When there is correction information, the mobile station transfers the program stored in the ROM to the RAM when the device is started up, and then changes the program information expanded in the RAM with the program correction information stored in the memory. A program change method characterized by the above.
請求項1に記載のプログラム変更方法において、
上記基地局がプログラム修正情報と、修正情報によりプログラム情報を変更する変更指示情報を送信し、
上記移動局が上記変更指示情報を受信した場合に、RAM内のプログラム情報を変更することを特徴とするプログラム変更方法。
In the program change method of Claim 1,
The base station transmits program modification information and change instruction information for changing the program information according to the modification information,
A program change method, comprising: changing program information in a RAM when the mobile station receives the change instruction information.
請求項1に記載のプログラム変更方法において、
上記基地局がプログラム修正情報及び指定移動局情報を送信し、
上記移動局が、自局が上記基地局の指定移動局情報によって指定された移動局か否かを判断し、
自局が指定移動局のときのみ、RAM内のプログラム情報を変更することを特徴とするプログラム変更方法。
In the program change method of Claim 1,
The base station transmits program modification information and designated mobile station information,
The mobile station determines whether or not the mobile station is a mobile station designated by the designated mobile station information of the base station,
A program change method characterized by changing program information in a RAM only when the own station is a designated mobile station.
請求項1に記載のプログラム変更方法において、
上記基地局がプログラム修正情報及び指定エリア情報を送信し、
上記移動局が位置検出手段により検出した自局の位置により、自局が上記基地局の指定エリア情報によって指定されたエリア内にいるか否かを判断し、
指定エリア内にいるときのみ、RAM内のプログラム情報を変更することを特徴とするプログラム変更方法。
In the program change method of Claim 1,
The base station transmits program correction information and designated area information,
Based on the position of the mobile station detected by the mobile station, the mobile station determines whether the mobile station is within the area designated by the designated area information of the base station,
A program change method characterized by changing program information in a RAM only when in a designated area.
請求項1に記載のプログラム変更方法において、
上記移動局が移動局の機器の稼動状態に応じて、RAM内のプログラム情報を変更するか否かを決定することを特徴とするプログラム変更方法。
In the program change method of Claim 1,
A program changing method, wherein the mobile station determines whether or not to change program information in the RAM in accordance with an operating state of a device of the mobile station.
請求項1に記載のプログラム変更方法において、
上記移動局が位置検出手段により検出した自局の位置情報を上記基地局に送信し、
上記基地局が上記移動局からの位置情報に基づき所定のエリア内の移動局のみに、プログラム修正情報を送信することを特徴とするプログラム変更方法。
In the program change method of Claim 1,
The mobile station transmits its own location information detected by the location detection means to the base station,
A program change method, wherein the base station transmits program correction information only to a mobile station in a predetermined area based on position information from the mobile station.
請求項1に記載のプログラム変更方法において、
上記移動局が移動局の機器の稼動状態情報を上記基地局に送信し、
上記基地局が上記移動局からの稼動状態情報に基づき所定の稼動状態の移動局のみに、プログラム修正情報を送信することを特徴とするプログラム変更方法。
In the program change method of Claim 1,
The mobile station sends the mobile station device operating status information to the base station,
A program changing method, wherein the base station transmits program correction information only to a mobile station in a predetermined operating state based on operating state information from the mobile station.
請求項1に記載のプログラム変更方法において、
上記基地局がプログラム修正情報とともに、該当する修正プログラムの識別コードを送信し、
上記移動局がプログラム修正情報によりプログラムを変更している場合には、その修正情報の識別コードを上記基地局に送信することを特徴とするプログラム変更方法。
In the program change method of Claim 1,
The above base station transmits the identification code of the corresponding correction program together with the program correction information,
When the mobile station is changing a program according to program correction information, a program change method characterized by transmitting an identification code of the correction information to the base station.
請求項1〜請求項8のいずれかに記載のプログラム変更方法において、
上記移動局が修正プログラムにより正常に起動、終了したか否かを判別し、正常に起動、終了していない場合には、当該修正プログラムによるプログラム変更を実行しないことを特徴とするプログラム変更方法。
In the program change method in any one of Claims 1-8,
A program change method comprising: determining whether or not the mobile station has been normally started and ended by a correction program, and not executing the program change by the correction program when the mobile station has not been normally started and ended.
請求項10に記載のプログラム変更方法において、
上記移動局が修正プログラムの識別コード毎に正常起動、終了を管理し、正常終了していないことを検知した場合には、当該識別コードの修正プログラムによるプログラム変更を実行しないことを特徴とするプログラム変更方法。
In the program change method of Claim 10,
A program characterized in that the mobile station manages normal activation and termination for each identification code of a correction program, and does not execute a program change by the correction program of the identification code when it is detected that the mobile station has not terminated normally. Modification method.
請求項1〜請求項8のいずれかに記載のプログラム変更方法において、
上記移動局がプログラムが正常に起動、終了したか否かを判別し、正常に起動、終了した場合には、上記基地局に起動、終了を通知し、
上記基地局が上記移動局の起動、終了通知により、移動局の異常終了を検知することを特徴とするプログラム変更方法。
In the program change method in any one of Claims 1-8,
The mobile station determines whether or not the program has started and ended normally, and when it has started and ended normally, notifies the base station of the start and end,
A program change method, wherein the base station detects an abnormal end of a mobile station based on a start / end notification of the mobile station.
基地局から送信されたプログラム修正情報を受信し、該受信したプログラム修正情報によってプログラム情報を変更する移動局であって、
ROMに記憶されたプログラムをRAMに転送して実行する制御手段を備え、
該制御手段は、RAM上で前記受信したプログラム修正情報に基づいてROMに記憶されたプログラムの変更を行うことを特徴とする移動局。
A mobile station that receives program modification information transmitted from a base station and changes program information according to the received program modification information,
Control means for transferring the program stored in the ROM to the RAM and executing it,
The control means changes the program stored in the ROM based on the received program modification information on the RAM.
JP2003317625A 2003-09-10 2003-09-10 Program operation change method Pending JP2005085054A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2003317625A JP2005085054A (en) 2003-09-10 2003-09-10 Program operation change method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2003317625A JP2005085054A (en) 2003-09-10 2003-09-10 Program operation change method

Publications (2)

Publication Number Publication Date
JP2005085054A JP2005085054A (en) 2005-03-31
JP2005085054A5 true JP2005085054A5 (en) 2006-10-26

Family

ID=34417117

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2003317625A Pending JP2005085054A (en) 2003-09-10 2003-09-10 Program operation change method

Country Status (1)

Country Link
JP (1) JP2005085054A (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5184151B2 (en) * 2008-03-11 2013-04-17 矢崎エナジーシステム株式会社 Operation information collection device and program update system
JP5183537B2 (en) * 2009-03-17 2013-04-17 三菱電機株式会社 Radio base station and radio communication system switching method
JP2016053845A (en) * 2014-09-03 2016-04-14 東芝テック株式会社 Information processor and program
JP6888845B2 (en) * 2017-07-04 2021-06-16 日本電気通信システム株式会社 Software updater
JP7419287B2 (en) * 2021-03-26 2024-01-22 本田技研工業株式会社 Vehicle program update management system and vehicle program update management method

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH02137046A (en) * 1988-11-18 1990-05-25 Nec Corp Batch data transfer system
JPH09167090A (en) * 1995-12-15 1997-06-24 Mitsubishi Electric Corp Electronic computer
JPH09331579A (en) * 1996-06-11 1997-12-22 Nec Commun Syst Ltd Program down-loading method to mobile terminal equipment
JPH1141639A (en) * 1997-07-23 1999-02-12 Seiko Epson Corp Mobile communication terminal and mobile communication system
JP2001265579A (en) * 2000-03-15 2001-09-28 Matsushita Electric Ind Co Ltd Semiconductor memory device
JP2002077442A (en) * 2000-09-01 2002-03-15 Nec Corp System for downloading of software or data to terminal
JP2002202895A (en) * 2000-12-28 2002-07-19 Toyota Central Res & Dev Lab Inc Device for updating vehicle basic function control program
JP4211241B2 (en) * 2001-06-01 2009-01-21 セイコーエプソン株式会社 Application service providing system, portable terminal, portable object management terminal, information processing terminal, portable terminal program, portable object management terminal program, and information processing terminal program
JP4574905B2 (en) * 2001-07-26 2010-11-04 株式会社小松製作所 Mobile communication device
JP3654247B2 (en) * 2002-01-11 2005-06-02 日本電気株式会社 Mobile phone firmware distribution system, mobile phone terminal and firmware update program thereof

Similar Documents

Publication Publication Date Title
US11084462B2 (en) Method for modifying safety and/or security-relevant control devices in a motor vehicle
US7676804B2 (en) Systems and method for remotely modifying software on a work machine
JP6780724B2 (en) In-vehicle update device, update processing program, and program update method
US20220036670A1 (en) Vehicle mounted update apparatus, update processing program, and program update method
US7054728B2 (en) Rewrite control apparatus for onboard program
CN107209700B (en) Control device, device for rewriting in-vehicle program provided with control device, and method for rewriting in-vehicle program
KR101412289B1 (en) ECU management system and method
CN114138296A (en) Multi-system gateway upgrading method, equipment and storage medium
JP2005085054A5 (en)
JP2005085054A (en) Program operation change method
WO2020162430A1 (en) Electronic control device and method for using non-volatile memory
CN106095474A (en) For the method and apparatus updating the software in means of transport
US20220276851A1 (en) Vehicle controller, updated program, program updating system, and writing device
JP5287632B2 (en) In-vehicle wireless communication device
JP7184855B2 (en) SOFTWARE UPDATE DEVICE, SOFTWARE UPDATE METHOD
JP6516719B2 (en) Elevator program rewriting system and program rewriting method
WO2023106072A1 (en) In-vehicle device, program, method for updating program, and in-vehicle updating system
US20190191321A1 (en) Information processing apparatus, information processing system, information processing method, communication apparatus, and communication system
US6760863B1 (en) CPU unit and run alternative control method of programmable controller
US11861354B2 (en) Update control system, update control method, non-transitory storage medium, and in-vehicle control device
JP2972742B1 (en) Control program update method
JP2974311B1 (en) Wireless base station device
US20070156865A1 (en) Method and apparatus for downloading an operating system or an application in cdma system
CN114138541A (en) Data configuration method of electric energy meter, electric energy meter and readable storage medium
JPH0895879A (en) Network system