JP2000020302A - Vending machine control information writing system - Google Patents

Vending machine control information writing system

Info

Publication number
JP2000020302A
JP2000020302A JP10189278A JP18927898A JP2000020302A JP 2000020302 A JP2000020302 A JP 2000020302A JP 10189278 A JP10189278 A JP 10189278A JP 18927898 A JP18927898 A JP 18927898A JP 2000020302 A JP2000020302 A JP 2000020302A
Authority
JP
Japan
Prior art keywords
vending machine
rewriting
program
flash rom
control
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP10189278A
Other languages
Japanese (ja)
Inventor
Toshiaki Kawaguchi
俊朗 河口
Morio Hirahara
茂利夫 平原
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.)
Toshiba Corp
Original Assignee
Toshiba 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 Toshiba Corp filed Critical Toshiba Corp
Priority to JP10189278A priority Critical patent/JP2000020302A/en
Publication of JP2000020302A publication Critical patent/JP2000020302A/en
Pending legal-status Critical Current

Links

Landscapes

  • Stored Programmes (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide a vending machine control information rewriting system with which a control program can be easily rewritten at a low cost by using a flash ROM for a control program storage memory of a vending machine and sales managing information can be efficiently investigated at a low cost. SOLUTION: A main control unit 1 of this vending machine controls respective parts 5-9 in the vending machine through a communication line 2 inside the unit and exchanges information with external equipment through a serial communication port 3 or a radio communication port 4. The main control unit 1 is composed of a microcomputer 1a for performing data processing, a flash ROM 1b for storing the control program of this microcomputer, a RAM 1c for temporarily storing data and an on-line communication part 1d in the vending machine. When rewriting the control information of the vending machine, a rewriting program is transferred from a rewriting device through the communication port to the vending machine.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、使用者が任意の商
品を選択して購入する自動販売機の制御プログラム記憶
メモリにフラッシュROMを用い、その制御プログラム
を書き換えるための自動販売機制御情報書換システムに
関する。
The present invention relates to a vending machine control information rewriting system for rewriting a control program of a vending machine in which a user selects and purchases an arbitrary commodity by using a flash ROM as a control program storage memory. About the system.

【0002】[0002]

【従来の技術】従来、使用者が任意の商品を選択して購
入する自動販売機において、マイクロコンピュータによ
る制御の制御プログラムは、EPROMなどの不揮発性
メモリに記憶されていた。この場合、制御内容を変更す
る場合、メモリを交換する、またはEPROMをいった
んはずしてメモリ内容を紫外線で消去して書き換える必
要があった。
2. Description of the Related Art Conventionally, in a vending machine in which a user selects and purchases an arbitrary product, a control program for control by a microcomputer is stored in a nonvolatile memory such as an EPROM. In this case, when the control content is changed, it is necessary to replace the memory or to remove the EPROM once and erase and rewrite the memory content with ultraviolet rays.

【0003】[0003]

【発明が解決しようとする課題】しかしながら、自動販
売機は、冷蔵庫や洗濯機などの家電製品と比べ、その制
御プログラム量が多く、さらに季節による商品の変更や
販売促進などのため、頻繁に制御内容を変更する必要が
ある。
However, vending machines have a larger control program amount than home appliances such as refrigerators and washing machines, and are frequently controlled to change products and promote sales according to seasons. Content needs to be changed.

【0004】また、どの商品がいつどれだけ売れたかな
どの販売管理情報を調べる際、その自動販売機に監視者
を付けてカウントしていたため、効率が悪くそのための
人件費も膨大なものとなっていた。
[0004] Further, when examining sales management information such as what products were sold and when, how much, the vending machine was counted by adding a monitor, which was inefficient and labor costs were enormous. I was

【0005】本発明は、自動販売機の制御プログラム記
憶メモリに、電気的にデータ書換可能なフラッシュRO
Mを用い、その制御プログラムを簡便かつ低コストで書
き換えできると共に、低コストで効率よく販売管理情報
を調査できる自動販売機制御情報書換システムを提供す
ることを目的とする。
According to the present invention, a flash RO capable of electrically rewriting data in a control program storage memory of a vending machine is provided.
It is an object of the present invention to provide a vending machine control information rewriting system that can easily and at low cost rewrite a control program using M and can efficiently and efficiently investigate sales management information at low cost.

【0006】[0006]

【課題を解決するための手段】上述の課題を解決するた
め、本発明の自動販売機制御情報書換システムは、使用
者が任意の商品を選択して購入する自動販売機と、この
自動販売機の制御情報を書き換える書換装置とから構成
され、前記自動販売機が、データ処理を行うマイクロコ
ンピュータと、このマイクロコンピュータの制御プログ
ラムを記憶するフラッシュROMと、データを一時記憶
するRAMと、装置外部とデータの送受を行う通信ポー
トと、この通信ポートを介して転送された前記フラッシ
ュROMの書換プログラムを前記RAMに記憶する記憶
制御手段とを備え、前記書換装置が、前記通信ポートを
介して前記書換プログラムを前記自動販売機に転送する
転送制御手段を備え、前記自動販売機のRAMに記憶さ
れた書換プログラムで、前記フラッシュROMを書き換
え制御することを特徴とする。
In order to solve the above-mentioned problems, a vending machine control information rewriting system according to the present invention comprises: a vending machine in which a user selects and purchases an arbitrary product; The vending machine comprises a microcomputer for performing data processing, a flash ROM for storing a control program for the microcomputer, a RAM for temporarily storing data, and an external device. A communication port for transmitting and receiving data; and storage control means for storing, in the RAM, a rewriting program for the flash ROM transferred through the communication port, the rewriting device performs the rewriting via the communication port. Transfer control means for transferring a program to the vending machine; and a rewriting program stored in a RAM of the vending machine. In, and controlling rewriting the flash ROM.

【0007】または、使用者が任意の商品を選択して購
入する自動販売機と、プログラムを記憶する記憶媒体と
から構成され、前記自動販売機が、データ処理を行うマ
イクロコンピュータと、このマイクロコンピュータの制
御プログラムを記憶するフラッシュROMと、データを
一時記憶するRAMと、前記記憶媒体からプログラムを
読み込む媒体読取部と、この媒体読取部からプログラム
を読み込み制御する読込制御手段と、前記媒体読取部を
介して読み込まれた前記フラッシュROMの書換プログ
ラムを前記RAMに記憶する記憶制御手段とを備え、こ
のRAMに記憶された書換プログラムで、前記フラッシ
ュROMを書き換え制御することを特徴とする。
[0007] Alternatively, the vending machine comprises a vending machine in which a user selects and purchases an arbitrary product, and a storage medium for storing a program, wherein the vending machine performs data processing, and the microcomputer. A flash ROM that stores a control program of the above, a RAM that temporarily stores data, a medium reading unit that reads a program from the storage medium, a reading control unit that reads and controls a program from the medium reading unit, and a medium reading unit. Storage control means for storing, in the RAM, a rewriting program of the flash ROM read via the RAM, and controlling the rewriting of the flash ROM by the rewriting program stored in the RAM.

【0008】以上の構成によって、書換装置から通信ポ
ートを介して、または記憶媒体から読み込んだフラッシ
ュROMの書換プログラムをRAMに記憶して、この書
換プログラムで、フラッシュROMを書き換え制御し
て、制御プログラムを書き換えできる。
With the above configuration, the rewriting program of the flash ROM read from the rewriting device via the communication port or from the storage medium is stored in the RAM, and the rewriting program is used to control the rewriting of the flash ROM. Can be rewritten.

【0009】[0009]

【発明の実施の形態】以下、図面を参照して本発明の実
施の形態を詳細に説明する。
Embodiments of the present invention will be described below in detail with reference to the drawings.

【0010】図1は、本発明の自動販売機制御情報書換
システムを構成する自動販売機の構成図である。自動販
売機の主制御装置1は、装置内の通信ライン2を介し
て、販売機内のリモコン部5、表示部6、ベンド部7、
コイン部8、冷・暖サイクル部9を制御する。リモコン
部5、表示部6、ベンド部7、コイン部8、冷・暖サイ
クル部9は、それぞれマイクロコンピュータを備え、各
部内を制御する。また、主制御装置1は、シリアル通信
ポート(IrDAによる赤外線通信、RS232Cな
ど)3または無線通信ポート(PHSモデムなど)4を
介して、外部の機器と販売情報、設定情報、故障情報な
どの送受を行う。
FIG. 1 is a configuration diagram of a vending machine constituting a vending machine control information rewriting system of the present invention. The main control device 1 of the vending machine includes a remote control unit 5, a display unit 6, a bend unit 7,
The coin unit 8 and the cool / warm cycle unit 9 are controlled. The remote control unit 5, the display unit 6, the bend unit 7, the coin unit 8, and the cooling / warming cycle unit 9 each include a microcomputer and control the inside of each unit. The main controller 1 transmits and receives sales information, setting information, failure information, and the like to and from external devices via a serial communication port (infrared communication by IrDA, RS232C or the like) 3 or a wireless communication port (PHS modem or the like) 4. I do.

【0011】主制御装置1は、データ処理を行うマイク
ロコンピュータ1a、このマイクロコンピュータの制御
プログラムを記憶するフラッシュROM1b、データを
一時記憶するRAM1c、上記販売機内各部と制御情報
の送受をする販売機内オンライン通信部1dとから構成
される。
The main controller 1 includes a microcomputer 1a for performing data processing, a flash ROM 1b for storing a control program for the microcomputer, a RAM 1c for temporarily storing data, and an online in the vending machine for transmitting and receiving control information to and from each section in the vending machine. And a communication unit 1d.

【0012】次に、各部の動作を説明する。コイン部8
がコインの投入を検出し、投入された金額を主制御装置
1に通知する。主制御装置1は、投入された金額から販
売可能な商品を算出し、表示部6に販売可能な商品情報
を通知する。表示部6では、この通知を受けて販売可能
な商品ボタンのランプを点灯し、商品ボタンの入力の有
無を確認する。入力があれば、その商品ボタン情報を主
制御装置1に通知する。主制御装置1は、通知された商
品ボタン情報を確認し、ベンド部7に商品ボタン情報を
通知する。ベンド部7は、商品ボタン情報に対応する商
品を取り出し口に搬出する。ベンド部7は、搬出完了情
報を主制御装置1に通知する。主制御装置1は、搬出完
了情報を受けて、投入された金額と、販売した商品ボタ
ンの金額から釣り銭を計算し、コイン部8に釣銭情報を
通知する。コイン部8は、受け取った釣銭情報に対応す
る金額を返却口に搬出する。主制御装置1は、投入され
たコイン、販売された商品の情報をRAM1cに記憶す
る。
Next, the operation of each unit will be described. Coin part 8
Detects the insertion of the coin, and notifies the main controller 1 of the inserted amount. Main controller 1 calculates a sellable product from the input amount and notifies display unit 6 of the sellable product information. In response to the notification, the display unit 6 turns on the lamp of the product button that can be sold, and confirms whether or not the product button has been input. If there is an input, the main controller 1 is notified of the product button information. Main controller 1 confirms the notified product button information, and notifies bend unit 7 of the product button information. The bend unit 7 carries out a product corresponding to the product button information to an outlet. The bend unit 7 notifies the main controller 1 of the unloading completion information. Upon receiving the unloading completion information, main controller 1 calculates a change from the inserted amount and the amount of the sold product button, and notifies coin unit 8 of the change information. The coin unit 8 carries out the amount corresponding to the received change information to the return slot. The main control device 1 stores information on the inserted coins and the sold products in the RAM 1c.

【0013】リモコン部5は、自動販売機のメンテナン
スを行う際に、操作者が各種の設定入力や、自動販売機
に必要な動作を行わせるための操作を行う。また、冷・
暖サイクル部9は、冷却・保温の必要な商品に対し、冷
却または保温加熱を行う。
The remote controller 5 allows the operator to input various settings and perform necessary operations on the vending machine when performing maintenance on the vending machine. In addition, cold
The warming cycle unit 9 performs cooling or heat-retaining heating on a product that requires cooling and heat-retaining.

【0014】図2は、本発明の自動販売機制御情報書換
システムを構成する書換装置の構成図である。書換装置
制御部11は、媒体読取部12で記憶媒体(フロッピー
ディスク、CD−ROMなど)20に記憶されたデータ
を読み取り、シリアル通信ポート13、無線通信ポート
14を介して制御情報を送受する。本書換装置は、自動
販売機のメンテナンスを行う際に、自動販売機の制御情
報を書き換えるために、通信ポートを介して書換プログ
ラムを自動販売機に転送する。
FIG. 2 is a block diagram of a rewriting device constituting the vending machine control information rewriting system of the present invention. The rewriting device control unit 11 reads data stored in a storage medium (a floppy disk, a CD-ROM, or the like) 20 by the medium reading unit 12, and sends and receives control information via the serial communication port 13 and the wireless communication port 14. The rewriting device transfers a rewriting program to a vending machine via a communication port in order to rewrite control information of the vending machine when performing maintenance on the vending machine.

【0015】図3は、本発明の自動販売機制御情報書換
システムによって制御情報を書き換える、自動販売機の
主制御装置1のフラッシュROM1bの記憶領域を示す
概念図である。一般にフラッシュROMは、EPROM
などに比べ、いったん記憶したデータ保持の安定性が悪
く、時間と共にエラーを発生する可能性が高い。
FIG. 3 is a conceptual diagram showing a storage area of the flash ROM 1b of the main control device 1 of the vending machine in which control information is rewritten by the vending machine control information rewriting system of the present invention. Generally, flash ROM is EPROM
Compared to the above, the stability of data retention once stored is poor, and there is a high possibility that an error will occur over time.

【0016】このエラー発生に対応するため、分割され
た領域1,2と確認情報確認プログラムを格納する領域
とに分ける。分割1領域は、工場出荷時の主制御プログ
ラムを格納し、分割2領域のみを書換領域として、書換
装置から転送された新規の主制御プログラムを格納す
る。確認情報確認プログラムは、新規主制御プログラム
に埋め込まれた確認情報(チェックサムなど)を確認し
て、転送時のエラーやその後のエラー発生を検出する。
In order to cope with the occurrence of the error, the divided areas 1 and 2 are divided into an area for storing a confirmation information confirmation program. The division 1 area stores a main control program at the time of shipment from the factory, and stores only the division 2 area as a rewrite area and stores a new main control program transferred from the rewriting device. The confirmation information confirmation program confirms confirmation information (such as a checksum) embedded in the new main control program, and detects an error at the time of transfer and occurrence of an error thereafter.

【0017】図4は、本発明の自動販売機制御情報書換
システムにて、書換プログラムを転送記憶する自動販売
機の主制御装置1のRAM1cの記憶領域を示す概念図
である。分割1領域には、自動販売機の設定情報、販売
情報、故障情報などの制御情報が記憶され、分割2領域
には、フラッシュROMの書換プログラムが転送され
る。この書換プログラムには、転送後のエラーを検出す
るための確認情報(チェックサムなど)が、埋め込まれ
ている。
FIG. 4 is a conceptual diagram showing a storage area of the RAM 1c of the main controller 1 of the vending machine for transferring and storing a rewriting program in the vending machine control information rewriting system of the present invention. The division 1 area stores control information such as setting information, sales information, and failure information of the vending machine, and the division 2 area transfers a flash ROM rewriting program. In this rewriting program, confirmation information (such as a checksum) for detecting an error after transfer is embedded.

【0018】図5は、自動販売機の電源投入時の制御を
示すフローチャートである。電源投入後、自動販売機の
主制御装置1は、プログラムの初期化を行い(ステップ
1)、新規の主制御プログラムに埋め込まれた確認情報
を読み込み、正・不正の確認を行う(ステップ2)。不
正であれば、フラッシュROMの分割1領域に記憶され
た工場出荷時の主制御プログラムを実行し(ステップ
3)、正しければ、フラッシュROMの分割2領域に記
憶された新規の主制御プログラムを実行する(ステップ
4)。
FIG. 5 is a flowchart showing the control at the time of turning on the power of the vending machine. After the power is turned on, the main controller 1 of the vending machine initializes the program (step 1), reads the confirmation information embedded in the new main control program, and confirms correctness / incorrectness (step 2). . If incorrect, the factory-main control program stored in the flash ROM divided area 1 is executed (step 3), and if correct, the new main control program stored in the flash ROM divided area 2 is executed. (Step 4).

【0019】新規の主制御プログラムにエラーが検出さ
れた時に、信頼性の高い工場出荷時の主制御プログラム
を実行するようにしたので、自動販売機が使用できなく
なる状態を回避でき、安定して確実な制御を行うことが
できる。
When an error is detected in the new main control program, a highly reliable main control program at the time of factory shipment is executed, so that a state in which the vending machine cannot be used can be avoided and stable. Reliable control can be performed.

【0020】図6は、書換プログラム転送時の確認制御
のフローチャートである。通信ポートから自動販売機の
RAMに、フラッシュROMの書換プログラムを転送完
了すると(ステップ11)、転送された書換プログラム
に埋め込まれた確認情報を読み込み、正・不正の確認を
行う(ステップ12)。正しければ、RAMに転送され
た書換プログラムを実行する(ステップ13)。不正で
あれば、エラー処理プログラムを実行し(ステップ1
4)、通信ポートを介して、書換装置にエラー発生を通
知して、エラーに対応した処理を要求する。
FIG. 6 is a flowchart of the confirmation control during transfer of the rewrite program. When the transfer of the rewriting program of the flash ROM from the communication port to the RAM of the vending machine is completed (step 11), the confirmation information embedded in the transferred rewriting program is read, and the correctness / incorrectness is confirmed (step 12). If it is correct, the rewriting program transferred to the RAM is executed (step 13). If invalid, the error processing program is executed (step 1).
4) Notifying the rewriting device of the occurrence of the error via the communication port, and requesting a process corresponding to the error.

