CN111583517A - Delivery control method of vending machine, server and vending machine - Google Patents

Delivery control method of vending machine, server and vending machine Download PDF

Info

Publication number
CN111583517A
CN111583517A CN202010323716.0A CN202010323716A CN111583517A CN 111583517 A CN111583517 A CN 111583517A CN 202010323716 A CN202010323716 A CN 202010323716A CN 111583517 A CN111583517 A CN 111583517A
Authority
CN
China
Prior art keywords
channel
delivered
shipment
strategy
commodity
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
CN202010323716.0A
Other languages
Chinese (zh)
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.)
Shanghai Quzhi Network Technology Co ltd
Original Assignee
Shanghai Quzhi Network 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 Shanghai Quzhi Network Technology Co ltd filed Critical Shanghai Quzhi Network Technology Co ltd
Priority to CN202010323716.0A priority Critical patent/CN111583517A/en
Publication of CN111583517A publication Critical patent/CN111583517A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/08Logistics, e.g. warehousing, loading or distribution; Inventory or stock management
    • G06Q10/087Inventory or stock management, e.g. order filling, procurement or balancing against orders
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/55Push-based network services

Abstract

The invention relates to the technical field of vending machines, in particular to a delivery control method of an unmanned vending machine, a server and the unmanned vending machine. A delivery control method of an unmanned vending machine is applied to a server and comprises the following steps: after payment result information is received, issuing an instruction to the unmanned vending machine by adopting a WebSocket communication protocol; the instructions include a shipment policy; the shipment strategy comprises: the method comprises a balance cargo channel polling shipment strategy, a single cargo channel priority shipment strategy, a cargo channel distance priority shipment strategy, a cargo channel state priority shipment strategy and a cargo channel weighting polling shipment strategy. According to the technical scheme, the WebSocket communication protocol is adopted, and the WebSocket is used for replacing the conventional Http request polling technical scheme, so that the strategy command is pushed remotely, the number of links of the server is reduced, the pressure of the system is relieved, and the complexity of the server and the hardware deployment cost are reduced.

Description

