A management method, device, and medium for an item output channel

Through the intelligent management of the merger and logical settings of the cargo lane module, the problem that a single cargo lane design in the drug vending machine cannot be adapted to multiple drugs is solved, and efficient drug storage and shipment management is achieved.

CN115662016BActive Publication Date: 2025-08-01INSPUR FINANCIAL INFORMATION TECHNOLOGY CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211150810.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-09-21
Publication Date
2025-08-01
Estimated Expiration
2042-09-21

AI Technical Summary

Technical Problem

The existing drug vending machines adopt a single cargo-way design of vending machines, which cannot meet the storage and shipment needs of multiple sizes of drugs.

Method used

Provides a management method for item output channels, through initialization, status detection, logical setting and shipment control, the merger and intelligent management of cargo lane modules are realized, and the shipment needs of drugs of different sizes are adapted.

Benefits of technology

It improves the utilization rate and compatibility of the cargo route, meets the storage and shipment needs of different drugs, simplifies the difficulty of drug management, and improves the operational efficiency of drug dispensing machines.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115662016B_ABST
    Figure CN115662016B_ABST
Patent Text Reader

Abstract

The present invention discloses a management method, device and medium for an item output channel. The method includes the following steps: configuring a lane module, an initialization interface, a status acquisition interface, a logic setting interface, a replenishment prompt interface, a logic reading interface and a shipment control interface on a lane application device; detecting the device status of the lane application device and the lane module based on the initialization interface and the status acquisition interface; obtaining lane demand information based on the device status, and setting lane logic based on the lane demand information and the logic setting interface; obtaining shipment demand information, and performing goods shipment control based on the logic reading interface, the shipment control interface, the lane logic and the shipment demand information; obtaining the goods status corresponding to the lane module, and performing replenishment prompt based on the replenishment prompt interface and the goods status. The present invention can design mergeable lane modules in a medicine vending machine, and can intelligently select lanes for merging, so as to adapt to medicines of different sizes.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of aisle management. Specifically, the present invention is applied to the field of aisle management of self-service vending machines, and in particular to a management method, device, and medium for an item output channel. Background Art

[0002] At present, vending machines are widely used in various fields. There are many types of existing self-service vending machines with comprehensive functions, but the aisles used by these self-service vending machines are relatively simple. The most common aisles include spring spiral aisles, crawler aisles, S-shaped stacking aisles, or clustered grid cabinets. In the field of pharmaceutical sales, most medicine vending machines also adopt the aisle design of automatic vending machines. However, unlike automatic vending machines, the medicines in medicine vending machines vary in size. If the single aisle structure of a self-service vending machine is used, it will not be able to meet the storage and shipment needs of medicines of various sizes. Summary of the Invention

[0003] The purpose of the present invention is to provide a management method, device and medium for an item output channel in response to the above-mentioned problems in the prior art, thereby solving the problem that most medicine vending machines in the prior art adopt a single cargo channel design of an automatic vending machine, resulting in most medicine vending machines being unable to meet the storage and delivery needs of medicines of various sizes.

[0004] In order to solve the above technical problems, the specific technical solutions of the present invention are as follows:

[0005] In one aspect, the present invention provides a method for managing an item output channel, comprising the following steps:

[0006] Initialization steps:

[0007] Configure the cargo lane module, initialization interface, status acquisition interface, logic setting interface, replenishment prompt interface, logic reading interface and shipment control interface on the cargo lane application device;

[0008] Detecting the device status of the cargo lane application device and the cargo lane module based on the initialization interface and the status acquisition interface;

[0009] Steps to modify the cargo channel logic:

[0010] Acquiring cargo lane demand information based on the device status, and setting cargo lane logic based on the cargo lane demand information and the logic setting interface;

[0011] Shipping control steps:

[0012] Obtaining shipment demand information, and performing product shipment control based on the logic reading interface, the shipment control interface, the channel logic, and the shipment demand information;

[0013] Replenishment reminder steps:

[0014] Obtain the goods status corresponding to the goods channel module, and perform replenishment reminder based on the replenishment reminder interface and the goods status.

[0015] As an improved solution, the goods channel module includes: a number of sub-shipment channels and a number of status lights corresponding to the number of sub-shipment channels;

[0016] The device status includes: a first status and a second status; the first status is the device waiting for application status; the second status is the device failure status;

[0017] The detection of the device status of the goods channel application device and the goods channel module based on the initialization interface and the status acquisition interface includes:

[0018] Call the initialization interface to initialize both the goods channel application device and the goods channel module;

[0019] Call the status acquisition interface to obtain the first hardware status of the initialized goods channel application device and the second hardware status of the goods channel module;

[0020] Judge whether there is a hardware failure status in the first hardware status or the second hardware status; if not, generate the first status; if so, generate the second status.

[0021] As an improved solution, the obtaining of the goods channel demand information based on the device status includes:

[0022] Identify the device status;

[0023] When the device status is the first status, obtain the goods channel demand information.

[0024] As an improved solution, the goods channel demand information includes: a demand goods channel code and a goods channel merging interval code;

[0025] The setting of the goods channel logic based on the goods channel demand information and the logic setting interface includes:

[0026] Call the logic setting interface to set the layer code for the goods channel module;

[0027] Call the logic setting interface to set sub-goods channel codes for the several sub-shipment channels of the goods channel module respectively;

[0028] Call the logic setting interface to read the demand goods channel code and the goods channel merging interval code in the goods channel demand information;

[0029] Call the logical setting interface to set the required lane code as the first-layer code; call the logical setting interface to confirm the lane module that matches the first-layer code;

[0030] Call the logical setting interface to identify the range of sub-lane codes to be merged corresponding to the lane merge range code;

[0031] Call the logical setting interface to select and merge several sub-shipment channels of the lane module that matches the first-layer code according to the range of sub-lane codes to be merged, and obtain a merged sub-lane that matches the range of sub-lane codes to be merged;

[0032] Call the logical setting interface to assign a lane logic code to the merged sub-lane;

[0033] Let the lane logic code be the lane logic of the lane module that matches the first-layer code after the selection and merge.

[0034] As an improved solution, the lane merge range code includes several lane merge quantity values set in the first order;

[0035] The step of calling the logical setting interface to identify the range of sub-lane codes to be merged corresponding to the lane merge range code includes:

[0036] Identify several first sub-lane codes of several sub-shipment channels of the lane module that matches the first-layer code;

[0037] Divide several first sub-lane codes into several code groups that respectively match several of the lane merge quantity values according to the first order;

[0038] Set several code groups as several ranges of sub-lane codes to be merged.

[0039] As an improved solution, the shipment demand information includes: the code of the layer to be shipped, the lane logic code to be shipped, the information of the goods to be shipped, and the quantity of the goods to be shipped;

[0040] The step of controlling the shipment of goods based on the logical reading interface, the shipment control interface, the lane logic, and the shipment demand information includes:

[0041] Call the logical reading interface to read the code of the layer to be shipped and the lane logic code of the sub-lane to be shipped in the shipment demand information;

[0042] Confirm the first lane module corresponding to the code of the layer to be shipped;

[0043] Confirm the first merged sub-lane corresponding to the lane logic code to be shipped in the first lane module;

[0044] Identify the goods to be output that match both the information of the goods to be shipped and the quantity of the goods to be shipped in the goods lane application device;

[0045] Call the shipping control interface to output the goods to be output through the first merged sub-goods lane of the first goods lane module.

[0046] As an improved solution, the goods status includes: a number of sub-goods statuses respectively corresponding to a number of the sub-shipping goods lanes;

[0047] Each of the sub-goods statuses includes: out-of-stock status and non-out-of-stock status;

[0048] The replenishment prompt based on the replenishment prompt interface and the goods status includes:

[0049] Identify a number of the sub-goods statuses;

[0050] When there is an out-of-stock status among a number of the sub-goods statuses, identify the second sub-shipping goods lane corresponding to the out-of-stock status, and call the replenishment prompt interface to turn on the second status light corresponding to the second sub-shipping goods lane;

[0051] After turning on the second status light, periodically query the sub-goods status of the second sub-shipping goods lane corresponding to the second status light; when the sub-goods status obtained by the periodic query is the non-out-of-stock status, call the replenishment prompt interface to turn off the second status light.

[0052] As an improved solution, the determination of whether there is a hardware failure status in the first hardware status or the second hardware status includes:

[0053] Determine whether there is a failure error code in the first hardware status or the second hardware status;

[0054] If there is, read the failure identification code in the first hardware status or the second hardware status corresponding to the failure error code, and determine that there is a hardware failure status in the first hardware status or the second hardware status; if not, determine that there is no hardware failure status in the first hardware status or the second hardware status.

[0055] On the other hand, the present invention also provides a management device for an article output channel, including:

[0056] An initialization unit for configuring a lane module, an initialization interface, a status acquisition interface, a logic setting interface, a replenishment prompt interface, a logic reading interface, and a shipment control interface on a lane application device; the initialization unit is further configured to detect the device status of the lane application device and the lane module according to the initialization interface and the status acquisition interface;

[0057] A lane logic setting unit for obtaining lane demand information according to the device status and setting lane logic based on the lane demand information and the logic setting interface;

[0058] A shipment control unit for obtaining shipment demand information and performing shipment control of goods based on the logic reading interface, the shipment control interface, the lane logic, and the shipment demand information;

[0059] A replenishment prompt unit for obtaining the status of the goods corresponding to the lane module and performing a replenishment prompt based on the replenishment prompt interface and the goods status.

[0060] On the other hand, the present invention also provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the management method of the article output channel are implemented.

[0061] The beneficial effects of the technical solution of the present invention are:

[0062] 1. The management method of the article output channel according to the present invention can realize the design of mergeable lane modules in a medicine vending machine, and can intelligently select lanes for merging, thereby generating different lane logics to adapt to medicines of different sizes. Finally, according to the shipment demand, the corresponding lane is intelligently matched, improving the utilization rate and compatibility of the lanes, enhancing the operation efficiency of the medicine vending machine, meeting the storage and shipment of different medicines, and can also perform intelligent replenishment prompts, simplifying the difficulty of medicine management, and having extremely high application value.