【0021】図7は、通信ポートからのフラッシュRO
Mの書き換え制御のフローチャートである。まず、無線
通信ポート4に対しデータの読み込みを行い(ステップ
21)、書換装置から書換要求コードの送出を検出して
確認し(ステップ22)、書換要求コードが有れば、R
AM1cの領域を分割し、その転送領域に最初記憶され
ていたデータを通信ポートを介して書換装置に転送退避
させた後、書換装置から転送されたフラッシュROMの
書換プログラムを読み込み、RAM1cに記憶する(ス
テップ23)。そして、RAM1cに記憶された書換プ
ログラムをその確認情報によって正誤を確認すると共
に、転送エラーをチェックするため、再び書換プログラ
ムを書換装置に転送する。書換装置側では、返送された
書換プログラムと先に送出した書換プログラムと同じか
否か比較して正誤を確認し、同じならば正、異なれば不
正を自動販売機側に知らせる(ステップ24)。確認結
果が正ならば、自動販売機は転送された書換プログラム
の最初のアドレスを制御のスタートアドレスとして書換
制御をスタートさせ、フラッシュROM1bの分割2領
域に新規の主制御プログラムを転送記憶する(ステップ
25)。
FIG. 7 shows a flash RO from a communication port.
It is a flowchart of the rewriting control of M. First, data is read into the wireless communication port 4 (step 21), and the transmission of a rewrite request code from the rewriting device is detected and confirmed (step 22).
The area of the AM1c is divided, the data initially stored in the transfer area is transferred to the rewriting device via the communication port, and then the rewriting program of the flash ROM transferred from the rewriting device is read and stored in the RAM1c. (Step 23). Then, the rewriting program stored in the RAM 1c is checked for correctness based on the confirmation information, and the rewriting program is transferred to the rewriting device again to check for a transfer error. The rewriting device compares the returned rewriting program with the previously sent rewriting program to determine whether the rewriting program is the same or not, and informs the vending machine of the correctness if it is the same, and informs the vending machine if it is not the same (step 24). If the confirmation result is positive, the vending machine starts rewriting control using the first address of the transferred rewriting program as the control start address, and transfers and stores the new main control program in the divided two areas of the flash ROM 1b (step 25).

