CN109658600A - A kind of automatic concurrent shipment system and method - Google Patents

A kind of automatic concurrent shipment system and method Download PDF

Info

Publication number
CN109658600A
CN109658600A CN201811579539.1A CN201811579539A CN109658600A CN 109658600 A CN109658600 A CN 109658600A CN 201811579539 A CN201811579539 A CN 201811579539A CN 109658600 A CN109658600 A CN 109658600A
Authority
CN
China
Prior art keywords
shipment
task
microcontroller
cloud computing
automatic
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201811579539.1A
Other languages
Chinese (zh)
Other versions
CN109658600B (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.)
Xiaoyu Technology (shanghai) Co Ltd
Original Assignee
Xiaoyu Technology (shanghai) 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 Xiaoyu Technology (shanghai) Co Ltd filed Critical Xiaoyu Technology (shanghai) Co Ltd
Priority to CN201811579539.1A priority Critical patent/CN109658600B/en
Publication of CN109658600A publication Critical patent/CN109658600A/en
Application granted granted Critical
Publication of CN109658600B publication Critical patent/CN109658600B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07FCOIN-FREED OR LIKE APPARATUS
    • G07F11/00Coin-freed apparatus for dispensing, or the like, discrete articles

Abstract

The present invention discloses a kind of automatic concurrent shipment system, including cloud computing engine, microcontroller, shipment driving device and shipment detection device, it is connected between the cloud computing engine and microcontroller by TCP communication mode, the microcontroller is connect by GPIO communication mode with shipment driving device, and the microcontroller interrupts communication mode by GPIO and connect with shipment detection device.It further discloses a kind of corresponding to the shipment system automatic and issues pallet piling up method, can realize through the invention and concurrent shipment simultaneously is carried out to a shipment equipment difference output port, can replicate rapidly, realize terminal large-scale application.

Description