Delivery control method of vending machine, server and vending machine
Technical Field
The invention relates to the technical field of vending machines, in particular to a delivery control method of an unmanned vending machine, a server and the unmanned vending machine.
Background
In the prior art, an HTTP request protocol is adopted in a delivery and shipment data protocol of a commodity of an unmanned vending end on the market, and a VEM end sends a polling request to a server to determine that delivery and shipment can be performed at the moment. The method has certain technical limitations, such as long response delay time of the shipment request, frequent request of the server, and higher load pressure on the server, and as the number of the unmanned terminal points sold increases, the protocol expansibility is insufficient, and the cost is higher.
Disclosure of Invention
To this end, embodiments of the present invention provide a delivery control method for an unmanned vending machine, a server, and an unmanned vending machine, so as to solve the above problems.
In order to achieve the above object, the embodiments of the present invention provide the following technical solutions:
according to a first aspect of an embodiment of the present invention, a delivery control method for an unmanned vending machine, applied to a server, includes:
after payment result information is received, issuing an instruction to the unmanned vending machine by adopting a WebSocket communication protocol;
the instructions include a shipment policy;
the shipment strategy comprises:
the method comprises a balance cargo channel polling shipment strategy, a single cargo channel priority shipment strategy, a cargo channel distance priority shipment strategy, a cargo channel state priority shipment strategy and a cargo channel weighting polling shipment strategy.
Further, the instruction also comprises the identification, the quantity, the shipment time and the state information of the commodities needing to be shipped; the state information includes: immediate effect, delayed effect.
According to a second aspect of the embodiments of the present invention, a delivery control method for an unmanned vending machine, applied to the unmanned vending machine, includes:
after the order information is reported to the server, receiving an instruction issued by the server by adopting a WebSocket communication protocol;
the instructions include a shipment policy;
the shipment strategy comprises: the method comprises a balance cargo channel polling shipment strategy, a single cargo channel priority shipment strategy, a cargo channel distance priority shipment strategy, a cargo channel state priority shipment strategy and a cargo channel weighting polling shipment strategy.
Further, if a balance cargo way polling shipment strategy is adopted, the method comprises the following steps:
acquiring the number and quantity of commodities needing to be delivered in the instruction;
acquiring the local inventory total amount of the commodities needing to be delivered, the number of the commodity channels and the residual amount of the commodities needing to be delivered on each commodity channel;
and when each commodity needing to be delivered is delivered, determining the delivery channel with the largest quantity of the commodities needing to be delivered as a delivery channel to deliver the commodity until the delivery is finished.
Further, if the single cargo way priority delivery strategy is adopted, the method comprises the following steps:
acquiring the number and quantity of commodities needing to be delivered in the instruction;
acquiring the inventory total amount of the local commodities needing to be delivered, the number of the commodity channels and the residual amount of the commodities needing to be delivered on each commodity channel;
for any goods channel, after all the goods needing to be delivered on the goods channel are delivered, delivering the goods to the adjacent goods channel; until the shipment is finished.
Further, if a cargo way distance priority shipment strategy is adopted, the method comprises the following steps:
acquiring the number and quantity of commodities needing to be delivered in the instruction;
acquiring the local inventory total amount of the commodities needing to be delivered, the number of the commodity channels, the residual quantity of the commodities needing to be delivered on each commodity channel and the distance information between the commodity channel and the delivery port;
determining the shortest distance and the corresponding goods channel when each commodity needing to be delivered is delivered; determining to use the cargo way for shipment; until the shipment is finished.
Further, if the goods channel state priority delivery strategy is adopted, the method comprises the following steps:
acquiring the number and quantity of commodities needing to be delivered in the instruction;
acquiring the local inventory total amount of the commodities needing to be delivered, the number of the commodity channels, the residual amount of the commodities needing to be delivered on each commodity channel and state information;
the state information includes: a normal state, a reduced weight state, or a reduced weight state;
when every cargo is delivered, on the premise that the residual quantity of the commodities needing to be delivered on the cargo channel is not zero, the cargo channel for delivering is determined according to the principle that the priority of the normal state is greater than the priority of the descending state and is greater than the priority of the descending state until the delivery is finished.
Further, if a cargo way weighted polling shipment strategy is adopted, the method comprises the following steps:
acquiring the number and quantity of commodities needing to be delivered in the instruction;
acquiring local inventory total quantity of the commodities needing to be delivered, the number of the commodity channels, the residual quantity of the commodities needing to be delivered on each commodity channel and the weighting information of the commodity channels;
when each commodity needing to be delivered is delivered, determining the commodity channel with the highest weighted value as a delivery commodity channel on the premise that the residual quantity of the commodities needing to be delivered on the commodity channel is not zero; until the shipment is finished.
Further, still include: if receiving the failure information of the goods way; degrading the failed goods way;
if the lane remains faulty within a predetermined threshold number of trials; the status of the lane is changed to an unavailable status.
According to a third aspect of an embodiment of the present invention, a server includes:
the sending module is used for sending an instruction to the unmanned vending machine by adopting a WebSocket communication protocol after receiving the payment result information;
the instructions include a shipment policy;
the shipment strategy comprises:
the method comprises a balance cargo channel polling shipment strategy, a single cargo channel priority shipment strategy, a cargo channel distance priority shipment strategy, a cargo channel state priority shipment strategy and a cargo channel weighting polling shipment strategy.
According to a fourth aspect of embodiments of the present invention, an unmanned vending machine comprises:
the receiving module is used for receiving an instruction issued by the server by adopting a WebSocket communication protocol after reporting the order information to the server;
the instructions include a shipment policy;
the shipment strategy comprises: the method comprises a balance cargo channel polling shipment strategy, a single cargo channel priority shipment strategy, a cargo channel distance priority shipment strategy, a cargo channel state priority shipment strategy and a cargo channel weighting polling shipment strategy.
Further, the system also comprises an execution module; for executing a shipment policy;
further, the execution module is further configured to:
acquiring the number and quantity of commodities needing to be delivered in the instruction;
acquiring the local inventory total amount of the commodities needing to be delivered, the number of the commodity channels and the residual amount of the commodities needing to be delivered on each commodity channel;
and when each commodity needing to be delivered is delivered, determining the delivery channel with the largest quantity of the commodities needing to be delivered as a delivery channel to deliver the commodity until the delivery is finished.
Further, the execution module is further configured to execute a single cargo way priority shipment strategy, and specifically includes:
acquiring the number and quantity of commodities needing to be delivered in the instruction;
acquiring the inventory total amount of the local commodities needing to be delivered, the number of the commodity channels and the residual amount of the commodities needing to be delivered on each commodity channel;
for any goods channel, after all the goods needing to be delivered on the goods channel are delivered, delivering the goods to the adjacent goods channel; until the shipment is finished.
Further, the execution module is further configured to execute a cargo way distance priority shipment strategy, specifically including:
acquiring the number and quantity of commodities needing to be delivered in the instruction;
acquiring the local inventory total amount of the commodities needing to be delivered, the number of the commodity channels, the residual quantity of the commodities needing to be delivered on each commodity channel and the distance information between the commodity channel and the delivery port;
determining the shortest distance and the corresponding goods channel when each commodity needing to be delivered is delivered; determining to use the cargo way for shipment; until the shipment is finished.
Further, the execution module is further configured to execute a cargo way state priority shipment strategy, including:
acquiring the number and quantity of commodities needing to be delivered in the instruction;
acquiring the local inventory total amount of the commodities needing to be delivered, the number of the commodity channels, the residual amount of the commodities needing to be delivered on each commodity channel and state information;
the state information includes: a normal state, a reduced weight state, or a reduced weight state;
when every cargo is delivered, on the premise that the residual quantity of the commodities needing to be delivered on the cargo channel is not zero, the cargo channel for delivering is determined according to the principle that the priority of the normal state is greater than the priority of the descending state and is greater than the priority of the descending state until the delivery is finished.
Further, the execution module is further configured to execute a cargo way weighted polling shipment strategy, specifically including:
acquiring the number and quantity of commodities needing to be delivered in the instruction;
acquiring local inventory total quantity of the commodities needing to be delivered, the number of the commodity channels, the residual quantity of the commodities needing to be delivered on each commodity channel and the weighting information of the commodity channels;
when each commodity needing to be delivered is delivered, determining the commodity channel with the highest weighted value as a delivery commodity channel on the premise that the residual quantity of the commodities needing to be delivered on the commodity channel is not zero; until the shipment is finished.
Further, the execution module is further configured to: if receiving the failure information of the goods way; degrading the failed goods way;
if the lane remains faulty within a predetermined threshold number of trials; the status of the lane is changed to an unavailable status.
The embodiment of the invention has the following advantages: the invention adopts the Websocket protocol, avoids the defect of high server load pressure caused by adopting the HTTP protocol, and sets a plurality of different strategies; the state of the goods channel is set and the level of the goods channel is updated, so that more detailed management of the goods channel is achieved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below. It should be apparent that the drawings in the following description are merely exemplary, and that other embodiments can be derived from the drawings provided by those of ordinary skill in the art without inventive effort.
The structures, ratios, sizes, and the like shown in the present specification are only used for matching with the contents disclosed in the specification, so that those skilled in the art can understand and read the present invention, and do not limit the conditions for implementing the present invention, so that the present invention has no technical significance, and any structural modifications, changes in the ratio relationship, or adjustments of the sizes, without affecting the functions and purposes of the present invention, should still fall within the scope of the present invention.
Fig. 1 is a scene diagram of an application of an unmanned vending machine according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of an unmanned vending machine according to an embodiment of the present invention.
Detailed Description
The present invention is described in terms of particular embodiments, other advantages and features of the invention will become apparent to those skilled in the art from the following disclosure, and it is to be understood that the described embodiments are merely exemplary of the invention and that it is not intended to limit the invention to the particular embodiments disclosed. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The unmanned vending machine is widely applied to daily life, and is shown in a scene diagram of the application of the unmanned vending machine in the invention shown in the attached figure 1; a user purchases a commodity on the unmanned vending machine; the user interacts with the unmanned vending machine through an interface; after the user finishes code scanning payment, the server receives the information of finishing payment and then issues an automatic goods delivery instruction to the unmanned vending machine; the unmanned vending machine can execute the shipment action after receiving the instruction issued by the server.
In the prior art, an http protocol is adopted between a server and an unmanned vending machine, and a VEM terminal sends a polling request to the server to determine that the vending machine can deliver goods at the time. The method has certain technical limitations, such as long response delay time of the shipment request, frequent request of the server, and higher load pressure on the server, and as the number of the unmanned terminal points sold increases, the protocol expansibility is insufficient, and the cost is higher.
Based on this, the invention provides a delivery control method of an unmanned vending machine, which is applied to a server and comprises the following steps:
after payment result information is received, issuing an instruction to the unmanned vending machine by adopting a WebSocket communication protocol;
the instructions include a shipment policy;
the shipment strategy comprises:
the method comprises a balance cargo channel polling shipment strategy, a single cargo channel priority shipment strategy, a cargo channel distance priority shipment strategy, a cargo channel state priority shipment strategy and a cargo channel weighting polling shipment strategy.
According to the method, due to the adoption of the WebSocket communication protocol, the server can actively push instructions to the unmanned vending machine; in the prior art, the unmanned vending machine actively follows the server to make a request through an HTTP (hyper text transport protocol), and if the number of the unmanned vending machines is huge, the server is overwhelmed; the response was slow. In the WebSocket protocol, a server can actively push an instruction; the command comprises a delivery strategy of the vending machine; thereby flexibly adjusting the delivery strategy.
In terms of functions, in terms of interaction functions, the user can only purchase one commodity after placing an order once, and the machine can only deliver one commodity after delivering the commodity once. The limitation lies in that the delivery requirement of purchasing a plurality of commodities by a user cannot be met, so that the user needs to perform multiple times of circulating operations (ordering, payment and goods taking processes), the user experience is reduced, and the repeated purchase desire of the user is influenced by overlong time consumed by the processes. In the goods taking process, after the goods in the single goods channel are blocked and abnormal, the failure of the goods channel can not be automatically removed, so that the subsequent goods in the goods channel can not be traded. In addition, the conventional vending machine single commodity delivery shipment process consumes a long time, if a user purchases a plurality of commodities, the time-consuming process is long, the user experience is poor, when the commodities are delivered and shipped, due to the fact that the single commodity channel sequential shipment mode is adopted, the fault tolerance rate is low, and once a problem is solved, the whole single commodity fails.
The invention adopts a multi-channel mode to deliver goods and adopts different strategies to deliver goods, thereby improving the success rate of delivering goods.
In one embodiment, the instructions further include identification, quantity, time of shipment, and status information for the items to be shipped; the state information includes: immediate effect, delayed effect. After receiving the instruction, the unmanned vending machine can carry out shipment according to the content.
Referring to fig. 1, a heartbeat mechanism is adopted between the server and the vending machine to determine that contact is maintained, and if the server does not receive heartbeat information sent by the vending machine, the server determines that the vending machine fails or determines that contact with the vending machine is lost. So that the server can send alarm information. To prompt the administrator to perform the overhaul.
The technical scheme of the invention comprises a core server-side remote instruction pushing mechanism (scene) and a machine-side dynamic equilibrium cargo channel continuous cargo delivery control part (execution) of the unmanned vending machine, wherein the machine-side dynamic equilibrium cargo channel continuous cargo delivery control part comprises a dynamic cargo channel planning algorithm and a multi-cargo channel failure retry recovery mechanism.
1. The server-side remote instruction pushing mechanism comprises: to the interaction of a server with a vending machine core control module.
1.1, selecting products: the user selects an item at the vending machine. The core control module in the vending machine associates information from the server regarding inventory, price, etc.
1.2 placing orders for commodities, paying: the user sells the order of the machine and the mobile phone scans the code for payment. And the core control module reports the order information to the server. And the payment channel synchronizes the payment result to the server.
1.3, issuing an instruction: and the server remotely pushes and sends the command through a long-chain connecting channel of a WebSocket communication protocol after receiving the payment result.
1.4 instruction channel: in order to keep the normal operation of the WebScket communication protocol channel before the core control module and the server, the monitoring state between the core control module and the server is monitored through a heartbeat mechanism.
1.5 instruction Format: the server side pushes the issued instruction packet to the machine side, and different attribute values are adopted to distinguish the instruction type and the strategy type. And after receiving the instruction, the core control module analyzes the data packet and produces a real-time dynamic cargo channel balanced delivery plan.
The invention also provides a delivery control method of the unmanned vending machine, which is applied to the unmanned vending machine and comprises the following steps:
after the order information is reported to the server, receiving an instruction issued by the server by adopting a WebSocket communication protocol;
the instructions include a shipment policy;
the shipment strategy comprises: the method comprises a balance cargo channel polling shipment strategy, a single cargo channel priority shipment strategy, a cargo channel distance priority shipment strategy, a cargo channel state priority shipment strategy and a cargo channel weighting polling shipment strategy.
In one possible embodiment, if a balanced lane polling shipment strategy is employed, the method includes:
acquiring the number and quantity of commodities needing to be delivered in the instruction;
acquiring the local inventory total amount of the commodities needing to be delivered, the number of the commodity channels and the residual amount of the commodities needing to be delivered on each commodity channel;
excluding the cargo channels in abnormal state (maintenance, abnormal, temporary dispatch);
and when each commodity needing to be delivered is delivered, determining the delivery channel with the largest quantity of the commodities needing to be delivered as a delivery channel to deliver the commodity until the delivery is finished.
In one possible embodiment, if a single lane priority shipment strategy is employed, the method comprises:
acquiring the number and quantity of commodities needing to be delivered in the instruction;
acquiring the inventory total amount of the local commodities needing to be delivered, the number of the commodity channels and the residual amount of the commodities needing to be delivered on each commodity channel;
excluding the cargo channels in abnormal state (maintenance, abnormal, temporary dispatch);
for any goods channel, after all the goods needing to be delivered on the goods channel are delivered, delivering the goods to the adjacent goods channel; until the shipment is finished.
In one possible embodiment, if a lane distance priority shipment strategy is employed, the method comprises:
acquiring the number and quantity of commodities needing to be delivered in the instruction;
acquiring the local inventory total amount of the commodities needing to be delivered, the number of the commodity channels, the residual quantity of the commodities needing to be delivered on each commodity channel and the distance information between the commodity channel and the delivery port;
excluding the cargo channels in abnormal state (maintenance, abnormal, temporary dispatch);
determining the shortest distance and the corresponding goods channel when each commodity needing to be delivered is delivered; determining to use the cargo way for shipment; until the shipment is finished.
In one possible embodiment, if a lane status priority shipment strategy is employed, the method comprises:
acquiring the number and quantity of commodities needing to be delivered in the instruction;
acquiring the local inventory total amount of the commodities needing to be delivered, the number of the commodity channels, the residual amount of the commodities needing to be delivered on each commodity channel and state information;
the state information includes: a normal state, a reduced weight state, or a reduced weight state;
excluding the cargo channels in abnormal state (maintenance, abnormal, temporary dispatch);
when every cargo is delivered, on the premise that the residual quantity of the commodities needing to be delivered on the cargo channel is not zero, the cargo channel for delivering is determined according to the principle that the priority of the normal state is greater than the priority of the descending state and is greater than the priority of the descending state until the delivery is finished.
In one possible embodiment, if a lane-weighted round-robin shipping strategy is used, the method includes:
acquiring the number and quantity of commodities needing to be delivered in the instruction;
acquiring local inventory total quantity of the commodities needing to be delivered, the number of the commodity channels, the residual quantity of the commodities needing to be delivered on each commodity channel and the weighting information of the commodity channels;
excluding the cargo channels in abnormal state (maintenance, abnormal, temporary dispatch);
when each commodity needing to be delivered is delivered, determining the commodity channel with the highest weighted value as a delivery commodity channel on the premise that the residual quantity of the commodities needing to be delivered on the commodity channel is not zero; until the shipment is finished.
The core control module in the unmanned vending machine is internally provided with a dynamic goods channel planning algorithm and a planning mechanism. And dynamically planning the delivery sequence of the goods way according to the associated data. The data dimensions used include machine local commodity inventory quantity, commodity type, commodity age, commodity channel type (spring commodity channel, baffle commodity channel), commodity channel state (commodity channel available and unavailable), commodity channel distribution and the like. Shipment policy algorithm support includes, but is not limited to, lane balance polling, single lane first, lane distance first, lane status first, lane weighted polling, and the like. Thereby improving the delivery rate and bringing more convenience to users.
In order to dynamically mark the working state of the goods way; in one possible embodiment, the method further comprises: if receiving the failure information of the goods way; degrading the failed goods way;
if the lane remains faulty within a predetermined threshold number of trials; the status of the lane is changed to an unavailable status.
The mechanical arm on the control machine of the goods channel control module moves to a specific goods channel position, the goods channel partition plate is driven to move or the spring rotates through the sensor, goods fall to the mechanical arm goods hopper, the rear mechanical arm conveys the goods hopper to the goods outlet, the goods taking opening partition plate is opened, and the user can get the goods.
Install infrared detector and sensor on the arm, can detect the number of piles that the goods were said and the position of goods way baffle, when commodity dropped the goods fill, can trigger and drop and detect the response.
When the goods channel breaks down (the partition plate blocks goods, and the spring blocks goods), the sensor cannot detect that the goods fall off, and error information and error codes are fed back to the goods channel control module. And if the goods channel control module receives the specified error code, the goods channel control module determines that goods delivery fails and returns the information to the core control module.
Retry of the failure: and the core control module classifies according to the shipment result data of the cargo channel on the same day, marks the status right drop or degradation of the cargo channel, and calls the cargo channel control module again to carry out shipment operation. When a single goods channel card fails, the weight of the goods channel is degraded, and the core control module informs the goods channel control module to retry one delivery operation. And after the current bill goods channel is blocked for 3 times continuously, the state of the goods channel is changed into the fault state. The status of the cargo way is updated to an unavailable status, including the number of retries.
After the commodity card was fought in the goods, the system can be when next user buys, and the window of getting goods is opened automatically, lets the user take away commodity. And (4) the goods passage marked as the fault is repaired and updated to be in a normal state in a manual mode.
3. Remote control instruction format: the core control module and the server interact with a custom message in a unified Json format, which is referred to as a message format shown in Table 1.
Figure BDA0002462406210000111
TABLE 1
The Id represents the number of the data transmission instruction and is used for tracing the instruction issued by the server, and the Id information comprises VEM number segmentation information, so that the fault tolerance of the machine dimension is provided.
The Type represents the Type of data transfer instruction, and the support system control instruction, the heartbeat instruction, three kinds of goods way shipment instruction.
Params represents specific data information of the instruction, and is a set stored in a key-value pair mode, wherein the key attribute is a commodity number, and the value attribute is information such as commodity quantity, delivery and delivery time, delivery and delivery sequence, delivery and delivery balance strategy and the like.
Status indicates instruction information, and has two modes of immediate effect and delayed effect.
Under the environment that the retail function of the unmanned vending machine is gradually accepted, the transaction requirements and the repeated purchasing requirements of a plurality of commodities are increasingly increased. The prior market vending machine has not realized the breakthrough due to the technical limitation.
Meanwhile, the delivery and delivery device basically adopts mechanical arms, the delivery flow of a single commodity is long, and if a user purchases multiple commodities at a time, the time consumption is possibly too long, and the experience is poor.
The technical method realizes the remote pushing and issuing command strategy of the server side, and the balanced delivery method of the continuous dynamic goods channel and the goods channel of the machine side functionally supports the integrated transaction and delivery process of a plurality of goods, compresses the timeliness of continuous delivery and delivery, and greatly improves the efficiency and the user experience of the transaction delivery link.
From the technical point of view, due to the adoption of various dynamic algorithm planning and failure retry mechanisms, the delivery fault tolerance rate of the goods channel is improved, the delivery time is shortened, and the goods taking process is shortened from 75 seconds to 30 seconds according to 5 goods. Compared with the traditional Http interface request polling scheme, the WebSocket pushing and command issuing mode improves the response efficiency of the system, greatly reduces the pressure of a server side, reduces the deployment cost of the server, increases the remote management characteristic of the machine, and is easier for service expansion
Corresponding to the method, the invention also provides a server, which comprises:
the sending module is used for sending an instruction to the unmanned vending machine by adopting a WebSocket communication protocol after receiving the payment result information;
the instructions include a shipment policy;
the shipment strategy comprises:
the method comprises a balance cargo channel polling shipment strategy, a single cargo channel priority shipment strategy, a cargo channel distance priority shipment strategy, a cargo channel state priority shipment strategy and a cargo channel weighting polling shipment strategy.
Corresponding to the method, the invention also provides an unmanned vending machine, which is shown in the structural schematic diagram of the unmanned vending machine shown in the attached figure 2; this unmanned vending machine includes:
the receiving module 21 is configured to receive an instruction issued by the server according to the WebSocket communication protocol after reporting the order information to the server;
the instructions include a shipment policy;
the shipment strategy comprises: the method comprises a balance cargo channel polling shipment strategy, a single cargo channel priority shipment strategy, a cargo channel distance priority shipment strategy, a cargo channel state priority shipment strategy and a cargo channel weighting polling shipment strategy.
Further, an execution module 22 is also included; for executing a shipment policy;
further, the execution module 22 is further configured to:
acquiring the number and quantity of commodities needing to be delivered in the instruction;
acquiring the local inventory total amount of the commodities needing to be delivered, the number of the commodity channels and the residual amount of the commodities needing to be delivered on each commodity channel;
and when each commodity needing to be delivered is delivered, determining the delivery channel with the largest quantity of the commodities needing to be delivered as a delivery channel to deliver the commodity until the delivery is finished.
Further, the execution module 22 is further configured to execute a single-cargo-lane priority shipment policy, specifically including:
acquiring the number and quantity of commodities needing to be delivered in the instruction;
acquiring the inventory total amount of the local commodities needing to be delivered, the number of the commodity channels and the residual amount of the commodities needing to be delivered on each commodity channel;
for any goods channel, after all the goods needing to be delivered on the goods channel are delivered, delivering the goods to the adjacent goods channel; until the shipment is finished.
Further, the execution module 22 is further configured to execute a cargo way distance priority shipment strategy, specifically including:
acquiring the number and quantity of commodities needing to be delivered in the instruction;
acquiring the local inventory total amount of the commodities needing to be delivered, the number of the commodity channels, the residual quantity of the commodities needing to be delivered on each commodity channel and the distance information between the commodity channel and the delivery port;
determining the shortest distance and the corresponding goods channel when each commodity needing to be delivered is delivered; determining to use the cargo way for shipment; until the shipment is finished.
Further, the execution module 22 is further configured to execute a lane status priority shipment policy, including:
acquiring the number and quantity of commodities needing to be delivered in the instruction;
acquiring the local inventory total amount of the commodities needing to be delivered, the number of the commodity channels, the residual amount of the commodities needing to be delivered on each commodity channel and state information;
the state information includes: a normal state, a reduced weight state, or a reduced weight state;
when every cargo is delivered, on the premise that the residual quantity of the commodities needing to be delivered on the cargo channel is not zero, the cargo channel for delivering is determined according to the principle that the priority of the normal state is greater than the priority of the descending state and is greater than the priority of the descending state until the delivery is finished.
Further, the execution module 22 is further configured to execute a cargo way weighted polling shipment policy, which specifically includes:
acquiring the number and quantity of commodities needing to be delivered in the instruction;
acquiring local inventory total quantity of the commodities needing to be delivered, the number of the commodity channels, the residual quantity of the commodities needing to be delivered on each commodity channel and the weighting information of the commodity channels;
when each commodity needing to be delivered is delivered, determining the commodity channel with the highest weighted value as a delivery commodity channel on the premise that the residual quantity of the commodities needing to be delivered on the commodity channel is not zero; until the shipment is finished.
Further, the execution module 22 is further configured to: if receiving the failure information of the goods way; degrading the failed goods way;
if the lane remains faulty within a predetermined threshold number of trials; the status of the lane is changed to an unavailable status.
The invention also provides a computer readable storage medium, which is arranged in the server or the unmanned vending machine; the computer storage medium has embodied therein one or more program instructions for being executed to perform the method of any of the above.
In an embodiment of the invention, the processor may be an integrated circuit chip having signal processing capability. The Processor may be a general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other programmable logic device, discrete Gate or transistor logic device, discrete hardware component.
The various methods, steps and logic blocks disclosed in the embodiments of the present invention may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present invention may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software module may be located in ram, flash memory, rom, prom, or eprom, registers, etc. storage media as is well known in the art. The processor reads the information in the storage medium and completes the steps of the method in combination with the hardware.
The storage medium may be a memory, for example, which may be volatile memory or nonvolatile memory, or which may include both volatile and nonvolatile memory.
The nonvolatile Memory may be a Read-Only Memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an Electrically Erasable PROM (EEPROM), or a flash Memory.
The volatile Memory may be a Random Access Memory (RAM) which serves as an external cache. By way of example, and not limitation, many forms of RAM are available, such as Static Random Access Memory (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), SLDRAM (SLDRAM), and Direct Rambus RAM (DRRAM).
The storage media described in connection with the embodiments of the invention are intended to comprise, without being limited to, these and any other suitable types of memory.
Those skilled in the art will appreciate that the functionality described in the present invention may be implemented in a combination of hardware and software in one or more of the examples described above. When software is applied, the corresponding functionality may be stored on or transmitted over as one or more instructions or code on a computer-readable medium. Computer-readable media includes both computer storage media and communication media including any medium that facilitates transfer of a computer program from one place to another. A storage media may be any available media that can be accessed by a general purpose or special purpose computer.
The above-mentioned embodiments, objects, technical solutions and advantages of the present invention are further described in detail, it should be understood that the above-mentioned embodiments are only exemplary embodiments of the present invention, and are not intended to limit the scope of the present invention, and any modifications, equivalent substitutions, improvements and the like made on the basis of the technical solutions of the present invention should be included in the scope of the present invention.