【0022】この新規の主制御プログラムには、制御情
報が外部の者に漏洩するのを防ぐため、あらかじめスク
ランブルが施してある。書換プログラムは、そのスクラ
ンブルを解除しながら新規の主制御プログラムをフラッ
シュROM1bに転送記憶する。そして、転送された主
制御プログラムに埋め込まれた確認情報を読み込み、正
・不正を確認する。正しければ、フラッシュROMの書
換を完了して、書換装置に退避させたRAM1cのデー
タを元に戻す。不正であれば、書換装置にエラー発生を
通知して、エラーに対応した処理を要求する。
The new main control program is pre-scrambled to prevent control information from leaking to outsiders. The rewriting program transfers the new main control program to the flash ROM 1b and stores the new main control program while releasing the scramble. Then, it reads the confirmation information embedded in the transferred main control program and confirms whether it is correct or not. If correct, the rewriting of the flash ROM is completed, and the data in the RAM 1c saved in the rewriting device is restored. If invalid, the rewriting device is notified of the occurrence of the error, and requests processing corresponding to the error.

【0023】ステップ22で、書換要求コードが無けれ
ば、シリアル通信ポート3に対しデータの読み込みを行
い(ステップ26)、書換装置から書換要求コードが送
出されているか否か確認し(ステップ27)、書換要求
コードが有れば、ステップ23に移行し、無ければ、次
のシーケンスへ移る。
In step 22, if there is no rewrite request code, data is read into the serial communication port 3 (step 26), and it is confirmed whether or not the rewrite request code has been sent from the rewrite device (step 27). If there is a rewrite request code, the process proceeds to step 23; otherwise, the process proceeds to the next sequence.