A kind of automatic concurrent shipment system and method
Technical field
The present invention relates to automatic shipment fields, and in particular to a kind of automatic concurrent shipment system and method.
Background technique
With the rapid development of Chinese automatic vending industry, constantly occur automatic vending machine, automatic Stored Value in the market The self-service dealing equipment such as machine, ATM, automatic money exchanger, they with it is novel, civilization, service within 24 hours, take up little area, flexibly Facilitate the deep favor by citizen, provides modern, rapid, convenient life style for people.The development degree of self-service product, Mark as a urban modernization degree and social civilization level.
Existing Self-help vending machine is mainly used in the pin of retail trade, such as beverage, food, cigarette, daily necessity etc. It sells, these self-service devices are all single shipment mode at present, i.e. an equipment can only be bought every time for a people, and more people, which buy, to be needed It is lined up and completes, every utilization rate of equipment and installations is very limited in the unit time, causes the waste of manpower and device resource larger;And machine Operation troubles rate is relatively high, and many a part also rest on " coin drive formula " purchase in the means of payment, and denomination is quota Paper money recognition purchase, for other means of payment such as stored value card, digital cash, smart card all also in construction, for electricity Self-service network based on son identification is also in breeding development.
Summary of the invention
In order to solve above-mentioned technical problem, the present invention provides a kind of automatic concurrent shipment system and method.
The present invention in order to solve the above problem used by technical solution are as follows: a kind of automatic concurrent shipment system is provided, including Cloud computing engine, microcontroller, shipment driving device and shipment detection device are led between the cloud computing engine and microcontroller It crosses TCP communication mode to connect, the microcontroller is connect by GPIO communication mode with shipment driving device, the microcontroller Communication mode is interrupted by GPIO to connect with shipment detection device.
It preferably, include multiple objects, the corresponding specific shipment equipment of each object in the cloud computing engine;Institute Stating each object includes three program identifications: communication link (is denoted as channel), and shipment device numbering (is denoted as machineID) With the output port (CargoWay) of the shipment equipment, each output port (CargoWay) include in work with leave unused two kinds of works Make Status Flag;
When needing shipment, which is found according to shipment device numbering, passes through the communication The shipment equipment of the chain road direction number issues the instruction from its output port shipment.
When needing concurrent shipment, which is found according to shipment device numbering, by this Communication link simultaneously and is sent to the shipment equipment of the number and issues instruction from its different concurrent shipment of output ports (CargoWay).
Preferably, the microcontroller includes communication module, middle control module and Hardware drive module;
The communication module is connect with cloud computing engine communication, is referred to for receiving from the shipment that cloud computing engine issues It enables, each shipment that the cloud computing engine issues instructs to form a shipment task;
The middle control module includes thread pool, and the thread pool is made of multiple threads;
The middle control module includes multiple tasks chained list, the output port of the corresponding shipment equipment of each Task-list, institute Task-list is stated for storing the shipment task issued from cloud computing engine;
Thread in the thread pool is used to adjust the task in reading task chained list;
The Hardware drive module carries out driving shipment for controlling shipment driving device.
It preferably, further include interrupting drive module in the Hardware drive module.
Preferably, the microcontroller uses Cortex-A family chip, carries embedded Linux operating system.
Preferably, the shipment driving device connect with external shipment equipment and is used to control going out for the outside shipment equipment Goods.
Preferably, the shipment driving device is according to every time while only carrying out a shipment instruction mode and control outside this The shipment of shipment equipment.The principle prints ordering principle similar to printer.
Preferably, the shipment detection device is for detecting external shipment equipment shipment situation, and will test result feedback To microcontroller.
Further, it provides a kind of automatic and issues pallet piling up method, comprising the following steps:
S01: the communication module reception in microcontroller instructs to form task deposit from the shipment that cloud computing engine issues In middle control module design task chained list in microcontroller;
S02: the task in middle control module in Task-list described in thread read step S01;
S03: the corresponding output port working condition mark of Task-list described in the thread read step S01 in middle control module Will, if the working condition mark be work in, enter step S04, if the working condition mark be it is idle, be directly entered step Rapid S07;
S04: thread described in step S02 will be hung up and be waited, and enter step S05;
Does S05: shipment detection device detect whether shipment?
If it is not, then return step S04;
If so, entering step S06;
S06: it interrupts drive module and receives shipment information, and wake up the thread being suspended, and enter step S07;
S07: thread transfers hardware drive program corresponding with the output port, and hardware drive program driving is controlled by it Shipment driving device carries out shipment.
Preferably, task described in step S01 includes the output port position data of shipment equipment.
Bring of the present invention, which has the beneficial effect that, uses a kind of automatic concurrent shipment system and method for the present invention, by Cloud computing engine carries out issuing for shipment instruction, after the communication module in microcontroller receives shipment instruction, by microcontroller Middle control program in device transfers different Task-lists using thread pool, by the corresponding output port of different Task-lists and The driving of the corresponding hardware drive program of output port carries out shipment, while shipment detection device is measured in real time shipment situation And will test result feedback to microcontroller, the entire shipment system core is realized by communication mode to one by microcontroller Shipment equipment difference output port carries out concurrent shipment simultaneously, it is further provided corresponding with the shipment system automatic and issue cargo interests Method;Digitlization, the networking that automatic vending machine may be implemented using the present invention, may be implemented the unmanned value of automatic shipment equipment It keeps, never close, provide the personalized service of customer-oriented, and have and beautify the environment, improve urban culture height It can be replicated rapidly in terms of commercial value with the effect of modernization level, realize terminal large-scale application, reduce cost, mention Ascending effect.
Detailed description of the invention
Fig. 1 is a kind of structural schematic diagram of automatic concurrent shipment system of the present invention;
Fig. 2 is flow diagram that is a kind of automatic and issuing pallet piling up method of the invention.
Specific embodiment
Below in conjunction with specific attached drawing, the present invention is further illustrated.
As shown in Figure 1, providing a kind of automatic concurrent shipment system, including cloud computing engine 1, microcontroller 2, shipment driving Device 3 and shipment detection device 4;
Wherein: cloud computing engine 1 includes multiple objects, the corresponding specific shipment equipment of each object, each object Including three program identifications, it is respectively as follows: communication link 11 (channel), shipment device numbering 12 (machineID) and the shipment The output port 13 (CargoWay) of equipment, each shipment that cloud computing engine 1 issues instruct to form a shipment task;
Wherein: microcontroller 2 uses Cortex-A family chip, carries embedded Linux operating system comprising communication Module 21, middle control module 22 and Hardware drive module 23, Hardware drive module 23 further include having to interrupt drive module 231;Middle control Module 22 includes a thread pool, the thread pool be made of multiple threads, meanwhile, middle control module 22 includes multiple tasks chain Table, each Task-list correspond to the shipment of a shipment equipment, and the thread in thread pool is used to read the task in Task-list, And it according to the task in the Task-list goes to read the state of corresponding output port (each output port includes idle and work Middle two states mark), and hardware driving mould corresponding with the output port is further transferred by thread according to the state of output port Block 23;Hardware drive module 23 carries out driving shipment for controlling shipment driving device 3.
Communication module 21 is TCP-Client, is the client-side program of a Transmission Control Protocol, be responsible for cloud computing engine 1 into Row communication, middle control module 22 are the message control modules in microcontroller 2, are mainly gone parallel using the thread in thread pool Processing Task-list in task, and the parallel driving for going that Hardware drive module 23 is called to carry out shipment driving device 3 Control.
Wherein: shipment driving device 3 connect with external shipment equipment and is used to control the shipment of the outside shipment equipment;Out The general main shipment situation for being used to detect shipment driving device 3 using sensor device of goods detection device 4.Hardware drive module 23 mainly connect with shipment driving device 3, for driving the shipment of shipment driving device 3 work, generally be mainly by with Electric motor is attached, for controlling the work of the electric motor, shipment driving device 3 according to the timing diagram of electric motor It is according to every time while only carrying out the shipment that a shipment instruction mode controls the outside shipment equipment;And interrupt drive module 231 mainly connect with shipment detection device 4, and the shipment situation for being detected according to shipment detection device 4 carries out interruption life The execution of order, it is general that shipment detection is mainly carried out by sensor device, when cargo shipment is fallen, sensing equipment detection It arrives and sends the interruption drive module in electronic signal (such as high level electronic signal) triggering microcontroller 2 to microcontroller 2 231 centering control modules 22 carry out program readjustment, and the readjustment of middle control module 22 then passes through communication module 21 and feeds back shipment information To cloud computing engine 1.
As shown in Fig. 2, provide a kind of corresponding with Fig. 1 automatic and issue pallet piling up method, method includes the following steps:
S01: the communication module reception in microcontroller instructs to form task deposit from the shipment that cloud computing engine issues In middle control module design task chained list in microcontroller;
S02: the task in middle control module in Task-list described in thread read step S01;
S03: the corresponding output port working condition mark of Task-list described in the thread read step S01 in middle control module Will, if the working condition mark be work in, enter step S04, if the working condition mark be it is idle, be directly entered step Rapid S07;
S04: thread described in step S02 will be hung up and be waited, and enter step S05;
Does S05: shipment detection device detect whether shipment?
If it is not, then return step S04;
If so, entering step S06;
S06: it interrupts drive module and receives shipment information, and wake up the thread being suspended, and enter step S07;
S07: thread transfers hardware drive program corresponding with the output port, and hardware drive program driving is controlled by it Shipment driving device carries out shipment.
Wherein: task described in step S01 includes the output port position data of shipment equipment.
The above content is a further detailed description of the present invention in conjunction with specific preferred embodiments, and it cannot be said that Specific implementation of the invention is only limited to these instructions, and for those skilled in the art to which the present invention belongs, is not being taken off Under the premise of from present inventive concept, a number of simple deductions or replacements can also be made, all shall be regarded as belonging to protection of the invention Range.

