CN1145118C - Control device of automatic vendor - Google Patents

Control device of automatic vendor Download PDF

Info

Publication number
CN1145118C
CN1145118C CNB011016981A CN01101698A CN1145118C CN 1145118 C CN1145118 C CN 1145118C CN B011016981 A CNB011016981 A CN B011016981A CN 01101698 A CN01101698 A CN 01101698A CN 1145118 C CN1145118 C CN 1145118C
Authority
CN
China
Prior art keywords
control
program
main control
terminal
control part
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CNB011016981A
Other languages
Chinese (zh)
Other versions
CN1366277A (en
Inventor
山崎康宏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fuji Electric Co Ltd
Original Assignee
Fuji Electric Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fuji Electric Co Ltd filed Critical Fuji Electric Co Ltd
Priority to CNB011016981A priority Critical patent/CN1145118C/en
Publication of CN1366277A publication Critical patent/CN1366277A/en
Application granted granted Critical
Publication of CN1145118C publication Critical patent/CN1145118C/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Information Transfer Between Computers (AREA)
  • Stored Programmes (AREA)
  • Control Of Vending Devices And Auxiliary Devices For Vending Devices (AREA)

Abstract

The present invention relates to a control device of an automatic vending machine. When used for replacing or resetting a terminal control part, the present invention can automatically update a control program of a main control part. When the replaced or reset terminal control part initially communicates with the main control part, an identification code and a version of the manufacturer are sent to the main control part. The main control part sequentially searches a memory installed in the main control part, a memory card inserted in an expansion slot and the interior of a management computer capable of communicating according to the identification code and the version of the manufacturer, and the identification code and the version of the manufacturer are received from all of the terminal control parts. The main control part obtains a proper control program among the memory installed in the main control part, the memory card inserted in the expansion slot and the interior of the management computer capable of communicating.

Description

Control device of automatic vendor
Technical field
The present invention relates to by communicating the control device of automatic vendor that one side partly constitutes its main control of carrying out overhead control between the terminal control section of controlling the automatic vending machine each several part respectively separately, one side and these terminal control sections.
Background technology
In control device of automatic vendor in the past, control the automatic vending machine each several part respectively separately by each terminal control section, that is the display control section of the coin processing controls part that the Coin processing device structure of the coin that, control the sales control part of each commodity delivering mechanism, is dropped into for juggling is controlled, the demonstration control of carrying out amount of money display.And the main control part communicates these terminal control sections of overhead control while passing through signal wire.
Each terminal control section, retentive control program respectively, the control of stipulating by them.In addition, the main control part is kept for the control program of each terminal control section of overhead control, the control of being stipulated by them.The control program of main control part comprises the part corresponding with each terminal control section.Thereby, one of them terminal control section is being replaced by the different new terminal control section of form, perhaps under the situation of resetting the terminal control section that does not have before this, need to upgrade the control program of main control part therewith accordingly.
Therefore, in control device of automatic vendor in the past, when changing or the terminal control section newly be set, accordingly the ROM that writes control program is replaced by new ROM, be the old program rewriting that is stored in the storer new program perhaps by manual operation.
But, in above-mentioned control device of automatic vendor in the past, changing or newly be provided with under the situation of terminal control section, there is the problem of upgrading ROM or when the program of rewriting, needing the time.In addition, because carry out these operations, so also have the problem of the possibility that error in operation may take place by manual operation.
Summary of the invention
Purpose of the present invention is exactly in order to address this is that, when changing or newly being provided with under the situation of terminal control section, can automatically to upgrade the control program of main control part, in the work that can alleviate operation, can preventing error in operation.
In order to address the above problem, the described control device of automatic vendor in the present invention the 1st aspect is characterised in that: comprise that a plurality of terminal control sections are controlled the automatic vending machine each several part respectively separately; The main control part, communicate these terminal control sections of overhead control on one side between one side and these terminal control sections, above-mentioned each terminal control section, keep the manufacturer identification code of each manufacturer and distinguish the version of corresponding control program with their, with initial communication of main control part in, above-mentioned manufacturer identification code and version are sent to the main control part, master control part is divided manufacturer identification code and the version that receives according to from each terminal control section, sequential search is set at the ROM in the main control part, be inserted in the storage card in the expansion slot, the inside of the exterior storage medium that can communicate by letter is obtained and the corresponding control program of connected terminal control section.So, changing or newly being provided with under the situation of terminal control section, can automatically upgrade the control program of main control part, in the work that can alleviate operation, can also prevent error in operation.
So, can with the control program of automatically finding linkedly thereafter that is connected of terminal control section, can automatically rewrite.
In addition, the described control device of automatic vendor in the present invention the 2nd aspect is characterised in that: above-mentioned main control part, the program area that predetermined function is different in program storage portion, extender zone are partly rewrite control program of unit with these zones.So just can reduce the data volume of rewriting, rewrite operation expeditiously.
Have again, the described control device of automatic vendor in the present invention the 3rd aspect is characterised in that: in terminal control section inside, store the main control control program partly that is used to control this terminal control section, the main control part, when the terminal control section is loaded into, obtain control program from this terminal control section.So need in the storer of main control part and storage card and supervisory computer, not store this program, make management become easy.
And then, the described control device of automatic vendor in the present invention the 4th aspect is characterised in that: in above-mentioned terminal control section, store above-mentioned control program with the form of intermediate language, in the main control part, be built-in with the intermediate language interpretive routine, it changes into the partly machine language of usefulness of main control to the control program of this intermediate language form.Like this, even the microcomputer of main control part is replaced by other microcomputer, also can continue to use the control program of each terminal control section.
Description of drawings
Fig. 1 is system's skeleton diagram of control device of automatic vendor of the present invention.
Fig. 2 is the figure of displaying to the state of the memory stores program of control program.
Fig. 3 is the figure that is illustrated under the local situation that changes control program the store status of the storer of control program.
Fig. 4 shows to comprise the figure of the control program of intermediate code interpretive routine to the state of memory stores.
Embodiment
Below, describe embodiment of the present invention with reference to the accompanying drawings in detail.
Fig. 1 is system's skeleton diagram of control device of automatic vendor of the present invention.Main control part 1 on one side and the terminal control section 2,3,4 that grades of the control section of selling goods, coin processing controls part, display control unit these parts of one side overhead control of communicating by letter.
Each terminal control section 2,3,4 is kept for controlling the control program of commodity delivering mechanism and Coin processing device structure and amount of money display respectively, the control of being stipulated by them.In addition, main control part 1, the control program of these terminal control sections 2,3,4 of maintenance overhead control carries out overhead control by them.While the control program of main control part 1 is because carry out controlling with the data access of each terminal control section 2,3,4, so according to the manufacturer of each terminal control section 2,3,4 and content difference different with the machine kind.
Thereby a terminal control section is replaced by new model terminal therein, under the situation of the new terminal control section that does not have before perhaps being provided with, correspondingly needs to rewrite the control program of main control part.
The control program of main control part 1 is stored among the storer 1A that is made up of EPROM, flash memory etc.In storer 1A, suppose to install certain terminal control section, store a plurality of control programs corresponding in advance with the combination of terminal control section, from these programs, selection and the control program that the terminal control section that is loaded into this moment is fit to use it to control.Then, be changed to new terminal one of in terminal control section 2,3,4 before this, when perhaps expanding the terminal control section 5 of packing into new for function, from storer 1A, find the control program of the combination that is fit to terminal control section after changing, carry out the switching of program, according to this control program operate thereafter.
In each terminal control section 2~5,, remain on and be set in inner separately non-volatile storer the version of the cognizance code of each manufacturer and the control program corresponding etc. with them.In addition, in each control program in being stored in the storer 1A of main control part 1,, record the manufacturer identification code and the version of corresponding terminal control section in order to discern separately.
Then, when change takes place the terminal control section, after energized, to main control part 1, send separately manufacturer identification code, version etc. from each terminal control section.And then the transmission of manufacturer identification code, version etc. also can be, at first, 1 pair of each terminal control section of main control part sends requirement, and each terminal control section requires transmission information according to this.
In any case, main control part 1 is if receive manufacturer identification code, version etc. from each terminal control section, then according to manufacturer identification code, version etc., from storer 1A, find the control program that is fit to these combinations, control by this control program thereafter.
, as the terminal control section 5 of function expansion usefulness, the situation of not taking out before this by the terminal control section of predefined new type is inferior installing, and the control program that is fit to newly-installed terminal control section sometimes is not stored among the storer 1A.In this case, in the expansion slot 6 in being set at main control part 1, insert the storage card 7 store the control program that comprises the control program that newly-installed terminal control section uses, from this storage card 7, read in suitable control program.And then, also record above-mentioned manufacturer identification code, version etc. in the control program in being recorded in storage card 7.
Perhaps, communication terminal 8 is set in main control part 1, can from supervisory computer 10, reads in suitable control program by communication terminal 9 in administrative center.And then communication in this case can be undertaken by the public telephone line, also can be undertaken by wireless.Then, main control part 1 under the new connected situation of terminal control section, at first, searches in the own inner storer 1A whether suitable control program is arranged.If wherein do not have, then check the inside of next storage card 7, if also do not have, then automatically switch the address of acquisition program, obtain from supervisory computer 10 by communication terminal 8,9.If do like this, then with the control program of finding automatically linkedly thereafter that is connected of terminal control section, because can automatically rewrite, so there is not the program rewriting operating mistake.
In addition, the rewriting of control program, also can rewrite control program all, can also only rewrite necessary part.Under whole situation of rewrite control program, as shown in Figure 2, differentiate the zone of start-up routine of rewriting processing etc. that above-mentioned manufacturer device code, version etc. are used to carry out program except storing, rewrite zone all of storing control program.
On the other hand, in whole control programs, when only rewriting and change, under the situation of the part of perhaps newly-installed terminal control section correspondence, the program storage portion of storer, it is regional and predesignate to be divided into function distinct program zone and extender.Promptly, as shown in Figure 3, carrying out whole procedure stores of part of the whole processing in the control program in certain zone including above-mentioned start-up routine and being used for, the program of control terminal control section 2,3,4 is stored in respectively in certain several zone, in the future during extended function, whether predesignate the extender of the new terminal control section of control is stored in certain zone, be unit part rewrite control program with these zones.
Then, for example, when terminal control section 2 is replaced by new control section, the zone of the control program that stores terminal control section 2 usefulness all is rewritten as new program.In addition, when newly being provided for the new terminal control section of expanded function, write the control program of newly-installed terminal control section in program area in expansion.
Then, from whole programs, branch out the control program that is fit to each terminal control section, carry out whole control according to branch's order.At this moment, for extender,,, indicate whether branch by it so prepare the such branch's identifying unit of admin table because also there is the situation that does not have extender.
In addition, the main control part control program in that new terminal control section storage inside of installing has this terminal control section to use when having connected this terminal control section, can send to the main control part to the control program that is stored in this terminal control section.So, just need be in the storer 1A of main control part 1 and storage card 7 and supervisory computer 10 the corresponding program of storage, make management become easy.
, each above-mentioned program is if store then efficient is higher with machine language, if but use the machine language stored programme, then when the microcomputer because of certain reason main control part 1 is replaced by another microcomputer, need be rewritten as the machine language program that new microcomputer is used, thereby need a lot of work.At this, store each control program with the form of intermediate language, in main control part, as shown in Figure 4, be built-in with the intermediate language interpretive routine that the control program of intermediate language form is transformed to the machine language that the master control part sub microcomputer uses.
So, even the microcomputer of main control part 1 is replaced by another microcomputer, also can directly use the control program of each terminal control section.
Have again, in the above-described embodiment, the control program of main control part 1, be stored among the storer 1A that forms by EPROM, flash memory etc., under this state, carry out and handle, but also can temporarily be stored in control program as in the flash memory of No. 2 memory storages etc., thereafter, in SRAM or DRAM, launch the back and carry out.So, when improving processing speed, can freely determine the memory address of the control program corresponding with each terminal control section.
The present invention is because adopted the formation of above explanation, so played following effect.
Promptly, the described control device of automatic vendor of first aspect present invention, in each terminal control section, keep the cognizance code of each manufacturer and the version of the control program corresponding with them, with the initial communications of main control part in, manufacturer identification code and version are sent to the main control part, the main control part according to the manufacturer identification code and the version that receive from each terminal control section, obtains and the corresponding control program of connected terminal control section.Its result when changing or the terminal control section newly is set, can automatically upgrade the control program of main control part, when can alleviating the operation work, can also prevent error in operation.
Then, the described control device of automatic vendor of second aspect present invention, its master control part is divided according to above-mentioned manufacturer identification code and version, the inside of the exterior storage medium that sequential search is set at ROM in the main control part, be inserted into storage card in the expansion slot, can communicate by letter is from wherein obtaining suitable control program.Its result, can with the control program that automatically detects linkedly thereafter that is connected of terminal control section, can automatically rewrite.
In addition, the described control device of automatic vendor of third aspect present invention, above-mentioned main control part, in program storage portion, predetermined function distinct program zone, extender zone, because can be unit part rewrite control program,, make and rewrite the operating efficiency raising so the data volume of rewriting reduces with these zones.
Also have, the described control device of automatic vendor of fourth aspect present invention, in terminal control section inside, store the main control control program partly that is used to control this terminal control section, the main control part because when the terminal control section is loaded into, obtains control program from this terminal control section, so need in the storer of main control part and storage card and supervisory computer, not store corresponding program, make management become easy.
And then, the described control device of automatic vendor of fifth aspect present invention, in above-mentioned terminal control section, store above-mentioned control program with the form of intermediate language, because in the main control part, be built-in with the intermediate language interpretive routine, it is transformed to the partly machine language of usefulness of main control to the control program of this intermediate language form, even, also can directly use the control program of each terminal control section so the microcomputer of main control part is replaced by another microcomputer.

Claims (4)

1. control device of automatic vendor, it is to comprise between a plurality of terminal control sections of controlling the automatic vending machine each several part respectively separately and these terminal control sections it is characterized in that while communicating the control device of automatic vendor that it is carried out the main control part of overhead control:
Above-mentioned each terminal control section, keep the cognizance code of manufacturer separately and distinguish the version of corresponding control program with their, when communicating at first with the main control part, above-mentioned manufacturer identification code and version are sent to the main control part, master control part is divided manufacturer identification code and the version that receives according to from each terminal control section, the inside of the exterior storage medium that sequential search is set at ROM in the main control part, be inserted in storage card in the expansion slot, can communicate by letter is obtained and the corresponding control program of connected terminal control section.
2. control device of automatic vendor as claimed in claim 1 is characterized in that: above-mentioned main control part, in program storage portion, the zone of predetermined function distinct program, extender zone are partly rewrite control program of unit with these zones.
3. control device of automatic vendor as claimed in claim 2, it is characterized in that: in the terminal control section, store the main control control program partly that is used to control this terminal control section, when the terminal control section was loaded into, the main control part obtained control program from this terminal control section.
4. control device of automatic vendor as claimed in claim 3, it is characterized in that: at above-mentioned terminal control section, store above-mentioned control program with the form of intermediate language, in the main control part, be built-in with the control program of this intermediate language form is transformed to the partly intermediate language interpretive routine of the machine language of usefulness of main control.
CNB011016981A 2001-01-15 2001-01-15 Control device of automatic vendor Expired - Fee Related CN1145118C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB011016981A CN1145118C (en) 2001-01-15 2001-01-15 Control device of automatic vendor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB011016981A CN1145118C (en) 2001-01-15 2001-01-15 Control device of automatic vendor

Publications (2)

Publication Number Publication Date
CN1366277A CN1366277A (en) 2002-08-28
CN1145118C true CN1145118C (en) 2004-04-07

Family

ID=4652179

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB011016981A Expired - Fee Related CN1145118C (en) 2001-01-15 2001-01-15 Control device of automatic vendor

Country Status (1)

Country Link
CN (1) CN1145118C (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3909841B2 (en) * 2002-11-06 2007-04-25 日本金銭機械株式会社 Bill handling apparatus and bill information transmission method

Also Published As

Publication number Publication date
CN1366277A (en) 2002-08-28

Similar Documents

Publication Publication Date Title
EP0723226B1 (en) Powerfail durable flash EEPROM upgrade apparatus and method
US6904457B2 (en) Automatic firmware update of processor nodes
CN100424644C (en) Firmware program on-line upgrading method and hardware equipment
KR100259432B1 (en) Outboard data migration in a volume stacking library
US5717886A (en) Semiconductor disk device and memory management method
US7516296B2 (en) Flash memory storage device and read/write method
CN101727978B (en) Method for writing and reading data in an electrically erasable and programmable nonvolatile memory
CN100514310C (en) High-speed accessible memory featuring reduced data movement
JPH11161563A (en) Storage and reproduction method for data
US7039799B2 (en) Methods and structure for BIOS reconfiguration
CN100470660C (en) Method and devices for storing and reading data on a storage medium and storage medium
WO1997012324A1 (en) Memory management
US6430117B2 (en) Method for operating a jukebox
CN102132345A (en) Optical disc drive device
JP3212960B2 (en) Data management method using flash memory
EP1220119A2 (en) Data image cache
US6498965B2 (en) System for controlling vending machine
US5860088A (en) Method for extraction of a variable length record from fixed length sectors on a disk drive
CN1145118C (en) Control device of automatic vendor
JP3385844B2 (en) vending machine
EP1540660B1 (en) Method of and apparatus for detecting an error in writing to persistent memory
GB2406960A (en) A data storage library for media cartridges with memories
US7937549B2 (en) Storage system and subsystem to automatically detect hardware configuration changes
WO2008042594A1 (en) Managing file allocation table information
CN1227649A (en) Process for programming electric equipment, chip card and equipment

Legal Events

Date Code Title Description
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C06 Publication
PB01 Publication
ASS Succession or assignment of patent right

Owner name: SUBARU MOTOR CO., LTD.

Free format text: FORMER OWNER: SANYO ELECTRIC CO., LTD.

Effective date: 20021212

C41 Transfer of patent application or patent right or utility model
TA01 Transfer of patent application right

Effective date of registration: 20021212

Address after: Kanagawa, Japan

Applicant after: Fuji Electric Co., Ltd.

Address before: Osaka Japan

Applicant before: Sanyo Electric Co., Ltd.

C14 Grant of patent or utility model
GR01 Patent grant
CI01 Correction of invention patent gazette

Correction item: Patentee

Correct: Fuji Electric Co., Ltd.

False: Fuji Electric Co., Ltd.

Number: 14

Page: 430

Volume: 20

CI03 Correction of invention patent

Correction item: Patentee

Correct: Fuji Electric Co., Ltd.

False: Fuji Electric Co., Ltd.

Number: 14

Page: The title page

Volume: 20

COR Change of bibliographic data

Free format text: CORRECT: PATENTEE; FROM: SUBARU MOTOR CO., LTD. TO: FUJITSU ELECTRIC EQUIPMENT CO., LTD.

ERR Gazette correction

Free format text: CORRECT: PATENTEE; FROM: SUBARU MOTOR CO., LTD. TO: FUJITSU ELECTRIC EQUIPMENT CO., LTD.

C19 Lapse of patent right due to non-payment of the annual fee
CF01 Termination of patent right due to non-payment of annual fee