【0024】通信ポートから書換プログラムおよび新規
の主制御プログラムを転送するので、従来の自動販売機
に、小規模の改造を施すだけで本システムに対応した自
動販売機とすることができる。
Since the rewriting program and the new main control program are transferred from the communication port, a vending machine compatible with the present system can be obtained by performing only a small-scale modification on a conventional vending machine.

【0025】さらに無線通信ポートから書換プログラム
を転送すれば、遠隔地からの書換制御も可能であり、よ
り効率的で低コストな制御プログラムの書換が可能であ
る。
Further, if the rewriting program is transferred from the wireless communication port, rewriting control can be performed from a remote place, and more efficient and low-cost rewriting of the control program is possible.

【0026】図8は、本発明の自動販売機制御情報書換
システムの自動販売機リモコン部の構成図である。リモ
コン部5の制御を行うマイクロコンピュータ51、この
マイクロコンピュータの制御プログラムを記憶するRO
M55、データを一時記憶するRAM54、販売機の主
制御装置1と制御情報の送受をする販売機内オンライン
通信部53、プログラム記憶媒体(ICカード、メモリ
カードなど)50の読み取りを行う媒体読取部52から
構成される。
FIG. 8 is a configuration diagram of a vending machine remote controller of the vending machine control information rewriting system of the present invention. A microcomputer 51 for controlling the remote controller 5, an RO for storing a control program for the microcomputer;
M55, RAM 54 for temporarily storing data, online communication unit 53 in the vending machine for transmitting / receiving control information to / from main controller 1 of the vending machine, medium reading unit 52 for reading program storage medium (IC card, memory card, etc.) 50 Consists of