[0063] 2. The management device of the article output channel according to the present invention can, through the mutual cooperation of the initialization unit, the lane logic setting unit, the shipment control unit, and the replenishment prompt unit, realize the design of mergeable lane modules in a medicine vending machine, and can intelligently select lanes for merging, thereby generating different lane logics to adapt to medicines of different sizes. Finally, according to the shipment demand, the corresponding lane is intelligently matched, improving the utilization rate and compatibility of the lanes, enhancing the operation efficiency of the medicine vending machine, meeting the storage and shipment of different medicines, and can also perform intelligent replenishment prompts, simplifying the difficulty of medicine management, and having extremely high application value.

[0064] 3. The computer-readable storage medium according to the present invention can enable the boot initialization unit, the lane logic setting unit, the shipping control unit, and the replenishment reminder unit to cooperate, thereby implementing the management method of the article output channel described in the present invention. The computer-readable storage medium according to the present invention effectively improves the operability of the management method of the article output channel. BRIEF DESCRIPTION OF THE DRAWINGS

[0065] In order to more clearly illustrate the specific embodiments of the present invention or the technical solutions in the prior art, the following will briefly introduce the drawings required for the description of the specific embodiments or the prior art. Obviously, the drawings in the following description are some embodiments of the present invention. For those of ordinary skill in the art, without creative efforts, other drawings can also be obtained based on these drawings.

[0066] Figure 1 It is a flowchart of the management method of the article output channel according to Embodiment 1 of the present invention;

[0067] Figure 2 It is a detailed flowchart of the management method of the article output channel according to Embodiment 1 of the present invention;

[0068] Figure 3 It is a schematic structural diagram of the management device of the article output channel according to Embodiment 2 of the present invention. DETAILED DESCRIPTION OF THE EMBODIMENTS

[0069] The following will elaborate on the preferred embodiments of the present invention in conjunction with the drawings, so that the advantages and features of the present invention can be more easily understood by those skilled in the art, thereby making a clearer and more definite definition of the protection scope of the present invention.

[0070] In the description of the present invention, it should be noted that the embodiments described are some embodiments of the present invention, rather than all embodiments; based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts belong to the protection scope of the present invention.

[0071] In the description, claims and the above-mentioned drawings of this document, terms such as "first", "second", etc. are used to distinguish similar objects, and do not necessarily describe a specific order or sequence. It should be understood that the data used in this way can be interchanged under appropriate circumstances, so that the embodiments of this document described here can be implemented in an order other than those illustrated or described here. In addition, the terms "comprising" and "having" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, device, product or equipment that includes a series of steps or units does not necessarily have to be limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or are inherent to these processes, methods, products or equipment.

[0072] Embodiment 1

[0073] This embodiment provides a method for managing an article output channel, as Figure 1 and Figure 2 shown, including the following steps:

[0074] S100. Initialization step, specifically including:

[0075] S110. Configure a lane module, an initialization interface, a status acquisition interface, a logic setting interface, a replenishment prompt interface, a logic reading interface, and a shipment control interface on the lane application device; detect the device status of the lane application device and the lane module based on the initialization interface and the status acquisition interface; in this embodiment, the lane application device is the vending machine device where the lane module is configured;

[0076] S200. Lane logic modification step, specifically including:

[0077] S210. Obtain lane demand information based on the device status, and set lane logic based on the lane demand information and the logic setting interface;

[0078] S300. Shipment control step, specifically including:

[0079] S310. Obtain shipment demand information, and perform shipment control of goods based on the logic reading interface, the shipment control interface, the lane logic, and the shipment demand information;

[0080] S400. Replenishment prompt step, specifically including:

[0081] S410. Obtain the goods status corresponding to the lane module, and perform replenishment prompt based on the replenishment prompt interface and the goods status.

[0082] As an implementation manner of the present invention, the lane module includes: a plurality of sub-shipment channels and a plurality of status lights correspondingly arranged for the plurality of sub-shipment channels; in this implementation manner, there are 24 lanes in one lane module, and the 24 lanes are the plurality of sub-shipment channels. One shipment device and one prompting light are configured in each lane, and the prompting light is the status light. Each shipment device and prompting light can be independently controlled respectively. Each corresponding lane is provided with lane numbers from 1 to 24; optionally, a plurality of lane modules can be installed in each medicine vending machine, so as to implement more lane logic configuration schemes;

[0083] As an implementation manner of the present invention, the device status includes: a first status and a second status; the first status is the device waiting-for-application status; the second status is the device failure status; the device status is mainly used for subsequent device usage identification. Devices with the first status can be put into use, and devices with the second status need fault maintenance;

