Control method, device and equipment for double-door intelligent container

By using a cloud-controlled Android host computer and slave main control board, combined with state machine rules and a security verification module, real-time monitoring and security judgment of the dual-door smart vending machine are achieved, solving user experience and security issues and improving the system's reliability and security.

CN120954137APending Publication Date: 2025-11-14BEIJING FUMI CLOUD TECH CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202511076983.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-08-01
Publication Date
2025-11-14

AI Technical Summary

Technical Problem

Existing dual-door smart lockers have issues with user experience and security. Users need to scan codes separately to open the door, which can easily damage the electromagnetic lock and poses a risk of theft.

Method used

By using a cloud-controlled Android host computer and slave main control board, combined with state machine rules and security verification modules, the system can monitor and judge the door lock status in real time, merge it into a single virtual lock status, block illegal unlocking commands, and drive the shopping process through an asynchronous communication mechanism.

Benefits of technology

It improves user experience, reduces the risk of electromagnetic lock damage, enhances security, and achieves complete closed-loop management of the shopping process and system self-healing capabilities.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120954137A_ABST
    Figure CN120954137A_ABST
Patent Text Reader

Abstract

The invention relates to a double-door intelligent container control method, device and equipment. The method comprises the steps that a customer sends a shopping request, an Android upper computer receives an unlocking instruction from a cloud end, a door lock state is obtained through a lower computer main control board, logic judgment is carried out according to predefined state machine rules, unlocking instruction issuing is carried out when safety conditions are met, and if not, abnormity reporting is triggered. The lower computer main control board monitors and reports the state change of the door lock in real time, the android upper computer judges customer behaviors according to the reported state, the customer completes shopping, the lower computer main control board reports the locking state of the door lock, the android upper computer conducts logic judgment according to predefined state machine rules, cloud settlement is conducted when safety conditions are met, and otherwise, abnormity reporting is triggered. On the premise of maintaining independent control of two doors and four locks, the state decision complexity can be reduced to the level of a single door system, the unlocking misoperation rate is close to zero, and complete closed-loop management of the shopping process is achieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of intelligent vending machine equipment technology, and in particular to a control method, device and equipment for a double-door intelligent vending machine. Background Technology

[0002] Smart vending machines have become a very popular self-service vending machine product. Customers can scan a code using mobile payment software, and the door will open automatically. After selecting the goods, the door will close automatically, and the purchased goods will be identified and the payment will be deducted automatically.

[0003] As market demand grows, operators are increasingly willing to use double-door smart vending machines. This is because they have a larger capacity, and since some locations charge rent based on the number of machines, double-door smart vending machines offer better cost-effectiveness than single-door machines.

[0004] After scanning the shopping QR code with a mobile payment app, customers can request to open the locker via a user-side mini-program. Currently, for double-door lockers, customers typically scan the QR code on the left door to open the left door, and scan the QR code on the right door to open the right door.

[0005] If customers want to take items from the left and right cabinets, they need to scan the code to open and close the doors separately, which prevents them from selecting items from both cabinets at the same time, resulting in a poor user experience.

[0006] Currently, most double-door cabinets on the market use an electromagnetic lock installed on the top of the door. Since the door handle is in the middle of the door, pulling it for a long time will damage the lock. Pulling it forcefully will also cause gaps at the bottom of the door, which may lead to malicious theft or damage, causing certain economic losses to the operator. Summary of the Invention

[0007] This application provides a control method for a dual-door smart vending machine, characterized in that it includes: The cloud receives shopping requests from customers and sends unlocking commands to the Android host computer of the double-door smart vending machine. When a customer sends a shopping request, the Android host computer receives the unlocking command from the cloud, obtains the door lock status through the lower-level main control board, performs logical judgment according to the predefined state machine rules, and sends the unlocking command if the security conditions are met; otherwise, it triggers an exception report. During the customer's shopping process, the lower-level main control board monitors and reports changes in the door lock status in real time, and the Android upper-level computer judges the customer's behavior based on the reported status. Once the customer completes their purchase, the lower-level main control board reports the door lock status. The Android upper-level computer then performs logical judgments based on predefined state machine rules. If the security conditions are met, the cloud settlement is processed; otherwise, an exception is reported.

[0008] Optionally, when a customer sends a shopping request, the Android host computer receives an unlocking command from the cloud, obtains the door lock status through the lower-level main control board, performs logical judgment according to predefined state machine rules, and issues an unlocking command if the security conditions are met; otherwise, it triggers an exception report, including: When the Android host computer receives the unlocking command from the cloud, it sends a query command to the lower-level main control board, which then queries the door lock status. After the lower-level main control board obtains the real-time status of the door lock, it reports the status and sends it to the Android host computer for judgment according to the predefined state machine rules, and generates the unlock status judgment result. Based on the unlock status judgment result, if the result indicates that the door lock status is normal, the Android host computer sends an unlock command to the lower computer main control board; otherwise, it reports an abnormal status to the cloud.

