Brain-Computer Interface Smart Ward Routing Device Based on 5G Virtual Private Network
By using a brain-computer interface-based smart ward routing device based on a 5G virtual private network, combined with Zigbee and WiFi connectivity, and employing the MQTT protocol and JSON format messages, the system addresses the issues of insufficient data transmission rate and user experience in the smart ward system. This enables efficient and secure information interaction, improving user experience and system stability.
Patent Information
- Application Number
- CN202211080858.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-09-05
- Publication Date
- 2026-01-30
- Estimated Expiration
- 2042-09-05
AI Technical Summary
Existing smart ward systems have shortcomings in data transmission rate and user experience, and also suffer from network latency, high false alarm rate, and privacy leakage risks.
The brain-computer interface smart ward routing device, based on a 5G virtual private network, uses a combination of a headband, a wireless 5G router, and a gateway. It combines Zigbee and WiFi connections, uses the MQTT protocol for communication between the device and the APP, and employs JSON format message control to achieve efficient and secure information exchange.
It significantly improves data transmission rate and user experience, reduces network traffic, enhances system stability and security, and provides a safer, more efficient, and convenient medical experience.
Smart Images

Figure CN115665820B_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the field of human-computer interaction technology, specifically relating to a brain-computer interface smart ward routing device based on a 5G virtual private network. Background Technology
[0002] The integration of information technologies such as the Internet, the Internet of Things, and big data with healthcare has ushered in a new stage in hospital informatization, with the construction of smart hospitals becoming a core trend in modern hospital development.
[0003] Chinese invention patent CN110297540A discloses "a human-computer interaction device and a human-computer interaction method". This invention monitors the gestures / eye rotation angles of external objects, collects the gestures / eye rotation angles, converts the monitored gestures / eye rotation angles into corresponding processing instructions, encrypts them, and sends them to a cloud service terminal for comparison. Then, based on the comparison results, it decides whether to execute the interaction and control the device to react. This solution requires a long time to monitor and convert instructions, has a slow response, and has low overall system processing efficiency. In addition, humans have spontaneous eye movement behavior, and relying solely on monitoring to compare results may result in a high false alarm rate.
[0004] Chinese invention patent CN108597561A discloses a "Smart Ward Interactive System". In this system, nurses can use mobile PDA terminals to interact with and synchronize information with the hospital server system via wireless network, reducing tedious paperwork. The ward terminal can display patient information, and multiple devices can respond simultaneously when a patient calls for help. However, when there is too much interactive information, network latency and line congestion may occur, resulting in serious delays in interactive information. This system focuses more on improving the work efficiency of medical staff and does not consider improving the intelligent medical service experience for both medical staff and patients.
[0005] Chinese invention patent CN114420283A discloses a "Smart Hospital Ward Remote Video Monitoring and Management Cloud Platform Based on 5G Network Technology". This invention acquires infusion images of patients in each bed in each hospital ward and displays early warnings for the location of each bed in each hospital ward when the infusion status exceeds a set safety impact coefficient threshold, thus ensuring the medical safety of patients in the hospital. While this solution effectively monitors the patient's status, it also greatly increases medical costs and poses a risk of privacy leakage of monitoring videos. Summary of the Invention
[0006] The purpose of this invention is to provide a brain-computer interface smart ward routing device based on a 5G virtual private network, which improves the data transmission rate and provides patients with a safer, more effective and convenient medical experience.
[0007] To achieve the above objectives, the present invention provides the following technical solution: a brain-computer interface smart ward routing device based on a 5G virtual private network, comprising a headband, a wireless 5G router, a gateway, and a device terminal, wherein the headband and the wireless 5G router are bidirectionally connected, and the gateway and the wireless 5G router are bidirectionally connected via a network cable.
[0008] As a preferred technical solution of the present invention, the device is connected to a gateway via Zigbee.
[0009] As a preferred technical solution of the present invention, the device is connected via WiFi and a wireless 5G router.
[0010] As a preferred technical solution of the present invention, the devices in the device terminal are one or more combinations of curtains, air conditioners, televisions, and nursing beds. Each device attribute has a globally unique ID and device type. The user APP only needs to associate with the device ID and display different interfaces according to different device types. When the user adds a device, the APP requests a list of terminal devices from the gateway. If a device is deleted, the APP directly deselects the device already in the database from the device list. When rescanning devices, a request is sent to the gateway to update the local database.
[0011] As a preferred technical solution of the present invention, the gateway has two communication modes: one is to interact with the APP within the local area network, and the other is to interact with the Zigbee operator cloud server.
[0012] As a preferred technical solution of the present invention, the device and the APP communicate via the MQTT protocol.
[0013] As a preferred technical solution of the present invention, the message format for device control adopts JSON.
[0014] As a preferred technical solution of the present invention, the MQTT constructor includes the following operations:
[0015] Initialize a client object, connect to the MQTT server through the created client object, and find the gateway via multicast;
[0016] Multicast uses a MulticastSender object, which contains important signals and slots, and connects a timer and the sendDatagram() slot function to send messages via UDP multicast. After setting the timer parameters, the timer sends a multicast every 10 seconds to search for gateways.
[0017] The UDPSocket listens for multicast returns its gateway information, sends it to the slot function via a signal, and then calls the function to connect to the MQTT server.
[0018] Once the connection is established, the client object sends a signal to the MQTT object to notify that the connection is complete. If the connection is successful, the Zigbee user logs in to the MQTT server.
[0019] As a preferred technical solution of the present invention, when calling the function to connect to the MQTT server, the connection parameters need to be set before connecting: hostip, port number, time class, username and password.
[0020] Compared with the prior art, the beneficial effects of the present invention are:
[0021] 1. This invention incorporates 5G network technology into the traditional smart ward system, which greatly improves the data transmission rate, significantly enhances the efficiency of information interaction between various equipment systems, and improves the user experience.
[0022] 2. The smart ward equipment and the APP communicate via the MQTT protocol, which can tolerate unstable networks and recover better from disconnection failures. At the same time, the MQTT overhead is very small, the protocol exchange is minimized, and the network traffic is reduced.
[0023] 3. Smart wards truly start from the actual needs of patients, creating a distinctive medical service system. Through intelligent terminal devices, they provide patients with a safer, more effective, and more convenient medical experience. Attached Figure Description
[0024] Figure 1 This is a schematic diagram of the Zigbee device networking scheme of the present invention;
[0025] Figure 2 This is a schematic diagram of the WiFi device networking scheme of the present invention. Detailed Implementation
[0026] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0027] Example 1
[0028] See Figure 1 This is the first embodiment of the present invention. This embodiment provides a brain-computer interface smart ward routing device based on a 5G virtual private network, including a headband, a wireless 5G router, a gateway, and a device. The headband and the wireless 5G router are bidirectionally connected, the gateway and the wireless 5G router are bidirectionally connected via a network cable, and the device is connected to the gateway via Zigbee.
[0029] The smart ward system on Android, using Zigbee, mainly consists of two parts: the interface design for different devices and the corresponding control logic.
[0030] Smart Ward Main Interface:
[0031] Search for devices: After clicking the search button, the APP sends device search information to the gateway and writes the device information returned by the gateway into the local database;
[0032] Add Device: After clicking Add Device, the APP reads local data information, including device type and whether it has been added, pops up a window to select the device, and initializes the button information in the window based on the obtained information; clicking the device to be added triggers the Add Device function, which iterates through all devices to determine whether to create or delete the device, and finally generates the corresponding device entry button;
[0033] Gateway switching: After clicking to switch gateways, the app searches for gateways, and then the user selects the gateway they need to connect to.
[0034] During the startup phase, the app requests user login from the gateway based on the tablet device's MAC address. If the user does not exist, it registers with the gateway and requests authorization. Users can control the mouse clicks by blinking to issue commands using the buttons provided on the app interface. They can select the Zigbee devices to be added and record them in the database. Selected devices are directly displayed on the smart ward main page. Authorization for newly requested devices must be granted through the mobile app. In this mode, the gateway acts as the message distribution center, and the wireless 5G router acts as the connection center between the room network and the external network. The gateway has two communication methods: one is interaction with the app within the local area network, and the other is interaction with the Zigbee operator's cloud server.
[0035] Each device has a globally unique ID and device type. The user app only needs to associate with the device ID and display different interfaces according to different device types. When a user adds a device, the app requests a list of terminal devices from the gateway. If a device is deleted, the app directly deselects the device that already exists in the database from the device list. When rescanning devices, a request is sent to the gateway to update the local database. The app sends JSON-formatted commands to the gateway, and the gateway routes the control information to the device.
[0036] Control logic:
[0037] The device control message format uses JSON. Most devices have been refactored using the MVP design pattern to separate the interface and control logic, facilitating subsequent development and maintenance. Devices on the device side include: lights, curtains or blinds, infrared repeaters, air conditioners, televisions, nursing beds, and sockets. Air conditioners and televisions are connected to infrared repeaters. Taking a nursing bed as an example, clicking each corresponding function button will trigger a timer. If no manual stop is clicked, the timer will automatically turn off the button and send a stop command when it expires. If the nursing bed function button auto-adaptation fails, the refresh button can be clicked to re-acquire the bed type. The master switch is used to unlock and lock all function buttons.
[0038] The timeout retransmission mechanism ensures the error-free transmission of control signals. The process is as follows: Based on the button type, the current control command is obtained; the ID and command corresponding to the current command are placed into a pair and queued; if the command size in the queue is 1 and the gateway is connected, the command is sent, the device's reported information topic is subscribed to, and a retransmission timer is started; if the lower-level Zigbee module receives the command, it returns a corresponding acknowledgment packet. The acknowledgment packets are identical except for the beginning, timestamp, and command; after the timer expires, it checks whether the desired acknowledgment packet has been received. If received, the transmission is successful, and the next command can be sent; if no specific acknowledgment packet is received within the specified time, retransmission is initiated, up to four times; if four consecutive transmission failures occur, the network is considered faulty, and the user is prompted to check the network connection.
[0039] MQTT communication module:
[0040] The MQTT communication module is a class written using the singleton pattern, and its private constructor includes the following tasks:
[0041] Initialize a client object, connect to the MQTT server through the created client object, and find the gateway via multicast;
[0042] Multicast uses a MulticastSender object, which contains important signals and slots, and connects to a timer and the sendDatagram() slot function to send messages via UDP multicast. After setting the timer parameters, the timer sends a multicast every 10 seconds to search for gateways.
[0043] The UDPSocket listens for multicast returns its gateway information, sends it to the slot function via a signal, and then calls the function to connect to the MQTT server. Before connecting, the connection parameters need to be set: hostip, port number, time class, username and password.
[0044] Once the connection is established, the client object sends a signal to the MQTT object to notify that the connection is complete. If the connection is successful, the Zigbee user logs in to the MQTT server.
[0045] Example 2
[0046] Please see Figure 2 This is the second embodiment of the present invention, which is based on the previous embodiment, but differs in that: the device is connected via WiFi and a wireless 5G router; in the WiFi device networking scheme, the gateway is the message distribution center, the wireless 5G router is the connection center between the room network and the external network, and the user APP and the device have a many-to-one relationship. When the user adds a device, the APP enables the network access function and presses the device network access button. The device will send its own device information to the user APP, and the APP will store the device information. Therefore, the APP only needs to add the device once; when deleting a device, the APP directly deletes the device list information in the local database on the interface; the APP sends a JSON format command to the gateway, and the gateway will route the control information to the device.
[0047] Although embodiments of the invention have been shown and described in detail above, it will be understood by those skilled in the art that various changes, modifications, substitutions and alterations can be made to these embodiments without departing from the principles and spirit of the invention, the scope of which is defined by the appended claims and their equivalents.
Claims
1. A brain-computer interface smart ward routing device based on a 5G virtual private network, characterized in that: The application relates to a head ring, a wireless 5G router, a gateway and a device end, wherein the head ring and the wireless 5G router are bidirectionally connected, the gateway and the wireless 5G router are bidirectionally connected through a network cable, the device end is connected with the gateway through Zigbee, and the device end is connected with the wireless 5G router through WiFi; under a WiFi device networking scheme, the gateway is a message distribution center, the wireless 5G router is a room network and external network connection center, a user APP and a device are in a many-to-one relationship, when a user adds a device, the APP opens a network entry function, a device entry key is pressed, the device sends device information to the user end APP, the APP stores the device information, therefore, the APP only needs to add the device once; when a device is deleted, the APP directly deletes device list information in a local database in an interface; the APP sends a JSON format command to the gateway, and the gateway routes control information to the device. The gateway has two communication modes, one is to interact with the APP in a local area network, and the other is to interact through a Zigbee operator cloud server; the device and the APP communicate through an MQTT protocol; the MQTT includes the following work in a private constructor: An object is initialized, a client object is connected with an MQTT server through the created client object, and a gateway is found through multicasting; A MulticastSender object is used for multicasting, important signals and slots are contained, a timer and a sendDatagram () slot function are connected, a message is sent through a UDP multicasting mode, after parameters of the timer are set, the timer sends the multicasting every 10 seconds for searching the gateway; A UDPSocket listens to the gateway information returned by the multicasting, sends the information to a slot function through a signal, and then calls a function of connecting the MQTT server; After the connection is completed, the client object sends a signal to inform the MQTT object that the connection is completed, if the connection is successful, a Zigbee user logs in the MQTT server.
2. The 5G virtual private network based brain-computer interface smart care unit routing apparatus according to claim 1, wherein: The device in the device end is one or at least two combinations of a curtain, an air conditioner, a television and a nursing bed.
3. The 5G virtual private network based brain-machine interface smart care unit routing apparatus of claim 1, wherein: The message format of the device control adopts JSON.
4. The 5G virtual private network based brain-machine interface smart care unit routing apparatus of claim 1, wherein: When the function of connecting the MQTT server is called, connection parameters, such as a hostip, a port number, a time level, a username and a password, need to be set before the connection.
Citation Information
Patent Citations
Smart ward interaction system
CN108597561A
Man-machine interaction device and man-machine interaction method
CN110297540A
Intelligent hospital ward remote video monitoring management cloud platform based on 5G network technology
CN114420283A
Hotel intelligent guest room control equipment
CN110908349A
PICU digital ward system based on 5G mobile communication
CN114430535A