[0084] As an implementation manner of the present invention, detecting the device status of the lane application device and the lane module based on the initialization interface and the status acquisition interface includes: calling the initialization interface to initialize both the lane application device and the lane module; in this implementation manner, the configuration file of the initialization interface is: intInitDevice(char*pcPort, int nBaudRate). The aforementioned initialization is to open the serial port communications in the lane application device and the lane module, and at the same time perform hardware initialization on the lane application device and the lane module; calling the status acquisition interface to obtain the first hardware status of the initialized lane application device and the second hardware status of the lane module; the configuration file of the status acquisition interface is: int GetDeviceStatus(int&nStatus, int&nErrorCode); this interface facilitates users to obtain the device status, thereby facilitating the detection and troubleshooting of device failures during operation and subsequent after-sales maintenance; where nStatus represents the device status, and 0, 1, and 2 represent normal, offline, and device failure respectively; nErrorCode represents the fault error code. Therefore, when nStatus is a hardware fault, the value of nErrorCode is meaningful; determining whether there is a hardware fault status in the first hardware status or the second hardware status; if not, it means that both the lane application device and the lane module are operating normally, so the first status is generated; if so, it means that there may be abnormal operation or startup in the lane application device and the lane module, so the second status is generated.

[0085] As an implementation manner of the present invention, determining whether there is a hardware failure state in the first hardware state or the second hardware state includes: determining whether there is a failure error code in the first hardware state or the second hardware state; in this implementation manner, the first hardware state and the second hardware state are the nStatus state identification codes obtained from the foregoing configuration file, and the failure error code is 1 or 2; if 1 or 2 exists in nStatus, it indicates that the device is offline or faulty, then it is determined that there is a hardware failure state in the first hardware state or the second hardware state, and then the failure identification code in the first hardware state or the second hardware state corresponding to the failure error code is read, and the failure identification code is the foregoing nErrorCode value; fault diagnosis is performed according to the identification code; if 1 or 2 does not exist in nStatus, it indicates that the device is normal, then it is determined that there is no hardware failure state in the first hardware state or the second hardware state;

[0086] As an implementation manner of the present invention, obtaining the lane demand information based on the device state includes: identifying the device state; when the device state is the first state, obtaining the lane demand information; the lane demand information includes: the required lane code and the lane merging interval code; the required lane code and the lane merging interval code are the codes of the lane module that needs to output drugs on the vending machine and the lane codes of the sub-outlet lanes that need to be merged in the lane module. The foregoing two codes can be specified and input by the operator, or can be the codes intelligently determined by the identification module and the judgment module inside the vending machine; for example, the vending machine internal identification module identifies the drug specifications that need to be dispensed, and the vending machine internal identification module automatically calculates whether a single sub-outlet lane meets the drug specifications according to the identified drug specifications and the specifications of the sub-outlet lanes in the vending machine. If it meets the requirements, there is no need to merge the lanes. If it does not meet the requirements, multiple lanes can be optionally merged until the merged lane specifications meet the foregoing drug specifications; the coding formats of the required lane code and the lane merging interval code are explained in the subsequent steps;

[0087] As an implementation manner of the present invention, setting the track logic based on the track demand information and the logic setting interface includes: calling the logic setting interface to set a layer code for the track module; the configuration file of the logic setting interface is: int SetLogicTrackInfo(int nLayerIndex, char* pcTrackInfo), where nLayerIndex is the layer number, which is actually the module number, that is, the layer code, and is used to represent the independent identification code of each track module configured in the medicine vending machine; calling the logic setting interface to set sub-track codes for several sub-outgoing channels of the track module respectively. Based on the foregoing example, when a track module has 24 sub-outgoing tracks, the sub-track codes correspond to the foregoing 1 to 24;

[0088] Call the logic setting interface to read the required lane code and the lane merging interval code in the lane demand information; in this embodiment, the format of the lane merging interval code corresponds to the pcTrackInfo logical lane information in the foregoing configuration file. This information consists of a series of consecutive digital elements, each element separated by an English comma. The value of each element represents the number of physical lanes included in the corresponding logical lane, and the sum of all elements is equal to the total number of physical lanes; the logical lane numbers increase sequentially from left to right, and the leftmost lane number is 1; for example, based on the foregoing example, there are a total of 24 sub-outbound lanes. When the lane merging interval code is "6,4,10,1,1,1,1", it is necessary to merge the sub-outbound lanes numbered 1 to 6, merge the sub-outbound lanes numbered 7 to 10, and merge the sub-outbound lanes numbered 11 to 20, and the rest are not merged. At this time, it means that there are a total of 7 logical lanes under this layer of lane module. For example, when the second logical lane needs to make an outbound, physical lanes 7-11 will be triggered to dispense medicine at the same time; therefore, call the logic setting interface to set the required lane code as the first layer code; call the logic setting interface to confirm the lane module that matches the first layer code; the first layer code is the code of the lane module that needs to make an outbound after confirmation; call the logic setting interface to identify the coding interval of the sub-lanes to be merged corresponding to the lane merging interval code. The coding interval of the sub-lanes to be merged is the coding interval of the lanes that need to be merged. Based on the "6,4,10,1,1,1,1" in the foregoing example, the sub-outbound lanes numbered 1 to 6 corresponding to "6", the sub-outbound lanes numbered 7 to 10 corresponding to "4", and the sub-outbound lanes numbered 11 to 20 corresponding to "10" are respectively the coding intervals of the sub-lanes to be merged; therefore, call the logic setting interface to select and merge several sub-outbound channels of the lane module that matches the first layer code according to the coding interval of the sub-lanes to be merged, and obtain the merged sub-lanes that match the coding interval of the sub-lanes to be merged. Based on the above example, during merging, that is, according to 6,4,10,1,1,1,1, merge the sub-outbound lanes numbered 1 to 6, the sub-outbound lanes numbered 7 to 10, and the sub-outbound lanes numbered 11 to 20; call the logic setting interface to allocate a lane logic code to the merged sub-lanes; make the lane logic code be the lane logic of the lane module that matches the first layer code after selection and merging; correspondingly, the lane logic code is to allocate a lane logic code to each independent or merged lane. Based on the above example, after merging, the lane merged from the sub-outbound lanes numbered 1 to 6 is logic 1, the lane merged from the sub-outbound lanes numbered 7 to 10 is logic 2, and the lane merged from the sub-outbound lanes numbered 11 to 20 is logic 3, and the "1,1,1,1" corresponding to it are logic 4, logic 5, logic 6, and logic 8 respectively, and so on;