【0027】図9は、リモコン部からのフラッシュRO
Mの書き換え制御のフローチャートである。まず、媒体
読取部52でプログラム記憶媒体50の読み取りを行い
(ステップ31)、主制御プログラムの書換コードが有
るか否か確認する(ステップ32)。有れば、主制御装
置1は、RAM1cの領域を分割し、転送領域に最初記
憶されていたデータをリモコン部5へ送り、媒体読取部
52からプログラム記憶媒体50に転送退避させる。そ
して、媒体読取部52で書換プログラムを読み込み、主
制御装置1へ転送し、RAM1cにフラッシュROMの
書換プログラムを記憶する(ステップ33)。そして、
RAM1cに転送された書換プログラムをその確認情報
によって正誤を確認すると共に、転送エラーをチェック
するため、再び書換プログラムをリモコン部5に転送す
る。リモコン部5側で、先に送出した書換プログラムと
同じか否か比較して正誤を確認し、同じならば正、異な
れば不正を主制御装置1に知らせる(ステップ34)。
確認結果が正ならば、転送された書換プログラムの最初
のアドレスを制御のスタートアドレスとして書換制御を
スタートさせ、媒体読取部52でプログラム記憶媒体5
0から主制御プログラムを読み取り、主制御装置1へ転
送し、主制御装置1でスクランブルを解除しながら、フ
ラッシュROM1bの分割2領域に新規の主制御プログ
ラムを転送記憶する(ステップ35)。そして、転送さ
れた主制御プログラムに埋め込まれた確認情報を読み込
み、正・不正を確認する。正しければ、フラッシュRO
Mの書換を完了して、退避させたRAM1cのデータを
戻す。不正であれば、エラー処理を行う。
FIG. 9 shows a flash RO from the remote controller.
It is a flowchart of the rewriting control of M. First, the program reading medium 52 is read by the medium reading section 52 (step 31), and it is confirmed whether or not there is a rewrite code of the main control program (step 32). If there is, the main controller 1 divides the area of the RAM 1c, sends the data initially stored in the transfer area to the remote controller 5, and transfers and saves the data from the medium reading section 52 to the program storage medium 50. Then, the rewriting program is read by the medium reading section 52, transferred to the main controller 1, and the rewriting program of the flash ROM is stored in the RAM 1c (step 33). And
The rewriting program transferred to the RAM 1c is checked for correctness based on the confirmation information, and the rewriting program is transferred to the remote controller 5 again to check for a transfer error. The remote control unit 5 confirms whether the rewriting program is the same as the previously transmitted rewriting program, and confirms whether the rewriting program is correct or not.
If the confirmation result is positive, the rewriting control is started with the first address of the transferred rewriting program as the start address of the control, and the medium reading unit 52 executes the program storage medium 5.
The main control program is read from 0, transferred to the main control device 1, and the new main control program is transferred and stored in two divided areas of the flash ROM 1b while the scramble is released by the main control device 1 (step 35). Then, it reads the confirmation information embedded in the transferred main control program and confirms whether it is correct or not. If it is correct, flash RO
After the rewriting of M is completed, the saved data in the RAM 1c is returned. If invalid, error processing is performed.

【0028】ステップ32で、主制御プログラムの書換
コードが無ければ、次のステップ処理へと進む。
If there is no rewrite code of the main control program at step 32, the process proceeds to the next step.

【0029】本実施の形態では、上記ステップ31およ
び32で、プログラム記憶媒体50を読み取り、主制御
プログラムの書換コードが有るか否かで、書換制御の開
始を判定していたが、リモコン部5の入力キーを利用し
て、拡張キー入力(例えば特定の二つのキーを同時に押
すなど)で書換制御の開始を指示することもできる。主
制御装置1は、この指示を受けて、媒体読取部52に書
換プログラムの読み込み開始を指示する。
In the present embodiment, in the steps 31 and 32, the program storage medium 50 is read and the start of the rewrite control is determined based on whether or not there is a rewrite code of the main control program. , The start of rewrite control can be instructed by extended key input (for example, pressing two specific keys at the same time). Main controller 1 receives this instruction and instructs medium reading unit 52 to start reading the rewriting program.