[0009] Optionally, during the customer's shopping process, the lower-level main control board monitors and reports changes in the door lock status in real time, and the Android upper-level computer judges the customer's behavior based on the reported status, including: When the lock status of the container door changes, the lower-level main control board reads the current lock status and reports it, and the customer behavior is judged through the Android upper-level computer. When the door lock status is unlocked, the Android host computer determines that the customer has opened the cabinet door to make purchases; otherwise, it determines that the door lock status is abnormal and reports it to the cloud. When the door lock is in the "locked" or "closed" state, the Android host computer determines that the customer has finished shopping and reports the shopping status to the cloud for settlement; otherwise, it determines that the customer is shopping.

[0010] Optionally, after the customer completes their purchase, the lower-level main control board reports the door lock status. The Android upper-level computer performs logical judgments according to predefined state machine rules. If the security conditions are met, cloud settlement is performed; otherwise, an exception is reported, including: When a customer closes the cabinet door, the electromagnetic lock engages and then the lower-level main control board reads the current door lock status and reports it to the Android upper-level computer. The Android host computer receives the reported door lock status, makes a judgment based on the predefined state machine rules, and generates a lock / close status judgment result. Based on the lock status, if the result indicates that the shopping is complete, the Android host computer reports the shopping status to the cloud; otherwise, it reports an abnormal status to the cloud.

[0011] Optionally, the control method for the double-door intelligent vending machine is characterized in that: The dual-door smart vending machine includes two operable doors, a left door and a right door; the dual-door smart vending machine has four electromagnetic locks, with two electromagnetic locks installed on each door; each electromagnetic lock has the function of detecting the door and lock status, and is used to independently detect the open / closed status of its door and the open / closed status of the lock. The on / off state of each lock is logically ANDed through a four-input AND gate, and the result is combined into a virtual lock state signal and provided to the lower-level main control board. When all four locks are in the locked state, the lower-level main control board forms an overall locked state; otherwise, it forms an overall unlocked state. The open / closed state of each door is also logically ANDed through a four-input AND gate, and combined into a virtual door state signal to be provided to the lower-level main control board. When all four doors are in the closed state, the lower-level main control board forms an overall closed state; otherwise, it forms an overall open state. The lower-level main control board merges the door status and lock status into a single door lock status for reporting.

[0012] Optionally, after acquiring the real-time status of the door lock, the lower-level main control board reports the status and sends it to the Android upper-level computer for judgment according to predefined state machine rules, generating an unlock status judgment result, including: Perform a lock / closed status check. If the lock / closed status is correct, the door lock is in normal condition; otherwise, perform an unlock / closed status check. The system checks the lock and door status. If the lock and door status is correct, it means that the lock is open and the lock status is reported to the cloud for processing. Otherwise, the system checks the lock and door status. The system checks the door unlocking status. If the unlocking status is correct, it means that all door locks are open, and the door lock status is reported to the cloud for processing. Otherwise, it means that the door lock status is abnormal, and the system is reported to the cloud for abnormal processing.

[0013] Optionally, the Android host computer receives the reported door lock status and makes a judgment based on predefined state machine rules to generate a lock / closed status judgment result, including: The system checks the lock and door status. If the lock and door status is correct, the shopping is complete, and the shopping status is reported for cloud settlement. Otherwise, the system checks the lock and door status. The system checks the lock and door status. If the lock and door status is correct, it means that the cabinet door is not closed properly. The system reports the door lock status to the cloud for processing. Otherwise, the system checks the lock and door status. The system checks the door's unlocking and opening status. If the unlocking and opening status is correct, it indicates that the door lock is damaged, and the door lock status is reported to the cloud for processing. Otherwise, it indicates that the door lock status is abnormal, and the abnormality is reported to the cloud for handling.

[0014] This application also provides a control device for a double-door smart vending machine, characterized in that the device includes: The unlocking security verification module is used to receive unlocking commands from the cloud via the Android host computer, obtain the door lock status via the lower-level main control board, perform logical judgments according to predefined state machine rules, and issue unlocking commands if the security conditions are met; otherwise, it triggers an exception report. The behavior state inference module is used to monitor and report changes in the door lock status in real time through the lower-level main control board, and the Android upper-level computer judges the customer behavior based on the reported status. The settlement information confirmation module is used to report the door lock status through the lower-level main control board. The Android upper-level computer performs logical judgment according to the predefined state machine rules. If the security conditions are met, the settlement is performed in the cloud; otherwise, an exception is reported.