[0089] As an implementation manner of the present invention, the lane merging interval coding includes a number of lane merging quantity values set in a first order; the lane merging quantity values herein respectively refer to "6", "4", "10", "1", "1", "1" and "1" in the foregoing examples;

[0090] As an implementation manner of the present invention, the calling the logic setting interface to identify the to-be-merged sub-lane coding interval corresponding to the lane merging interval coding includes:

[0091] Identifying a number of first sub-lane codes of a number of sub-shipment channels of a lane module that match the first-layer coding, a number of first sub-lane codes, for example, 1 to 24; dividing the number of first sub-lane codes into a number of coding groups that respectively match the number of lane merging quantity values according to the first order, a number of coding groups such as "1 to 6", "7 to 10", "11 to 20", "21", "22", "23", "24"; therefore, setting the number of coding groups as a number of the to-be-merged sub-lane coding intervals respectively.

[0092] As an implementation manner of the present invention, the shipment demand information includes: a to-be-shipped layer code, a to-be-shipped lane logic code, to-be-shipped goods information, and the quantity of to-be-shipped goods; the to-be-shipped layer code is the layer code corresponding to the lane module that needs to ship goods; the to-be-shipped lane logic code is the code of the logic lane that needs to ship goods in the shipment module corresponding to the to-be-shipped layer code, and the format of the code of the logic lane is the lane logic format allocated after the sub-shipment lanes in the foregoing shipment module are merged, such as logic 1, logic 2, etc.;

[0093] As an implementation manner of the present invention, the controlling the shipment of goods based on the logic reading interface, the shipment control interface, the lane logic, and the shipment demand information includes: calling the logic reading interface to read the to-be-shipped layer code and the to-be-shipped sub-lane logic code in the shipment demand information; the configuration file of the logic reading interface is: int GetLogicTrackInfo(int nLayerIndex,char*pcTrackInfo); confirming the first lane module corresponding to the to-be-shipped layer code; confirming the first merged sub-lane in the first lane module that corresponds to the to-be-shipped lane logic code; identifying the to-be-output goods that match both the to-be-shipped goods information and the quantity of to-be-shipped goods in the lane application device; in this implementation manner, the to-be-shipped goods information is the relevant identification information of the medicine that needs to be shipped, and the quantity of to-be-shipped goods is the quantity of the medicine that needs to be shipped; calling the shipment control interface to output the to-be-output goods through the shipment device in the first merged sub-lane of the first lane module;

[0094] As an embodiment of the present invention, the goods status includes: in the goods channel application device, the several sub-goods statuses of several sub-goods respectively corresponding to several sub-shipment channels; each sub-goods is the quantity status of the goods corresponding to each shipment channel, and this quantity status is judged by a preset shortage quantity prompt value of a certain good; when the quantity of the sub-goods corresponding to a certain sub-shipment channel is not greater than its preset shortage quantity prompt value, it is in a shortage status, otherwise it is in a non-shortage status; therefore, each of the sub-goods statuses includes: a shortage status and a non-shortage status;

[0095] As an embodiment of the present invention, the replenishment prompt based on the replenishment prompt interface and the goods status includes: identifying several sub-goods statuses; when there is a shortage status among several sub-goods statuses, identifying the second sub-shipment channel corresponding to the shortage status, and calling the replenishment prompt interface to turn on the second status light corresponding to the second sub-shipment channel; after turning on the second status light, periodically query the sub-goods status of the second sub-shipment channel corresponding to the second status light; when the sub-goods status obtained by the periodic query is the non-shortage status, call the replenishment prompt interface to turn off the second status light; correspondingly, the replenishment prompt interface includes a replenishment light turn-on interface and a replenishment light turn-off interface, which are respectively responsible for turning on and off the replenishment light, that is, the aforementioned "prompt light" or "status light".

[0096] Embodiment 2

[0097] Based on the same inventive concept as the management method of an article output channel described in Embodiment 1, this embodiment provides a management device for an article output channel, as Figure 3 shown, including:

[0098] An initialization unit for configuring a goods channel module, an initialization interface, a status acquisition interface, a logic setting interface, a replenishment prompt interface, a logic reading interface, and a shipment control interface on the goods channel application device; the initialization unit is further used to detect the device status of the goods channel application device and the goods channel module according to the initialization interface and the status acquisition interface;