【0030】図10は、リモコン部から記憶媒体への販
売管理情報の書込制御のフローチャートである。まず、
媒体読取部52でプログラム記憶媒体50の読み取りを
行い(ステップ41)、主制御プログラムの書換コード
が有るか否か確認する(ステップ42)。無ければ、主
制御装置1からリモコン部5へ、どの商品がいつどれだ
け売れたかなどの販売管理情報を送り、RAM54に記
憶すると共に、媒体読取部52でプログラム記憶媒体5
0に販売管理情報を書込処理する(ステップ43)。そ
して、書き込んだ販売管理情報をプログラム記憶媒体5
0から読み出し、RAM54に記憶された販売管理情報
と同じか否か判定して、正・不正を確認する(ステップ
44)。不正であれば、RAM54に記憶された販売管
理情報を再度書込処理する(ステップ45)。正しけれ
ば、次のシーケンスへ移る。
FIG. 10 is a flowchart of the write control of the sales management information from the remote controller to the storage medium. First,
The medium reading unit 52 reads the program storage medium 50 (step 41), and checks whether there is a rewrite code of the main control program (step 42). If not, the main controller 1 sends to the remote controller 5 sales management information such as information on which products were sold and how much, and stores the information in the RAM 54.
The sales management information is written to 0 (step 43). Then, the written sales management information is stored in the program storage medium 5.
It is read from 0, and it is determined whether the information is the same as the sales management information stored in the RAM 54, and whether the information is correct or not is confirmed (step 44). If incorrect, the sales management information stored in the RAM 54 is written again (step 45). If it is correct, move on to the next sequence.

【0031】ステップ42で、主制御プログラムの書換
コードが有れば、次のステップ処理へと進む。
At step 42, if there is a rewrite code of the main control program, the process proceeds to the next step.

【0032】ICカード、メモリカードなどの大容量の
記憶媒体に、どの商品がいつどれだけ売れたかなどの販
売管理情報を記憶することができるので、低コストで効
率よく大量の販売管理情報を得ることができる。
Since large-capacity storage media, such as IC cards and memory cards, can store sales management information such as which products have been sold and how much, a large amount of sales management information can be obtained efficiently at low cost. be able to.

【0033】[0033]

【発明の効果】以上説明した通り、本発明の自動販売機
制御情報書換システムは、自動販売機の制御プログラム
記憶メモリにフラッシュROMを用い、その制御プログ
ラムを書き換える際、書換装置から通信ポートを介し
て、または記憶媒体から読み込んだフラッシュROMの
書換プログラムをRAMに記憶して、この書換プログラ
ムで、フラッシュROMを書き換え制御するので、制御
プログラムを簡便かつ低コストで書き換えできる。さら
に従来の自動販売機に、小規模の改造を施すだけで本シ
ステムに対応した自動販売機とすることができる。
As described above, the vending machine control information rewriting system of the present invention uses a flash ROM for the control program storage memory of the vending machine, and when rewriting the control program, uses the flash memory from the rewriting device via the communication port. Alternatively, the rewriting program of the flash ROM read from the storage medium is stored in the RAM, and the rewriting program controls the rewriting of the flash ROM, so that the control program can be rewritten simply and at low cost. Furthermore, a vending machine compatible with the present system can be obtained by simply modifying a conventional vending machine on a small scale.

【0034】また、記憶媒体へ販売管理情報を書込処理
する機能を付加することによって、大容量の記憶媒体
に、どの商品がいつどれだけ売れたかなどの販売管理情
報を記憶することができ、低コストで効率よく大量の販
売管理情報を得ることができる。
Further, by adding a function of writing the sales management information to the storage medium, sales management information such as which merchandise was sold and how much can be stored in the large-capacity storage medium. A large amount of sales management information can be obtained efficiently at low cost.

【図面の簡単な説明】[Brief description of the drawings]

【図1】本発明の自動販売機制御情報書換システムを構
成する自動販売機の構成図である。
FIG. 1 is a configuration diagram of a vending machine constituting a vending machine control information rewriting system of the present invention.

【図2】本発明の自動販売機制御情報書換システムを構
成する書換装置の構成図である。
FIG. 2 is a configuration diagram of a rewriting device constituting the vending machine control information rewriting system of the present invention.

【図3】フラッシュROMの記憶領域を示す概念図であ
る。
FIG. 3 is a conceptual diagram showing a storage area of a flash ROM.

【図4】RAMの記憶領域を示す概念図である。FIG. 4 is a conceptual diagram showing a storage area of a RAM.

【図5】自動販売機の電源投入時の制御を示すフローチ
ャートである。
FIG. 5 is a flowchart showing control when the vending machine is turned on.

【図6】書換プログラム転送時の確認制御のフローチャ
ートである。
FIG. 6 is a flowchart of confirmation control during transfer of a rewrite program.

【図7】通信ポートからのフラッシュROMの書き換え
制御のフローチャートである。
FIG. 7 is a flowchart of flash ROM rewrite control from a communication port.

【図8】自動販売機リモコン部の構成図である。FIG. 8 is a configuration diagram of a vending machine remote controller.

【図9】リモコン部からのフラッシュROMの書き換え
制御のフローチャートである。
FIG. 9 is a flowchart of a flash ROM rewrite control from a remote controller.

【図10】リモコン部から記憶媒体への販売管理情報の
書込制御のフローチャートである。
FIG. 10 is a flowchart of writing control of sales management information from a remote controller to a storage medium.

【符号の説明】[Explanation of symbols]

1…主制御装置,1a…マイクロコンピュータ,1b…
フラッシュROM,1c…RAM,1d…販売機内オン
ライン通信部,2…通信ライン,3…シリアル通信ポー
ト,4…無線通信ポート,5…リモコン部,6…表示
部,7…ベンド部,8…コイン部,9…冷・暖サイクル
部。
DESCRIPTION OF SYMBOLS 1 ... Main control device, 1a ... Microcomputer, 1b ...
Flash ROM, 1c RAM, 1d Online communication unit in vending machine, 2 communication line, 3 serial communication port, 4 wireless communication port, 5 remote control unit, 6 display unit, 7 bend unit, 8 coin Part, 9 ... cool / warm cycle part.

Claims (14)