[0015] Optionally, the control device for the dual-door smart vending machine is characterized in that: The unlocking security verification module includes a status acquisition module and a security verification module. The status acquisition module is used to request the real-time status of the door lock from the lower-level main control board. The security verification module is used to verify whether the status meets the unlocking conditions. The behavior state inference module includes an event listening module and a behavior parsing module. The event listening module is used to receive the status change information of the lower-level main control board in real time, and the behavior parsing module is used to map the status information into customer behavior. The settlement information confirmation module includes a final state verification module and a settlement triggering module. The final state verification module is used to verify whether the locked state is a valid final state, and the settlement triggering module is used to initiate a settlement application.

[0016] This application also provides an electronic device, characterized in that it comprises a control method for implementing the dual-door smart vending machine according to any one of claims 1 to 7, including: The MCU is used to collect the status signals of four electromagnetic locks in real time, perform logical AND operations to aggregate them into a virtual door lock status, and drive the electromagnetic locks to operate. The electromagnetic lock assembly is used to perform physical opening and closing actions, and at the same time independently detects the door opening and closing status and the lock tongue status, and outputs door status signals and lock tongue status signals. AND gate chips are used to aggregate the door status signals and lock status signals of four electromagnetic locks at the hardware level.

[0017] The beneficial effects of this application are as follows: This application abstracts four electromagnetic locks into a single virtual lock through door lock state aggregation and state machine architecture, and constructs a real-time hardware aggregation security verification mechanism, so that the lower-level machine only needs to process a single virtual door lock state; it also proposes a three-stage control process driven by state machine, which blocks illegal unlocking commands by pre-checking the lock and door closing states, maps customer shopping behavior in real time based on door lock state combinations, and triggers cloud settlement after verifying the lock and door closing states; finally, through an asynchronous communication mechanism, the lower-level machine actively reports state change events to drive the business flow forward. Attached Figure Description

[0018] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the accompanying drawings required in the description of the embodiments or the prior art are briefly introduced below. Obviously, the accompanying drawings described below are only embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on the provided drawings without creative effort.

[0019] Figure 1 This invention discloses a flowchart illustrating an embodiment of a control method for a dual-door smart vending machine. Figure 2 This application discloses a schematic diagram of a control method for a double-door smart vending machine according to an embodiment of the present application. Figure 3 This diagram illustrates the communication connection of an embodiment of the control method for a dual-door smart vending machine disclosed in this application. Figure 4 This application discloses a flowchart illustrating the steps of an embodiment of a control method for a dual-door smart vending machine. Figure 5 This application discloses an embodiment of a control method for a dual-door smart vending machine, and shows a diagram relating it to the doors. Figure 6 This diagram shows a structural block diagram of an embodiment of a control method for a double-door smart vending machine disclosed in this application. Detailed Implementation

[0020] Various exemplary embodiments, features, and aspects of this application will now be described in detail with reference to the accompanying drawings. The same reference numerals in the drawings denote elements that have the same or similar functions. Although various aspects of the embodiments are shown in the drawings, they are not necessarily drawn to scale unless specifically indicated otherwise.

[0021] The terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Therefore, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of this application, "multiple" means two or more, unless otherwise explicitly specified.

[0022] The term “exemplary” as used herein means “serving as an example, embodiment, or illustration.” Any embodiment illustrated herein as “exemplary” is not necessarily to be construed as superior to or better than other embodiments.

[0023] Furthermore, to better illustrate this application, numerous specific details are provided in the following detailed embodiments. Those skilled in the art should understand that this application can be implemented without certain specific details. In some instances, methods, means, components, and circuits well-known to those skilled in the art have not been described in detail in order to highlight the main points of this application.

[0024] This application proposes a control method for dual-door smart vending machines to address reliability challenges in multi-door smart vending machines, such as distorted state monitoring, uncontrolled unlocking, and broken shopping loops. This solution constructs a control architecture that generates virtual locks based on physical locks to influence business flow through state aggregation and a state machine: a four-input AND gate chip performs real-time logical aggregation of the dual-state signals of four electromagnetic locks, outputting a single virtual lock state to eliminate the explosion problem of multiple-door state combinations; a state transition triggering mechanism is established, with the lower-level machine actively reporting lock state transition events, replacing the traditional polling mode; a state machine verification engine uses an unlocking security verification module to pre-check the lock / closed state, blocking illegal unlocking commands; a behavior state inference module parses lock / closed state combinations to map customer behavior; and a settlement final state confirmation module verifies the lock / closed state before triggering cloud settlement. A closed-loop fault tolerance mechanism is also designed to automatically trigger cloud reporting in case of state anomalies, ensuring the system's self-healing capability in unattended scenarios.

[0025] Example 1 like Figure 1 The diagram shown is a flowchart of a control method for a double-door smart vending machine according to an embodiment of this application, which specifically includes the following: The S100 receives shopping requests from customers in the cloud and sends unlocking commands to the Android host computer of the double-door smart vending machine.

[0026] Specifically, after verifying the legitimacy of a customer's shopping request, the cloud system generates an unlocking command and pushes it to the target vending machine's Android host computer, establishing a one-way trusted link from request to command.