[0099] As an embodiment of the present invention, the goods channel module includes: several sub-shipment channels and several status lights correspondingly arranged for several sub-shipment channels; the device status includes: a first status and a second status; the first status is the device to-be-applied status; the second status is the device failure status;

[0100] As an implementation manner of the present invention, the initialization unit detects the device states of the lane application device and the lane module based on the initialization interface and the status acquisition interface, including: the initialization unit calls the initialization interface to initialize both the lane application device and the lane module; the initialization unit calls the status acquisition interface to obtain the first hardware state of the initialized lane application device and the second hardware state of the lane module; the initialization unit determines whether there is a hardware failure state in the first hardware state or the second hardware state; if not, the initialization unit generates the first state; if so, the initialization unit generates the second state.

[0101] As an implementation manner of the present invention, the initialization unit determines whether there is a hardware failure state in the first hardware state or the second hardware state, including: the initialization unit determines whether there is a fault error code in the first hardware state or the second hardware state; if so, the initialization unit reads the fault identification code in the first hardware state or the second hardware state corresponding to the fault error code, and determines that there is the hardware failure state in the first hardware state or the second hardware state; if not, the initialization unit determines that there is no such hardware failure state in the first hardware state or the second hardware state.

[0102] The lane logic setting unit is used to obtain lane demand information according to the device state, and set lane logic based on the lane demand information and the logic setting interface;

[0103] As an implementation manner of the present invention, the lane logic setting unit obtains lane demand information based on the device state, including: the lane logic setting unit identifies the device state; when the device state is the first state, the lane logic setting unit obtains the lane demand information.

[0104] As an implementation manner of the present invention, the lane demand information includes: a required lane code and a lane merging interval code;

[0105] As an implementation manner of the present invention, the lane logic setting unit sets lane logic based on the lane demand information and the logic setting interface, including: the lane logic setting unit calls the logic setting interface to set a layer code for the lane module; the lane logic setting unit calls the logic setting interface to respectively set sub-lane codes for several sub-shipment channels of the lane module; the lane logic setting unit calls the logic setting interface to read the required lane code and the lane merging interval code in the lane demand information; the lane logic setting unit calls the logic setting interface to set the required lane code as the first-layer code; calls the logic setting interface to confirm the lane module matching the first-layer code; the lane logic setting unit calls the logic setting interface to identify the interval of sub-lane codes to be merged corresponding to the lane merging interval code; the lane logic setting unit calls the logic setting interface to select and merge several sub-shipment channels of the lane module matching the first-layer code according to the interval of sub-lane codes to be merged, so as to obtain a merged sub-lane matching the interval of sub-lane codes to be merged; the lane logic setting unit calls the logic setting interface to allocate a lane logic code for the merged sub-lane; the lane logic setting unit makes the lane logic code be the lane logic of the lane module matching the first-layer code after selection and merging.

[0106] As an implementation manner of the present invention, the lane merging interval code includes several lane merging quantity values set in a first order;

[0107] As an implementation manner of the present invention, the lane logic setting unit calls the logic setting interface to identify the interval of sub-lane codes to be merged corresponding to the lane merging interval code, including: the lane logic setting unit identifies several first sub-lane codes of several sub-shipment channels of the lane module matching the first-layer code; the lane logic setting unit divides several first sub-lane codes into several code groups respectively matching several lane merging quantity values according to the first order; the lane logic setting unit sets several code groups as several intervals of sub-lane codes to be merged.

[0108] The shipment control unit is used to obtain shipment demand information and perform goods shipment control based on the logic reading interface, the shipment control interface, the lane logic and the shipment demand information;

[0109] As an implementation manner of the present invention, the shipment demand information includes: the layer code to be shipped, the lane logic code to be shipped, the information of the goods to be shipped, and the quantity of the goods to be shipped;

[0110] As an implementation manner of the present invention, the shipment control unit performs shipment control of goods based on the logic reading interface, the shipment control interface, the lane logic, and the shipment demand information, including: the shipment control unit calls the logic reading interface to read the to-be-shipped layer code and the to-be-shipped sub-lane logic code in the shipment demand information; the shipment control unit confirms the first lane module corresponding to the to-be-shipped layer code; the shipment control unit confirms the first merged sub-lane in the first lane module corresponding to the to-be-shipped lane logic code; the shipment control unit identifies the to-be-output goods that match both the to-be-shipped goods information and the to-be-shipped goods quantity in the lane application device; the shipment control unit calls the shipment control interface to output the to-be-output goods through the first merged sub-lane of the first lane module.

[0111] A replenishment prompt unit, configured to obtain the goods status corresponding to the lane module, and perform replenishment prompting based on the replenishment prompt interface and the goods status.

[0112] As an implementation manner of the present invention, the goods status includes: a plurality of sub-goods statuses respectively corresponding to a plurality of the sub-shipment lanes; each of the sub-goods statuses includes: an out-of-stock status and a non-out-of-stock status;