Claims (10)

1. a kind of automatic concurrent shipment system, it is characterised in that: including cloud computing engine, microcontroller, shipment driving device and Shipment detection device is connected between the cloud computing engine and microcontroller by TCP communication mode, and the microcontroller passes through GPIO communication mode is connect with shipment driving device, and the microcontroller interrupts communication mode and shipment detection device by GPIO Connection.
2. a kind of automatic concurrent shipment system according to claim 1, it is characterised in that: include in the cloud computing engine Multiple objects, the corresponding specific shipment equipment of each object;Each object includes three program identifications: communication chain Road, the output port of shipment device numbering and the shipment equipment, each output port include in work with leave unused two kinds of work shapes State mark;
When needing shipment, which is found according to shipment device numbering, passes through the communication link The instruction from its output port shipment is issued to the shipment equipment of the number.
3. a kind of automatic concurrent shipment system according to claim 1, it is characterised in that: the microcontroller includes communication Module, middle control module and Hardware drive module;
The communication module is connect with cloud computing engine communication, for receiving the shipment instruction issued from cloud computing engine, institute Each shipment that cloud computing engine issues is stated to instruct to form a shipment task;
The middle control module includes thread pool, and the thread pool is made of multiple threads;
The middle control module includes multiple tasks chained list, the output port of the corresponding shipment equipment of each Task-list, and described Business chained list is for storing the shipment task issued from cloud computing engine;
Thread in the thread pool is used to adjust the task in reading task chained list;
The Hardware drive module carries out driving shipment for controlling shipment driving device.
4. a kind of automatic concurrent shipment system according to claim 1, it is characterised in that: in the Hardware drive module also Including interrupting drive module.
5. a kind of automatic concurrent shipment system according to claim 1, it is characterised in that: the microcontroller uses Cortex-A family chip carries embedded Linux operating system.
6. a kind of automatic concurrent shipment system according to claim 1, it is characterised in that: the shipment driving device and outer Portion's shipment equipment connects and is used to control the shipment of the outside shipment equipment.
7. a kind of automatic concurrent shipment system according to claim 1, it is characterised in that: the shipment driving device be by According to each shipment for only carrying out a shipment instruction mode simultaneously and controlling the outside shipment equipment.
8. a kind of automatic concurrent shipment system according to claim 6 or 7, it is characterised in that: the shipment detection device For detecting external shipment equipment shipment situation, and it will test result feedback to microcontroller.
9. one kind is automatic and issues pallet piling up method, it is characterised in that: the following steps are included:
S01: the communication module in microcontroller is received instructs the task of being formed to be stored in micro- from the shipment that cloud computing engine issues In middle control module design task chained list in controller;
S02: the task in middle control module in Task-list described in thread read step S01;
S03: the corresponding output port working condition mark of Task-list described in the thread read step S01 in middle control module, if The working condition mark be work in, then enter step S04, if the working condition mark be it is idle, be directly entered step S07;
S04: thread described in step S02 will be hung up and be waited, and enter step S05;
Does S05: shipment detection device detect whether shipment?
If it is not, then return step S04;
If so, entering step S06;
S06: it interrupts drive module and receives shipment information, and wake up the thread being suspended, and enter step S07;
S07: thread transfers hardware drive program corresponding with the output port, which drives the shipment being controlled by it Driving device carries out shipment.
10. one kind according to claim 8 is automatic and issues pallet piling up method, it is characterised in that: task packet described in step S01 Include the output port position data of goods equipment.
CN201811579539.1A 2018-12-24 2018-12-24 Automatic concurrent shipment system and method Active CN109658600B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811579539.1A CN109658600B (en) 2018-12-24 2018-12-24 Automatic concurrent shipment system and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811579539.1A CN109658600B (en) 2018-12-24 2018-12-24 Automatic concurrent shipment system and method

