Article sampling method and device, intelligent cabinet and storage medium
Patent Information
- Application Number
- CN202410994875.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-23
- Publication Date
- 2026-09-25
- Estimated Expiration
- 2044-07-23
AI Technical Summary
[0003]基于此,有必要针对上述技术问题,提供一种物品派样方法、装置、智能柜及存储介质,以解决现有线下派样方法存在的派样效率较差的问题
[0014]上述物品派样方法、装置、智能柜及存储介质,其方法包括:接收控制终端根据拨码位置下发的取样指令,根据所述取样指令确定货道编码;将所述货道编码发送至与所述拨码位置对应的派样机,以令所述派样机控制与所述货道编码对应的目标货道执行出货操作;接收所述派样机反馈的其执行所述出货操作的第一执行结果,并将所述第一执行结果反馈至所述控制终端。本发明提供的物品派样方法不仅考虑了派样机与智能柜之间的拨码位置,还考虑了货道编码,确保了取样的准确性和效率。其次,将第一执行结果反馈至控制终端,有助于物品派样的后续处理和记录。
Smart Images

Figure CN119169736B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of article sampling, and more particularly to an article sampling method, apparatus, intelligent cabinet, and storage medium. Background Technology
[0002] Currently, when businesses need to launch new activities (such as launching new products) offline targeting potential customers, most businesses rely on manually distributing activity-related items. This is not only labor-intensive and cannot guarantee promotional effectiveness, but manual distribution is also prone to problems such as statistical errors and lost items. Summary of the Invention
[0003] Therefore, it is necessary to provide a method, device, smart cabinet, and storage medium for sampling items to address the aforementioned technical problems and solve the problem of poor sampling efficiency in existing offline sampling methods.
[0004] A method for sampling items, comprising:
[0005] The receiving control terminal sends a sampling instruction based on the DIP switch position, and determines the cargo channel code based on the sampling instruction;
[0006] The cargo lane code is sent to the sampling machine corresponding to the dial position, so that the sampling machine controls the target cargo lane corresponding to the cargo lane code to perform a delivery operation;
[0007] The system receives the first execution result of the delivery operation from the sampling machine and feeds the first execution result back to the control terminal.
[0008] An apparatus for a method of sampling articles, comprising:
[0009] The sampling instruction module is used to receive sampling instructions issued by the control terminal according to the DIP switch position, and to determine the cargo channel code according to the sampling instructions.
[0010] The shipping operation module is used to send the cargo channel code to the sampling machine corresponding to the dial position, so that the sampling machine controls the target cargo channel corresponding to the cargo channel code to perform a shipping operation;
[0011] The execution result module is used to receive the first execution result of the sampling machine in performing the shipping operation, and to feed the first execution result back to the control terminal.
[0012] A controller includes a memory, a processor, and computer-readable instructions stored in the memory and executable on the processor, wherein the processor implements the above-described item sampling method when executing the computer-readable instructions.
[0013] One or more readable storage media storing computer-readable instructions, which, when executed by one or more processors, cause the one or more processors to perform the article sampling method described above.
[0014] The aforementioned item sampling method, apparatus, smart cabinet, and storage medium include the following steps: receiving a sampling instruction issued by a control terminal based on a dial switch position; determining a channel code based on the sampling instruction; sending the channel code to a sampling machine corresponding to the dial switch position, so that the sampling machine controls the target channel corresponding to the channel code to perform a delivery operation; receiving a first execution result from the sampling machine regarding the execution of the delivery operation; and feeding back the first execution result to the control terminal. The item sampling method provided by this invention considers not only the dial switch position between the sampling machine and the smart cabinet but also the channel code, ensuring the accuracy and efficiency of sampling. Furthermore, feeding back the first execution result to the control terminal facilitates subsequent processing and recording of the item sampling. Attached Figure Description
[0015] To more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings used in the description of the embodiments of the present invention will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0016] Figure 1 This is a schematic diagram of an application environment for an article sampling method according to an embodiment of the present invention;
[0017] Figure 2 This is a flowchart illustrating an article sampling method according to an embodiment of the present invention;
[0018] Figure 3 This is a schematic diagram of the structure of an item sampling method apparatus according to an embodiment of the present invention;
[0019] Figure 4 This is a schematic diagram of a controller in one embodiment of the present invention. Detailed Implementation
[0020] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0021] The item sampling method provided in this embodiment can be applied to, for example, Figure 1In this application environment, the client and server communicate. The client includes, but is not limited to, various personal computers, laptops, smartphones, tablets, and portable wearable devices. When the client is a smartphone application, it can access the sampling interface by scanning the QR code on the sampling terminal. Using the smartphone application as a platform not only satisfies user sampling needs but also drives traffic and increases daily active users for the application, achieving a win-win situation. The server can be implemented using a dedicated server or a server cluster consisting of multiple servers.
[0022] In one embodiment, such as Figure 2 As shown, a method for sampling items is provided, which is applied to... Figure 1 Taking the server-side as an example, the explanation includes the following steps:
[0023] S10. Receive the sampling instruction issued by the control terminal according to the DIP switch position, and determine the cargo channel code according to the sampling instruction.
[0024] Understandably, an intelligent sampling system includes a control terminal, an intelligent cabinet, and a sample dispenser. The control terminal, referring to the central processing unit within the intelligent cabinet system, is responsible for receiving, processing, and sending various instructions. The intelligent cabinet receives and processes these instructions from the control terminal, then sends corresponding instructions to the sample dispenser, enabling the dispenser to perform operations corresponding to the received instructions. Understandably, one intelligent cabinet can communicate with multiple sample dispensers. Each sample dispenser has a DIP switch position, which can be manually set or determined by selecting specific parameters or options. That is, each sample dispenser corresponds to one DIP switch position, and one DIP switch position is associated with one sample dispenser and one intelligent cabinet.
[0025] Understandably, the intelligent cabinet communicates with each sample dispenser via DIP switch positions; that is, the intelligent cabinet issues commands to each sample dispenser through DIP switch positions. The sampling command is issued by the control terminal based on the DIP switch positions, with the purpose of retrieving a specified sample from the sample dispenser. Specifically, the sampling command can be generated by the control terminal based on the DIP switch positions of the sample dispenser when it receives a sampling request associated with the sampling activity from the sample dispenser. Understandably, each sample dispenser has multiple channels for placing samples, and each channel has a unique code, which allows for the identification and location of a specific channel.
[0026] S20. Send the cargo channel code to the sampling machine corresponding to the dial position, so that the sampling machine controls the target cargo channel corresponding to the cargo channel code to perform a delivery operation.
[0027] Understandably, after determining the lane code, the smart locker sends the lane code to the sampling machine corresponding to the dial position. Upon receiving the lane code, the sampling machine identifies the target lane (including the first and second target lanes mentioned later) based on the lane code and performs the dispensing operation, allowing the user to retrieve the goods from the target lane. Understandably, a sampling machine is a machine used to distribute samples and can control the dispensing operation of the lanes. Each lane of the sampling machine has a lane code, and the target lane is the lane corresponding to that lane code.
[0028] S30. Receive the first execution result of the sampling machine in performing the shipping operation, and feed the first execution result back to the control terminal.
[0029] Understandably, after the sampling machine performs the dispensing operation, it uses a built-in optical grating sensor at its retrieval port to detect the result of the operation, i.e., the first execution result. When a sample successfully exits the target channel and falls into the retrieval port, the optical grating sensor detects this and sends a successful dispensing message (the first execution result) to the control terminal. Conversely, if a sample fails to exit the target channel and falls into the retrieval port, the optical grating sensor will not detect this and will send a failed dispensing message (the first execution result) to the control terminal. In this way, the control terminal can confirm whether the dispensing operation was completed as expected and perform subsequent processing or recording accordingly. For example, it can track the sampling operation of the corresponding user based on the first execution result or track lost samples based on the first execution result.
[0030] In steps S10-S30, the control terminal receives a sampling instruction issued according to the DIP switch position, and determines the cargo channel code according to the sampling instruction; the cargo channel code is sent to the sampling machine corresponding to the DIP switch position, so that the sampling machine controls the target cargo channel corresponding to the cargo channel code to perform a delivery operation.
[0031] The system receives the first execution result of the dispatching operation from the sampling machine and feeds it back to the control terminal. This embodiment of the item sampling method considers not only the dial position between the sampling machine and the smart cabinet but also the channel coding, ensuring the accuracy and efficiency of sampling. Furthermore, feeding back the first execution result to the control terminal facilitates subsequent processing or recording of the item sampling.
[0032] In one embodiment, specifically in step S10, the receiving control terminal sends a sampling command based on the DIP switch position, including:
[0033] S101. Receive a sampling instruction sent by the control terminal. The sampling instruction is generated based on the DIP switch position of the sampling machine when the control terminal receives a sampling request associated with the target sampling activity sent by the sampling machine. The target sampling activity refers to the sampling activity created after the control terminal receives the DIP switch position and the self-test result of the sampling machine sent by the sampling machine and determines that the self-test result is a successful self-test.
[0034] Understandably, the process of generating and receiving sampling instructions includes a self-test of the sampling machine before the sampling instruction is generated. This process includes creating a target sampling activity, sending a sampling request, generating the sampling instruction, and reading the dial key position. Understandably, when a new sampling machine is put into use, it needs to be associated with a smart cabinet to obtain a dial key position, thereby activating the machine and enabling it to complete a self-test. After the self-test result indicates that the sampling machine has passed the self-test, the merchant can create a sampling activity, i.e., create a target sampling activity, through the item management service provided by the control terminal. After the target sampling activity is created, the customer can access the target sampling activity through a link provided by the sampling machine (for example, the control terminal generates a QR code for each sampling machine, and the customer accesses the sampling activity corresponding to that sampling machine through the QR code affixed to the sampling machine), and perform a sampling confirmation operation on the interface provided by the target sampling activity. The sampling machine responds to the sampling confirmation operation and generates a sampling request. The sampling request includes the dial key position, sampling quantity, and sampled item information. This ensures that the sampling operation is accurately executed according to the sampling instructions from the control terminal, provided that the sampling machine passes the self-test and the DIP switch is in the correct position. This improves the reliability and accuracy of the sampling machine operation and ensures that customers can obtain samples smoothly.
[0035] In one embodiment, before step S10, that is, before receiving the sampling command sent by the control terminal, the procedure includes:
[0036] S11. Receive the hardware code of the sampling machine sent by the control terminal, and determine the dial position of the sampling machine based on the hardware code. Understandably, the smart cabinet has a unique cabinet code used to identify the smart cabinet. The hardware code refers to the unique identification code of the sampling machine, used to identify the sampling machine. Before the sampling machine is activated, based on the association relationship, the cabinet code associated with it can be queried according to the hardware code, thereby locating the smart cabinet associated with the sampling machine. Through the smart cabinet, the dial position for communication between the smart cabinet and the sampling machine can be determined.
[0037] S12. Send an activation command to the sample dispenser corresponding to the DIP switch position, so that the sample dispenser performs a self-test operation according to the activation command, and reports the self-test result, the encoding information and the DIP switch position corresponding to the self-test operation to the control terminal.
[0038] Understandably, after determining the DIP switch position of the sample dispenser, an activation command is sent to the sample dispenser via the intelligent cabinet. This allows the sample dispenser to perform a self-test based on the activation command and enter the working state upon passing the self-test. The self-test operation refers to a series of checks performed by the sample dispenser to ensure the normal operation of all its components and functions, including network checks and raster checks. The self-test result refers to the outcome of the self-test operation, including both pass and fail results. After the self-test operation, the self-test result, the encoding information, and the DIP switch position are reported to the control terminal, allowing the control terminal to determine whether to update the working state of the sample dispenser based on the self-test result, encoding information, and DIP switch position. In this embodiment, the control terminal sends an activation command to the corresponding sample dispenser based on the DIP switch position determined in step S11. Upon receiving the activation command, the sample dispenser performs a self-test operation, checking the status of its hardware and software systems. After the self-test is completed, the sample dispenser generates a self-test result and sends it back to the control terminal along with the hardware encoding information and the DIP switch position. In this way, the control terminal can promptly understand the status of the sampling machine and whether it is ready to perform the sampling operation.
[0039] Preferably, the control terminal verifies whether the self-test result was generated by the sampling machine corresponding to the activation command based on the encoding information and DIP switch position, ensuring the accuracy of the self-test result. When it is determined that the self-test result was generated by the sampling machine corresponding to the activation command, and the self-test result indicates that the sampling machine passed the self-test, the working status of the sampling machine is updated, for example, the working status of the sampling machine is updated from the pending activation state to the sampling ready state. In this way, the control terminal can understand the status of the sampling machine in a timely manner.
[0040] In one embodiment, after step S20, that is, after sending the channel code to the sampling machine corresponding to the dial position, the process includes:
[0041] S201. Generate a sampling lock corresponding to the dial switch position, and lock the sampling machine corresponding to the dial switch position using the sampling lock, so that all channels in the sampling machine except the first target channel are in a non-dispensing state. Understandably, when multiple sampling requests exist for the same sampling machine at the same time and the channels are inconsistent, the sampling machine is prone to malfunction due to jamming, and it is difficult to confirm the ownership of the retrieved items. Here, after the sampling machine receives the channel code, a sampling lock is generated for that sampling machine. The sampling lock is a logical locking mechanism used to control the dispensing state of the sampling machine. The first target channel refers to the designated channel for which a dispensing operation needs to be performed. A non-dispensing state means that the channel is in a non-dispensing state. It should be understood that the function of the sampling lock is to lock the sampling machine, so that all channels in the sampling machine except the first target channel cannot perform dispensing operations. This ensures that during the sampling operation, there will be no simultaneous operation or interference from other channels, which would lead to the inability to confirm the ownership of the items. The system can precisely control the shipping operation by using a sampling lock, ensuring that only one cargo channel can ship at a time.
[0042] S202. Determine the execution time of the shipment operation. If the execution time is longer than the preset timeout period, release the sampling lock so that all channels of the sampling machine corresponding to the dial position are in the shipment state.
[0043] Understandably, "ready to ship" means the delivery lane is in a ready-to-ship state. "Execution duration" refers to the duration of the shipping operation. "Preset timeout duration" refers to a pre-set timeout duration, which can be set according to needs. The sampling lock is released when the execution duration exceeds the preset timeout duration. When the execution duration of the shipping operation exceeds the preset timeout duration, it indicates that the shipping operation may have encountered a problem or malfunction. To prevent the sampling machine from being locked for an extended period and affecting other operations, the sampling lock will be released. After the sampling lock is released, all delivery lanes of the sampling machine corresponding to the dial position will return to the ready-to-ship state, thus allowing normal shipping operations in other delivery lanes.
[0044] In this embodiment, not only can the accurate execution of the delivery operation be ensured, but also possible abnormal situations can be handled, ensuring the overall operating efficiency of the sampling machine and the user experience. It can prevent the sampling machine from being occupied for a long time, and can also confirm the ownership of the items, thus effectively improving the sampling efficiency.
[0045] In one embodiment, the article sampling method further includes:
[0046] S13. Receive a replenishment instruction sent by the control terminal containing the dial position, and control the preset replenishment cabinet door of the sampling machine corresponding to the dial position to open.
[0047] S14. After receiving the replenishment completion information from the sampling machine, control the preset replenishment cabinet door to close.
[0048] Understandably, a replenishment instruction refers to a command used to guide the sample dispenser in replenishing its stock. A pre-set replenishment cabinet door refers to the door on the sample dispenser used for replenishment; typically, each sample dispenser has one or more replenishment entrances. It should be understood that merchants can submit replenishment requests through the merchant services provided on the control terminal. The control terminal responds to these requests by generating a replenishment instruction to open the pre-set replenishment cabinet door, allowing the merchant to replenish the sample dispenser. After replenishing the sample dispenser, the merchant can register the quantity, name, and other information of the replenished goods through the merchant services and complete the replenishment process. The sample dispenser, in response to this completion, generates replenishment completion information and then closes the pre-set replenishment cabinet door. This automates the replenishment process, improving efficiency and convenience. Simultaneously, it ensures the safety and accuracy of the replenishment operation, reducing the possibility of human error.
[0049] In one embodiment, after step S30, that is, after feeding back the first execution result to the control terminal, the process includes:
[0050] S301. After receiving the resampling instruction sent by the control terminal, a new cargo channel code is determined according to the resampling instruction; the resampling instruction is generated after the control terminal confirms that the first execution result indicates that the shipment was unsuccessful.
[0051] S302. Send the new cargo channel code to the sampling machine corresponding to the dial position, so that the sampling machine controls the second target cargo channel corresponding to the new cargo channel code to perform the delivery operation again;
[0052] S303. Receive the second execution result of the sampling machine's re-execution of the shipping operation, record the number of times the shipping operation is executed, and feed back the second execution result and the number of executions to the control terminal.
[0053] Understandably, when the control terminal receives the dispatching operation result (first execution result) from the sampling machine and confirms that the dispatching was unsuccessful, the control terminal generates a resampling instruction. Upon receiving the resampling instruction, the smart cabinet determines a new channel code based on the instruction content and performs a resampling operation. The smart cabinet sends the newly determined channel code to the sampling machine corresponding to the dial position. This new channel code corresponds to the second target channel, and the sampling machine controls the second target channel to perform a resampling operation based on the new channel code. After completing the resampling operation, the sampling machine feeds back the result (second execution result) to the control terminal. Simultaneously, it records the number of times the dispatching operation was executed. Upon receiving this information, the control terminal can update the status of the sampling machine, record the operation log, and take further measures based on the results (e.g., if the resampling fails, the above steps may need to be repeated or manual intervention may be required).
[0054] This embodiment can automatically attempt to resend the goods in the event of a failed shipment, ensuring the correctness of the operation and the reliability of the system. Simultaneously, by recording and reporting the operation results and frequency, the system provides effective monitoring and data logging, facilitating subsequent analysis and troubleshooting.
[0055] In one embodiment, after step S30, the step of feeding back the second execution result and the number of executions to the control terminal includes:
[0056] S304. When the control terminal confirms that the second execution result indicates that the shipment was unsuccessful and the number of executions is greater than or equal to the preset number of executions, it receives the sampling failure information sent by the control terminal.
[0057] Understandably, sampling failure information indicates that the sampling operation failed to complete successfully. The execution count refers to the number of times the shipping operation was attempted, which can be used to track the frequency of operations. The preset execution count refers to the pre-set maximum allowed number of shipping attempts. If the shipping attempts reach or exceed this number, the system will take specific measures. This embodiment can effectively manage shipping operations and promptly notify relevant personnel or provide corresponding compensation to customers (e.g., compensation coupons) after multiple failed shipping attempts, thereby ensuring system reliability and user experience.
[0058] It should be understood that the sequence number of each step in the above embodiments does not imply the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present invention.
[0059] In one embodiment, an apparatus for an article sampling method is provided, which corresponds one-to-one with the article sampling methods described in the above embodiments. For example... Figure 3As shown, the sampling method device includes a sampling instruction module 10, a shipping operation module 20, and an execution result module 30. Detailed descriptions of each functional module are as follows:
[0060] Sampling instruction module 10 is used to receive sampling instructions issued by the control terminal according to the DIP switch position, and to determine the cargo channel code according to the sampling instructions.
[0061] The shipping operation module 20 is used to send the cargo channel code to the sampling machine corresponding to the dial position, so that the sampling machine controls the target cargo channel corresponding to the cargo channel code to perform a shipping operation;
[0062] The execution result module 30 is used to receive the first execution result of the sampling machine in performing the shipping operation, and to feed the first execution result back to the control terminal.
[0063] Optionally, the sampling instruction module 10 includes:
[0064] The receiving unit is configured to receive a sampling instruction sent by the control terminal. The sampling instruction is generated based on the DIP switch position of the sampling machine when the control terminal receives a sampling request associated with the target sampling activity sent by the sampling machine. The target sampling activity refers to the sampling activity created after the control terminal receives the DIP switch position and the self-test result of the sampling machine sent by the sampling machine and determines that the self-test result is a successful self-test.
[0065] Optionally, the article sampling method apparatus further includes:
[0066] The DIP switch position unit is used to receive the hardware code of the sample dispenser sent by the control terminal and determine the DIP switch position of the sample dispenser according to the hardware code.
[0067] An activation instruction unit is used to send an activation instruction to the sample dispenser corresponding to the DIP switch position, so that the sample dispenser performs a self-test operation according to the activation instruction, and reports the self-test result, the encoding information and the DIP switch position corresponding to the self-test operation to the control terminal.
[0068] Optionally, the article sampling method apparatus further includes:
[0069] A sampling lock unit is used to generate a sampling lock corresponding to the dial position, and to lock the sampling machine corresponding to the dial position through the sampling lock, so that all channels in the sampling machine except the first target channel are in a non-dispatch state.
[0070] The release unit is used to determine the execution time of the shipping operation. If the execution time is longer than the preset timeout period, the sampling lock is released so that all channels of the sampling machine corresponding to the dial position are in the shipping state.
[0071] Optionally, the article sampling method apparatus further includes:
[0072] The cabinet door opening unit is used to receive a replenishment command containing the dial position sent by the control terminal, and control the preset replenishment cabinet door of the sampling machine corresponding to the dial position to open.
[0073] The cabinet door closing unit is used to control the preset replenishment cabinet door to close after receiving the replenishment completion information from the sampling machine.
[0074] Optionally, the article sampling method apparatus further includes:
[0075] The new cargo lane coding unit is used to determine a new cargo lane code according to the resampling instruction sent by the control terminal after receiving the resampling instruction; the resampling instruction is generated after the control terminal confirms that the first execution result indicates that the shipment was unsuccessful.
[0076] The re-dispatch operation unit is used to send the new channel code to the sampling machine corresponding to the dial position, so that the sampling machine controls the second target channel corresponding to the new channel code to perform the dispatch operation again;
[0077] The second execution result unit is used to receive the second execution result of the sampling machine performing the shipping operation again, record the number of times the shipping operation is executed, and feed the second execution result and the number of executions back to the control terminal.
[0078] Optionally, the article sampling method apparatus further includes:
[0079] The sampling failure unit is used to receive sampling failure information sent by the control terminal when the control terminal confirms that the second execution result indicates that the shipment was unsuccessful and the number of executions is greater than or equal to the preset number of executions.
[0080] For specific limitations regarding the sampling method apparatus, please refer to the limitations of the sampling method described above, which will not be repeated here. Each module in the above-mentioned sampling method apparatus can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in the processor of the controller in hardware form or independent of it, or stored in the memory of the controller in software form, so that the processor can call and execute the operations corresponding to each module.
[0081] In one embodiment, a controller is provided, which may be a terminal, and its internal structure diagram may be as follows: Figure 4 As shown, the controller includes a processor, memory, network interface, display screen, and input device connected via a system bus. The processor provides computing and control capabilities. The memory includes a readable storage medium and internal memory. The non-volatile storage medium stores an operating system and computer-readable instructions. The internal memory provides an environment for the operation of the operating system and computer-readable instructions in the readable storage medium. The network interface is used to communicate with an external server via a network connection. When the computer-readable instructions are executed by the processor, they implement an item sampling method. The readable storage medium provided in this embodiment includes both non-volatile and volatile readable storage media.
[0082] In one embodiment, a controller is provided, including a memory, a processor, and computer-readable instructions stored in the memory and executable on the processor, wherein the processor performs the following steps when executing the computer-readable instructions:
[0083] The receiving control terminal sends a sampling instruction based on the DIP switch position, and determines the cargo channel code based on the sampling instruction;
[0084] The cargo lane code is sent to the sampling machine corresponding to the dial position, so that the sampling machine controls the target cargo lane corresponding to the cargo lane code to perform a delivery operation;
[0085] The system receives the first execution result of the delivery operation from the sampling machine and feeds the first execution result back to the control terminal.
[0086] In one embodiment, one or more computer-readable storage media storing computer-readable instructions are provided. The readable storage media provided in this embodiment include non-volatile readable storage media and volatile readable storage media. The readable storage media stores computer-readable instructions, which, when executed by one or more processors, perform the following steps:
[0087] The receiving control terminal sends a sampling instruction based on the DIP switch position, and determines the cargo channel code based on the sampling instruction;
[0088] The cargo lane code is sent to the sampling machine corresponding to the dial position, so that the sampling machine controls the target cargo lane corresponding to the cargo lane code to perform a delivery operation;
[0089] The system receives the first execution result of the delivery operation from the sampling machine and feeds the first execution result back to the control terminal.
[0090] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by instructing related hardware with computer-readable instructions. These computer-readable instructions can be stored in a non-volatile readable storage medium or a volatile readable storage medium. When executed, these computer-readable instructions can include the processes of the embodiments of the above methods. Any references to memory, storage, databases, or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), dual data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), RAMbus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
[0091] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the above-described division of functional units and modules is used as an example. In practical applications, the above functions can be assigned to different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above.
[0092] The above-described embodiments are only used to illustrate the technical solutions of the present invention, and are not intended to limit it. Although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention, and should all be included within the protection scope of the present invention.
Claims
1. A method for sampling goods, characterized in that, Applied to smart cabinets, the item sampling method includes: The receiving control terminal sends a sampling instruction based on the DIP switch position, and determines the cargo channel code based on the sampling instruction; The cargo lane code is sent to the sampling machine corresponding to the dial position, so that the sampling machine controls the target cargo lane corresponding to the cargo lane code to perform a delivery operation; Receive the first execution result of the delivery operation from the sampling machine, and feed the first execution result back to the control terminal; The receiving control terminal sends a sampling command based on the DIP switch position, including: The system receives a sampling instruction sent by the control terminal. The sampling instruction is generated based on the DIP switch position of the sampling machine when the control terminal receives a sampling request associated with the target sampling activity sent by the sampling machine. The target sampling activity refers to the sampling activity created after the control terminal receives the DIP switch position and the self-test result of the sampling machine sent by the sampling machine and determines that the self-test result is a pass. Before receiving the sampling instruction sent by the control terminal, the process includes: The system receives the hardware code of the sampling machine sent by the control terminal and determines the dial-up position of the sampling machine based on the hardware code. Each smart cabinet has a unique cabinet code used to identify the smart cabinet, and the hardware code is the unique identification code of the sampling machine used to identify the sampling machine. Before the sampling machine is activated, based on the association relationship, the associated cabinet code can be queried according to the hardware code to locate the smart cabinet associated with the sampling machine. The dial-up position for communication between the smart cabinet and the sampling machine is determined through the smart cabinet. An activation command is sent to the sampling machine corresponding to the DIP switch position, so that the sampling machine performs a self-test operation according to the activation command, and reports the self-test result, the hardware code and the DIP switch position to the control terminal.
2. The article sampling method as described in claim 1, characterized in that, After sending the cargo channel code to the sampling machine corresponding to the dial position, the process includes: A sampling lock is generated corresponding to the DIP switch position, and the sampling machine corresponding to the DIP switch position is locked by the sampling lock so that all other channels in the sampling machine except the first target channel are in an unsending state. The execution time of the shipping operation is determined. If the execution time is longer than the preset timeout period, the sampling lock is released so that all channels of the sampling machine corresponding to the dial position are in the shipping state.
3. The article sampling method as described in claim 1, characterized in that, The item sampling method includes: Receive a replenishment command sent by the control terminal containing the position of the dial switch, and control the opening of the preset replenishment cabinet door of the sampling machine corresponding to the position of the dial switch; After receiving the replenishment completion information from the sampling machine, the preset replenishment cabinet door is closed.
4. The article sampling method as described in claim 1, characterized in that, After feeding back the first execution result to the control terminal, the process includes: After receiving a resampling instruction from the control terminal, a new cargo channel code is determined according to the resampling instruction; the resampling instruction is generated after the control terminal confirms that the first execution result indicates that the shipment was unsuccessful. The new cargo lane code is sent to the sampling machine corresponding to the dial position, so that the sampling machine controls the second target cargo lane corresponding to the new cargo lane code to perform the delivery operation again; The system receives the second execution result of the sampling machine's re-execution of the shipping operation, records the number of times the shipping operation is executed, and feeds back the second execution result and the number of executions to the control terminal.
5. The article sampling method as described in claim 4, characterized in that, After feeding back the second execution result and the number of executions to the control terminal, the process includes: When the control terminal confirms that the second execution result indicates that the shipment was unsuccessful and the number of executions is greater than or equal to the preset number of executions, it receives a sampling failure message sent by the control terminal.
6. A sample dispensing device for goods, characterized in that, include: The sampling instruction module is used to receive sampling instructions issued by the control terminal according to the DIP switch position, and to determine the cargo channel code according to the sampling instructions. The shipping operation module is used to send the cargo channel code to the sampling machine corresponding to the dial position, so that the sampling machine controls the target cargo channel corresponding to the cargo channel code to perform a shipping operation; The execution result module is used to receive the first execution result of the sampling machine in performing the shipping operation, and to feed the first execution result back to the control terminal; The sampling instruction module includes: The receiving unit is configured to receive a sampling instruction sent by the control terminal. The sampling instruction is generated based on the DIP switch position of the sampling machine when the control terminal receives a sampling request associated with the target sampling activity sent by the sampling machine. The target sampling activity refers to the sampling activity created after the control terminal receives the DIP switch position and the self-test result of the sampling machine sent by the sampling machine and determines that the self-test result is a successful self-test. The item sampling device further includes: The DIP switch position unit is used to receive the hardware code of the sampling machine sent by the control terminal, and determine the DIP switch position of the sampling machine according to the hardware code; wherein, the smart cabinet has a unique cabinet code, which is used to identify the smart cabinet, and the hardware code refers to the unique identification code of the sampling machine, which is used to identify the sampling machine; before the sampling machine is activated, based on the association relationship, the associated cabinet code can be queried according to the hardware code, and then the smart cabinet associated with the sampling machine can be located, and the DIP switch position for communication between the smart cabinet and the sampling machine can be determined through the smart cabinet. An activation instruction unit is used to send an activation instruction to the sample dispenser corresponding to the DIP switch position, so that the sample dispenser performs a self-test operation according to the activation instruction, and reports the self-test result corresponding to the self-test operation, the hardware code, and the DIP switch position to the control terminal.
7. A smart cabinet, characterized in that, The system includes a controller, which includes a memory, a processor, and computer-readable instructions stored in the memory and executable on the processor, wherein the processor, when executing the computer-readable instructions, implements the article sampling method as described in any one of claims 1 to 5.
8. One or more readable storage media storing computer-readable instructions, characterized in that, When the computer-readable instructions are executed by one or more processors, the one or more processors cause the article sampling method as described in any one of claims 1 to 5 to be performed.
Citation Information
Patent Citations
Automatic vending machine remote control method, device, storage medium and system
CN108846952A
Method and device for controlling shipment of container
CN109035561A