[0113] As an implementation manner of the present invention, the replenishment prompt unit performs replenishment prompting based on the replenishment prompt interface and the goods status, including: the replenishment prompt unit identifies a plurality of the sub-goods statuses; when there is the out-of-stock status among the plurality of the sub-goods statuses, the replenishment prompt unit identifies the second sub-shipment lane corresponding to the out-of-stock status, and the replenishment prompt unit calls the replenishment prompt interface to turn on the second status light corresponding to the second sub-shipment lane; after the replenishment prompt unit turns on the second status light, the replenishment prompt unit periodically queries the sub-goods status of the second sub-shipment lane corresponding to the second status light; when the sub-goods status obtained by the periodic query is the non-out-of-stock status, the replenishment prompt unit calls the replenishment prompt interface to turn off the second status light.

[0114] Embodiment 3

[0115] This embodiment provides a computer-readable storage medium, including:

[0116] The storage medium is used to store computer software instructions for implementing the management method of the article output channel described in the above Embodiment 1, and it contains a program set for executing the management method of the article output channel; specifically, this executable program can be built into the management device of the article output channel described in Embodiment 2. In this way, the management device of the article output channel can implement the management method of the article output channel described in the above Embodiment 1 by executing the built-in executable program.

[0117] In addition, the computer-readable storage medium of this embodiment can adopt any combination of one or more readable storage media, where the readable storage media include electrical, optical, electromagnetic, infrared, or semiconductor systems, devices, or components, or any combination of the above.

[0118] Different from the prior art, by using the management method, device, and medium for an article output channel of this application, it is possible to design mergeable lane modules in a medicine vending machine, and intelligently select lanes for merging, thereby generating different lane logics to adapt to medicines of different sizes. Finally, according to the shipping requirements, the corresponding lanes are intelligently matched, improving the utilization rate and compatibility of the lanes, enhancing the operation efficiency of the medicine vending machine, meeting the storage and shipping of different medicines, and also enabling intelligent replenishment prompts, simplifying the difficulty of medicine management, and having extremely high application value.

[0119] It should be understood that in various embodiments of this article, the magnitudes of the sequence numbers of the above processes do not imply the order of execution. The order of execution of each process should be determined by its function and internal logic, and should not constitute any limitation to the implementation process of the embodiments of this article.

[0120] It should also be understood that in the embodiments of this article, the term "and / or" is merely a description of the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B may represent three situations: A exists alone, A and B exist simultaneously, and B exists alone. In addition, the character " / " in this article generally represents an "or" relationship between the associated objects before and after.

[0121] Those of ordinary skill in the art can realize that the units and algorithm steps of each example described in combination with the embodiments disclosed in this article can be implemented by electronic hardware, computer software, or a combination of both. To clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described according to functions in the above description. Whether these functions are executed in a hardware or software manner depends on the specific application and design constraints of the technical solution. Professional technicians can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of this article.

[0122] Those skilled in the art can clearly understand that for the convenience and brevity of description, the specific working processes of the above-described systems, devices, and units can refer to the corresponding processes in the foregoing method embodiments, and will not be repeated here.

[0123] In several embodiments provided in this document, it should be understood that the disclosed systems, devices, and methods can be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the displayed or discussed couplings or direct couplings or communication connections to each other can be indirect couplings or communication connections through some interfaces, devices, or units, and can also be electrical, mechanical, or other forms of connection.

[0124] The units described as separate components may or may not be physically separated. The components displayed as units may or may not be physical units, that is, they may be located in one place or distributed to multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solutions of the embodiments in this document.

[0125] In addition, in each embodiment of this document, the functional units can be integrated into a processing unit, or each unit can exist physically alone, or two or more units can be integrated into one unit. The above-mentioned integrated units can be implemented in the form of hardware or in the form of software functional units.

[0126] If the above-mentioned integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the essence of the technical solution in this document, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in each embodiment of this document. The foregoing storage medium includes: various media such as USB flash drives, mobile hard disks, read-only memories (ROM, Read-Only Memory), random access memories (RAM, Random Access Memory), magnetic disks, or optical discs that can store program codes.

[0127] The above are only the embodiments of the present invention, and do not limit the patent scope of the present invention accordingly. All equivalent structural or equivalent process transformations made by using the content of the specification and drawings of the present invention, or directly or indirectly applied in other related technical fields, are equally included in the patent protection scope of the present invention.

Claims

