Method and system for testing door lock of intelligent container
By using the door lock testing method and system of the intelligent vending machine, and by using analog signals and indicator lights to determine the communication function of the door lock or industrial control computer, the problem of quick and accurate judgment is solved, the maintenance time is shortened, and the maintenance efficiency is improved.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-12-31
- Publication Date
- 2026-04-03
AI Technical Summary
Existing technologies cannot quickly and accurately diagnose problems with smart vending machine door locks or industrial control computers, causing after-sales maintenance personnel to repeatedly disassemble and reinstall them, extending repair time and affecting operations.
A method and system for testing door locks of smart vending machines are provided. The door lock testing device generates a simulated test signal, which is sent to an industrial control computer and an electric bolt lock. Indicator lights are used to display the lock status and door status recognition results, and the communication function of the door lock or industrial control computer can be quickly determined.
It enables quick and accurate diagnosis of problems with door locks or industrial control computers, shortening repair time, improving repair efficiency, and reducing operational losses.
Smart Images

Figure CN121784433A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of smart vending machine technology, and in particular to a door lock testing method and testing system for smart vending machines. Background Technology
[0002] Smart vending machines have become a very popular self-service vending machine product. Customers scan a code using mobile payment software, the door opens automatically, they select their items, and the door closes, automatically completing the identification of purchased items and payment deduction. However, as the volume of goods shipped from smart vending machines increases, lock problems such as locks that won't open or close are becoming major issues affecting consumers' shopping experience. Therefore, quickly locating these problems has become a pressing issue for after-sales maintenance personnel.
[0003] If a smart vending machine door lock cannot be opened or closed, it is generally due to a problem with the industrial control system or the vending machine door lock itself. When after-sales maintenance personnel encounter this situation, the general procedure is to first replace the vending machine door lock, and then test whether the door lock can be opened or closed normally. If the problem persists, then replace the industrial control computer, and then test whether the door lock can be opened or closed normally.
[0004] Because it is impossible to accurately determine whether the problem lies with the industrial control system or the door lock, after-sales maintenance personnel have to repeatedly disassemble and reinstall the industrial control system and the smart vending machine door lock, which increases the repair time. The excessively long repair time leads to a shorter operating time for the smart vending machine, causing certain economic losses to the operator. Summary of the Invention
[0005] To address the problem of traditional methods failing to quickly and accurately distinguish between a door lock and an industrial control computer, this invention provides a door lock testing method and system for intelligent vending machines, comprising the following steps: The door lock testing device generates analog test signals and sends them to the industrial control computer and the electric bolt lock. Obtain the returned lock status recognition results and door status recognition results; The lock indicator light and door status indicator light of the door lock testing device display the lock status identification results and door status identification results received by the door lock testing device.
[0006] 2. The door lock testing method for intelligent vending machines according to claim 1, characterized in that the door lock testing device generates an analog test signal and sends it to the industrial control computer, comprising the following steps: Press the "Lock" button on the door lock testing device to generate and send a lock opening test signal to the industrial control computer. At the same time, the lock status indicator light on the door lock testing device turns green. Release the "lock" button on the door lock testing device to generate and send a lock / close test signal to the industrial control computer. At the same time, the lock status indicator light on the door lock testing device will turn red.
[0007] 3. The door lock testing method for intelligent vending machines according to claim 2, characterized in that the door lock testing device generates an analog test signal and sends it to the industrial control computer, comprising the following steps: Press the "Door" button on the door lock testing device to generate and send a door opening test signal to the industrial control computer. At the same time, the door status indicator light on the door lock testing device turns green. Release the "Door" button on the door lock testing device to generate and send a door lock closing test signal to the industrial control computer. At the same time, the door status indicator light on the door lock testing device turns red.
[0008] 4. The door lock testing method for intelligent vending machines according to claim 3, characterized in that obtaining the returned lock status identification result and door status identification result includes the following steps: A lock / close test signal is sent to the industrial control computer. If the industrial control computer detects a lock signal, a lock / open test signal is sent to the industrial control computer. If the industrial control computer detects an unlock signal, then the lock status acquisition of the industrial control computer is normal. A door-close test signal is sent to the industrial control computer. If the industrial control computer detects a door-closed signal, a door-open test signal is sent to the industrial control computer. If the industrial control computer detects an open signal, then the door status acquisition by the industrial control computer is normal.
[0009] 5. The door lock testing method for intelligent vending machines according to claim 4, characterized in that, through the lock indicator light and door status indicator light of the door lock testing device, the door lock testing device displays the received lock status identification result and door status identification result, including: If the door status and lock status are obtained normally by the industrial control computer, and if the unlock signal is received from the industrial control computer, the unlock indicator light of the lock test device will light up, then the unlock signal sent by the industrial control computer is normal. If the door status and lock status communication receiving function of the industrial control computer is normal, and if the lock is closed when the lock is received from the industrial control computer, the unlock indicator light of the lock test device will turn off, then the lock signal sent by the industrial control computer is normal.
[0010] 6. The door lock testing method for intelligent vending machines according to claim 1, characterized in that the door lock testing device generates an analog test signal and sends it to the electric bolt lock, further comprising the following steps: Press the "unlock" button on the door lock testing device to generate and send a lock opening test signal to the electric bolt lock, and at the same time, the lock status indicator light on the door lock testing device will turn green; Release the "unlock" button on the door lock testing device to generate and send a lock / lock test signal to the electric bolt lock, while the lock status indicator light on the door lock testing device turns off.
[0011] 7. The door lock testing method for intelligent vending machines according to claim 6, characterized in that obtaining the returned lock status identification result and door status identification result includes the following steps: The lock opening test signal is sent to the electric bolt lock. If the bolt of the electric bolt lock retracts and the lock status indicator light goes out, the lock opening status feedback of the electric bolt lock is normal. When the electric bolt lock is in the closed state, and the door status indicator light is on, the door closed state feedback of the electric bolt lock is normal. The electric bolt lock is in the open state, and if the door status indicator light is off, the door open state feedback of the electric bolt lock is normal. When the electric bolt lock is in the closed state, and the door status indicator light is on, the door closed state feedback of the electric bolt lock is normal. The lock / lock test signal is sent to the electric bolt lock. If the bolt of the electric bolt lock drops and the lock status indicator light is on, the lock / lock status feedback of the electric bolt lock is normal.
[0012] 8. The door lock testing method for intelligent vending machines according to claim 7, characterized in that, through the lock indicator light and door status indicator light of the door lock testing device, the door lock testing device displays the received lock status identification result and door status identification result, including: If the electric bolt lock is in a normal locking state, and the lock indicator light on the lock testing device illuminates when it receives a lock / lock signal from the industrial control computer, then the electric bolt lock's communication reception function for the lock / lock status signal is normal.
[0013] 9. A testing system, implemented in the door lock testing method of the intelligent vending machine according to any one of claims 1-8, characterized in that it comprises: The door lock simulation module is used to simulate the door lock status and establish a communication connection with the industrial control computer. It includes a "lock" button, a "door" button, a lock status indicator, a door status indicator, and an unlock signal indicator. The "lock" button and the "door" button are used to generate simulated status signals, and the indicator lights are used to provide feedback on the communication interaction results. The door lock testing module is used to establish a communication connection with the electric bolt lock under test. It includes an unlock button, a control signal indicator, a lock status indicator and a door status indicator. The unlock button is used to send control signals, and the indicator lights are used to provide feedback on the communication response results of the electric bolt lock. Connectors, including a J1 connector for connecting to an industrial control computer and a J3 connector for connecting to an electric lock, are used to enable the physical transmission of signals.
[0014] As an optional embodiment of this application, the door lock simulation module further includes a simulation circuit, which sends the simulated status signal to the industrial control computer through a J1 connector, and simultaneously receives the lock switch control signal issued by the industrial control computer; The door lock test module also includes a test circuit and a 12V power interface J2. The test circuit sends control signals to the door lock and receives the door lock status feedback signals through the J3 connector. The J2 connector is used to supply power to the test circuit and the door lock.
[0015] Other features and aspects of this application will become clear from the following detailed description of exemplary embodiments with reference to the accompanying drawings. Attached Figure Description
[0016] The accompanying drawings, which are included in and form part of this specification, illustrate exemplary embodiments, features, and aspects of this application together with the specification and serve to explain the principles of this application.
[0017] Figure 1 This diagram illustrates the implementation flow of the door lock testing method for the smart vending machine according to an embodiment of this application. Figure 2 A flowchart illustrating the steps of Embodiment 1 of the intelligent vending machine door lock testing method according to an embodiment of this application; Figure 3 A flowchart illustrating the steps of Embodiment 2 of the smart vending machine door lock testing method according to an embodiment of this application; Figure 4 A schematic diagram of the circuit connection of the J1 connector of the test system according to an embodiment of this application is shown; Figure 5 A schematic diagram of the circuit connection of the "lock" button in the test system of an embodiment of this application is shown; Figure 6 A schematic diagram of the circuit connection of the "door" button in the test system of an embodiment of this application is shown; Figure 7 A schematic diagram showing the circuit connection of connectors J1 and J2 in the test system of an embodiment of this application is provided. Figure 8 A schematic diagram of the test system according to an embodiment of this application is shown. Detailed Implementation
[0018] 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.
[0019] It should be understood that the terms "center," "longitudinal," "lateral," "length," "width," "upper," "lower," "front," "rear," "left," "right," "vertical," "horizontal," "top," "bottom," "inner," "outer," "clockwise," "counterclockwise," "axial," "radial," and "circumferential" indicate the orientation or positional relationship based on the orientation or positional relationship shown in the accompanying drawings. They are used only for the convenience of describing the present invention or simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation. Therefore, they should not be construed as limitations on the present invention.
[0020] Furthermore, 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. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of this invention, "a plurality of" means two or more, unless otherwise explicitly specified.
[0021] 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.
[0022] 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.
[0023] Smart vending machines have become a very popular self-service vending machine product. Customers scan a code using mobile payment software, the door opens automatically, they select their items, and the door closes, automatically completing the purchase identification and payment deduction. This section describes the specific application scenarios of this solution. This application discloses a testing device that transmits simulated signals such as shooting at a door and locking a door to test the door and lock of a smart cabinet before its official deployment.
[0024] Example 1 like Figure 1 and Figure 2 As shown, the door lock testing method for the smart vending machine according to an embodiment of this application includes the following steps: S1. The buttons on the door lock testing device generate analog test signals and send them to the industrial control computer. S2. Obtain the returned lock status recognition result and door status recognition result; The industrial control computer obtains the lock status and door status by simulating the lock's unlocking / locking state and the door's opening / closing state.
[0025] As an optional embodiment of this application, optionally, in step S2, the door lock testing device generates an analog test signal by pressing a button and sends it to the industrial control computer, including the following steps: S21. During the status communication test of the door lock test device, when the "lock" button is pressed, the lock status indicator light of the door lock test device will turn green. If the industrial control computer recognizes it as an unlocked state, then the communication reception function of the industrial control computer for this status signal is normal. Specifically, when the "lock" button is pressed, the door lock testing device enters the unlocking state simulation. At this time, the lock status indicator light is green. Observe the lock status displayed on the industrial control computer. If the industrial control computer recognizes it as "unlocked", it is determined that the industrial control computer's unlocking status signal receiving function is normal; if the recognition result does not match the indicator light status, it is determined that the industrial control computer is faulty.
[0026] S21. Release the "Lock" button. The lock status indicator light of the door lock test device will turn red. If the industrial control computer recognizes it as locked, then the industrial control computer's communication reception function for the locked status signal is normal.
[0027] Specifically, when the "lock" button is released, the door lock simulation module enters the locked state simulation. At this time, the lock status indicator light is red. Observe the lock status displayed on the industrial control computer. If the industrial control computer recognizes it as "locked", it is determined that the industrial control computer's function of receiving the locked state signal is normal; if the recognition result does not match the indicator light status, it is determined that the industrial control computer is faulty.
[0028] As an optional embodiment of this application, step S2 may optionally include the following steps: S23. During the status communication test of the door lock test device, when simulating the open state, press the "Door" button. The door status indicator light of the door lock test device will light up green. If the industrial control computer recognizes it as the open state, then the communication reception function of the industrial control computer for the open state signal is normal. Specifically, pressing the "Door" button activates the door lock simulation module, which then enters the door opening state simulation. At this time, the door status indicator light turns green. Observe the door status displayed on the industrial control computer. If the industrial control computer recognizes it as "open," it is determined that the industrial control computer's function of receiving the door opening status signal is normal. If the recognition result does not match the indicator light status, it is determined that the industrial control computer is faulty.
[0029] S24. Release the "Door" button. The door status indicator light of the door lock test device will turn red. If the industrial control computer recognizes the door as closed, then the communication receiving function of the industrial control computer for the closed status signal is normal. Specifically, when the "Door" button is released, the door lock simulation module enters the door-closing state simulation. At this time, the door status indicator light is red. Observe the door status displayed on the industrial control computer. If the industrial control computer recognizes "closed", it is determined that the industrial control computer's door-closing status signal reception function is normal. If the recognition result does not match the indicator light status, it is determined that the industrial control computer is faulty.
[0030] S3. Determine whether the communication function of the industrial control computer is normal by checking the status of the lock indicator light and the door status indicator light on the door lock test device. The status of the indicator lights directly reflects the communication status, reducing reliance on the professional skills of the operators and facilitating rapid on-site troubleshooting.
[0031] As an optional implementation of this application, optionally, in step S3, the communication function of the industrial control computer is determined by the status of the lock indicator light and the door status indicator light of the door lock test device, including the following steps: S31. During the status communication test of the door lock test device, when the industrial control computer sends an unlocking control signal, the unlocking signal indicator light of the door lock test device will illuminate. Specifically, the industrial control computer sends an "unlock" command and observes the unlock signal indicator light on the door lock simulation module. If the indicator light is on, the unlock control signal sending function of the industrial control computer is normal. If the indicator light is not on, the industrial control computer is faulty.
[0032] S32. When the lock control signal is issued, the lock signal indicator light goes out. If the indicator light status is consistent with the control signal, the control signal communication function of the industrial control computer is normal. Specifically, the industrial control computer sends a "lock" command and observes the unlock signal indicator light of the door lock simulation module. If the indicator light goes out, it is determined that the locking control signal sending function of the industrial control computer is normal. If the indicator light does not go out, it is determined that there is a fault in the industrial control computer.
[0033] Example 2 like Figure 1 and Figure 3 As shown, the door lock testing method for the smart vending machine according to an embodiment of this application includes the following steps: S100, the door lock testing device generates analog test signals via buttons and sends them to the electric bolt lock; S200: Obtain the returned lock status recognition result and door status recognition result; The status of the electric bolt lock is obtained by simulating the unlocking / locking state and the opening / closing state of the door lock.
[0034] As an optional implementation of this application, optionally, in step S200, obtaining the returned lock state identification result and door state identification result includes the following steps: S210. When the door is locked, press the unlock button on the door lock test device. The control signal indicator light will turn green, indicating that the unlock control signal has been sent. The bolt of the electric bolt will retract, the lock status indicator light will turn off, and the door status indicator light will turn on. This indicates that the communication reception and execution functions of the electric bolt for the unlock control signal are normal.
[0035] Specifically, after the unlocking control signal is sent, the electric bolt lock retracts its bolt, the lock status indicator turns off, and the door status indicator turns on. All three indicators are completed, indicating that the electric bolt lock is functioning normally when the door is locked and closed.
[0036] As an optional implementation of this application, optionally, in step S210, when the unlocking control signal is sent, the bolt of the electric bolt lock retracts, the lock status indicator light goes out, and the door status indicator light illuminates. This indicates that the electric bolt lock's communication reception and execution functions for the unlocking control signal are normal, including the following steps: S211, The door lock testing device sends an unlocking signal, at which time the control signal indicator light turns green; S212. Observe the operation of the electric bolt lock. If the bolt retracts, the unlocking function of the electric bolt lock is normal. If the operation is not normal, the electric bolt lock is faulty. S213. Observe the lock status indicator light. If the lock status indicator light is off, it is determined that the electric bolt lock's unlocking status feedback is normal; if the lock status indicator light is on, it is determined that the electric bolt lock has a fault. S214. Observe the door status indicator light. If the door status indicator light is on, it is determined that the door closing status feedback is normal; if the door status indicator light is off, it is determined that the electric bolt lock is faulty.
[0037] As an optional implementation of this application, step S200, in which the returned lock state identification result and door state identification result are obtained, may also include the following steps: S221. When the cabinet door is opened, if the door status indicator light goes out, the door opening status feedback is normal. S222: When the unlock button is released, an opening control signal is sent, and the control signal indicator light turns red. When the cabinet door is closed, if the door status indicator light is on, the door closing status feedback is normal. If the electric bolt lock tongue falls, the electric bolt lock is locked normally.
[0038] S300. By checking the status of the lock indicator light and the door status indicator light on the door lock test device, determine whether the communication function of the electric bolt lock is normal. As an optional implementation of this application, optionally, in step S300, the communication function of the electric bolt lock is determined by the status of the lock indicator light and the door status indicator light of the door lock testing device, including the following steps: S310. When the lock control signal is sent to close the cabinet door, the bolt of the electric bolt lock drops. S320, the lock status indicator light is on. If the lock status indicator light is consistent with the control signal, then the control signal communication function of the electric bolt lock is normal.
[0039] Example 3, in conjunction with the content of Examples 1 and 2, further includes the following steps: S41. If all items in the industrial control computer communication function test are normal, but there is an abnormality in the electric bolt lock communication function test, then the fault is determined to be an electric bolt lock fault. S42. If all items in the electric bolt lock communication function test are normal, but there is an abnormality in the industrial control computer communication function test, then the fault is determined to be an industrial control computer fault. S43. If both tests show abnormalities, further inspection of the connecting wires or other related components is required.
[0040] Example 4 Based on the implementation principle of Embodiment 3, this application, in another aspect, proposes a testing system, such as... Figure 8 As shown, the door lock testing method implemented in a smart vending machine includes: a door lock simulation module, a door lock testing module, and connectors. The door lock simulation module is used to simulate the door lock status and establish a communication connection with the industrial control computer. It includes a "lock" button, a "door" button, a lock status indicator light, a door status indicator light, and an unlock signal indicator light. The "lock" button and the "door" button are used to generate simulated status signals, and the indicator lights are used to provide feedback on the communication interaction results. The door lock testing module is used to establish a communication connection with the electric bolt lock under test. It includes an unlock button, a control signal indicator light, a lock status indicator light, and a door status indicator light. The unlock button is used to send control signals, and the indicator lights are used to provide feedback on the communication response results of the electric bolt lock. The connectors include a J1 connector for connecting to the industrial control computer and a J3 connector for connecting to the electric bolt lock, used to realize the physical transmission of signals.
[0041] In this specific embodiment, after-sales maintenance personnel only need to connect the smart vending machine door lock or the smart vending machine industrial control computer to the smart vending machine door lock testing device. By operating the buttons on the smart vending machine door lock testing device and observing the color and on / off status of the indicator lights, they can quickly and accurately determine whether the problem is with the door lock or the industrial control computer, greatly shortening the repair time.
[0042] Furthermore, the door lock simulation module also includes a simulation circuit, which receives control signals from the industrial control computer via the J1 connector and sends simulation status signals to the industrial control computer via the J1 connector.
[0043] Furthermore, the door lock test module also includes a test circuit and a 12V power interface J2. The test circuit sends control signals to the door lock and receives the door lock's status feedback signals through the J3 connector. The J2 connector is used to power the test circuit and the door lock.
[0044] Based on the above embodiments, including simulation testing with an industrial control computer and actual testing of the electric bolt lock: Simulation test of industrial control computer: The door lock simulation module is connected to the industrial control computer through the J1 connector to simulate the working state of the electric bolt lock and verify the communication function of the industrial control computer; Actual testing of electric bolt lock: The door lock test module is connected to the electric bolt lock via a J3 connector and powered via a J2 interface to verify the communication and execution functions of the electric bolt lock.
[0045] In the simulation test of industrial control computer, such as Figure 2 , Figure 4 , Figure 5 and Figure 6 As shown, when the "Lock" button or "Door" button is pressed, the analog circuit converts the mechanical action into an electrical signal conforming to the industrial control computer's communication protocol. This signal is transmitted to the industrial control computer via the J1 connector, simulating the unlocking / locking and door opening / closing states of the electric bolt lock. Simultaneously, the analog circuit converts the button status into indicator light drive signals, allowing the lock status indicator (green for unlocked, red for locked) and door status indicator (green for open, red for closed) to reflect the current simulated state in real time. This facilitates the operator's intuitive confirmation of the correctness of the sent signals. The analog circuit receives the unlocking / locking control signals from the industrial control computer via the J1 connector. When an unlocking signal is received, the unlocking signal indicator lights up; when a locking signal is received, the indicator turns off, thus achieving visual verification of the industrial control computer's control signal sending function.
[0046] The door lock simulation module connects to the industrial control computer via a J1 connector. Operators generate simulated signals by pressing buttons, and by combining the indicator light status with the industrial control computer's recognition results, they can quickly determine the industrial control computer's ability to receive lock and door status signals, as well as its ability to send control signals.
[0047] This includes resistors R1 (5.1KΩ), R2 (5.1KΩ), and R3 (5.1KΩ), and LEDs D2 and D3. The "lock" button (SW1) is connected to the Lock_Switch-NC pin of the J1 connector via pin 1, and the "door" button (SW2) is connected to the DOOR_Switch-NO pin of the J1 connector via pin 1. The lock status indicator D2 and door status indicator D3 are connected to their respective signal lines via R2 and R3 to visually display the simulated status. The unlock signal indicator is connected to the LOCK_12V pin of the J1 connector via R1 to receive the lock / unlock control signal sent by the industrial control computer.
[0048] In actual testing of electric bolt locks, such as Figure 3 and Figure 7As shown, when the unlock button is pressed, the test circuit generates an unlock control signal conforming to the electric bolt lock communication standard and sends it to the electric bolt lock through the J3 connector. When the button is released, a lock control signal is generated and sent, realizing direct control of the electric bolt lock. When sending the unlock signal, the test circuit drives the control signal indicator light to light green, and when sending the lock signal, it drives it to light red, intuitively displaying the type of control signal currently being sent. At the same time, the test circuit converts the electric bolt lock status signal (latch extension / retraction) received through the J3 connector into the on / off state of the lock status indicator light (on indicates locked, off indicates unlocked), and converts the door status signal (cabinet door open / closed) into the on / off state of the door status indicator light (on indicates closed, off indicates open), realizing real-time monitoring of the electric bolt lock status. The 12V power supply connected through the J2 interface powers the signal processing module of the test circuit to ensure stable output of the control signal, and provides the electric bolt lock with working power through the J3 connector, ensuring that the electric bolt lock can perform mechanical actions normally during the test.
[0049] The door lock testing module connects to the electric bolt lock via a J3 connector and is powered via the J2 interface. The operator sends a control signal via the unlock button. By combining the indicator light status with the electric bolt lock's mechanical actions, the module verifies the electric bolt lock's ability to receive and execute control signals, as well as its feedback function regarding lock and door status. The actual test circuit includes resistors R4 (5.1KΩ), R5 (5.1KΩ), and R6 (5.1KΩ), and LEDs D4, D5, and D6. The unlock button (SW3) is connected to the OPEN pin of the J3 connector via pin 5 to send control signals. Control signal indicator lights D5 (green) and D6 (red) are connected to the control signal line via R4 and R5 respectively, indicating whether an unlock or lock signal is being sent. The lock status indicator light D4 is connected to the Lock_NC pin of the J3 connector via R4 to receive lock status feedback from the electric bolt lock. The door status indicator light D6 is connected to the DOOR_NO pin of the J3 connector via R5 to receive door status feedback from the electric bolt lock.
[0050] Connectors used for connection include J1 connectors, J3 connectors, and J2 connectors, such as Figure 4 and Figure 7 As shown, connector J1 is used to connect to an industrial control computer, with pins including LOCK_12V, Lock_Switch-NC, DOOR_Switch-NO, and COM. Connector J3 is used to connect to an electric bolt lock, with pins including 12VDC, GND, OPEN, Lock_NC, and DOOR_NO. The 12V power interface of connector J2 is used to power the door lock test module and the connected electric bolt lock.
[0051] 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 method for testing the door lock of a smart vending machine, characterized in that, Includes the following steps: The door lock testing device generates analog test signals and sends them to the industrial control computer and the electric bolt lock. Obtain the returned lock status recognition results and door status recognition results; The lock indicator light and door status indicator light of the door lock testing device display the lock status identification results and door status identification results received by the door lock testing device.
2. The door lock testing method for intelligent vending machines according to claim 1, characterized in that, The door lock testing device generates a simulated test signal and sends it to the industrial control computer, including the following steps: Press the "Lock" button on the door lock testing device to generate and send a lock opening test signal to the industrial control computer. At the same time, the lock status indicator light on the door lock testing device turns green. Release the "lock" button on the door lock testing device to generate and send a lock / close test signal to the industrial control computer. At the same time, the lock status indicator light on the door lock testing device will turn red.
3. The door lock testing method for intelligent vending machines according to claim 2, characterized in that, The door lock testing device generates a simulated test signal and sends it to the industrial control computer, including the following steps: Press the "Door" button on the door lock testing device to generate and send a door opening test signal to the industrial control computer. At the same time, the door status indicator light on the door lock testing device turns green. Release the "Door" button on the door lock testing device to generate and send a door lock closing test signal to the industrial control computer. At the same time, the door status indicator light on the door lock testing device turns red.
4. The door lock testing method for intelligent vending machines according to claim 3, characterized in that, Obtaining the returned lock status recognition results and door status recognition results includes the following steps: A lock / close test signal is sent to the industrial control computer. If the industrial control computer detects a lock signal, a lock / open test signal is sent to the industrial control computer. If the industrial control computer detects an unlock signal, then the lock status acquisition of the industrial control computer is normal. A door-close test signal is sent to the industrial control computer. If the industrial control computer detects a door-closed signal, a door-open test signal is sent to the industrial control computer. If the industrial control computer detects an open signal, then the door status acquisition by the industrial control computer is normal.
5. The door lock testing method for intelligent vending machines according to claim 4, characterized in that, The lock indicator light and door status indicator light of the door lock testing device display the lock status identification results and door status identification results received by the door lock testing device, including: If the door status and lock status are obtained normally by the industrial control computer, and if the unlock signal is received from the industrial control computer, the unlock indicator light of the lock test device will light up, then the unlock signal sent by the industrial control computer is normal. If the door status and lock status communication receiving function of the industrial control computer is normal, and if the lock is closed when the lock is received from the industrial control computer, the unlock indicator light of the lock test device will turn off, then the lock signal sent by the industrial control computer is normal.
6. The door lock testing method for intelligent vending machines according to claim 1, characterized in that, The door lock testing device generates a simulated test signal and sends it to the electric bolt lock, and also includes the following steps: Press the "unlock" button on the door lock testing device to generate and send a lock opening test signal to the electric bolt lock, and at the same time, the lock status indicator light on the door lock testing device will turn green; Release the "unlock" button on the door lock testing device to generate and send a lock / lock test signal to the electric bolt lock, while the lock status indicator light on the door lock testing device turns off.
7. The door lock testing method for intelligent vending machines according to claim 6, characterized in that, Obtaining the returned lock status recognition results and door status recognition results includes the following steps: The lock opening test signal is sent to the electric bolt lock. If the bolt of the electric bolt lock retracts and the lock status indicator light goes out, the lock opening status feedback of the electric bolt lock is normal. When the electric bolt lock is in the closed state, and the door status indicator light is on, the door closed state feedback of the electric bolt lock is normal. The electric bolt lock is in the open state, and if the door status indicator light is off, the door open state feedback of the electric bolt lock is normal. When the electric bolt lock is in the closed state, and the door status indicator light is on, the door closed state feedback of the electric bolt lock is normal. The lock / lock test signal is sent to the electric bolt lock. If the bolt of the electric bolt lock drops and the lock status indicator light is on, the lock / lock status feedback of the electric bolt lock is normal.
8. The door lock testing method for intelligent vending machines according to claim 7, characterized in that, The lock indicator light and door status indicator light of the door lock testing device display the lock status identification results and door status identification results received by the door lock testing device, including: If the electric bolt lock is in a normal locking state, and the lock indicator light on the lock testing device illuminates when it receives a lock / lock signal from the industrial control computer, then the electric bolt lock's communication reception function for the lock / lock status signal is normal.
9. A testing system, implemented in the door lock testing method of the intelligent vending machine according to any one of claims 1-8, characterized in that, include: The door lock simulation module is used to simulate the door lock status and establish a communication connection with the industrial control computer. It includes a "lock" button, a "door" button, a lock status indicator, a door status indicator, and an unlock signal indicator. The "lock" button and the "door" button are used to generate simulated status signals, and the indicator lights are used to provide feedback on the communication interaction results. The door lock testing module is used to establish a communication connection with the electric bolt lock under test. It includes an unlock button, a control signal indicator, a lock status indicator and a door status indicator. The unlock button is used to send control signals, and the indicator lights are used to provide feedback on the communication response results of the electric bolt lock. Connectors, including a J1 connector for connecting to an industrial control computer and a J3 connector for connecting to an electric lock, are used to enable the physical transmission of signals.
10. The testing system according to claim 9, characterized in that, The door lock simulation module also includes a simulation circuit, which sends simulated status signals to the industrial control computer via a J1 connector, and simultaneously receives control signals for the lock switch from the industrial control computer. The door lock test module also includes a test circuit and a 12V power interface J2. The test circuit sends control signals to the door lock and receives the door lock status feedback signals through the J3 connector. The J2 connector is used to supply power to the test circuit and the door lock.