Publications (2)

Publication Number Publication Date
CN109658600A true CN109658600A (en) 2019-04-19
CN109658600B CN109658600B (en) 2021-10-15

Family

ID=66115470

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811579539.1A Active CN109658600B (en) 2018-12-24 2018-12-24 Automatic concurrent shipment system and method

Country Status (1)

Country Link
CN (1) CN109658600B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1588316A (en) * 2004-06-29 2005-03-02 北京大学 Property optimizing method for applying server
CN102023844A (en) * 2009-09-18 2011-04-20 深圳中微电科技有限公司 Parallel processor and thread processing method thereof
US20160335324A1 (en) * 2015-05-12 2016-11-17 Jesse M Caulfield Geographic Application Partitioning
CN106371907A (en) * 2016-08-30 2017-02-01 乐视控股(北京)有限公司 Method and device for executing task
CN206179091U (en) * 2016-08-17 2017-05-17 上海华屹数码科技有限公司 But machine of selling of a plurality of goods is sold to single
CN207216757U (en) * 2017-09-29 2018-04-10 华中师范大学 The instant food automatic vending machine of refrigeration is heated based on Internet of Things
CN108171877A (en) * 2017-12-20 2018-06-15 武汉邮电科学研究院 Self-service machine and its monitoring method, handheld terminal and cloud platform based on NB-IOT

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1588316A (en) * 2004-06-29 2005-03-02 北京大学 Property optimizing method for applying server
CN102023844A (en) * 2009-09-18 2011-04-20 深圳中微电科技有限公司 Parallel processor and thread processing method thereof
US20160335324A1 (en) * 2015-05-12 2016-11-17 Jesse M Caulfield Geographic Application Partitioning
CN206179091U (en) * 2016-08-17 2017-05-17 上海华屹数码科技有限公司 But machine of selling of a plurality of goods is sold to single
CN106371907A (en) * 2016-08-30 2017-02-01 乐视控股(北京)有限公司 Method and device for executing task
CN207216757U (en) * 2017-09-29 2018-04-10 华中师范大学 The instant food automatic vending machine of refrigeration is heated based on Internet of Things
CN108171877A (en) * 2017-12-20 2018-06-15 武汉邮电科学研究院 Self-service machine and its monitoring method, handheld terminal and cloud platform based on NB-IOT