1. A management method for an article output channel, characterized in that Including the following steps: Initialization step: Configure a lane module, an initialization interface, a status acquisition interface, a logic setting interface, a replenishment prompt interface, a logic reading interface, and a shipment control interface on the lane application device; Detect the device status of the lane application device and the lane module based on the initialization interface and the status acquisition interface; The lane module includes: a plurality of sub-shipment channels and a plurality of status lights correspondingly arranged for the plurality of sub-shipment channels; The device status includes: a first status and a second status; the first status is the device waiting for application status; the second status is the device failure status; The detecting the device status of the lane application device and the lane module based on the initialization interface and the status acquisition interface includes: calling the initialization interface to initialize both the lane application device and the lane module; calling the status acquisition interface to obtain the first hardware status of the initialized lane application device and the second hardware status of the lane module; determining whether there is a hardware failure status in the first hardware status or the second hardware status; if not, generating the first status; if so, generating the second status; Lane logic modification step: Obtain lane demand information based on the device status, and set lane logic based on the lane demand information and the logic setting interface; The lane demand information includes: a required lane code and a lane merging interval code; The setting the lane logic based on the lane demand information and the logic setting interface includes: calling the logic setting interface to set a layer code for the lane module; calling the logic setting interface to set sub-lane codes for the plurality of sub-shipment channels of the lane module respectively; calling the logic setting interface to read the required lane code and the lane merging interval code in the lane demand information; calling the logic setting interface to set the required lane code as the first layer code; calling the logic setting interface to confirm the lane module matching the first layer code; calling the logic setting interface to identify the sub-lane code interval corresponding to the lane merging interval code; calling the logic setting interface to select and merge the plurality of sub-shipment channels of the lane module matching the first layer code according to the sub-lane code interval to be merged to obtain a merged sub-lane matching the sub-lane code interval to be merged; calling the logic setting interface to allocate a lane logic code to the merged sub-lane; making the lane logic code be the lane logic of the lane module matching the first layer code after the selection and merging; Shipment control step: Obtain shipment demand information, and perform goods shipment control based on the logic reading interface, the shipment control interface, the lane logic, and the shipment demand information; Replenishment prompt step: Obtain the goods status corresponding to the lane module, and perform replenishment prompt based on the replenishment prompt interface and the goods status.

2. The management method of an article output channel according to claim 1, wherein: The obtaining the lane demand information based on the device status includes: Identify the device status; When the device status is the first status, obtain the lane demand information.

3. The management method of an article output channel according to claim 1, wherein: The lane merging interval code includes a number of lane merging quantity values set in a first order; The step of calling the logic setting interface to identify the sub-lane coding intervals corresponding to the lane merging interval code includes: Identifying a number of first sub-lane codes of a number of sub-shipment channels of a lane module that match the first layer code; Dividing the number of first sub-lane codes into a number of code groups respectively matching the number of lane merging quantity values according to the first order; Setting the number of code groups as the number of sub-lane coding intervals to be merged respectively.

4. The management method of an article output channel according to claim 1, wherein: The shipment demand information includes: the layer code to be shipped, the logical code of the sub-lane to be shipped, the information of the goods to be shipped, and the quantity of the goods to be shipped; The step of performing goods shipment control based on the logic reading interface, the shipment control interface, the lane logic, and the shipment demand information includes: Calling the logic reading interface to read the layer code to be shipped and the logical code of the sub-lane to be shipped in the shipment demand information; Confirming the first lane module corresponding to the layer code to be shipped; Confirming the first merged sub-lane corresponding to the logical code of the sub-lane to be shipped in the first lane module; Identifying the goods to be output that match both the information of the goods to be shipped and the quantity of the goods to be shipped in the lane application device; Calling the shipment control interface to output the goods to be output through the first merged sub-lane of the first lane module.

5. The management method of an article output channel according to claim 4, wherein: The goods status includes: a number of sub-goods statuses respectively corresponding to the number of sub-shipment channels; Each of the sub-goods statuses includes: out-of-stock status and non-out-of-stock status; The step of performing replenishment prompt based on the replenishment prompt interface and the goods status includes: Identifying a number of the sub-goods statuses; When there is an out-of-stock status among the number of sub-goods statuses, identifying the second sub-shipment channel corresponding to the out-of-stock status, and calling the replenishment prompt interface to turn on the second status light corresponding to the second sub-shipment channel; After turning on the second status light, periodically query the sub-goods status of the second sub-shipment channel corresponding to the second status light; when the sub-goods status obtained by the periodic query is the non-out-of-stock status, call the replenishment prompt interface to turn off the second status light.

6. The management method of an article output channel according to claim 2, wherein: The step of determining whether there is a hardware failure status in the first hardware status or the second hardware status includes: Determining whether there is a failure error code in the first hardware status or the second hardware status; If it exists, read the fault identification code in the first hardware state or the second hardware state corresponding to the fault error code, and determine that the hardware fault state exists in the first hardware state or the second hardware state; if it does not exist, determine that the hardware fault state does not exist in the first hardware state or the second hardware state.

7. An apparatus for managing an article output channel of the method for managing an article output channel according to claim 6, characterized in that, Including: An initialization unit, configured to configure a lane module, an initialization interface, a status acquisition interface, a logic setting interface, a replenishment prompt interface, a logic reading interface, and a shipment control interface on the lane application device; the initialization unit is further configured to detect the device status of the lane application device and the lane module according to the initialization interface and the status acquisition interface; A lane logic setting unit, configured to obtain lane demand information according to the device status, and set lane logic based on the lane demand information and the logic setting interface; A shipment control unit, configured to obtain shipment demand information, and perform shipment control of goods based on the logic reading interface, the shipment control interface, the lane logic, and the shipment demand information; A replenishment prompt unit, configured to obtain the goods status corresponding to the lane module, and perform a replenishment prompt based on the replenishment prompt interface and the goods status.

8. A computer-readable storage medium, characterized in that, A computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the management method of the article output channel according to any one of claims 1 to 6 are implemented.

Citation Information

Patent Citations

  • Commodity output device of automatic vending machine

    CN107025727A

  • Logic control scheme for aisle motors of smart vending machine

    CN110647069A