Claims (10)

1. A delivery control method of an unmanned vending machine is applied to a server and comprises the following steps:
after payment result information is received, issuing an instruction to the unmanned vending machine by adopting a WebSocket communication protocol;
the instructions include a shipment policy;
the shipment strategy comprises:
the method comprises a balance cargo channel polling shipment strategy, a single cargo channel priority shipment strategy, a cargo channel distance priority shipment strategy, a cargo channel state priority shipment strategy and a cargo channel weighting polling shipment strategy.
2. A delivery control method of an unmanned vending machine is applied to the unmanned vending machine and comprises the following steps:
after the order information is reported to the server, receiving an instruction issued by the server by adopting a WebSocket communication protocol;
the instructions include a shipment policy;
the shipment strategy comprises: the method comprises a balance cargo channel polling shipment strategy, a single cargo channel priority shipment strategy, a cargo channel distance priority shipment strategy, a cargo channel state priority shipment strategy and a cargo channel weighting polling shipment strategy.
3. A delivery control method of an unmanned vending machine according to claim 2,
if a balance cargo channel polling shipment strategy is adopted, the method comprises the following steps:
acquiring the number and quantity of commodities needing to be delivered in the instruction;
acquiring the local inventory total amount of the commodities needing to be delivered, the number of the commodity channels and the residual amount of the commodities needing to be delivered on each commodity channel;
and when each commodity needing to be delivered is delivered, determining the delivery channel with the largest quantity of the commodities needing to be delivered as a delivery channel to deliver the commodity until the delivery is finished.
4. A delivery control method of an unmanned vending machine according to claim 2,
if the single cargo channel priority delivery strategy is adopted, the method comprises the following steps:
acquiring the number and quantity of commodities needing to be delivered in the instruction;
acquiring the inventory total amount of the local commodities needing to be delivered, the number of the commodity channels and the residual amount of the commodities needing to be delivered on each commodity channel;
for any goods channel, after all the goods needing to be delivered on the goods channel are delivered, delivering the goods to the adjacent goods channel; until the shipment is finished.
5. A delivery control method of an unmanned vending machine according to claim 2,
if a cargo way distance priority delivery strategy is adopted, the method comprises the following steps:
acquiring the number and quantity of commodities needing to be delivered in the instruction;
acquiring the local inventory total amount of the commodities needing to be delivered, the number of the commodity channels, the residual quantity of the commodities needing to be delivered on each commodity channel and the distance information between the commodity channel and the delivery port;
determining the shortest distance and the corresponding goods channel when each commodity needing to be delivered is delivered; determining to use the cargo way for shipment; until the shipment is finished.
6. A delivery control method of an unmanned vending machine according to claim 2,
if the goods channel state priority delivery strategy is adopted, the method comprises the following steps:
acquiring the number and quantity of commodities needing to be delivered in the instruction;
acquiring the local inventory total amount of the commodities needing to be delivered, the number of the commodity channels, the residual amount of the commodities needing to be delivered on each commodity channel and state information;
the state information includes: a normal state, a reduced weight state, or a reduced weight state;
when every cargo is delivered, on the premise that the residual quantity of the commodities needing to be delivered on the cargo channel is not zero, the cargo channel for delivering is determined according to the principle that the priority of the normal state is greater than the priority of the descending state and is greater than the priority of the descending state until the delivery is finished.
7. A delivery control method of an unmanned vending machine according to claim 2,
if the cargo way weighted polling shipment strategy is adopted, the method comprises the following steps:
acquiring the number and quantity of commodities needing to be delivered in the instruction;
acquiring local inventory total quantity of the commodities needing to be delivered, the number of the commodity channels, the residual quantity of the commodities needing to be delivered on each commodity channel and the weighting information of the commodity channels;
when each commodity needing to be delivered is delivered, determining the commodity channel with the highest weighted value as a delivery commodity channel on the premise that the residual quantity of the commodities needing to be delivered on the commodity channel is not zero; until the shipment is finished.
8. A delivery control method of an unmanned vending machine as defined in claim 2, further comprising:
if receiving the failure information of the goods way; degrading the failed goods way;
if the lane remains faulty within a predetermined threshold number of trials; the status of the lane is changed to an unavailable status.
9. A server, comprising:
the sending module is used for sending an instruction to the unmanned vending machine by adopting a WebSocket communication protocol after receiving the payment result information;
the instructions include a shipment policy;
the shipment strategy comprises:
the method comprises a balance cargo channel polling shipment strategy, a single cargo channel priority shipment strategy, a cargo channel distance priority shipment strategy, a cargo channel state priority shipment strategy and a cargo channel weighting polling shipment strategy.
10. An unmanned vending machine, comprising:
the receiving module is used for receiving an instruction issued by the server by adopting a WebSocket communication protocol after reporting the order information to the server;
the instructions include a shipment policy;
the shipment strategy comprises: the method comprises a balance cargo channel polling shipment strategy, a single cargo channel priority shipment strategy, a cargo channel distance priority shipment strategy, a cargo channel state priority shipment strategy and a cargo channel weighting polling shipment strategy.
CN202010323716.0A 2020-04-22 2020-04-22 Delivery control method of vending machine, server and vending machine Pending CN111583517A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010323716.0A CN111583517A (en) 2020-04-22 2020-04-22 Delivery control method of vending machine, server and vending machine

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010323716.0A CN111583517A (en) 2020-04-22 2020-04-22 Delivery control method of vending machine, server and vending machine