[0027] When a customer sends a shopping request, the Android host computer receives the unlocking command from the cloud, obtains the door lock status through the lower-level main control board, performs logical judgment according to the predefined state machine rules, and issues the unlocking command if the security conditions are met; otherwise, it triggers an exception report.

[0028] Specifically, after receiving the unlocking command from the cloud, the Android host computer triggers the lower-level main control board to obtain the real-time door lock status. It verifies the locking and closing security conditions through predefined state machine rules. Only when the physical states detected by all electromagnetic locks strictly meet the security thresholds is the unlocking command allowed to be sent to the lower-level main control board for execution. If the status verification is abnormal, the unlocking process is immediately blocked and an abnormality report is triggered.

[0029] In the S300, during the customer's shopping process, the lower-level main control board monitors and reports changes in the door lock status in real time, and the Android upper-level computer judges the customer's behavior based on the reported status.

[0030] Specifically, the lower-level main control board continuously monitors the door lock status changes through an event-driven mechanism and reports the status combination changes to the Android host computer in real time. Based on preset behavior mapping rules, the Android host computer parses the acquired status into customer shopping behavior, forming a traceable shopping process.

[0031] When a customer completes their purchase, the lower-level main control board reports the door lock status. The Android upper-level computer then performs logical judgments based on predefined state machine rules. If the security conditions are met, cloud settlement is performed; otherwise, an exception is reported.

[0032] Specifically, after the lower-level main control board detects the locking action, it actively reports the final state data to the Android host computer. The Android host computer then verifies the locking and closing safety conditions again through the state machine rules. When the physical states detected by all electromagnetic locks strictly meet the settlement threshold, the cloud settlement process is triggered. If the final state verification is abnormal, the settlement channel is frozen and an exception handling is initiated.

[0033] And, such as Figure 2 As shown: The double-door smart vending machine includes two operable doors, a left door and a right door. The double-door smart vending machine has four electromagnetic locks. Each door is equipped with two electromagnetic locks, namely an upper lock and a lower lock. Each electromagnetic lock has the function of detecting the door and lock status, and is used to independently detect the open / closed status of its door and the open / closed status of the lock.

[0034] like Figure 5 As shown: The on / off state of each lock is logically ANDed through a four-input AND gate, and the combined state signal of a virtual lock is provided to the lower-level main control board. When all four locks are in the locked state, the lower-level main control board forms an overall locked state; otherwise, it forms an overall unlocked state.

[0035] The open / closed state of each door is also logically ANDed through a four-input AND gate, and combined into a virtual door state signal, which is provided to the lower-level main control board. When all four doors are in the closed state, the lower-level main control board forms an overall closed state; otherwise, it forms an overall open state.

[0036] The lower-level main control board merges the door status and lock status into a single door lock status for reporting.

[0037] Specifically, the cloud sends an open command to the Android host computer. The Android host computer detects that all four locks are closed / locked and then sends an open command to the lower-level main control board. The lower-level main control board executes the open command, opening all four locks simultaneously (i.e., the left and right doors open at the same time). The lower-level main control board considers all doors closed only when all four locks are closed; if at least one lock is not closed, the lower-level main control board continues to execute the open command. Similarly, the lower-level main control board considers all locks closed only when all four locks are locked; if at least one lock is not locked, the lower-level main control board continues to execute the open command. When all four locks are closed or locked, the left and right doors are considered closed simultaneously. The lower-level main control board reports the door closing completion to the Android host computer, which then reports the door closing completion to the cloud via the internet.

[0038] In summary, this application proposes a control method for dual-door smart vending machines to address reliability issues in status monitoring, secure unlocking, and closed-loop shopping management of multi-door smart vending machines. This application abstracts four electromagnetic locks into a single virtual lock through door lock status aggregation and a state machine architecture, and constructs a security verification mechanism. Specifically, it includes: designing a four-input AND gate circuit to perform real-time hardware aggregation of the physical states of the four electromagnetic locks, so that the lower-level machine only needs to process a single virtual door lock state; proposing a state machine-driven three-stage control flow: the unlocking security verification module blocks illegal unlocking commands by pre-checking the lock / closed state; the behavior state inference module maps customer shopping behavior in real-time based on door lock state combinations; and the settlement final state confirmation module triggers cloud settlement after verifying the lock / closed state; and establishing an event-driven asynchronous communication mechanism, where the lower-level machine actively reports state change events to drive the business flow. While maintaining independent control of the four doors, this application reduces the complexity of state decision-making to the level of a single-door system, and simultaneously achieves near-zero unlocking error rate and complete closed-loop management of the shopping process through hardware-level state aggregation and state verification mechanisms.