Also Published As

Publication number Publication date
CN109658600B (en) 2021-10-15

Similar Documents

Publication Publication Date Title
CN102982585A (en) Express self-service system
CN105607605B (en) Composing room's intelligence control system and control method
CN204842244U (en) Automatic sorting device based on RFID
CN103150854A (en) Catering quick counting system based on RFID (Radio Frequency Identification)
CN101430812A (en) Split type automatic book returning system and its implementing method
CN103106558B (en) Packing of product information online monitoring system and method on streamline
CN109828497A (en) A method of for data center's asset monitoring and auto-alarming
CN207301681U (en) A kind of automatic vending-machine controlling system with CANopen protocols
US4682261A (en) Production control system, especially for garment manufacture
CN109658600A (en) A kind of automatic concurrent shipment system and method
CN202472726U (en) Medicament warehousing and delivery counting device
CN109492977A (en) A kind of gravity sensing unmanned plane pick-up platform
CN109828945A (en) A kind of service message processing method and system
CN210572004U (en) Plane information detection system for multiple assembly lines
CN109533829A (en) A kind of automatic point of rail system of supermarket
CN105761069B (en) POS terminal communication method and system
CN102521707A (en) Production process information acquisition method of mechanical manufacturing workshop based on radio frequency identification device (RFID)
CN110533848A (en) Interception parallel port cash register print data and the method and system for pursuing and attacking additional information
CN104102890B (en) The method of NFC mobile communication terminals and its detection card
CN203299874U (en) Assembly line product packaging information online monitoring system
CN105809374B (en) Cement building material logistics management system and method
CN104732649A (en) Money processing system
CN102129543B (en) Second-generation identity card information automatic-entering adapter supporting multiple terminals
CN209625096U (en) A kind of inspection business self-inquiry terminal machine
CN107671002A (en) The clothes method for sorting and its device of view-based access control model detection

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information
CB02 Change of applicant information

Address after: Room 403, 356 Xinzhalu, Huangpu District, Shanghai

Applicant after: Fuli Science and Technology (Shanghai) Co., Ltd.

Address before: Room 403, 356 Xinzhalu, Huangpu District, Shanghai

Applicant before: Xiaoyu Technology (Shanghai) Co., Ltd.

CB03 Change of inventor or designer information
CB03 Change of inventor or designer information

Inventor after: Huang Yukuo

Inventor after: Xu Songsong

Inventor after: Gao Zhiliang

Inventor after: Han Chongyu

Inventor before: Huang Yukuo

Inventor before: Han Chongyu

Inventor before: Gao Zhiliang

GR01 Patent grant
GR01 Patent grant