Vending machine interaction method and system based on duplex industrial personal computer architecture
By adopting duplex control architecture and multi-screen collaboration in vending machines, the performance bottlenecks and interaction fluency problems caused by the single-time control architecture are solved, and an efficient and stable vending machine interaction system is achieved.
Patent Information
- Application Number
- CN202510347300.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-24
- Publication Date
- 2025-06-10
- Estimated Expiration
- 2045-03-24
AI Technical Summary
The existing vending machines adopt a single-in-one control machine architecture, which leads to problems such as lag and response delays when dealing with complex interactive logic and multimedia displays. The single display cannot meet the needs of multi-task interaction, affecting user experience and operation efficiency.
The duplex control machine architecture is adopted, and two industrial control machines are configured in the same vending machine to control two independent display screens. Real-time two-way communication and instruction management are realized through WebSocket to ensure the separation and coordinated tasks of large and small screens.
Through the duplex control architecture and multi-screen collaboration, interactive performance and interactive experience are improved, performance bottlenecks and interaction fluency problems in traditional single-time control architecture are solved, and the system operation is ensured efficient and stable.
Smart Images

Figure CN120126249A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of vending machines, and particularly to an interaction method and system for a vending machine based on a dual industrial computer architecture. Background Art
[0002] Most existing vending machines adopt a single industrial computer architecture to control the interaction and commodity sales functions of the vending machine. In the case of using a single industrial computer, the machine performance will be greatly limited. Especially when dealing with complex interaction logics and multimedia displays, problems such as running jams and response delays may occur.
[0003] In addition, current vending machines are usually equipped with a single display screen, which cannot meet the multi-task interaction requirements at the same time. For example, after a user completes a challenge interaction, the vending machine screen needs to be reset to the default state, and the whole process lacks fluency and efficiency.
[0004] There are many problems with the existing single industrial computer architecture: First, the performance bottleneck of the single industrial computer architecture limits the performance of the machine when dealing with complex interaction logics and multimedia displays, and problems such as running jams and response delays are likely to occur. Second, current vending machines are usually equipped with a single display screen, which cannot meet the multi-task interaction requirements at the same time. For example, after a user completes a challenge interaction, the vending machine screen needs to be reset to the default state, and the whole process lacks fluency and efficiency. In addition, instruction processing is prone to conflicts, affecting the stability of commodity dispensing and interaction logics. These problems seriously affect the user experience and the operation efficiency of the vending machine. Summary of the Invention
[0005] Based on this, the embodiments of the present application provide an interaction method and system for a vending machine based on a dual industrial computer architecture. By configuring two industrial computers in the same vending machine to control two independent display screens respectively, the interaction performance and experience are improved. The system realizes multi-screen collaboration, optimization of human-computer interaction performance, and precision of instruction management, ensuring the high-efficiency and stable operation of the system.
[0006] In a first aspect, an interaction method for a vending machine based on a dual industrial computer architecture is provided. The method includes:
[0007] The user scans a QR code through the first screen to enter the interaction mode. After the first screen industrial computer receives the user's QR code scanning signal, it sends an interaction instruction to the server. The server pushes the instruction to the two industrial computers through WebSocket. The first screen industrial computer triggers the second screen industrial computer to enter the interaction guidance state, and the second screen displays an interaction task guidance interface to guide the user to complete the interaction task;
[0008] The user completes the interactive task according to the guidance of the second screen. The camera on the top of the vending machine collects the user's action data in real time. The industrial computer of the second screen obtains the user's action information through the camera and transmits the data to the industrial computer of the first screen for processing. The industrial computer of the first screen determines whether the user has successfully completed the task according to the preset interaction rules;
[0009] If the user successfully completes the interactive task, the industrial computer of the first screen controls the commodity dispensing port to dispense the reward. At the same time, the second screen displays the dispensing UI to prompt the user to pick up the commodity.
[0010] Optionally, the method further includes:
[0011] After the interaction ends, the industrial computer of the first screen controls the first screen to restore the default page, display the interaction button, and wait for the next user to trigger the interaction mode. The industrial computer of the second screen synchronously restores the default state and prepares to enter the next interaction guidance.
[0012] Optionally, after the industrial computer of the first screen determines whether the user has successfully completed the task according to the preset interaction rules, it further includes:
[0013] If the user fails the challenge, the second screen prompts the user to retry and guides the user to complete the interactive task again;
[0014] After the interaction ends, the industrial computer of the first screen controls the first screen to restore the default page, display the interaction button, and wait for the next user to trigger the interaction mode. The industrial computer of the second screen synchronously restores the default state and prepares to enter the next interaction guidance.
[0015] Optionally, both the first screen and the second screen are in portrait mode, and the resolution of both is 1080x1920.
[0016] Optionally, the industrial computer of the first screen and the industrial computer of the second screen establish a communication connection through WebSocket, use the same machine number in the configuration file to ensure coordinated work, and monitor the status of the WebSocket connection. If the connection is disconnected, the front end will automatically reconnect and prompt the user to wait for the connection to resume.
[0017] Optionally, the judgment rules of the interactive task at least include a comprehensive evaluation of action recognition, time limit, and task completion degree.
[0018] In a second aspect, an automatic vending machine interaction system based on a dual-industrial computer architecture is provided for implementing the automatic vending machine interaction method described in any one of the first aspects above. The system includes:
[0019] The first screen industrial computer is used to receive the interactive signal sent by the user after scanning the QR code through the first screen, send interactive instructions to the server, and receive instructions pushed by the server through WebSocket; the first screen industrial computer is also used to receive user action data transmitted by the second screen industrial computer, determine whether the user has successfully completed the interactive task according to the preset interactive rules, and control the product dispensing port to issue rewards when the task is successful, and control the second screen to display the dispensing UI;
[0020] The second screen industrial computer is used to receive the instructions pushed by the server through WebSocket, trigger the interactive guidance state, and control the second screen to display the interactive task guidance interface; the second screen industrial computer is also used to collect user action data through the camera on the top of the vending machine, and transmit the data to the first screen industrial computer;
[0021] The first screen and the second screen are connected to the first screen industrial computer and the second screen industrial computer respectively, and are used to display the interactive task guidance interface, the interactive result prompt and the default page;
[0022] The camera is installed on the top of the vending machine to collect user action data and transmit it to the second screen industrial computer;
[0023] The server is used to receive the interactive instructions sent by the first screen industrial computer, and push the instructions to the first screen industrial computer and the second screen industrial computer through WebSocket to achieve collaborative work between the two industrial computers.
[0024] Optionally, the system further comprises:
[0025] After the interaction is over, the industrial computer on the first screen controls the first screen to restore to the default page, displays the interactive button, and waits for the next user to trigger the interactive mode. The industrial computer on the second screen simultaneously restores to the default state and prepares to enter the next interactive guidance.
[0026] Optionally, the second screen industrial computer further includes:
[0027] If the user fails the challenge, the second screen is controlled to prompt the user to try again and guide the user to complete the interactive task again.
[0028] Optionally, the first screen and the second screen are both in portrait mode, and the resolutions of both are 1080x1920.
[0029] The beneficial effects brought by the technical solution provided by the embodiment of the present application include at least:
[0030] (1) Through the dual IPC architecture and independent task separation, the large screen focuses on interactive guidance, while the small screen is responsible for product delivery and status reset, ensuring that users do not need to wait for page refresh or status reset when participating in the interaction, making the entire interactive process more efficient and coherent. In addition, the WebSocket real-time two-way communication mechanism ensures instant response to commands, further improving the user's operational fluency and satisfaction.
[0031] (2) The dual IPC architecture effectively solves the performance bottleneck problem in the traditional single IPC architecture. The task separation between the large screen and the small screen reduces the load on a single IPC, allowing the system to maintain efficient operation in high-concurrency scenarios and avoid freezes and response delays caused by complex interactive logic. At the same time, load balancing and data compression technology further improve the system's stability and data transmission efficiency.
[0032] (3) The WebSocket security protocol is used to encrypt instruction transmission, and the user's identity is verified by the server after the user scans the code, ensuring that only legitimate users can participate in interactive tasks. In addition, the error handling and exception management mechanism can monitor and handle communication interruptions, task timeouts and other issues in real time, further improving the reliability and high availability of the system. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] In order to more clearly illustrate the implementation methods of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for the implementation methods or the description of the prior art. Obviously, the drawings in the following description are only exemplary, and for ordinary technicians in this field, other implementation drawings can be derived from the provided drawings without creative work.
[0034] Figure 1 A flowchart of a method for interacting with a vending machine based on a dual industrial control computer architecture provided in an embodiment of the present application;
[0035] Figure 2 A hardware architecture diagram provided for an embodiment of the present application;
[0036] Figure 3 A schematic diagram of dual-screen interaction provided in an embodiment of the present application. DETAILED DESCRIPTION
[0037] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0038] In the description of the present invention, the terms "comprises", "has" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or apparatus comprising a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may also include other steps or units that are not explicitly listed but are inherent to these processes, methods, products or apparatuses, or steps or units added based on further optimization schemes conceived by the present invention.
[0039] Most existing vending machines use a single IPC architecture to control the interaction and product vending functions of the vending machine. When using a single IPC, the performance of the machine will be greatly limited, especially when it needs to handle complex interactive logic and multimedia display, which may cause problems such as operation jams and response delays.
[0040] In addition, current vending machines are usually equipped with a single display screen, which cannot meet the needs of multi-tasking interaction at the same time. For example, after the user completes the challenge interaction, the vending machine screen needs to be reset to the default state, and the whole process lacks smoothness and efficiency.
[0041] In summary, the prior art has the following deficiencies:
[0042] 1. The single industrial computer architecture has performance bottlenecks and cannot efficiently handle complex interactive scenarios.
[0043] 2. The interactive process lacks multi-screen collaboration and the task switching efficiency is low.
[0044] 3. Command processing is prone to conflict, affecting product delivery and interaction logic.
[0045] The present invention aims to solve the shortcomings of the above-mentioned prior art and proposes an automatic vending machine interactive system and control method based on a dual industrial control computer architecture. By configuring two industrial control computers in the same vending machine to control two independent display screens respectively, the interactive performance and interactive experience are improved. The system realizes multi-screen collaboration, human-computer interaction performance optimization and precise instruction management, ensuring efficient and stable system operation.
[0046] Please refer to Figure 1 , which shows a flow chart of an automatic vending machine interaction method based on a dual industrial control computer architecture provided by an embodiment of the present application. The method may include the following steps:
[0047] S1, the user scans the QR code through the first screen to enter the interactive mode. After receiving the user's scanning signal, the industrial computer on the first screen sends an interactive command to the server. The server pushes the command to the two industrial computers through WebSocket. The industrial computer on the first screen triggers the industrial computer on the second screen to enter the interactive guidance state. The second screen displays the interactive task guidance interface to guide the user to complete the interactive task.
[0048] S2, the user completes the interactive task according to the guidance of the second screen, the camera on the top of the vending machine collects the user's action data in real time, the second screen industrial computer obtains the user's action information through the camera, and transmits the data to the first screen industrial computer for processing, and the first screen industrial computer determines whether the user successfully completes the task according to the preset interactive rules;
[0049] S3, if the user successfully completes the interactive task, the industrial computer on the first screen controls the product dispensing port to distribute rewards, and at the same time, the second screen displays the dispensing UI to prompt the user to collect the product.
[0050] Optionally, if the user fails the challenge, the second screen prompts the user to try again and guides the user to complete the interactive task again;
[0051] After the interaction is over, the industrial computer on the first screen controls the first screen to restore to the default page, displays the interactive button, and waits for the next user to trigger the interactive mode. The industrial computer on the second screen simultaneously restores to the default state and prepares to enter the next interactive guidance.
[0052] After the post-interaction is over, the first-screen industrial computer controls the first screen to restore the default page, display the interactive button, and wait for the next user to trigger the interactive mode. The second-screen industrial computer synchronously restores the default state and prepares to enter the next interactive guidance.
[0053] In the embodiment of the present application, the first screen is a small screen and the second screen is a large screen. The hardware architecture is as follows:
[0054] The system adopts a dual industrial computer architecture, and each industrial computer is connected to a display screen. The left side is a large screen (1080x1920 resolution), and the right side is a small screen (1080x1920 resolution), both in vertical mode.
[0055] The top of the vending machine is equipped with a camera to collect user actions. The small-screen industrial computer controls the product discharging function, and the large-screen industrial computer disables the discharging function to avoid conflicts. Figure 2 .
[0056] In this embodiment, the software architecture is as follows:
[0057] 1. Front-end code is packaged independently:
[0058] In order to ensure that the interactive tasks of the large screen and the small screen can be carried out independently and smoothly, the front-end code needs to be packaged and deployed independently for different display screens. This strategy not only optimizes the performance of each screen, but also ensures the task separation and processing accuracy of the two displays.
[0059] Large screen front-end code: The large screen front-end code is responsible for rendering the interactive guidance interface, presenting task content, user guidance, interactive status feedback, etc. The content of this code package includes: user interface design, interactive task display and guidance logic, command monitoring mechanism for collaboration with small screens, etc. The large screen front-end code runs in the Android browser to ensure smooth interface rendering and timely response.
[0060] Small screen front-end code: The small screen front-end code focuses on controlling product delivery, displaying delivery UI, restoring default pages and other functions. The small screen front-end code package includes interactive buttons, task feedback, product delivery management, system recovery and other operation logic. The small screen front-end also runs in the Android browser to ensure fast task response and coordination with the large screen.
[0061] 2. Industrial computer communication (WebSocket):
[0062] Large-screen and small-screen industrial computers need to communicate to collaborate and transmit commands. WebSocket is a full-duplex communication protocol that allows a persistent connection to be established between the client and the server and transmits data in real time, making it suitable for dynamic interaction scenarios.
[0063] Establish communication: Each industrial computer (large screen and small screen) maintains a connection with the central server through WebSocket. The server acts as an intermediary, responsible for receiving instructions from the small screen and forwarding them to the corresponding industrial computer. At each startup, the two industrial computers will establish a long connection through WebSocket, and use the same machine number in the configuration file for identification and matching. Ensure that only one pair of large screen and small screen industrial computers are connected in the system to avoid data confusion.
[0064] Real-time command transmission: Through WebSocket, the system can push commands in real time. The small screen sends a request to the server to enter the interactive mode after the user scans the code. The server pushes it to the two industrial computers through WebSocket to ensure that the command can reach the large and small screens at the same time. After each industrial computer receives the command, it processes the corresponding task based on the command management mechanism in the front-end code. For example, the large screen only processes commands related to the display task, while the small screen only processes commands related to the product spitting out.
[0065] 3. Front-end task instruction management:
[0066] In a multi-screen collaborative system, accurate management of task instructions is the key to ensuring efficient operation of the system. The front end uses a detailed task differentiation mechanism to ensure that large and small screens handle their own independent tasks.
[0067] Distinguishing between task instructions: When receiving instructions, the code of each front-end page first determines whether it is processed by the large screen or the small screen based on the type of instruction. For example, the task information contained in the instruction will indicate whether it is a display content update (large screen task) or a product spitting function control (small screen task). The front-end code performs the corresponding operation according to the instruction type. Large screen tasks focus on guiding interactions and displaying task processes, while small screen tasks focus on product spitting, feedback results, and page recovery.
[0068] Instruction processing flow:
[0069] 1. Scan code to trigger: After the user scans the code to enter the interactive mode, the small screen front end will send a command to the server to request to start the interactive process.
[0070] 2. Command forwarding: After receiving the command, the server forwards it to the two industrial computers through WebSocket. The large screen will display interactive guidance to remind users to perform tasks; the small screen will display interactive buttons and wait for user interaction.
[0071] 3. Task collaboration: The large screen and the small screen cooperate with each other throughout the task completion process. The large screen captures the user's actions through the camera and guides the user to complete the task, while the small screen handles the spitting operation, displays the reward after the task is successful, and prompts to try again if the task fails.
[0072] 4. Restore status: After the interaction is completed, the small screen returns to the default page and displays a new interaction button, while the large screen continues to wait for the next round of tasks.
[0073] Command management: The front-end command management framework ensures that the command processing of the large screen and the small screen does not interfere with each other. Each front-end page listens for and responds to commands within its own scope. For example, the large screen will not accidentally trigger the relevant commands of the small screen task when processing large-screen related tasks, and vice versa. Using the event-driven programming model, commands are passed through events, and the front-end page triggers the corresponding processing logic according to the different types of events.
[0074] 4. Error handling and exception management:
[0075] In order to ensure the high availability of the system, error handling and exception management are very important. In the front-end code, especially in the scenario of multi-task interaction, the system needs to handle possible exceptions, such as communication interruption, task execution error, etc.
[0076] WebSocket connection disconnection processing: The front-end code monitors the status of the WebSocket connection. If the connection is disconnected, the front-end will automatically reconnect and prompt the user to wait for the connection to be restored. When disconnected, the front-end will prompt the user that the interaction is interrupted and provide a retry function.
[0077] Task timeout processing:
[0078] If the user does not complete the task within the specified time or the interaction times out, the system will automatically prompt the user to "time out" and return to the default state.
[0079] 5. Security considerations:
[0080] In actual applications, the security of the system also needs to be considered, especially in a multi-device, multi-screen environment.
[0081] Data encryption: All instruction transmissions (especially sensitive operation instructions such as product delivery) will be encrypted using the WebSocket Security Protocol (WSS) to ensure the security of data transmission.
[0082] Authentication: After the user scans the code, the system will verify the user's identity through the server to ensure that only legitimate users can participate in interactive tasks.
[0083] In this way, the entire system can efficiently achieve collaboration between large and small screens, and ensure a smooth user experience during interaction through real-time command push and task management. This architecture allows each screen and control device to have clear responsibilities, thus avoiding system problems caused by command conflicts and resource competition.
[0084] The specific interaction process in the embodiment of this application is as follows:
[0085] 1. The small screen displays the interactive start button, and the user enters the interactive mode after scanning the code.
[0086] 2. The small screen sends instructions to the server, and the server pushes the instructions to the two industrial computers through WebSocket.
[0087] 3. The small screen triggers interaction with the large screen, and the large screen guides users to complete interactive tasks.
[0088] 4. Users complete interactive tasks through the camera. If the challenge is successful, the small screen will control the product dispensing port to distribute rewards, and the large screen will display the dispensing UI. If the challenge fails, the user will be prompted to try again.
[0089] 5. After the interaction is over, the small screen on the right returns to the default page and displays the interaction button.
[0090] From the above, it can be seen that the technical points of this application include:
[0091] 1. Multi-IC collaboration: Through WebSocket communication and command management, dual IPCs can achieve stable collaboration without interfering with each other.
[0092] Technical implementation: WebSocket communication: To ensure data synchronization and collaboration between the large screen and the small screen industrial computer, the system uses the WebSocket protocol. WebSocket has the characteristics of low latency and full-duplex transmission, which is suitable for scenarios that require real-time interaction. The large screen and the small screen industrial computer maintain a persistent connection through WebSocket, and exchange task status, instruction information, etc. in real time.
[0093] Instruction management: In order to avoid instruction conflicts, the instruction management of each industrial computer adopts an instruction routing mechanism based on task type. Specifically:
[0094] Task instruction identification: Each instruction contains task type information, such as display_task (large screen task) or vending_task (small screen task). The industrial computer determines which type of task should be executed based on the instruction type.
[0095] Instruction filtering and routing: The large-screen industrial computer only processes tasks related to display, and all instructions for small-screen tasks are ignored; similarly, the small-screen industrial computer only processes tasks related to product spitting out and resetting, ensuring that the two industrial computers do not interfere with each other.
[0096] Status synchronization: Whenever a task is completed or its status changes, the IPC will notify the other IPC of the status through WebSocket to synchronize the task progress. For example, after the small screen controls the product to be discharged, the status of the successful discharge will be pushed to the large screen IPC, and the large screen will then display the success feedback.
[0097] Data processing:
[0098] Real-time data exchange: Instructions and status information between industrial computers are pushed in real time through WebSocket to ensure the synchronization of instruction execution and status feedback. For example, when the small screen initiates a product spitting request, the system will immediately process the instruction and return feedback, avoiding poor user experience caused by communication delays.
[0099] 2. Independent task separation: the large screen is responsible for interactive guidance, the small screen is responsible for spitting out goods and resetting status, and their respective tasks are clear.
[0100] Technical implementation:
[0101] Front-end code separation: The front-end code is packaged independently and deployed to the corresponding display screen. The large and small screen front-ends run independent code packages, ensuring that each screen focuses on its specific functions.
[0102] Large-screen tasks: mainly responsible for user interaction guidance, including task display, user operation prompts, feedback information, etc.
[0103] Small screen tasks: control product spitting, display reward feedback, and restore to default state after the task is completed.
[0104] Implementation details of front-end task separation:
[0105] In the front-end code of large and small screens, an event listening mechanism is used to receive instructions from WebSocket.
[0106] The large screen monitors the display_task command, and the small screen monitors the vending_task command, ensuring that each only executes its own task.
[0107] Backend command distribution: The backend service distinguishes the command content according to the task type and pushes it to the corresponding industrial computer. Each command is accompanied by task information to ensure that the task is accurately distributed to the large or small screen:
[0108] Task triggering mechanism: When the user scans the code or completes an operation, the small screen triggers the interactive task instruction and pushes it to the server, which distributes the corresponding instruction to the large-screen industrial computer and the small-screen industrial computer. The large screen guides the user to perform the task, and the small screen is responsible for processing the feedback after the task is completed, such as product delivery.
[0109] Data processing:
[0110] Task data processing: The data of each task, including user behavior, product delivery status, etc., is stored and processed in the server. When the task is completed, the system will calculate and record the result of the user interaction (such as whether the task is successfully completed), and then push the status to the corresponding display screen through WebSocket.
[0111] Status data synchronization: Each industrial computer will synchronize status data in real time when processing tasks. For example, when the small screen controls the discharging of goods, it will push the status of successful discharging and user feedback to the large screen industrial computer, and the large screen will then display the corresponding feedback interface.
[0112] 3. Real-time command push: supports two-way command push initiated by the server and the small screen to ensure real-time response.
[0113] Technical implementation:
[0114] WebSocket two-way communication: The WebSocket protocol not only supports the server to push instructions to the client, but also supports the client (such as the small screen) to actively send requests to the server. In order to ensure the real-time responsiveness of the system, two-way WebSocket communication is used to support the small screen to actively initiate instruction requests.
[0115] The small screen actively initiates a request: When the user scans a code, clicks, or interacts with the small screen, the small screen will immediately send a request to the server to start the interactive task. After receiving the request, the server will push the corresponding instructions to the large screen and the small screen industrial computer.
[0116] Server push: When the server is processing tasks, it will push instructions or status updates to the industrial computer in real time. Through WebSocket, the system can ensure that the collaboration between various devices is instant, reducing user experience issues caused by data delays.
[0117] Data processing:
[0118] Real-time command push: In the system, command and feedback push is instant, which requires optimizing the transmission speed and stability of WebSocket data. Through load balancing, data compression and other technologies, it is ensured that the transmission of commands will not be blocked even in scenarios with a large number of user interactions.
[0119] Load balancing: When multiple devices (such as multiple industrial computers) work at the same time, the system adopts a load balancing strategy to ensure that instructions and data can be evenly distributed to each industrial computer, avoiding response delays due to excessive load on a certain device.
[0120] Data compression: The instruction data packets can be compressed using compression algorithms, thereby reducing network bandwidth usage and improving data transmission efficiency.
[0121] Abnormal detection and recovery mechanism: To further ensure real-time response, the system monitors the status of the WebSocket connection in real time. If a connection abnormality or delay is found, the system will automatically reconnect and resynchronize the task status and instructions through the callback mechanism.
[0122] Real-time two-way communication, multi-industrial computer collaboration and independent task separation achieved through WebSocket can ensure efficient collaboration between large-screen and small-screen industrial computers, interference-free operation execution and real-time response of the system. These technical points ensure the smooth experience of vending machines in human-computer interaction and ensure the accuracy and efficiency of task execution.
[0123] Through this system, the vending machine has shown a smoother and more efficient performance in the interaction with the user, successfully solving the performance bottleneck and interaction smoothness problems existing in the traditional single industrial control architecture. The following are the specific effects and technical details after the implementation of the system.
[0124] In an optional embodiment of the present application, the system deployment includes:
[0125] Hardware deployment: The FET60 vending machine uses a design based on a dual industrial computer architecture, where:
[0126] Large-screen industrial computer control provides interactive guidance and task display between users.
[0127] The small-screen industrial computer controls functions such as product delivery and feedback display.
[0128] Software deployment: The front-end code is packaged and deployed on the large screen and the small screen separately. WebSocket communication is used to ensure real-time command push and status synchronization between the two industrial computers.
[0129] The implementation effects include:
[0130] Improved user experience:
[0131] At the test site, users experienced a smoother interaction process after entering the interactive mode by scanning the code. When the large-screen industrial computer displayed interactive tasks, the operation prompts were intuitive and clear; and after completing the task, the small-screen industrial computer was able to respond quickly and display product feedback.
[0132] The system realizes dual-screen collaboration. When users participate in interactions, they do not need to wait for the page to refresh or the status to reset. The entire interaction process becomes more efficient and coherent.
[0133] Performance optimization:
[0134] The introduction of the dual industrial control computer architecture effectively solves the performance bottleneck in the traditional single industrial control architecture. When multiple users participate in the interaction at the same time, the system can still maintain stable operation, avoiding the problems of freeze and response delay that may occur in traditional systems.
[0135] The tasks of the large screen and small screen are clearly divided through command management, ensuring that each industrial computer performs specific tasks without interfering with each other, greatly improving the system's processing power and stability.
[0136] Efficiency of task execution:
[0137] At the experimental site, the interactive task from user scanning to product dispensing was successfully completed through the dual industrial control architecture. After the task was successful, the small screen controlled the product dispensing and displayed the reward interface, while the large screen guided the user to the next round of tasks. There was no command conflict or system delay in the process, and the user feedback was extremely positive.
[0138] Since the large screen and the small screen take on different tasks respectively, the system's ability to handle multiple tasks has been greatly improved. Especially in the case of high concurrency, the dual-screen architecture can effectively reduce the burden on each industrial computer and avoid the performance degradation caused by overload in the single-machine architecture.
[0139] The experimental feedback of this embodiment is as follows:
[0140] In the experiment, the vending machines using this system received a lot of positive feedback from users:
[0141] Interaction completion rate: Since the system can provide a clear and smooth interactive experience, the interaction completion rate has been significantly improved. After completing the challenge task, the proportion of users who successfully receive the goods has increased significantly.
[0142] User satisfaction: Users highly praised the smoothness and response speed of the interaction process, especially in the product delivery process. Quick feedback and efficient product delivery became the focus of user praise.
[0143] Multi-tasking collaboration: Users pointed out that the dual-screen architecture makes the operation interface simple and intuitive. Especially when switching tasks, the non-interference of the dual screens makes the operation experience more intuitive and efficient.
[0144] Technical effects include performance improvements:
[0145] Through the dual industrial control computer architecture, the system solves the performance bottleneck problem that may occur in the traditional single industrial control architecture when facing complex interactive logic, ensuring that the system can still run smoothly with a large number of users.
[0146] Multi-screen collaboration:
[0147] The dual-screen architecture ensures independent tasks and efficient collaboration between the large and small screens. The large screen focuses on interactive guidance and task display, while the small screen focuses on product delivery and feedback display, making the entire system run more efficiently and significantly reducing the risk of command conflicts.
[0148] Real-time response:
[0149] The system implements real-time two-way command push via WebSocket to ensure instant response to commands. For example, when a user successfully completes a task and gets a reward, the command will be immediately fed back to the small screen and the delivery interface will be quickly displayed. The large screen will also immediately update the task status and present new interactive content.
[0150] The actual data in this embodiment are as follows:
[0151] Interactive participation: During the experiment, the vending machines using this system attracted more than 5,000 users to participate in the experiment, with an interactive completion rate of 85%, nearly 30% higher than the 55% of traditional vending machines.
[0152] User satisfaction: According to the questionnaire survey and user feedback collected at the experimental site, the user satisfaction with the interaction process reached 95%, and users especially spoke highly of the system's response speed and operational smoothness.
[0153] Equipment stability: During long-term operation (more than 10 hours), the system did not experience obvious crashes or delays, and the hardware and software systems ran stably.
[0154] like Figure 3, a schematic diagram of the dual-screen interaction provided in an embodiment of the present application is given, wherein the left side is a schematic diagram of the large screen and the right side is a schematic diagram of the small screen.
[0155] The embodiment of the present application also provides an automatic vending machine interactive system based on a dual industrial control computer architecture, which may include:
[0156] The first screen industrial computer is used to receive the interactive signal sent by the user after scanning the QR code through the first screen, send interactive instructions to the server, and receive instructions pushed by the server through WebSocket; the first screen industrial computer is also used to receive user action data transmitted by the second screen industrial computer, determine whether the user has successfully completed the interactive task according to the preset interactive rules, and control the product dispensing port to issue rewards when the task is successful, and control the second screen to display the dispensing UI;
[0157] The second screen industrial computer is used to receive the instructions pushed by the server through WebSocket, trigger the interactive guidance state, and control the second screen to display the interactive task guidance interface; the second screen industrial computer is also used to collect user action data through the camera on the top of the vending machine, and transmit the data to the first screen industrial computer;
[0158] The first screen and the second screen are connected to the first screen industrial computer and the second screen industrial computer respectively, and are used to display the interactive task guidance interface, the interactive result prompt and the default page;
[0159] The camera is installed on the top of the vending machine to collect user action data and transmit it to the second screen industrial computer;
[0160] The server is used to receive the interactive instructions sent by the first screen industrial computer, and push the instructions to the first screen industrial computer and the second screen industrial computer through WebSocket to achieve collaborative work between the two industrial computers.
[0161] For the specific definition of the vending machine interactive system based on the dual industrial control computer architecture, please refer to the definition of the vending machine interactive method based on the dual industrial control computer architecture mentioned above, which will not be repeated here. Each module in the above-mentioned vending machine interactive system based on the dual industrial control computer architecture can be implemented in whole or in part through software, hardware and a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory in the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.
[0162] The technical features of the above-described embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above-described embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0163] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be construed as limiting the scope of the patent application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent application shall be subject to the attached claims.
Claims
1. A vending machine interaction method based on a dual industrial control computer architecture, characterized in that: The method comprises: The user enters the interactive mode by scanning the QR code on the first screen. After receiving the user's scanning signal, the industrial computer on the first screen sends an interactive command to the server. The server pushes the command to the two industrial computers through WebSocket. The industrial computer on the first screen triggers the industrial computer on the second screen to enter the interactive guidance state. The second screen displays the interactive task guidance interface to guide the user to complete the interactive task. The user completes the interactive task according to the guidance of the second screen. The camera on the top of the vending machine collects the user's action data in real time. The second screen industrial computer obtains the user's action information through the camera and transmits the data to the first screen industrial computer for processing. The first screen industrial computer determines whether the user has successfully completed the task according to the preset interactive rules. If the user successfully completes the interactive task, the industrial computer on the first screen controls the product dispensing port to distribute rewards, while the second screen displays the dispensing UI to prompt the user to collect the product.
2. The vending machine interaction method according to claim 1, characterized in that: The method further comprises: After the interaction is over, the industrial computer on the first screen controls the first screen to restore to the default page, displays the interactive button, and waits for the next user to trigger the interactive mode. The industrial computer on the second screen simultaneously restores to the default state and prepares to enter the next interactive guidance.
3. The vending machine interaction method according to claim 1, characterized in that: After the first screen industrial computer determines whether the user has successfully completed the task according to the preset interaction rules, it also includes: If the user fails the challenge, the second screen prompts the user to try again and guides the user to complete the interactive task again; After the interaction is over, the industrial computer on the first screen controls the first screen to restore to the default page, displays the interactive button, and waits for the next user to trigger the interactive mode. The industrial computer on the second screen simultaneously restores to the default state and prepares to enter the next interactive guidance.
4. The vending machine interaction method according to claim 1, characterized in that: The first screen and the second screen are both in portrait mode, and the resolutions are both 1080x1920.
5. The vending machine interaction method according to claim 1, characterized in that: The first screen industrial computer and the second screen industrial computer establish a communication connection through WebSocket, use the same machine number in the configuration file to ensure collaborative work, and monitor the status of the WebSocket connection; if the connection is disconnected, the front end will automatically reconnect and prompt the user to wait for the connection to be restored.
6. The vending machine interaction method according to claim 1, characterized in that: The judgment rules of the interactive task at least include action recognition, time limit and comprehensive evaluation of task completion.
7. An automatic vending machine interactive system based on a dual industrial control computer architecture, used to implement the automatic vending machine interactive method according to any one of claims 1 to 6, characterized in that: The system comprises: The first screen industrial computer is used to receive the interactive signal sent by the user after scanning the QR code through the first screen, send interactive instructions to the server, and receive instructions pushed by the server through WebSocket; the first screen industrial computer is also used to receive user action data transmitted by the second screen industrial computer, determine whether the user has successfully completed the interactive task according to the preset interactive rules, and control the product dispensing port to issue rewards when the task is successful, and control the second screen to display the dispensing UI; The second screen industrial computer is used to receive the instructions pushed by the server through WebSocket, trigger the interactive guidance state, and control the second screen to display the interactive task guidance interface; the second screen industrial computer is also used to collect user action data through the camera on the top of the vending machine, and transmit the data to the first screen industrial computer; The first screen and the second screen are connected to the first screen industrial computer and the second screen industrial computer respectively, and are used to display the interactive task guidance interface, the interactive result prompt and the default page; The camera is installed on the top of the vending machine to collect user action data and transmit it to the second screen industrial computer; The server is used to receive the interactive instructions sent by the first screen industrial computer, and push the instructions to the first screen industrial computer and the second screen industrial computer through WebSocket to achieve collaborative work between the two industrial computers.
8. The vending machine interactive system according to claim 7, characterized in that: The system further comprises: After the interaction is over, the industrial computer on the first screen controls the first screen to restore to the default page, displays the interactive button, and waits for the next user to trigger the interactive mode. The industrial computer on the second screen simultaneously restores to the default state and prepares to enter the next interactive guidance.
9. The vending machine interactive system according to claim 7, characterized in that: The second screen computer also includes: If the user fails the challenge, the second screen is controlled to prompt the user to try again and guide the user to complete the interactive task again.
10. The vending machine interactive system according to claim 7, characterized in that: The first screen and the second screen are both in portrait mode, and the resolutions are both 1080x1920.
Citation Information
Patent Citations
Double-screen display payment terminal
CN104077860A
Wireless car pooling system
CN104680777A
Split-screen display method and device, computer equipment and storage medium
CN110764727A
Double-screen interaction method and system for medical images
CN112968888A
Multi-screen interaction method, multi-screen control method and equipment
CN118276806A