[0039] As one possible implementation, in step S200, the customer sends a shopping request, the Android host computer receives the unlocking command from the cloud, obtains the door lock status through the lower-level main control board, performs logical judgment according to predefined state machine rules, and if the security conditions are met, the unlocking command is issued; otherwise, an exception is reported, including: S201: When the Android host computer obtains the unlocking command from the cloud, it sends a query command to the lower-level main control board, which then queries the door lock status.

[0040] Specifically, such as Figure 4 As shown, when the Android host computer receives the unlocking command from the cloud, it immediately requests the lower-level main control board to obtain the current status of the electromagnetic lock through the serial communication interface. The lower-level main control board responds to the query request and starts the status acquisition process.

[0041] Among them, such as Figure 3 As shown, the device is equipped with an Android host computer and a lower-level main control board. The four electromagnetic locks are connected to the lower-level main control board for communication, and the lower-level main control board is connected to the Android host computer for communication. The Android host computer communicates with the cloud via the Internet (4G or Wi-Fi).

[0042] S202: After the lower-level main control board obtains the real-time status of the door lock, it reports the status and sends it to the Android upper-level computer for judgment according to the predefined state machine rules, and generates the unlock status judgment result.

[0043] Specifically, the lower-level main control board encodes the virtual door lock status, which is aggregated by the AND gate chip, into a predefined status word. This status word is reported to the Android host computer via the communication channel. The host computer loads the pre-set state machine rule library for security verification. Only when the status word strictly matches the lock / close code is an unlocking permission result generated; otherwise, it is marked as an abnormal state.

[0044] The specific process of security verification is as follows: Figure 4 As shown, after receiving the door lock status, the Android host computer first checks the lock / close status. If the lock / close status is correct, it sends an unlock command; otherwise, it checks the lock / close status. Next, it checks the unlock / close status. If the lock / close status is correct, it means the lock is open, and the door lock status is reported to the cloud for processing. If the lock / close status is incorrect, it checks the unlock / open status. Finally, it checks the unlock / open status. If the unlock / open status is correct, it means both locks are open, and the door lock status is reported to the cloud for processing. If the unlock / open status is incorrect, it means the door lock status is abnormal, and the abnormality is reported to the cloud for handling.

[0045] S203: Based on the unlock status judgment result, if the result indicates that the door lock status is normal, the Android host computer sends an unlock command to the lower-level main control board; otherwise, it reports an abnormal status to the cloud.

[0046] Specifically, when the judgment result indicates that unlocking is permitted, the Android host computer sends an encrypted unlocking command to the lower-level main control board. The command carries the electromagnetic lock's action parameters, and the lower-level computer parses the command and controls the electromagnetic lock to perform the corresponding action. If the judgment result indicates an abnormal state, an abnormal report is sent to the upper-level cloud system, containing an error type code and a snapshot of the original state, and the cloud system handles the door lock status.

[0047] As one possible implementation, in step S300, during the customer's shopping process, the lower-level main control board monitors and reports changes in the door lock status in real time, and the Android upper-level computer judges the customer's behavior based on the reported status, including: S301: When the lock status of the container door changes, the lower-level main control board reads the current lock status and reports it, and the customer behavior is judged through the Android upper-level computer.

[0048] Specifically, the lower-level main control board continuously monitors the door lock status signal changes through the electromagnetic lock. When the door status and lock status of any electromagnetic lock change, it immediately captures the current status and actively reports it to the Android upper-level computer for customer behavior judgment.

[0049] After receiving the event message, the Android host computer parses the current door lock state combination. If the state is unlocked / closed, it is mapped to the customer pulling the door, indicating that the customer has triggered the unlocking but has not yet picked up the goods; if the state is unlocked / opened, it is mapped to the customer picking up the goods.

[0050] S302: When the door lock status is unlocked, the Android host computer determines that the customer has opened the cabinet door to make purchases; otherwise, it determines that the door lock status is abnormal and reports it to the cloud.

[0051] Specifically, such as Figure 4 As shown, after receiving the report from the lower-level main control board, the Android host computer judges the unlocking and closing status. If the unlocking and closing status is correct, it means that the lock has been opened. If the unlocking and closing status is incorrect, it means that the lock has not been opened. The door lock status is then reported and processed by the cloud.

[0052] S303: When the door lock is locked, the Android host computer determines that the customer has finished shopping and reports the shopping status to the cloud for settlement; otherwise, it determines that the customer is shopping.

[0053] Specifically, such as Figure 4 As shown, after the Android host computer receives the report from the lower-level main control board, it judges the lock and door status. If the lock and door status is incorrect, it means that shopping is in progress. If the lock and door status is correct, it means that shopping is over. The shopping status is reported and the settlement is performed by the cloud.

[0054] Specifically, when a locked / closed state is detected, the shopping process is considered terminated, and a pre-processing request for settlement is initiated to the cloud. If the state is not locked / closed (e.g., the door is unlocked), the shopping process is considered incomplete, and the system continues to enter a monitoring loop. Furthermore, this process verifies the continuity of behavior through state machine history records to avoid misjudgments due to momentary states.