Publications (1)

Publication Number Publication Date
CN111583517A true CN111583517A (en) 2020-08-25

Family

ID=72126708

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010323716.0A Pending CN111583517A (en) 2020-04-22 2020-04-22 Delivery control method of vending machine, server and vending machine

Country Status (1)

Country Link
CN (1) CN111583517A (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103093546A (en) * 2012-12-14 2013-05-08 深圳市富晶科技有限公司 Vending machine capable of automatically conveying goods
CN206672238U (en) * 2017-04-21 2017-11-24 福建骏鹏易丰商用设备有限公司 Go out the first in first out mechanism of circular goods
CN107424306A (en) * 2017-07-18 2017-12-01 百达致胜(北京)科技有限公司 Cloud vending machine, control method and control system
CN107504999A (en) * 2017-08-08 2017-12-22 北京物资学院 A kind of storage rack safe early warning and health evaluating method and device
CN107657729A (en) * 2017-09-25 2018-02-02 合肥众驰天下网络科技有限公司 A kind of control system of spring automatic vending machine
CN109255885A (en) * 2018-08-17 2019-01-22 河南智售宝智能科技有限公司 Vending machine control method and single more than one piece shipment control method
CN109987369A (en) * 2019-05-07 2019-07-09 北京极智嘉科技有限公司 The scheduling system and method for storage article
CN109993887A (en) * 2017-12-29 2019-07-09 山东新北洋信息技术股份有限公司 A kind of commercial articles vending method and automatic vending control device
CN109993908A (en) * 2017-12-29 2019-07-09 山东新北洋信息技术股份有限公司 A kind of control device of automatic vending method and automatic vending machine

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103093546A (en) * 2012-12-14 2013-05-08 深圳市富晶科技有限公司 Vending machine capable of automatically conveying goods
CN206672238U (en) * 2017-04-21 2017-11-24 福建骏鹏易丰商用设备有限公司 Go out the first in first out mechanism of circular goods
CN107424306A (en) * 2017-07-18 2017-12-01 百达致胜(北京)科技有限公司 Cloud vending machine, control method and control system
CN107504999A (en) * 2017-08-08 2017-12-22 北京物资学院 A kind of storage rack safe early warning and health evaluating method and device
CN107657729A (en) * 2017-09-25 2018-02-02 合肥众驰天下网络科技有限公司 A kind of control system of spring automatic vending machine
CN109993887A (en) * 2017-12-29 2019-07-09 山东新北洋信息技术股份有限公司 A kind of commercial articles vending method and automatic vending control device
CN109993908A (en) * 2017-12-29 2019-07-09 山东新北洋信息技术股份有限公司 A kind of control device of automatic vending method and automatic vending machine
CN109255885A (en) * 2018-08-17 2019-01-22 河南智售宝智能科技有限公司 Vending machine control method and single more than one piece shipment control method
CN109987369A (en) * 2019-05-07 2019-07-09 北京极智嘉科技有限公司 The scheduling system and method for storage article

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
王翠萍: "《移动Web开发从入门到精通》", 31 August 2016 *

Similar Documents

Publication Publication Date Title
US10755257B2 (en) System and methods associated with vending machine telemetry, replenishment, and configuration utilizing multiple types communication networks
CN109102625B (en) Automatic vending system and server thereof
CN101957927B (en) Middleware architecture of Internet of things and SOA architecture-based middleware of Internet of things
US20040073499A1 (en) Method and system for delivery of distressed shipments
CN104156863A (en) OTA website order processing system and method
CN110570273A (en) Quick delivery method of automatic vending equipment
AU2011240839A1 (en) Generating a single audit file from multiple sources
CN103870991A (en) Self-service terminal service emergency method and network server
CN109885382A (en) The system of cross-system distributed transaction processing method and distributing real time system
CN111583517A (en) Delivery control method of vending machine, server and vending machine
CN113626218A (en) Data processing method, data processing device, storage medium and computer equipment
CN105761069B (en) POS terminal communication method and system
CN111353841A (en) Document data processing method, device and system
CN110474976B (en) Message transfer method, device, storage medium and system applied to automatic vending equipment
CN109214476A (en) A kind of data service cloud platform based on RFID electronic label
CN116611754A (en) Cross-border commodity outlet line reporting method, system and equipment
US8850034B1 (en) Service request fast fail circuit breaker
KR102516200B1 (en) Method for intermediating between wholesale and retail based on stock data of wholesale and system using the same
CN115643271A (en) Method, device, server and medium for synchronizing multi-application data on cloud
WO2014186699A1 (en) Transferring transactions between local and central point of service servers
CN113421080B (en) Supermarket transaction checking method, transaction server and collaboration server
US20200074390A1 (en) Product Predictions and Shipments Using IOT Connected Devices
US20040123184A1 (en) System and method of facilitating communication
CN110247808A (en) Method for sending information, device, equipment and readable storage medium storing program for executing
CN110263063A (en) A kind of querying method and server of assets

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: 200433 room 6015-4, 335 Guo Ding Road, Yangpu District, Shanghai.

Applicant after: SHANGHAI QUZHI NETWORK TECHNOLOGY CO.,LTD.

Address before: 17th floor, Shanghai Waijing building, No. 681, xiaomuqiao Road, Xuhui District, Shanghai 200030

Applicant before: SHANGHAI QUZHI NETWORK TECHNOLOGY CO.,LTD.

RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20200825