CN103544127B - Method for communication between automatic display cabinet and industrial computer - Google Patents

Method for communication between automatic display cabinet and industrial computer Download PDF

Info

Publication number
CN103544127B
CN103544127B CN201310495741.7A CN201310495741A CN103544127B CN 103544127 B CN103544127 B CN 103544127B CN 201310495741 A CN201310495741 A CN 201310495741A CN 103544127 B CN103544127 B CN 103544127B
Authority
CN
China
Prior art keywords
industrial computer
packet
vending machine
response
automatic vending
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201310495741.7A
Other languages
Chinese (zh)
Other versions
CN103544127A (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.)
Beijing You Bao scientific & trading Co., Ltd.
Original Assignee
Beijing Ubox Online Technology 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 Beijing Ubox Online Technology Co Ltd filed Critical Beijing Ubox Online Technology Co Ltd
Priority to CN201310495741.7A priority Critical patent/CN103544127B/en
Publication of CN103544127A publication Critical patent/CN103544127A/en
Application granted granted Critical
Publication of CN103544127B publication Critical patent/CN103544127B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Control Of Vending Devices And Auxiliary Devices For Vending Devices (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention provides a method for communication between an automatic display cabinet and an industrial computer. The method comprises the following steps of sending a data package for inquiring a current state to the automatic display cabinet by using the industrial computer; returning a current state data package if the automatic display cabinet receives the data package successfully; considering that hardware configuration of the automatic display cabinet is finished when the industrial computer receives response of the current state data package, and waiting for operation of a user; transmitting a control command data package after the industrial computer receives a user operating command; returning a corresponding control command response data package if the automatic display cabinet receives the control command data package successfully; and considering that the operation is successful when the industrial computer receives the control command response data package of the automatic display cabinet. By the method, intelligent communication between the automatic display cabinet and the industrial computer can be realized, and the automatic display cabinet can report various types of operating information of user operation and feedback operation, and the state information of local running states to the industrial computer.

Description

A kind of method communicated with industrial computer for automatic selling counter
【Technical field】
It is particularly a kind of for automatic selling counter and the communication party of industrial computer the present invention relates to communication technical field Method.
【Technical background】
The automatic vending machine of networking is provided and generally comprises two parts equipment, and terminal is automatic vending machine (VendingMachine, automatic vending machine) and as the industrial computer of server (IndustrialPersonalComputer, industrial computer).
Traditional automatic vending machine would be normally located at fixing point position, accordingly, it would be desirable to periodically hurry to fixation by dispensing personnel Implement the maintenance management to automatic vending machine in point position.For example check automatic vending machine sales figure, replenish for automatic vending machine, Check or update automatic vending machine price shows and cargo path distribution etc. parameter configuration, inspection automatic vending machine operation conditions, Plant maintenance etc. is carried out to automatic vending machine.
However, sales figure, stock position, parameter configuration, operation conditions due to automatic vending machine etc. is used to safeguard pipe The information of reason is stored in the machine, therefore, dispensing personnel are before fixing point position is hurried to and are unaware of these information, so as to cause Dispensing personnel targetedly cannot carry out maintenance management to automatic vending machine, and then cause the inefficient of maintenance management.
Further, since all process of automatic vending machine thus result in automatic selling both limited by its limited hardware capabilities Cargo aircraft cannot realize intelligentized control method.
Chinese patent application CN102662899A discloses a kind of side communicated for automatic vending machine and industrial computer Method, the application now introduces CN102662899A in full as the prior art of the application as its further improvement.
【The content of the invention】
It is an object of the invention to provide it is a kind of it is more simple and efficient, further simplify communication steps, further remove redundant digit According to the method communicated with industrial computer for automatic selling counter.
To achieve these goals, the present invention provides a kind of method communicated with industrial computer for automatic selling counter, The method includes:
Industrial computer sends the packet for inquiring about current state to automatic selling counter;
If automatic selling counter receives the above-mentioned packet for inquiring about current state, return to industrial computer automatic The current status data bag of vending machine, including grid quantity, whether support heating, whether support refrigeration, whether support that whole machine shines Bright information;
After industrial computer receives the current status data bag response that above-mentioned automatic selling counter sends, that is, think automatic selling The hardware configuration of counter is completed, and waits user operation;
After working computer receives user operation to be instructed, sent to the automatic selling counter by packet and open lattice Son, switch heater switch refrigeration, the control instruction packet for switching whole machine illumination;
If automatic selling counter receives above-mentioned control instruction packet, returning corresponding control instruction to industrial computer should Answer packet;
After industrial computer receives the control instruction reply data bag of automatic selling counter, that is, think the operation success.
According to the preferred embodiment of the above-mentioned method communicated with industrial computer for automatic selling counter, when work is calculated Machine is sent after control instruction packet by packet to the automatic selling counter, if not receiving automatic selling within the set time The control instruction reply data bag of counter, then it is assumed that operation failure.
According to the preferred embodiment of the above-mentioned method communicated with industrial computer for automatic selling counter, according to the method Also include:Automatic vending machine is reported to industrial computer using packet and event occurs containing expression after the faulty generation of the machine The status information reporting packet of barrier.
According to the preferred embodiment of the above-mentioned method communicated with industrial computer for automatic selling counter, according to the method Also include:After the completion of the initialization of automatic vending machine, automatic vending machine is utilized when any instruction of industrial computer is needed Packet sends the request of the correspondence mark containing the instruction to industrial computer and successively receives industrial computer and receiving The instruction issued using the response of response package and using packet after request.
According to the preferred embodiment of the above-mentioned method communicated with industrial computer for automatic selling counter, according to the method Also include:After the completion of the initialization of automatic vending machine, automatic vending machine is being switched to service mode and attended operation is occurring Afterwards, the report of the corresponding informance of the attended operation is reported to industrial computer using packet and industrial computer utilization is received The response of response package.
According to the preferred embodiment of the above-mentioned method communicated with industrial computer for automatic selling counter, according to the method Also include:After the completion of the initialization of automatic vending machine, automatic vending machine to industrial computer report attended operation event it Afterwards, if not receiving response of the industrial computer using response package in the given time, using packet to industry meter Calculation machine reports the report of the attended operation event again.
According to the preferred embodiment of the above-mentioned method communicated with industrial computer for automatic selling counter, according to the method Also include:Automatic vending machine reports expression the machine electrifying startup using packet after the machine electrifying startup to industrial computer Report and etc. industrial computer to be received using response package response;
Automatic vending machine is calculated using packet after successful respond of the industrial computer to electrifying startup event to industry Machine report the order that carries local basic information and etc. industrial computer to be received utilize the corresponding response of response package;
After successful respond of the automatic vending machine in industrial computer to the order, periodically with packet to industry meter Calculate wheel askes whether have instruction;
If automatic vending machine receives the operation control instruction that industrial computer is issued after polled using packet, The control information carried in indicating according to the operation control performs the control operation of corresponding running status, and, in the operation Control instruction needs to respond corresponding response to industrial computer using packet during response;
If automatic vending machine receives the initialization termination instruction that industrial computer is issued using packet, confirm initial Change is completed and responds successful respond to industrial computer using packet.
According to the preferred embodiment of the above-mentioned method communicated with industrial computer for automatic selling counter, according to the method Also include:Automatic vending machine is after the report that the machine electrifying startup is represented to industrial computer, if not connecing in the given time Response of the industrial computer using response package is received, is then reported again in expression the machine to industrial computer using packet The report for electrically activating;
Automatic vending machine after the order for carrying local basic information is reported to industrial computer, if in the scheduled time Response of the industrial computer using response package is not inside received, is then counted to industry again to industrial computer using packet Calculation machine reports the order for carrying local basic information to industrial computer.
According to the preferred embodiment of the above-mentioned method communicated with industrial computer for automatic selling counter, the industry meter Calculation machine includes with the data of automatic selling counter packet:
Beginning label, for representing the beginning of the packet;
Length field, for representing the length of the packet;
Response flag position, for representing whether the packet needs response;
Type field, for representing the implication of the packet;
Cupboard address, for representing the logical sequence number of the cupboard;
Self-defining data, according to different field types corresponding data are transmitted;
Data field, for carrying the information that the packets need is carried;
Verification and, for the verification of the packet.
The present invention can realize the intelligentized communication between automatic selling counter and industrial computer, and can make automatic selling Counter reports the operation information and the state letter of the machine running status of various user operations and feedback operation to industrial computer Breath.Thus, the intelligentized control method to automatic selling counter can be realized by means of the hardware capabilities of industrial computer.
【Description of the drawings】
Fig. 1 is the hardware structure that the embodiment of the present invention is based on for the method that automatic vending machine communicates with industrial computer Schematic diagram;
The packet that Fig. 2 is suitable for by the embodiment of the present invention for the method that automatic vending machine communicates with industrial computer Structural representation.
【Specific embodiment】
Following examples are used to explain technical scheme without limitation.Protection scope of the present invention should basis Claims determine.
Embodiment 1
A kind of method communicated with industrial computer for automatic vending machine.The method can realize automatic vending machine and work Unitized communication between industry computer, and automatic vending machine is enable to industrial computer feedback the machine based on the communication Status information, additionally it is possible to make automatic vending machine that the execution of various feedbacks operation is completed under the control of industrial computer, to this The execution of the control operation of machine running status.
As shown in figure 1, it is used for the method that automatic vending machine communicates with industrial computer in realize the embodiment of the present invention, can To arrange a master control borad (VendingMachineController, automatic vending machine C), the automatic vending in automatic vending machine Machine C is connected for example, by serial ports such as RS485 with industrial computer, also, realizes automatic vending machine and work by automatic vending machine C The communication of industry computer.
Additionally, also including realizing the hardware device and circuit of automatic vending machine basic function in automatic vending machine:For controlling Automatic vending machine grid control circuit processed, the temperature control circuit for controlling automatic vending machine refrigeration compressor, for controlling automatically The illumination control circuit of vending machine illumination.
Automatic vending machine C can be realized with the communication of industrial computer based on packet as shown in Figure 2.Specifically, In packet as shown in Figure 2
Each byte is followed successively by from as little as high:
The beginning label of 1 byte, for representing the beginning of the packet;
The length field of 1 byte, for representing the length of the packet;
The tag field of 1 byte, 1 response flag position responded to represent the packet whether to need of its highest;
The type field of 1 byte, for representing the implication of the packet;
The cupboard address of 1 byte, for representing the logical sequence number of the cupboard;
The data field of 1 byte, for carrying the data that the packets need is carried under one's arms;
The verification of 1 byte and, for the verification of the packet.
In order to realize that industrial computer inquires about the status information of automatic vending machine, and realize automatic vending machine in industry meter Execution corresponding operating under the control of calculation machine, the embodiment of the present invention defines corresponding packet.
Referring first to table 1, show in table 1 and represent the various packets that industrial computer sends to automatic vending machine Definition.
In table 1, using hexadecimal numerical value as type field to as a example by the value for distinguishing different implication packets.
Table 1
The definition of the various packets sent to industrial computer from automatic vending machine is shown in table 2.In table 2, with Hexadecimal numerical value is as type field to as a example by the value for distinguishing different implication packets.
Table 2
It can be seen that, the present invention can realize the intelligentized communication between automatic selling counter and industrial computer, and can make Automatic selling counter reports the operation information and the machine running status of various user operations and feedback operation to industrial computer Status information.Thus, the intelligentized control method to automatic selling counter can be realized by means of the hardware capabilities of industrial computer.

Claims (4)

1. a kind of method communicated with industrial computer for automatic selling counter, the method includes:
Industrial computer sends the packet for inquiring about current state to automatic selling counter;
If automatic selling counter receives the above-mentioned packet for inquiring about current state, to industrial computer automatic vending is returned The current status data bag of machine, including grid quantity, whether support to heat, whether support to freeze, whether support the illumination of whole machine Information;
After industrial computer receives the current status data bag response that above-mentioned automatic selling counter sends, that is, think automatic selling counter Hardware configuration complete, wait user operation;
After working computer receives user operation to be instructed, sent to the automatic selling counter by packet and open grid, opened Close heater switch refrigeration, switch the control instruction packet of whole machine illumination;
If automatic selling counter receives above-mentioned control instruction packet, to industrial computer corresponding control instruction answer number is returned According to bag;
After industrial computer receives the control instruction reply data bag of automatic selling counter, that is, think the operation success;
After the completion of the initialization of automatic vending machine, automatic vending machine after being switched to service mode and attended operation occur, The report of the corresponding informance of the attended operation is reported to industrial computer using packet and industrial computer is received and utilizes data The response of bag response;
Automatic vending machine reports the report for representing the machine electrifying startup using packet after the machine electrifying startup to industrial computer Accuse and etc. industrial computer to be received using response package response;
Automatic vending machine after successful respond of the industrial computer to electrifying startup event, using packet on industrial computer Report carry local basic information order and etc. industrial computer to be received utilize the corresponding response of response package;
After successful respond of the automatic vending machine in industrial computer to the order, periodically with packet to industrial computer Whether poll has instruction;
If automatic vending machine receives the operation control instruction that industrial computer is issued after polled using packet, foundation The control information that the operation control is carried in indicating performs the control operation of corresponding running status, and, in the operation control Instruction needs to respond corresponding response to industrial computer using packet during response;
If automatic vending machine receives the initialization termination instruction that industrial computer is issued using packet, confirmation has been initialized Into and using packet to industrial computer respond successful respond;
Automatic vending machine is after the report that the machine electrifying startup is represented to industrial computer, if not receiving in the given time Industrial computer then reports electricity in expression the machine to open again using packet using the response of response package to industrial computer Dynamic report;
Automatic vending machine after the order for carrying local basic information is reported to industrial computer, if in the given time not Receive industrial computer using response package response, then using packet to industrial computer again to industrial computer Report the order for carrying local basic information;
The automatic vending machine is followed successively by with each byte in the packet of the communication of industrial computer:
The beginning label of 1 byte, for representing the beginning of the packet;
The length field of 1 byte, for representing the length of the packet;
The tag field of 1 byte, 1 response flag position responded to represent the packet whether to need of its highest;
The type field of 1 byte, for representing the implication of the packet;
The cupboard address of 1 byte, for representing the logical sequence number of the cupboard;
Meaningless byte;
The data field of 1 byte, for carrying the data that the packets need is carried under one's arms;
The verification of 1 byte and, for the verification of the packet.
2. the method communicated with industrial computer for automatic selling counter according to claim 1, it is characterised in that work as work Make computer to send after control instruction packet to the automatic selling counter by packet, if not receiving in the given time The control instruction reply data bag of automatic selling counter, then it is assumed that operation failure.
3. the method communicated with industrial computer for automatic selling counter according to claim 1, it is characterised in that according to The method also includes:
Automatic vending machine reports what is broken down containing expression using packet after the faulty generation of the machine to industrial computer Status information reporting packet.
4. method according to claim 1, it is characterised in that the method also includes:. it is complete in the initialization of automatic vending machine Cheng Hou, automatic vending machine sends to contain to industrial computer and is somebody's turn to do when any instruction of industrial computer is needed using packet The request of the correspondence mark of instruction and successively receive industrial computer upon receiving a request using the response of response package with And the instruction issued using packet.
CN201310495741.7A 2013-10-21 2013-10-21 Method for communication between automatic display cabinet and industrial computer Active CN103544127B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310495741.7A CN103544127B (en) 2013-10-21 2013-10-21 Method for communication between automatic display cabinet and industrial computer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310495741.7A CN103544127B (en) 2013-10-21 2013-10-21 Method for communication between automatic display cabinet and industrial computer

Publications (2)

Publication Number Publication Date
CN103544127A CN103544127A (en) 2014-01-29
CN103544127B true CN103544127B (en) 2017-04-12

Family

ID=49967598

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310495741.7A Active CN103544127B (en) 2013-10-21 2013-10-21 Method for communication between automatic display cabinet and industrial computer

Country Status (1)

Country Link
CN (1) CN103544127B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106846627B (en) * 2015-12-04 2019-06-21 惠州市诺坚五金制品有限公司 A kind of vending machine configuration method and system based on intelligent mobile terminal
CN107633429A (en) * 2017-09-18 2018-01-26 杭州纳戒科技有限公司 Shared box for material circulation pricing method, apparatus and system
CN107545392A (en) * 2017-09-18 2018-01-05 杭州纳戒科技有限公司 Shared box for material circulation pricing method, apparatus and system
CN110929889A (en) * 2018-08-29 2020-03-27 深圳友朋智能商业科技有限公司 Cargo way fault maintenance method and device, computer device and computer storage medium
CN109859385B (en) * 2019-02-02 2021-07-30 湖南金码云链科技有限公司 Master-slave communication method and system for industrial computer and vending machine
CN109859386A (en) * 2019-02-02 2019-06-07 湖南金码云链科技有限公司 A kind of industrial computer and vending machine two-way communication and system
CN112669521B (en) * 2020-12-11 2022-12-20 深圳市智莱科技股份有限公司 Vending machine initialization method, vending machine and readable storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102662899A (en) * 2012-04-10 2012-09-12 北京友宝科斯科贸有限公司 Method for communication between vending machine and industrial computer
CN103312452A (en) * 2012-12-21 2013-09-18 深圳市富晶科技有限公司 Communication method between automatic selling terminal and upper computer of automatic selling terminal

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090306817A1 (en) * 2008-06-09 2009-12-10 The Coca-Cola Company Virtual Vending Machine

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102662899A (en) * 2012-04-10 2012-09-12 北京友宝科斯科贸有限公司 Method for communication between vending machine and industrial computer
CN103312452A (en) * 2012-12-21 2013-09-18 深圳市富晶科技有限公司 Communication method between automatic selling terminal and upper computer of automatic selling terminal

Also Published As

Publication number Publication date
CN103544127A (en) 2014-01-29

Similar Documents

Publication Publication Date Title
CN103544127B (en) Method for communication between automatic display cabinet and industrial computer
CN100591073C (en) Home network system
US8805596B2 (en) Remote wind turbine reset system and method
CN102687463A (en) Network system and method of controlling network system
US20140081466A1 (en) Gateway round-robin system
CN104345717A (en) Intelligent remote data acquisition system based on Internet of Things
KR20040104323A (en) Home network system
CN106329721A (en) Integrated intelligent ammeter and electric power measurement and control protection system
CN209028621U (en) A kind of cabinet IT asset management device and system
KR20040104322A (en) Home network system
CN110503170A (en) A kind of data center machine room intellectual capital management system
CN102662899B (en) Method for communication between vending machine and industrial computer
CN105652785A (en) PLC (programmable logic controller) communication module based on IEC (international electrotechnical commission) 60870-5-104 telecontrol protocol
CN202094936U (en) Fire alarm image-text system
CN204759119U (en) Local consumer off -line network management control system
CN103473655A (en) Country area company production and operation integrated platform
CN106708701A (en) Central maintenance device and method based on ARINC659 bus
CN1938988A (en) Home network system
CN111245496A (en) Energy-saving communication system and algorithm for electronic tag network signals
CN204667148U (en) A kind of electric equipment control device based on Internet of Things
KR20040104324A (en) Home network system
KR20100058767A (en) Method of controlling electronic shelf lable tag and system thereof
CN103312452A (en) Communication method between automatic selling terminal and upper computer of automatic selling terminal
KR100596757B1 (en) Home network system
JPH02123893A (en) Home control system

Legal Events

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

Owner name: BEIJING YOUBAO TECHNOLOGY TRADE CO., LTD.

Free format text: FORMER OWNER: ONLINEBOX TECHNOLOGY COMPANY LTD.

Effective date: 20150616

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

Effective date of registration: 20150616

Address after: 100102 Beijing City, Chaoyang District Guangshun Beidajie 5 SUNAC power 4

Applicant after: Beijing You Bao scientific & trading Co., Ltd.

Address before: Room 2701, Jin Zhonghui center, 28 Queen's Road East, Wan Chai, Hongkong, China

Applicant before: ONLINEBOX TECHNOLOGY COMPANY LIMITED

CB02 Change of applicant information

Address after: 101500 Room 501, office building, 8 Development Zone, flourishing South Road, Miyun Economic Development Zone, Beijing, -216

Applicant after: BEIJING UBOX ONLINE TECHNOLOGY CO., LTD.

Address before: 100102 Beijing City, Chaoyang District Guangshun Beidajie 5 SUNAC power 4

Applicant before: Beijing You Bao scientific & trading Co., Ltd.

COR Change of bibliographic data
GR01 Patent grant
GR01 Patent grant
CP02 Change in the address of a patent holder
CP02 Change in the address of a patent holder

Address after: 100102 room 128, Canbo Road, 8 Canbo Road, Miyun District Economic Development Zone, Beijing

Patentee after: Beijing Ubox Online Technology Co., Ltd.

Address before: 101500 Room 501, office building, 8 Development Zone, Xingsheng Road, Miyun Economic Development Zone, Beijing, -216

Patentee before: Beijing Ubox Online Technology Co., Ltd.