[0055] As one possible implementation, in step S400, after the customer completes their purchase, the lower-level main control board reports the door lock status. The Android upper-level computer performs logical judgments according to predefined state machine rules. If the security conditions are met, cloud settlement is performed; otherwise, an exception is reported, including: S401: When a customer closes the cabinet door and the electromagnetic lock engages, the lower-level main control board reads the current door lock status and reports it to the Android upper-level computer.

[0056] Specifically, when the electromagnetic lock actuator detects that the physical locking is complete, it outputs a locking confirmation signal through the magnetic sensor. After the lower-level main control board collects this signal, it synchronously reads the door status sensor data, encodes the dual-channel status aggregation result, and actively pushes it to the Android host computer through the communication link.

[0057] S402, the Android host computer receives the reported door lock status, makes a judgment based on the predefined state machine rules, and generates a lock / close status judgment result.

[0058] Specifically, such as Figure 4 As shown, after receiving the door lock status, the Android host computer first checks the lock / close status. If the lock / close status is correct, the shopping is complete, and the shopping status is reported to the cloud for settlement. If the lock / close status is incorrect, it checks the unlock / close status. Next, it checks the unlock / close status. If the unlock / close status is correct, it means the cabinet door is not closed properly, and the door lock status is reported to the cloud for processing. If the unlock / close status is incorrect, it checks the unlock / open status. Finally, it checks the unlock / open status. If the unlock / open status is correct, it means the door lock is damaged, and the door lock status is reported to the cloud for processing. If the unlock / open status is incorrect, it means the door lock status is abnormal, and the abnormality is reported to the cloud for handling.

[0059] S403 determines the result based on the lock status. If the result indicates that the shopping is complete, the Android host computer reports the shopping status to the cloud; otherwise, it reports an abnormal status to the cloud.

[0060] Specifically, when the judgment result indicates that the shopping is complete, the Android host computer sends a structured settlement instruction to the cloud, including evidence chain data such as the start and end times of the shopping and the door lock action sequence, triggering fund deduction and inventory update. When the judgment result indicates an abnormal status, the settlement process is frozen and an abnormal report is sent.

[0061] Example 2 Based on the same principle as the aforementioned method, a control method for a dual-door intelligent vending machine is also proposed, see [link to relevant documentation]. Figure 6 A control device 100 for a double-door smart vending machine according to an embodiment of this disclosure includes: The unlocking security verification module 110 is used to receive unlocking commands from the cloud via an Android host computer, obtain the door lock status via the lower-level main control board, perform logical judgments according to predefined state machine rules, issue unlocking commands if the security conditions are met, otherwise trigger an exception report. The behavior state inference module 120 is used to monitor and report changes in the door lock status in real time through the lower-level main control board, and the Android upper-level computer judges the customer behavior based on the reported status. The settlement information confirmation module 130 is used to report the door lock status through the lower-level main control board. The Android upper-level computer performs logical judgment according to the predefined state machine rules. If the security conditions are met, the settlement is performed in the cloud. Otherwise, an abnormality is reported.

[0062] As an optional embodiment of this application, the control device for the dual-door smart vending machine is characterized in that: The unlocking security verification module 110 includes a status acquisition module 111 and a security verification module 112. The status acquisition module is used to request the real-time status of the door lock from the lower-level main control board, and the security verification module is used to verify whether the status meets the unlocking conditions. The behavior state inference module 120 includes an event listening module 121 and a behavior parsing module 122. The event listening module is used to receive the status change information of the lower-level main control board in real time, and the behavior parsing module is used to map the status information into customer behavior. The settlement information confirmation module 130 includes a final state verification module 131 and a settlement triggering module 132. The final state verification module is used to verify whether the locked state is a valid final state, and the settlement triggering module is used to initiate a settlement application.

[0063] Obviously, those skilled in the art should understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The program can be stored in a computer-readable storage medium, and when executed, it can include the processes of the embodiments of the control methods described above. The modules or steps of the present invention described above can be implemented using general-purpose computing devices. They can be centralized on a single computing device or distributed across a network of multiple computing devices. Optionally, they can be implemented using computer-executable program code, thereby storing them in a storage device for execution by a computing device, or fabricating them separately as individual integrated circuit modules, or fabricating multiple modules or steps into a single integrated circuit module. Thus, the present invention is not limited to any specific hardware and software combination.

[0064] Those skilled in the art will understand that all or part of the processes in the above embodiments can be implemented by a computer program instructing related hardware. The program can be stored in a computer-readable storage medium, and when executed, it can include the processes of the embodiments of the control methods described above. The storage medium can be a magnetic disk, optical disk, read-only memory (ROM), random access memory (RAM), flash memory, hard disk drive (HDD), or solid-state drive (SSD), etc.; the storage medium can also include combinations of the above types of memory.