【特許請求の範囲】[Claims] 【請求項1】 使用者が任意の商品を選択して購入する
自動販売機と、この自動販売機の制御情報を書き換える
書換装置とから構成され、 前記自動販売機が、 データ処理を行うマイクロコンピュータと、 このマイクロコンピュータの制御プログラムを記憶する
フラッシュROMと、 データを一時記憶するRAMと、 装置外部とデータの送受を行う通信ポートと、 この通信ポートを介して転送された前記フラッシュRO
Mの書換プログラムを前記RAMに記憶する記憶制御手
段とを備え、 前記書換装置が、 前記通信ポートを介して前記書換プログラムを前記自動
販売機に転送する転送制御手段を備え、 前記自動販売機のRAMに記憶された書換プログラム
で、前記フラッシュROMを書き換え制御することを特
徴とする自動販売機制御情報書換システム。
1. A vending machine for a user to select and purchase an arbitrary product, and a rewriting device for rewriting control information of the vending machine, wherein the vending machine is a microcomputer for performing data processing. A flash ROM for storing a control program for the microcomputer, a RAM for temporarily storing data, a communication port for transmitting and receiving data to and from the outside of the device, and the flash RO transferred via the communication port.
Storage control means for storing the rewrite program of M in the RAM; and the rewrite device comprises transfer control means for transferring the rewrite program to the vending machine via the communication port. A vending machine control information rewriting system, wherein rewriting control of the flash ROM is performed by a rewriting program stored in a RAM.
【請求項2】 前記自動販売機が、 複数の通信ポートと、 あらかじめ設定された順に各通信ポートを監視して、フ
ラッシュROMの書換要求コードを検出する書換検出手
段と、 この書換要求コードが検出された通信ポートからフラッ
シュROMの書換プログラムを読み込む読込制御手段と
を具備することを特徴とする請求項1に記載の自動販売
機制御情報書換システム。
2. The vending machine monitors a plurality of communication ports, each communication port in a preset order, and detects a rewrite request code in a flash ROM, and detects the rewrite request code. 2. The vending machine control information rewriting system according to claim 1, further comprising: read control means for reading a rewriting program of the flash ROM from the communication port.
【請求項3】 前記自動販売機が、RAMに記憶された
フラッシュROMの書換プログラムを通信ポートを介し
て前記書換装置に転送する返送手段を備え、 前記書換装置が、返送されたフラッシュROMの書換プ
ログラムを、先に前記自動販売機に転送したフラッシュ
ROMの書換プログラムと比較して、正誤を確認し、そ
の結果を前記書換装置に送出する確認手段を備えること
を特徴とする請求項1に記載の自動販売機制御情報書換
システム。
3. The vending machine includes a return unit that transfers a flash ROM rewriting program stored in a RAM to the rewriting device via a communication port, wherein the rewriting device rewrites the returned flash ROM. 2. The rewriting device according to claim 1, further comprising a checking unit that compares the program with a flash ROM rewriting program previously transferred to the vending machine, checks whether the program is correct, and sends the result to the rewriting device. 3. Vending machine control information rewriting system.
【請求項4】 前記自動販売機が、前記書換装置からフ
ラッシュROMの書換プログラムの確認結果を受けて、
正しければ、転送された前記書換プログラムの最初のア
ドレスを制御のスタートアドレスとするスタートアドレ
ス移動手段を具備することを特徴とする請求項3に記載
の自動販売機制御情報書換システム。
4. The vending machine receives a confirmation result of a rewriting program of a flash ROM from the rewriting device,
4. The vending machine control information rewriting system according to claim 3, further comprising a start address moving means for setting a first address of the transferred rewriting program as a start address of the control if it is correct.
【請求項5】 使用者が任意の商品を選択して購入する
自動販売機と、プログラムを記憶する記憶媒体とから構
成され、 前記自動販売機が、 データ処理を行うマイクロコンピュータと、 このマイクロコンピュータの制御プログラムを記憶する
フラッシュROMと、 データを一時記憶するRAMと、 前記記憶媒体からプログラムを読み込む媒体読取部と、 この媒体読取部からプログラムを読み込み制御する読込
制御手段と、 前記媒体読取部を介して読み込まれた前記フラッシュR
OMの書換プログラムを前記RAMに記憶する記憶制御
手段とを備え、 このRAMに記憶された書換プログラムで、前記フラッ
シュROMを書き換え制御することを特徴とする自動販
売機制御情報書換システム。
5. A vending machine in which a user selects and purchases an arbitrary product, and a storage medium storing a program, wherein the vending machine performs a data processing, and a microcomputer. A flash ROM that stores a control program of the above, a RAM that temporarily stores data, a medium reading unit that reads a program from the storage medium, a reading control unit that reads and controls a program from the medium reading unit, and a medium reading unit. The flash R read through
Storage control means for storing an OM rewriting program in the RAM, wherein the flash ROM is rewritten and controlled by the rewriting program stored in the RAM.
【請求項6】 前記自動販売機が、前記媒体読取部から
前記フラッシュROMの書換プログラムの読み込み開始
を指示する書換指示手段を具備することを特徴とする請
求項5に記載の自動販売機制御情報書換システム。
6. The vending machine control information according to claim 5, wherein said vending machine includes rewriting instructing means for instructing a start of reading of a rewriting program of said flash ROM from said medium reading section. Rewriting system.
【請求項7】 前記自動販売機が、前記媒体読取部にて
読み込まれたデータから前記フラッシュROMを書き換
えるための書換コードを検出して、前記フラッシュRO
Mの書換プログラムを読み込み開始する書換検出手段を
具備することを特徴とする請求項5に記載の自動販売機
制御情報書換システム。
7. The flash vending machine detects a rewriting code for rewriting the flash ROM from data read by the medium reading unit, and detects the flash RO.
6. The vending machine control information rewriting system according to claim 5, further comprising rewriting detection means for starting to read the rewriting program of M.
【請求項8】 前記自動販売機が、前記記憶媒体に販売
管理情報を書込処理する販売管理情報書込手段を具備す
ることを特徴とする請求項5に記載の自動販売機制御情
報書換システム。
8. The vending machine control information rewriting system according to claim 5, wherein said vending machine includes sales management information writing means for writing sales management information into said storage medium. .
【請求項9】 前記自動販売機のRAMに記憶された書
換プログラムが、フラッシュROMの分割された領域を
書き換え制御することを特徴とする請求項1または請求
項5に記載の自動販売機制御情報書換システム。
9. The vending machine control information according to claim 1, wherein the rewriting program stored in the RAM of the vending machine controls rewriting of a divided area of the flash ROM. Rewriting system.
【請求項10】 前記自動販売機のフラッシュROMの
第1の領域にあらかじめ制御プログラムが記憶され、 前記自動販売機のRAMに記憶された書換プログラム
が、フラッシュROMの第2の領域に新規の制御プログ
ラムを転送する制御を行うことを特徴とする請求項9に
記載の自動販売機制御情報書換システム。
10. A control program is stored in advance in a first area of a flash ROM of the vending machine, and a rewriting program stored in a RAM of the vending machine is stored in a second area of the flash ROM. 10. The vending machine control information rewriting system according to claim 9, wherein control for transferring the program is performed.
【請求項11】 前記フラッシュROMに転送される新
規の制御プログラムが、プログラムのエラーを確認する
ための確認情報を有することを特徴とする請求項10に
記載の自動販売機制御情報書換システム。
11. The vending machine control information rewriting system according to claim 10, wherein the new control program transferred to the flash ROM has confirmation information for confirming a program error.
【請求項12】 前記自動販売機が、電源投入時に、前
記フラッシュROMに記憶された新規の制御プログラム
の確認情報を確認する情報確認手段を具備することを特
徴とする請求項11に記載の自動販売機制御情報書換シ
ステム。
12. The automatic vending machine according to claim 11, wherein said vending machine includes information confirmation means for confirming confirmation information of a new control program stored in said flash ROM when power is turned on. Vending machine control information rewriting system.
【請求項13】 前記確認情報の確認結果が正しい時、
前記新規の制御プログラムを実行する実行指示手段を具
備することを特徴とする請求項12に記載の自動販売機
制御情報書換システム。
13. When the confirmation result of the confirmation information is correct,
13. The vending machine control information rewriting system according to claim 12, further comprising execution instruction means for executing the new control program.
【請求項14】 前記確認情報の確認結果が誤りの時、
前記工場出荷時の制御プログラムを実行する実行指示手
段を具備することを特徴とする請求項12に記載の自動
販売機制御情報書換システム。
14. When the confirmation result of the confirmation information is incorrect,
13. The vending machine control information rewriting system according to claim 12, further comprising an execution instruction unit for executing the control program at the time of factory shipment.
JP10189278A 1998-07-03 1998-07-03 Vending machine control information writing system Pending JP2000020302A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP10189278A JP2000020302A (en) 1998-07-03 1998-07-03 Vending machine control information writing system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP10189278A JP2000020302A (en) 1998-07-03 1998-07-03 Vending machine control information writing system

