Rehabilitation medical equipment Internet of Things data acquisition terminal and method
By designing a rehabilitation medical equipment IoT data acquisition terminal, including multiple functional modules, it solves multiple problems in existing medical IoT data acquisition, realizes efficient and independent data acquisition and analysis, and has strong configuration management and data backup capabilities.
Patent Information
- Application Number
- CN202411943949.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-27
- Publication Date
- 2025-04-04
AI Technical Summary
The existing medical IoT perception layer data collection has problems such as limited number of device connections, data analysis and standardization relying on servers, lack of local data backup, inability to obtain device and patient ID, low initial configuration efficiency, inability to monitor operating status, and failure warning.
A rehabilitation medical equipment Internet of Things data acquisition terminal is designed, including a status monitoring module, a log management module, a configuration receiving module, an interface providing module, a data analysis module, a message packaging module and a message upload module to realize data acquisition, analysis, packaging and upload, and has local data backup and configuration management functions.
It realizes that multiple medical devices are connected to data collection at the same time, and data analysis and standardization are carried out at the terminal. It does not rely on the server and has 24-hour data backup capabilities. It solves the data traceability problem and realizes automatic configuration and operating status monitoring through the configuration management module.
Smart Images

Figure CN119766842A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to data collection of medical Internet of Things, and in particular to a rehabilitation medical equipment Internet of Things data collection terminal and method thereof. Background Art
[0002] Rehabilitation medical equipment IoT technology is the application of IoT edge computing in medical scenarios. Its organizational structure is as follows: Figure 1 As shown, it involves data collection at the perception layer and edge computing at the network layer. This technology aims to aggregate multi-source heterogeneous data to the data center through a variety of communication means and big data processing technologies to provide data support for the application layer.
[0003] Currently, there are several main ways to collect data at the perception layer of the medical Internet of Things: 1) Neusoft Hanfeng: A collection box is placed next to each bed, which can connect to up to 4 medical devices for collection at the same time. The collection box is used to forward the raw data to the server, and the data analysis and data standardization process is carried out on the server.
[0004] 2) Hui Ze Zhi Xin: A collection box is placed next to each device, which can connect to a maximum of one medical device for collection. The collection box is used to forward the raw data to the server, and the data analysis and data standardization processes are performed on the server.
[0005] 3) Mindray e-link: one e-link is placed for each device, and it can connect to a maximum of one medical device for collection. The collection box is used to forward the raw data to the Mindray central station, and the data analysis and data standardization process is carried out in the central station.
[0006] The data collection of the perception layer of the medical Internet of Things has the following deficiencies: 1) The number of medical devices that the acquisition box can connect to is limited, and a maximum of 4 medical devices can be connected at the same time 2) The key data analysis and data standardization processes are all performed on the server. When the data throughput is large, the increased server load can easily lead to service crashes or downtime.
[0007] 3) The acquisition box does not have the ability to back up local data. When the network is interrupted or the server fails, the medical device will be offline and all data will be lost.
[0008] 4) The collection box cannot obtain key source information such as device ID and patient ID, resulting in the inability to trace the data and the collected medical data cannot be matched with the patient.
[0009] 5) When performing the initial configuration of the acquisition box, engineers need to connect the acquisition boxes one by one on site for manual configuration, which is inefficient and affects the normal medical activities of the department. When the acquisition box is running, it is impossible to monitor the operating status and issue fault warnings, and can only respond to faults passively. Summary of the invention
[0010] In view of the above problems, the present application aims to propose a rehabilitation medical equipment Internet of Things data acquisition terminal and method thereof.
[0011] The rehabilitation medical equipment Internet of Things data acquisition terminal of the present application, wherein the rehabilitation medical equipment Internet of Things includes a configuration center and a data center, and the data acquisition terminal includes: a status monitoring module, a log management module, a configuration receiving module, an interface providing module, a data parsing module, a message encapsulation module, and a message uploading module; The status monitoring module is used to feed back the software and hardware parameters of the data acquisition terminal during operation to the configuration management module of the configuration center, providing data basis for the configuration management module to optimize and adjust the system; The log management module is used to record the device connection log, error information log, and system operation log of the data acquisition terminal, record various events and operation information during the operation of the data acquisition terminal, and feed it back to the configuration management module of the configuration center to provide data basis for the configuration management module to optimize and adjust the system; The configuration receiving module is used to receive the configuration file from the configuration management module of the configuration center to extract the equipment acquisition configuration; and after the configuration is modified by the configuration center, the configuration information in the running program of the data acquisition terminal is updated in real time; the configuration receiving module also has the function of equipment scanning and identification to timely identify the rehabilitation medical equipment connected to the data acquisition terminal, so that the rehabilitation medical equipment can be plug-and-play connected to collect data; The interface providing module is used to provide an interface according to the equipment acquisition configuration provided by the configuration receiving module, so as to realize the interaction between the data acquisition terminal and the data center, the interaction between the data acquisition terminal and the configuration center, and the interaction between the data acquisition terminal and the rehabilitation medical equipment according to the configuration file; The data analysis module is used to provide a connection between the module and the rehabilitation medical device through an interface, and analyze the data received from the rehabilitation medical device; The message encapsulation module is used to encapsulate the data parsed by the data parsing module in a predetermined data model to obtain a packaged message; The message upload module is used to send the message encapsulated by the message encapsulation module to the data center.
[0012] Preferably, the configuration receiving module is implemented based on a publish-subscribe model; during the startup phase of the acquisition program, the configuration receiving module actively pulls configuration information from the configuration center to complete the initialization operation; when the configuration of the configuration center changes, the configuration center will push the latest configuration information. At this time, after receiving the configuration update request, the configuration receiving module will passively accept instructions, execute the configuration update operation, and change the execution state of the acquisition thread of the rehabilitation medical device, so that the same acquisition terminal can flexibly receive data from different rehabilitation medical devices at the same time.
[0013] Preferably, a device association information table is pre-maintained in the configuration receiving module, which records in detail the mapping relationship between the MAC address and the corresponding rehabilitation medical device; the configuration receiving module determines the type of the data acquisition terminal through the MAC address of the rehabilitation medical device connected to the data acquisition terminal.
[0014] Preferably, a Map data structure is maintained in the interface providing module, and the device configuration information obtained from the configuration receiving module is placed in the Map data structure for maintenance and management; the Map data structure records in detail the configuration information of the rehabilitation medical equipment and the connection establishment status.
[0015] Preferably, to ensure the stability and reliability of the system, the device configuration in the Map data structure is periodically checked; If it is detected that the connection with the rehabilitation medical device has not been established, the interface providing module will promptly create an independent thread specifically for maintaining the connection of the rehabilitation medical device and subsequent data collection. This thread will create a connection channel that matches the rehabilitation medical device based on the protocol type specified in the configuration information.
[0016] Preferably, the interface providing module includes an IO interface provider; the IO interface provider encapsulates multiple communication protocols, and the establishment and maintenance of medical data downlink and uplink connections are implemented by the IO interface provider, and the establishment, reconnection and disconnection of different devices are isolated through threads.
[0017] Preferably, when a configuration update occurs, the Map data structure is also updated accordingly; if it is a new configuration, the interface providing module directly adds the new configuration information to the Map data structure; if it is a configuration update, the interface providing module first disconnects the previous connection and then replaces the previous configuration information in the Map data structure; if it is a configuration deletion, the interface providing module directly disconnects the connection and deletes the relevant configuration information in the Map data structure at the same time.
[0018] Preferably, the data parsing module obtains the connection with the rehabilitation medical equipment based on the IO interface provider of the interface providing module, and then reads the relevant data; after reading the original data, the data parsing module performs parsing operations on the data according to a predetermined protocol, and accurately selects the appropriate parsing method by identifying the protocol identifier or specific field structure in the data, so as to ensure that valuable information can be effectively extracted from the original data; the extracted information will be further sorted and packaged, and finally passed to the message encapsulation module.
[0019] Preferably, the data analysis module is responsible for segmenting the data stream through a thread, and segments the original continuous data stream according to predetermined rules and logic to make it into multiple data fragments suitable for subsequent processing; at the same time, the data analysis module maintains a data processing thread pool, and the segmented data will be forwarded to the data processing thread pool. Each thread in the data processing thread pool is specifically responsible for parsing these data fragments, thereby improving the efficiency of data analysis through parallel processing.
[0020] The method for a rehabilitation medical device Internet of Things data acquisition terminal of the present application, wherein the rehabilitation medical device Internet of Things includes a configuration center and a data center, and the data acquisition terminal includes: a status monitoring module, a log management module, a configuration receiving module, an interface providing module, a data parsing module, a message encapsulation module, and a message uploading module; The status monitoring module feeds back the software and hardware parameters of the data acquisition terminal during operation to the configuration management module of the configuration center, providing data basis for the configuration management module to optimize and adjust the system; The log management module records the device connection log, error information log, and system operation log of the data acquisition terminal, as well as various events and operation information during the operation of the data acquisition terminal, and feeds it back to the configuration management module of the configuration center, providing data basis for the configuration management module to optimize and adjust the system; The configuration receiving module receives the configuration file from the configuration management module of the configuration center and extracts the equipment acquisition configuration; and after the configuration is modified in the configuration center, the configuration information in the running program of the data acquisition terminal is updated in real time; the configuration receiving module also has the function of equipment scanning and identification, so as to timely identify the rehabilitation medical equipment connected to the data acquisition terminal, so that the rehabilitation medical equipment can be plug-and-play connected to collect data; The interface providing module provides an interface according to the equipment collection configuration provided by the configuration receiving module, realizes the interaction between the data collection terminal and the data center, the interaction between the data collection terminal and the configuration center, and realizes the interaction between the data collection terminal and the rehabilitation medical equipment according to the configuration file; The data analysis module provides a connection between the module and the rehabilitation medical device through an interface, and analyzes the data received from the rehabilitation medical device; The message encapsulation module encapsulates the data parsed by the data parsing module according to a predetermined data model to obtain a packaged message; The message uploading module sends the message encapsulated by the message encapsulation module to the data center.
[0021] The rehabilitation medical equipment IoT data acquisition terminal and method of the present application can be independently deployed in the edge computing gateway, and can achieve simultaneous connection and data acquisition of up to 16 medical devices. The data analysis and data standardization process is carried out in the acquisition terminal, without relying on the server. The acquisition terminal can perform data acquisition tasks completely independently and has 24-hour data backup and caching capabilities. The acquisition terminal can identify the medical device ID through MAC information through the linkage configuration center, add labels to the data, and solve the problem of data traceability. The acquisition terminal has a configuration management module that can accept configuration instructions issued by the configuration center. It can realize centralized and automatic configuration during the initial configuration and subsequent maintenance stages without manual on-site configuration. The acquisition terminal can also report the operating status information to the configuration center in real time, and monitor the entire life cycle of the acquisition terminal through the configuration center. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] Figure 1 This is the organizational chart of the Internet of Things for rehabilitation medical equipment; Figure 2 The architecture diagram of the rehabilitation medical equipment Internet of Things including the data collection terminal of the present application; Figure 3 This is a functional module structure diagram of the data acquisition terminal of this application; Figure 4 A flowchart for task distribution for the configuration center; Figure 5 The following is a flowchart of the configuration receiving module of the data acquisition terminal of the present application; Figure 6 This is a schematic diagram of a MAC address; Figure 7 Provides a workflow diagram of the module for the interface; Figure 8 This is the workflow diagram of the data analysis module; Fig. 9 This is a schematic diagram of the JSON data model; Fig.10 It is a schematic diagram of the HL7 data model; Fig.11 This is the workflow diagram of the message upload module. DETAILED DESCRIPTION
[0023] Below, the present application is described in detail with reference to the accompanying drawings.
[0024] The rehabilitation medical equipment data acquisition method and terminal implemented by the present invention are composed of acquisition software, host computer software, and its carrying hardware and communication network environment.
[0025] As the edge of the entire IoT system, medical equipment data collection software involves two layers: data perception layer and data aggregation layer. Multiple collection nodes are deployed on the edge instead of using servers to centrally access data. The main purpose is to sacrifice the simplicity of the architecture in exchange for the improvement of the stability, reliability, and scalability of the underlying data access.
[0026] like Figure 2 As shown, in the smart clinic, the original data of the rehabilitation medical monitoring or evaluation equipment / software is imported into the switch through the wireless network, and the original data is distributed on the switch and evenly distributed to each data acquisition terminal. The original data is standardized at the data acquisition terminal and submitted to the data center.
[0027] The configuration management module is located in the configuration center and is used to provide important parameters for data collection of designated medical equipment. By submitting a form and entering a configuration, the management module distributes the configuration based on the computing and storage resources of each terminal, involving a task distribution algorithm based on computing and storage resources. The algorithm idea is as follows:
[0028] Data collection, parsing, packaging, and forwarding involve the creation and destruction of a large number of "objects", which are CPU and memory intensive tasks. Task distribution is based on CPU and memory supply and demand: Residue vector: x = [ x 1 x 2 x 3 … x n ] , x represents the remaining memory of each acquisition terminal. The memory of acquisition terminals with the same configuration varies during operation.
[0029] Increment vector: y = [ y 1 y 2 y 3 … y m ] , y represents the memory required by the newly added medical equipment. y comes from the long-term feedback of the status monitoring module.
[0030] Sufficient margin, using the maximum resource occupancy priority algorithm to distribute tasks to each service to ensure the best performance; Insufficient margin, the multi-dimensional packing problem is introduced into the algorithm to ensure the maximum number of connected devices.
[0031] The configuration receiving module plays a vital role in the entire system. Its core functions include receiving the configuration file from the configuration center to initialize the acquisition program, and after the configuration center modifies the configuration, it can update the configuration information in the running program in real time, so as to achieve the purpose of flexible update of the acquisition device data. In addition, the module also has the ability to scan and identify equipment, giving the medical device the characteristics of plug-and-play access to collect data. The implementation logic of this module: Based on the publish-subscribe model, during the startup phase of the acquisition program, the module will actively pull the configuration information from the configuration center to complete the initialization operation. When the configuration of the configuration center changes, the configuration center will push the latest configuration information. At this time, after receiving the configuration update request, the configuration receiving module will passively accept the instruction and then execute the configuration update operation. This process will directly change the execution state of the acquisition thread of the specified device, covering the addition, modification and deletion of the acquisition thread, and finally enable the same acquisition terminal to flexibly receive data from different medical devices at the same time.
[0032] In the device scanning and identification part, first of all, it is necessary to maintain a device association information table in advance, which records in detail the mapping relationship between the MAC address and the corresponding device. In view of the diversity of medical devices, not all medical devices naturally have MAC addresses. To this end, a universal adapter device (such as CPE) is used to connect the medical device to the network, and the MAC address of the adapter device is bound to the medical device. When the acquisition terminal device is connected to the network environment of the subnet where the device is located, the acquisition program is started, and then all IPs of the subnet are traversed according to the predetermined period through the scanning tool method, and the MAC address of the corresponding IP is obtained with the help of the ARP (Address Resolution Protocol) protocol instruction of the operating system. Then, the MAC address that has been registered as a medical device is extracted from the acquired device association information table (the remaining MAC addresses may be other network devices), and the medical devices connected to the subnet environment are determined in this way. Finally, through the task allocation algorithm in the configuration management module, the medical device configuration is matched to the corresponding acquisition terminal, and the active pull of the configuration is realized when the acquisition terminal is started.
[0033] The specific interaction steps are as follows: Figure 5 , pull the configured instructions to complete the service registration.
[0034] The main purpose of the interface providing module is to effectively solve the development complexity problems caused by protocol differences. Specifically, after obtaining the device acquisition configuration provided by the configuration receiving module, this module will carry out an in-depth analysis and processing flow of the device configuration. According to the different protocol configurations received, this module can accurately establish corresponding connections, thereby providing indispensable pre-support for the data analysis module. This design makes it unnecessary for the data analysis module to pay attention to connection-related information such as data interface transmission protocol, client or server, and thus can focus all its energy on the data analysis task itself.
[0035] In the case of multiple devices and multiple communication protocols access, except for the way of establishing data channels, the rest of the business logic is similar, including timeout setting, disconnection reconnection, upstream and downstream interface configuration, buffer setting, etc. These functions will be concentrated in the same method body for driver development to call.
[0036] The implementation logic of this module is as follows: First, the device configuration information obtained from the configuration receiving module will be placed in a Map data structure for maintenance and management. The Map records in detail key contents including the configuration information of the medical device and the connection establishment status. At the same time, in order to ensure the stability and reliability of the system, the device configuration in the Map will be periodically checked. During the inspection process, if it is found that there is a failure to successfully establish a connection with the device to be collected, the module will immediately start the reconnection operation.
[0037] Whenever the Map is checked, if it is detected that there is a situation where the device connection has not been established, the module will immediately create an independent thread specifically for maintaining the connection of the device and subsequent data collection. This thread will create a connection channel that matches the device according to the protocol type specified in the configuration information (such as TCP, HTTP, etc.). Because the underlying data access of the Internet of Things involves many communication protocols, such as TCP, UDP, HTTP, MQTT, serial data interface, Bluetooth, RFID, etc., in order to make the acquisition driver development more concise and efficient, an IO interface provider is defined. The IO interface provider encapsulates common communication protocols, and concentrates the establishment and maintenance of medical data downlink (raw data) and uplink (standardized message) connections in the same method, and isolates the establishment, reconnection, and disconnection of different devices through threads. Through this interface, developers do not need to carry out complex development work for different communication protocols separately, but only need to call a unified interface to achieve data access and transmission. At the same time, the operations of different devices are isolated, reducing the risk of the entire system crashing due to problems with a certain device. If a failure occurs when trying to establish a connection, the module will try to establish a connection again after a preset period of time, and will continue this process until the connection is successfully established.
[0038] The establishment of the uplink connection channel in this module also has the ability to reconnect. For this purpose, a separate thread will be arranged to check the connection status at a fixed period. Once a disconnection is detected, the thread will trigger a reconnection operation to ensure that the data can be successfully uploaded to the platform.
[0039] After the channel connecting to the device is successfully established, a device acquisition object will be further created. The main responsibility of the device acquisition object is to receive data from the device and perform corresponding processing operations on the received data.
[0040] When the system has a configuration update, the previously maintained Map object will also be updated accordingly. Specifically, if the configuration is newly added, the module will directly add the new configuration information to the Map; if the configuration is updated, the previous connection will be disconnected first, and then the previous configuration information in the Map will be replaced; when the configuration is deleted, the module will directly disconnect the connection and delete the relevant configuration information in the Map at the same time. After the configuration update operation in the Map is completed, the corresponding connection will be re-established when the Map performs a periodic check next time, so as to ensure that the device connection can complete the update operation in a timely and accurate manner, thereby ensuring the stable operation of the entire system and efficient data transmission.
[0041] The core function of the data analysis module is to focus on the analysis and processing of the data itself, so as to provide accurate and valuable data support for subsequent modules.
[0042] The module obtains the device connection based on the IO interface provider of the interface provider module, and then reads the relevant data. After reading the raw data, the module strictly parses the data according to the protocol agreed in advance by each manufacturer. This parsing operation is not generalized, but is targeted at the protocol characteristics of different manufacturers. By identifying the protocol identifier or specific field structure in the data, the appropriate parsing method is accurately selected to ensure that valuable information can be effectively extracted from the raw data. The extracted valuable information will be further sorted and packaged, and finally passed to the message encapsulation module, providing a key data foundation for the entire data processing process.
[0043] In terms of implementation logic, the module will pre-formulate data parsing logic according to the protocol parsing rules provided by the manufacturer. In order to improve the data parsing rate and meet the system's demand for rapid processing of large amounts of data, it supports parallel parsing capabilities. The specific implementation method is: a dedicated thread is responsible for segmenting the data stream, and the original continuous data stream is segmented and processed according to certain rules and logic to make it into multiple data fragments suitable for subsequent processing. At the same time, a data processing thread pool is specially maintained, and the segmented data will be forwarded to the thread pool. Each thread in the thread pool is responsible for parsing these data fragments. Through this parallel processing method, the efficiency of data parsing can be improved. When a treatment process or a certain stage is completed, the relevant data of the parallel parsing is merged and pushed to the message upload module through data merging.
[0044] The message encapsulation module provides a medical device data model, receives the processed data provided by the data parsing module, and pre-processes the data according to the specific medical device data model, including format adjustment, adding identification information, etc., to provide the message upload module with the required message standard encapsulation. While pre-processing the data, it solves the problem of poor data diversion received by the data center. The implementation logic of this module: encapsulate according to the established data model, convert the data into a specific format (such as HL7 or JSON), and add necessary identification information such as device number, collection time, etc., so that the data center can identify and process the data. The HL7 standard encapsulation is used for first aid equipment and some evaluation equipment used for monitoring. A custom data standard is defined for most rehabilitation evaluation equipment.
[0045] The message upload module supports concurrent processing based on the message standard encapsulation provided by the message encapsulation module, and uploads data to the server through the network communication protocol (such as TCP / IP). In the case of network failure, it supports storing data in the local cache and uploading it after the network is restored. The implementation logic of this module is as follows: First, it will maintain an upstream TCP connection pool with the data receiving end. The connection pool will be maintained regularly. Once the connection in the connection pool is found to be disconnected, it will automatically reconnect to ensure that the connection in the connection pool is available. After multiple concurrently executed data encapsulation modules process them into standard encapsulation messages, they are placed in a special data processing queue. The queue is a separate thread dedicated to data consumption processing. When the uploaded data is uploaded, an available connection will be taken out of the connection pool first. If the connection is disconnected at this time, the local save mode will be triggered, and the data will be temporarily saved locally (such as sqlite). During the connection pool maintenance process, when the disconnected connection is found to be restored, the device data corresponding to the connection will be found from the local storage, and the retransmission operation will be performed, and then the local data will be deleted to ensure the integrity and security of the data.
[0046] Status monitoring provides real-time feedback on the hardware and software parameters of the terminal during operation. The data collected includes but is not limited to the CPU usage, memory occupancy, disk usage, program heap memory occupancy, network status, data uplink and downlink transmission rates, etc. of the terminal device. This module provides data basis for the configuration management module to optimize and adjust the system. The code logic of this module is: obtain relevant parameters through the hardware monitoring interface and software status monitoring function at the bottom of the system. For example, use the API provided by the operating system to obtain CPU usage and memory information, and obtain network status information through the network driver interface. Arrange and format the various parameters obtained and send them to the configuration management module according to the predetermined communication protocol.
[0047] The log management module mainly records the device connection log, error information log, and system operation log, which records various events and operation information during the terminal operation, such as program startup, stop, data collection start and end, error time and location, etc., for system troubleshooting, performance analysis, and operation audit. Provide data basis for the configuration management module to optimize and adjust the system. The implementation logic of this module is: use SLF4J and Log4j log components, insert log recording code at the key execution points of the program and where errors may occur. Use log library functions to record log information. Log information usually contains timestamps, event types, related module names, and detailed descriptions. Log files can be classified and stored by date, module, or event type for easy query and analysis.
[0048] Unless otherwise defined, all technical and / or scientific terms used in this application have the same meaning as commonly understood by one of ordinary skill in the art to which the invention relates. The materials, methods and examples mentioned in this application are illustrative only and not limiting.
[0049] Although the present invention has been described in conjunction with specific embodiments, within the spirit of the invention of this application, those skilled in the art may make appropriate substitutions, modifications and changes, and such substitutions, modifications and changes still fall within the scope of protection of this application.
Claims
1. A rehabilitation medical equipment Internet of Things data acquisition terminal, wherein: The rehabilitation medical equipment Internet of Things includes a configuration center and a data center, and the data acquisition terminal includes: a status monitoring module, a log management module, a configuration receiving module, an interface providing module, a data parsing module, a message encapsulation module, and a message uploading module; The status monitoring module is used to feed back the software and hardware parameters of the data acquisition terminal during operation to the configuration management module of the configuration center, providing data basis for the configuration management module to optimize and adjust the system; The log management module is used to record the device connection log, error information log, and system operation log of the data acquisition terminal, record various events and operation information during the operation of the data acquisition terminal, and feed it back to the configuration management module of the configuration center to provide data basis for the configuration management module to optimize and adjust the system; The configuration receiving module is used to receive the configuration file from the configuration management module of the configuration center to extract the equipment acquisition configuration; and after the configuration is modified by the configuration center, the configuration information in the running program of the data acquisition terminal is updated in real time; the configuration receiving module also has the function of equipment scanning and identification to timely identify the rehabilitation medical equipment connected to the data acquisition terminal, so that the rehabilitation medical equipment can be plug-and-play connected to collect data; The interface providing module is used to provide an interface according to the equipment acquisition configuration provided by the configuration receiving module, so as to realize the interaction between the data acquisition terminal and the data center, the interaction between the data acquisition terminal and the configuration center, and the interaction between the data acquisition terminal and the rehabilitation medical equipment according to the configuration file; The data analysis module is used to provide a connection between the module and the rehabilitation medical device through an interface, and analyze the data received from the rehabilitation medical device; The message encapsulation module is used to encapsulate the data parsed by the data parsing module in a predetermined data model to obtain a packaged message; The message upload module is used to send the message encapsulated by the message encapsulation module to the data center.
2. The rehabilitation medical equipment Internet of Things data acquisition terminal according to claim 1, characterized in that: The configuration receiving module is implemented based on the publish-subscribe model; during the startup phase of the acquisition program, the configuration receiving module actively pulls configuration information from the configuration center to complete the initialization operation; when the configuration of the configuration center changes, the configuration center will push the latest configuration information. At this time, after receiving the configuration update request, the configuration receiving module will passively accept instructions and execute the configuration update operation, changing the execution state of the acquisition thread of the rehabilitation medical device, so that the same acquisition terminal can flexibly receive data from different rehabilitation medical devices at the same time.
3. The rehabilitation medical equipment Internet of Things data acquisition terminal according to claim 1, characterized in that: A device association information table is pre-maintained in the configuration receiving module, which records in detail the mapping relationship between the MAC address and the corresponding rehabilitation medical device; the configuration receiving module determines the type of the data acquisition terminal through the MAC address of the rehabilitation medical device connected to the data acquisition terminal.
4. The rehabilitation medical equipment Internet of Things data acquisition terminal according to claim 1, characterized in that: A Map data structure is maintained in the interface providing module, and the device configuration information obtained from the configuration receiving module will be placed in the Map data structure for maintenance and management; the Map data structure records in detail the configuration information of the rehabilitation medical equipment and the connection establishment status.
5. The rehabilitation medical equipment Internet of Things data acquisition terminal according to claim 4, characterized in that: To ensure the stability and reliability of the system, the device configuration in the Map data structure will be periodically checked; If it is detected that the connection with the rehabilitation medical device has not been established, the interface providing module will promptly create an independent thread specifically for maintaining the connection of the rehabilitation medical device and subsequent data collection. This thread will create a connection channel that matches the rehabilitation medical device based on the protocol type specified in the configuration information.
6. The rehabilitation medical equipment Internet of Things data acquisition terminal according to claim 5, characterized in that: The interface providing module includes an IO interface provider; the IO interface provider encapsulates multiple communication protocols, and the establishment and maintenance of medical data downlink and uplink connections are implemented by the IO interface provider, and the establishment, reconnection and disconnection of different devices are isolated through threads.
7. The rehabilitation medical equipment Internet of Things data acquisition terminal according to claim 4, characterized in that: When a configuration update occurs, the Map data structure is also updated accordingly; if a configuration is added, the interface providing module directly adds the new configuration information to the Map data structure; if a configuration update occurs, the interface providing module first disconnects the previous connection and then replaces the previous configuration information in the Map data structure; If it is configuration deletion, the interface providing module directly disconnects the connection and deletes the relevant configuration information in the Map data structure at the same time.
8. The rehabilitation medical equipment Internet of Things data acquisition terminal according to claim 6, characterized in that: The data parsing module obtains the connection with the rehabilitation medical equipment based on the IO interface provider of the interface provider module, and then reads the relevant data; after reading the original data, the data parsing module performs parsing operations on the data according to the predetermined protocol, and accurately selects the appropriate parsing method by identifying the protocol identifier or specific field structure in the data to ensure that valuable information can be effectively extracted from the original data; the extracted information will be further sorted and packaged, and finally passed to the message encapsulation module.
9. The rehabilitation medical equipment Internet of Things data acquisition terminal according to claim 8, characterized in that: The data parsing module is responsible for segmenting the data stream through a thread, segmenting the original continuous data stream according to predetermined rules and logic, so that it becomes multiple data fragments suitable for subsequent processing; at the same time, the data parsing module maintains a data processing thread pool, and the segmented data will be forwarded to the data processing thread pool. Each thread in the data processing thread pool is specifically responsible for parsing these data fragments, thereby improving the efficiency of data parsing through parallel processing.
10. A method for a rehabilitation medical equipment Internet of Things data collection terminal, wherein: The rehabilitation medical equipment Internet of Things includes a configuration center and a data center, and the data acquisition terminal includes: a status monitoring module, a log management module, a configuration receiving module, an interface providing module, a data parsing module, a message encapsulation module, and a message uploading module; The status monitoring module feeds back the software and hardware parameters of the data acquisition terminal during operation to the configuration management module of the configuration center, providing data basis for the configuration management module to optimize and adjust the system; The log management module records the device connection log, error information log, and system operation log of the data acquisition terminal, as well as various events and operation information during the operation of the data acquisition terminal, and feeds it back to the configuration management module of the configuration center, providing data basis for the configuration management module to optimize and adjust the system; The configuration receiving module receives the configuration file from the configuration management module of the configuration center and extracts the equipment acquisition configuration; and after the configuration is modified in the configuration center, the configuration information in the running program of the data acquisition terminal is updated in real time; the configuration receiving module also has the function of equipment scanning and identification, so as to timely identify the rehabilitation medical equipment connected to the data acquisition terminal, so that the rehabilitation medical equipment can be plug-and-play connected to collect data; The interface providing module provides an interface according to the equipment collection configuration provided by the configuration receiving module, realizes the interaction between the data collection terminal and the data center, the interaction between the data collection terminal and the configuration center, and realizes the interaction between the data collection terminal and the rehabilitation medical equipment according to the configuration file; The data analysis module provides a connection between the module and the rehabilitation medical device through an interface, and analyzes the data received from the rehabilitation medical device; The message encapsulation module encapsulates the data parsed by the data parsing module according to a predetermined data model to obtain a packaged message; The message uploading module sends the message encapsulated by the message encapsulation module to the data center.