[0065] Example 3 Furthermore, this application proposes an electronic device characterized by a control method for implementing any of the described dual-door smart vending machines, comprising: The MCU is used to collect the status signals of four electromagnetic locks in real time, perform logical AND operations to aggregate them into a virtual door lock status, and drive the electromagnetic locks to operate. The electromagnetic lock assembly is used to perform physical opening and closing actions, and at the same time independently detects the door opening and closing status and the lock tongue status, and outputs door status signals and lock tongue status signals. AND gate chips are used to aggregate the door status signals and lock status signals of four electromagnetic locks at the hardware level.

[0066] The electronic device in this embodiment includes an MCU, an electromagnetic lock, and an AND gate chip. The MCU captures the virtual door lock state (locked / unlocked, closed / open) in real time via a hardware interface after logical aggregation, maps it to a predefined state code, drives the power circuit based on the Android command parsing result to generate electromagnetic lock action timing pulses, and integrates a state transition detection mechanism to actively trigger event reporting when the lock state or door state changes.

[0067] The electromagnetic lock assembly forms an integrated terminal for physical execution and status perception. Each electromagnetic lock unit integrates an electromechanical actuator and a dual-path magnetic induction sensor, synchronously outputting the mechanical position signal of the lock tongue and the physical displacement signal of the door.

[0068] The AND gate chip is used to create a state aggregation channel, perform hardware logic AND operation on the door state signals of the four independent lock units, generate a single-channel flag signal representing the overall door state, and perform synchronous aggregation on the four lock tongue state signals to output a global lock state flag.

[0069] The various embodiments of this application have been described above. These descriptions are exemplary and not exhaustive, nor are they limited to the disclosed embodiments. Many modifications and variations will be apparent to those skilled in the art without departing from the scope and spirit of the described embodiments. The terminology used herein is chosen to best explain the principles, practical application, or improvement of the technology in the market, or to enable others skilled in the art to understand the embodiments disclosed herein.

Claims

1. A control method for a double-door intelligent vending machine, characterized in that, include: The cloud receives shopping requests from customers and sends unlocking commands to the Android host computer of the double-door smart vending machine. The Android host computer receives the unlocking command from the cloud, obtains the door lock status through the lower-level main control board, performs logical judgment according to the predefined state machine rules, and sends the unlocking command if the security conditions are met; otherwise, it triggers an exception report. During the customer's shopping process, the lower-level main control board monitors and reports changes in the door lock status in real time, and the Android upper-level computer judges the customer's behavior based on the reported status. Once the customer completes their purchase, the lower-level main control board reports the door lock status. The Android upper-level computer then performs logical judgments based on predefined state machine rules. If the security conditions are met, the cloud settlement is processed; otherwise, an exception is reported.

2. The control method for the double-door intelligent vending machine as described in claim 1, characterized in that, The customer sends a shopping request, the Android host computer receives the unlocking command from the cloud, obtains the door lock status through the lower-level main control board, performs logical judgment according to predefined state machine rules, and if the security conditions are met, the unlocking command is issued; otherwise, an exception is reported, including: When the Android host computer receives the unlocking command from the cloud, it sends a query command to the lower-level main control board, which then queries the door lock status. After the lower-level main control board obtains the real-time status of the door lock, it reports the status and sends it to the Android host computer for judgment according to the predefined state machine rules, and generates the unlock status judgment result. Based on the unlock status judgment result, if the result indicates that the door lock status is normal, the Android host computer sends an unlock command to the lower computer main control board; otherwise, it reports an abnormal status to the cloud.

3. The control method for the double-door intelligent vending machine as described in claim 1, characterized in that, During the customer's shopping process, the lower-level main control board monitors and reports changes in the door lock status in real time. The Android upper-level computer judges the customer's behavior based on the reported status, including: When the lock status of the container door changes, the lower-level main control board reads the current lock status and reports it, and the customer behavior is judged through the Android upper-level computer. When the door lock status is unlocked, the Android host computer determines that the customer has opened the cabinet door to make purchases; otherwise, it determines that the door lock status is abnormal and reports it to the cloud. When the door lock is in the "locked" or "closed" state, the Android host computer determines that the customer has finished shopping and reports the shopping status to the cloud for settlement; otherwise, it determines that the customer is shopping.

4. The control method for the double-door intelligent vending machine as described in claim 1, characterized in that, When a customer completes their purchase, the lower-level main control board reports the door lock status. The Android upper-level computer performs logical judgments based on predefined state machine rules. If the security conditions are met, cloud settlement is performed; otherwise, an exception is reported, including: When a customer closes the cabinet door, the electromagnetic lock engages and then the lower-level main control board reads the current door lock status and reports it to the Android upper-level computer. The Android host computer receives the reported door lock status, makes a judgment based on the predefined state machine rules, and generates a lock / close status judgment result. Based on the lock status, if the result indicates that the shopping is complete, the Android host computer reports the shopping status to the cloud; otherwise, it reports an abnormal status to the cloud.