Publications (1)

Publication Number Publication Date
JP2000020302A true JP2000020302A (en) 2000-01-21

Family

ID=16238648

Family Applications (1)

Application Number Title Priority Date Filing Date
JP10189278A Pending JP2000020302A (en) 1998-07-03 1998-07-03 Vending machine control information writing system

Country Status (1)

Country Link
JP (1) JP2000020302A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001337379A (en) * 2000-03-21 2001-12-07 Olympus Optical Co Ltd Camera system
JP2003196114A (en) * 2001-12-27 2003-07-11 Meidensha Corp Management and confirmation method for internal data

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001337379A (en) * 2000-03-21 2001-12-07 Olympus Optical Co Ltd Camera system
JP2003196114A (en) * 2001-12-27 2003-07-11 Meidensha Corp Management and confirmation method for internal data

Similar Documents

Publication Publication Date Title
US8181259B2 (en) System and method for upgrading the functionality of a controlling device via a secure portable adapter device
US20080104768A1 (en) System of Washing Machine and Control Method Thereof
US8166558B2 (en) System and method for upgrading the functionality of a controlling device in a secure manner
EP1128339A2 (en) Electronic money system and electronic money terminal
JP2000020302A (en) Vending machine control information writing system
JPH08129405A (en) Controller/controlled processor for controlling communication protocol
JP2007173911A (en) Data processing apparatus, program, and system
CN100409192C (en) Information processing unit and method, recording medium, and program
JP3692857B2 (en) Vending machine controller
JP2002367016A (en) Automatic vending system
JP2001222763A (en) Electronic money terminal device
EP1453016A1 (en) Vending machine and portable recording medium having recorded therein operation data transfer program for vending program
CN105359198A (en) System and method for rapid configuration of a universal controlling device
JP2986106B2 (en) Communication service system, communication service terminal device and node device
WO1998052152A2 (en) Communication between interface device and ic card
JP3251334B2 (en) Central control device
JP3037136B2 (en) Download program backup device
JPS62184594A (en) Coin processor for vending machine
JP2005227852A (en) Information processing terminal
JP5515819B2 (en) vending machine
BR112015028689B1 (en) METHOD FOR CONFIGURING A UNIVERSAL CONTROL DEVICE, AND, UNIVERSAL CONTROL DEVICE
JPH1069532A (en) Ic card terminal and ic card system
JPS63255770A (en) Transaction processor
JPH09114671A (en) Remote program change system
JPH07141190A (en) Miswriting check control device at down loading

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20051220

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20060110

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20060509