5. The control method for the double-door intelligent vending machine as described in claim 1, characterized in that: The dual-door smart vending machine includes two operable doors, a left door and a right door; the dual-door smart vending machine has four electromagnetic locks, with two electromagnetic locks installed on each door; each electromagnetic lock has the function of detecting the door and lock status, and is used to independently detect the open / closed status of its door and the open / closed status of the lock. The on / off state of each lock is logically ANDed through a four-input AND gate, and the result is combined into a virtual lock state signal and provided to the lower-level main control board. When all four locks are in the locked state, the lower-level main control board forms an overall locked state; otherwise, it forms an overall unlocked state. The open / closed state of each door is also logically ANDed through a four-input AND gate, and combined into a virtual door state signal to be provided to the lower-level main control board. When all four doors are in the closed state, the lower-level main control board forms an overall closed state; otherwise, it forms an overall open state. The lower-level main control board merges the door status and lock status into a single door lock status for reporting.

6. The control method for the double-door intelligent vending machine as described in claim 2, characterized in that, After acquiring the real-time status of the door lock, the lower-level main control board reports the status and sends it to the Android upper-level computer for judgment according to predefined state machine rules, generating an unlock status judgment result, including: Perform a lock / closed status check. If the lock / closed status is correct, the door lock is in normal condition; otherwise, perform an unlock / closed status check. The system checks the lock and door status. If the lock and door status is correct, it means that the lock is open and the lock status is reported to the cloud for processing. Otherwise, the system checks the lock and door status. The system checks the door unlocking status. If the unlocking status is correct, it means that all door locks are open, and the door lock status is reported to the cloud for processing. Otherwise, it means that the door lock status is abnormal, and the system is reported to the cloud for abnormal processing.

7. The control method for the double-door intelligent vending machine as described in claim 4, characterized in that, The Android host computer receives the reported door lock status and makes a judgment based on predefined state machine rules to generate a lock / closed status judgment result, including: The system checks the lock and door status. If the lock and door status is correct, the shopping is complete, and the shopping status is reported for cloud settlement. Otherwise, the system checks the lock and door status. The system checks the lock / close status. If the lock / close status is correct, it means the cabinet door is not closed properly. The system then reports the lock status to the cloud for processing. Otherwise, the system checks the lock / open status. The system checks the door's unlocking and opening status. If the unlocking and opening status is correct, it indicates that the door lock is damaged, and the door lock status is reported to the cloud for processing. Otherwise, it indicates that the door lock status is abnormal, and the abnormality is reported to the cloud for handling.

8. A control device for a double-door intelligent vending machine, characterized in that, The device includes: The unlocking security verification module is used to receive unlocking commands from the cloud via the Android host computer, obtain the door lock status via the lower-level main control board, perform logical judgments according to predefined state machine rules, and issue unlocking commands if the security conditions are met; otherwise, it triggers an exception report. The behavior state inference module is used to monitor and report changes in the door lock status in real time through the lower-level main control board, and the Android upper-level computer judges the customer behavior based on the reported status. The settlement information confirmation module is used to report the door lock status through the lower-level main control board. The Android upper-level computer performs logical judgment according to the predefined state machine rules. If the security conditions are met, the settlement is performed in the cloud; otherwise, an exception is reported.

9. The control device for the double-door intelligent vending machine according to claim 8, characterized in that: The unlocking security verification module includes a status acquisition module and a security verification module. The status acquisition module is used to request the real-time status of the door lock from the lower-level main control board. The security verification module is used to verify whether the status meets the unlocking conditions. The behavior state inference module includes an event listening module and a behavior parsing module. The event listening module is used to receive the status change information of the lower-level main control board in real time, and the behavior parsing module is used to map the status information into customer behavior. The settlement information confirmation module includes a final state verification module and a settlement triggering module. The final state verification module is used to verify whether the locked state is a valid final state, and the settlement triggering module is used to initiate a settlement application.

10. An electronic device, characterized in that, The control method for implementing the dual-door smart vending machine according to any one of claims 1 to 7 includes: The MCU is used to collect the status signals of four electromagnetic locks in real time, perform logical AND operations to aggregate them into a virtual door lock status, and drive the electromagnetic locks to operate. The electromagnetic lock assembly is used to perform physical opening and closing actions, and at the same time independently detects the door opening and closing status and the lock tongue status, and outputs door status signals and lock tongue status signals. AND gate chips are used to aggregate the door status signals and lock status signals of four electromagnetic locks at the hardware level.

Citation Information

Patent Citations

  • Method for preventing order mistakes and intelligent container

    CN108961546A

  • Door system of cold storage equipment, control method and device

    CN109595863A

  • State machine configuration method and device, electronic equipment, storage medium and program product

    CN119536858A

  • Two automatic vending casees

    CN207397380U