






技术领域technical field
本发明属于医疗设备数据通信技术领域,尤其涉及一种基于IEEE11073标准的医疗设备信息交互系统及方法。The invention belongs to the technical field of medical equipment data communication, and in particular relates to a medical equipment information exchange system and method based on the IEEE11073 standard.
背景技术Background technique
目前,智能居家健康系统已经取得了重大的发展,其中一个最具有意义的成果是ISO/IEEE 11073(简称X73)系列标准的提出,该标准制定了医疗设备和智能终端设备的通信规范,使数据能在医疗设备和智能终端之间实现无缝传输,不受设备各自特性与数据格式的限制,有效提高了医疗设备和智能终端之间的互操作性。尽管X73系列标准定义了医疗设备和智能终端的互操作性标准,但其并没有定义医疗设备之间的通信规范,没有解决医疗设备之间的通信交互问题。At present, the smart home health system has achieved significant development, and one of the most meaningful results is the ISO/IEEE 11073 (X73 for short) series of standards, which formulates communication specifications for medical equipment and smart terminal equipment, enabling data It can realize seamless transmission between medical equipment and intelligent terminals, and is not limited by the respective characteristics and data formats of the equipment, which effectively improves the interoperability between medical equipment and intelligent terminals. Although the X73 series of standards defines the interoperability standards for medical devices and smart terminals, it does not define the communication specifications between medical devices and does not solve the problem of communication interaction between medical devices.
智能居家健康系统包含多种医疗设备,例如心电监测仪、心率监测仪、血氧仪、血压计等,这些医疗设备都属于传感器,采集用户的生理数据然后传送到医疗数据中心进行分析和处理。要想让智能居家健康系统更方便、更智能地供人们使用,就需要将医疗设备通过网络互相连接起来,由于医疗设备之间没有定义通信规范,医疗设备之间很难进行交互,信息流动性差,降低了系统的使用体验。The smart home health system includes a variety of medical equipment, such as ECG monitors, heart rate monitors, oximeters, sphygmomanometers, etc. These medical devices are all sensors that collect the user's physiological data and then transmit it to the medical data center for analysis and processing. . In order to make the smart home health system more convenient and smarter for people to use, it is necessary to connect medical devices to each other through the network. Since there is no communication specification defined between medical devices, it is difficult for medical devices to interact with each other, and information flow is poor. , which reduces the user experience of the system.
目前相关的研究工作还处于起步阶段,早期市场将总线技术应用到医疗设备之间的通信中,CAN总线是一种流行的现场总线,任何CAN节点都可以装载到一个CAN网络中,CAN协议是一个开放的体系,可根据CAN协议来定义符合需求的高级应用,但CAN是一个比较基础的协议,只定义了OSI中的数据链路层和物理层,如果要开发更高级的应用则需要通过CAL(CAN application layer)来实现,各厂商可以在CAN协议的基础上开发自己的高级应用层协议,这就导致各厂商的CAL协议不同,部件供应商不得不针对各个CAL协议开发产品,且节点通信需要专用的通信线路,安装调试成本高,不利于市场推广。在软件层面的解决方案,其中一个是通过MQTT(Message Queuing Telemetry Transport)协议来完成设备之间的通信,MQTT在TCP/IP协议之上,是一种基于发布/订阅模式的轻量级通讯协议,它可以通过很少的代码和带宽和远程设备交互,在医疗设备、智能家居等一些小型化设备中被广泛应用。At present, the related research work is still in its infancy. The early market applies bus technology to the communication between medical equipment. CAN bus is a popular field bus. Any CAN node can be loaded into a CAN network. The CAN protocol is An open system that can define advanced applications that meet the requirements according to the CAN protocol, but CAN is a relatively basic protocol that only defines the data link layer and physical layer in OSI. If you want to develop more advanced applications, you need to pass CAL (CAN application layer) is implemented. Each manufacturer can develop its own advanced application layer protocol on the basis of the CAN protocol, which leads to different CAL protocols of various manufacturers. Component suppliers have to develop products for each CAL protocol, and node Communication requires a dedicated communication line, and the installation and debugging costs are high, which is not conducive to market promotion. One of the solutions at the software level is to complete the communication between devices through the MQTT (Message Queuing Telemetry Transport) protocol. MQTT is a lightweight communication protocol based on the publish/subscribe model on top of the TCP/IP protocol. , it can interact with remote devices with very little code and bandwidth, and is widely used in some miniaturized devices such as medical equipment and smart homes.
随着X73系列协议的发展和推广,市场中越来越多符合X73系列协议的医疗设备出现,康体佳联盟(Continua Health Alliance)是一个采用X73系列协议作为主要协议栈的国际联盟,它的使命是建立互操作性强的个人医疗健康生态系统,目前联盟的成员包括英特尔、飞利浦、夏普、联合健康集团等220个公司,X73系列协议的普及已成为必然趋势,而目前的研究并没有针对X73系列协议给出医疗设备之间互操作性的解决方案,X73医疗设备之间不能有效地进行交互。With the development and promotion of the X73 series of protocols, more and more medical devices complying with the X73 series of protocols appear in the market. Continua Health Alliance is an international alliance that adopts the X73 series of protocols as the main protocol stack. Its mission It is to establish a highly interoperable personal medical and health ecosystem. At present, the members of the alliance include 220 companies such as Intel, Philips, Sharp, and UnitedHealth Group. The popularization of X73 series protocols has become an inevitable trend, and the current research does not target X73 A series of protocols give solutions for interoperability between medical devices, and X73 medical devices cannot interact effectively.
发明内容SUMMARY OF THE INVENTION
本发明的发明目的是:为了解决现有技术中X73医疗设备之间不能有效地进行交互等问题,本发明提出了一种基于IEEE11073标准的医疗设备信息交互系统及方法。The purpose of the invention is as follows: in order to solve the problem that the X73 medical equipment cannot effectively interact with each other in the prior art, the present invention proposes a medical equipment information exchange system and method based on the IEEE11073 standard.
本发明的技术方案是:一种基于IEEE11073标准的医疗设备信息交互系统,包括The technical scheme of the present invention is: a medical equipment information exchange system based on the IEEE11073 standard, comprising:
主设备,用于采集用户健康数据,基于IEEE11073标准将用户健康数据作为IEEE11073消息发送至智能网关;The main device is used to collect user health data and send the user health data as IEEE11073 messages to the intelligent gateway based on the IEEE11073 standard;
智能网关,用于将各种IEEE11073消息设定为对应的事件,将各种IEEE11073消息按照预设规则进行组合为消息队列并设定为响应事件;接收所述主设备发送的IEEE11073消息并与设定的事件进行匹配,根据匹配结果触发回调函数通知响应事件,再根据响应事件对应的消息队列生成IEEE11073消息,将IEEE11073消息发送至从设备;The intelligent gateway is used to set various IEEE11073 messages as corresponding events, combine various IEEE11073 messages into message queues according to preset rules and set them as response events; receive IEEE11073 messages sent by the master device and communicate with the device. Matches a predetermined event, triggers a callback function to notify the response event according to the matching result, and then generates an IEEE11073 message according to the message queue corresponding to the response event, and sends the IEEE11073 message to the slave device;
从设备,用于接收所述智能网关发送的IEEE11073消息并进行处理。The slave device is used to receive and process the IEEE11073 message sent by the intelligent gateway.
进一步地,所述主设备将IEEE11073消息发送至智能网关具体采用Agent-initiated模式,主动向智能网关发起数据传输请求。Further, the master device sends the IEEE11073 message to the intelligent gateway in an Agent-initiated mode, and actively initiates a data transmission request to the intelligent gateway.
进一步地,所述智能网关采用智能移动端,所述智能移动端采用蓝牙网络、GMS网络、WIFI网络或USB分别与主设备和从设备进行数据通信。Further, the intelligent gateway adopts an intelligent mobile terminal, and the intelligent mobile terminal adopts a Bluetooth network, a GMS network, a WIFI network or a USB to perform data communication with the master device and the slave device respectively.
进一步地,所述智能网关包括IEEE11073协议栈和应用层;所述IEEE11073协议栈用于设定事件,接收所述主设备发送的IEEE11073消息并与设定的事件进行匹配,再根据匹配结果判断是否触发应用层的回调函数,以及接收应用层生成的IEEE11073消息并发送至从设备;所述应用层用于设定响应事件,将触发的回调函数关联到设定的响应事件,再根据该响应事件对应的消息队列生成IEEE11073消息,将IEEE11073消息发送至IEEE11073协议栈。Further, the intelligent gateway includes an IEEE11073 protocol stack and an application layer; the IEEE11073 protocol stack is used to set an event, receive an IEEE11073 message sent by the master device and match with the set event, and then judge whether or not according to the matching result. Trigger the callback function of the application layer, and receive the IEEE11073 message generated by the application layer and send it to the slave device; the application layer is used to set the response event, associate the triggered callback function with the set response event, and then according to the response event The corresponding message queue generates an IEEE11073 message, and sends the IEEE11073 message to the IEEE11073 protocol stack.
进一步地,所述IEEE11073协议栈包括服务模型、域信息模型和通信模型,其通过在通信模型中增加了事件匹配逻辑进行扩展。Further, the IEEE11073 protocol stack includes a service model, a domain information model and a communication model, which are extended by adding event matching logic to the communication model.
进一步地,所述从设备接收所述智能网关发送的IEEE11073消息具体采用Manager-initiated模式,被动接收智能网关发送的IEEE11073消息。Further, the slave device receiving the IEEE11073 message sent by the intelligent gateway specifically adopts the Manager-initiated mode, and passively receives the IEEE11073 message sent by the intelligent gateway.
为了对本发明作进一步说明,本发明还提出了一种基于IEEE11073标准的医疗设备信息交互方法,包括以下步骤:In order to further illustrate the present invention, the present invention also proposes a medical device information interaction method based on the IEEE11073 standard, comprising the following steps:
A、利用主设备采集用户健康数据,基于IEEE11073标准将用户健康数据作为IEEE11073消息发送至智能网关;A. Use the main device to collect user health data, and send the user health data as an IEEE11073 message to the intelligent gateway based on the IEEE11073 standard;
B、利用智能网关的IEEE11073协议栈接收所述主设备发送的IEEE11073消息;B, utilize the IEEE11073 protocol stack of the intelligent gateway to receive the IEEE11073 message sent by the master device;
C、利用智能网关的IEEE11073协议栈设定事件,判断IEEE11073消息是否与设定的事件匹配;若是,则进行步骤D;若否,则进行B;C, utilize the IEEE11073 protocol stack of the intelligent gateway to set the event, and judge whether the IEEE11073 message matches the set event; if so, proceed to step D; if not, proceed to B;
D、利用智能网关的IEEE11073协议栈根据完成匹配的事件触发智能网关的应用层的回调函数;D, utilize the IEEE11073 protocol stack of the intelligent gateway to trigger the callback function of the application layer of the intelligent gateway according to the matched event;
E、利用智能网关的应用层设定响应事件,将触发的回调函数关联到设定的响应事件,再根据该响应事件对应的消息队列生成IEEE11073消息,将IEEE11073消息发送至IEEE11073协议栈;E. Use the application layer of the intelligent gateway to set the response event, associate the triggered callback function with the set response event, and then generate an IEEE11073 message according to the message queue corresponding to the response event, and send the IEEE11073 message to the IEEE11073 protocol stack;
F、利用智能网关的IEEE11073协议栈接收应用层生成的IEEE11073消息并发送至从设备;F, utilize the IEEE11073 protocol stack of the intelligent gateway to receive the IEEE11073 message generated by the application layer and send it to the slave device;
G、利用从设备接收智能网关发送的IEEE11073消息并进行处理。G. Use the slave device to receive and process the IEEE11073 message sent by the intelligent gateway.
进一步地,所述主设备将IEEE11073消息发送至智能网关具体采用Agent-initiated模式,主动向智能网关发起数据传输请求。Further, the master device sends the IEEE11073 message to the intelligent gateway in an Agent-initiated mode, and actively initiates a data transmission request to the intelligent gateway.
进一步地,所述智能网关采用智能移动端,所述智能移动端采用蓝牙网络、GMS网络、WIFI网络或USB分别与主设备和从设备进行数据通信。Further, the intelligent gateway adopts an intelligent mobile terminal, and the intelligent mobile terminal adopts a Bluetooth network, a GMS network, a WIFI network or a USB to perform data communication with the master device and the slave device respectively.
进一步地,所述从设备接收所述智能网关发送的IEEE11073消息具体采用Manager-initiated模式,被动接收智能网关发送的IEEE11073消息。Further, the slave device receiving the IEEE11073 message sent by the intelligent gateway specifically adopts the Manager-initiated mode, and passively receives the IEEE11073 message sent by the intelligent gateway.
本发明具有以下有益效果:(1)解决了X73医疗设备之间互操作性的问题,对X73医疗设备具有普遍适用性;The invention has the following beneficial effects: (1) the problem of interoperability between X73 medical equipment is solved, and the X73 medical equipment is universally applicable;
(2)IEEE11073协议栈,在通信模型中增加事件匹配逻辑,可以快速地将X73消息匹配为事件;(2) IEEE11073 protocol stack, adding event matching logic in the communication model, can quickly match X73 messages as events;
(3)通过回调函数连接事件和响应事件,软件架构规模小,开发成本低;(3) Connect events and response events through callback functions, the software architecture is small in scale and the development cost is low;
(4)通过设定X73消息组合为响应事件,降低了X73协议的复杂性;(4) By setting the X73 message combination as a response event, the complexity of the X73 protocol is reduced;
(5)设定响应事件对应的消息队列,方便传输的同时还降低了数据传输过程中丢失的风险;(5) Setting the message queue corresponding to the response event, which facilitates transmission and reduces the risk of data loss during data transmission;
(6)合理定义事件和响应事件,用户可以避免直接处理X73消息,给用户提供了良好的接口;(6) Reasonably define events and response events, users can avoid directly processing X73 messages, and provide users with a good interface;
(7)使用智能移动端作为网关,可以不用额外的硬件设备,节省了成本。(7) Using the intelligent mobile terminal as the gateway can save the cost without additional hardware equipment.
附图说明Description of drawings
图1是本发明的基于IEEE11073标准的医疗设备信息交互系统的结构示意图。FIG. 1 is a schematic structural diagram of a medical equipment information exchange system based on the IEEE11073 standard of the present invention.
图2是本发明实施例中系统框架结构示意图。FIG. 2 is a schematic structural diagram of a system framework in an embodiment of the present invention.
图3是本发明实施例中数据传输模式示意图。FIG. 3 is a schematic diagram of a data transmission mode in an embodiment of the present invention.
图4是本发明的IEEE11073协议栈的通信模型示意图。FIG. 4 is a schematic diagram of the communication model of the IEEE11073 protocol stack of the present invention.
图5是本发明实施例中睡眠呼吸机DIM结构示意图。FIG. 5 is a schematic structural diagram of a DIM of a sleep ventilator in an embodiment of the present invention.
图6是本发明的基于IEEE11073标准的医疗设备信息交互方法的流程示意图。FIG. 6 is a schematic flowchart of a medical device information exchange method based on the IEEE11073 standard of the present invention.
图7是本发明实施例中数据交互时序示意图。FIG. 7 is a schematic diagram of a data interaction sequence in an embodiment of the present invention.
具体实施方式Detailed ways
为了使本发明的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本发明进行进一步详细说明。应当理解,此处所描述的具体实施例仅用以解释本发明,并不用于限定本发明。In order to make the objectives, technical solutions and advantages of the present invention clearer, the present invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention, but not to limit the present invention.
如图1所示,为本发明的基于IEEE11073标准的医疗设备信息交互系统的结构示意图。一种基于IEEE11073标准的医疗设备信息交互系统,包括As shown in FIG. 1 , it is a schematic structural diagram of the medical equipment information interaction system based on the IEEE11073 standard of the present invention. A medical equipment information exchange system based on the IEEE11073 standard, including
主设备,用于采集用户健康数据,基于IEEE11073标准将用户健康数据作为IEEE11073消息发送至智能网关;The main device is used to collect user health data and send the user health data as IEEE11073 messages to the intelligent gateway based on the IEEE11073 standard;
智能网关,用于将各种IEEE11073消息设定为对应的事件,将各种IEEE11073消息按照预设规则进行组合为消息队列并设定为响应事件;接收所述主设备发送的IEEE11073消息并与设定的事件进行匹配,根据匹配结果触发回调函数通知响应事件,再根据响应事件对应的消息队列生成IEEE11073消息,将IEEE11073消息发送至从设备;The intelligent gateway is used to set various IEEE11073 messages as corresponding events, combine various IEEE11073 messages into message queues according to preset rules and set them as response events; receive IEEE11073 messages sent by the master device and communicate with the device. Matches a predetermined event, triggers a callback function to notify the response event according to the matching result, and then generates an IEEE11073 message according to the message queue corresponding to the response event, and sends the IEEE11073 message to the slave device;
从设备,用于接收所述智能网关发送的IEEE11073消息并进行处理。The slave device is used to receive and process the IEEE11073 message sent by the intelligent gateway.
本发明的基于IEEE11073标准的医疗设备信息交互系统包括Agent和Manager。Agent是数据的来源,通常采用多种传感器;Manager是负责接收传感器发出的数据,Agent和Manager之间的数据传输可以由任何一方发起。在本发明中,医疗设备作为X73的Agent端,主动发起数据传输的作为主设备,被动接收数据的作为从设备,一个Agent主动发起数据传输时为主设备,当它被动接收数据时则作为从设备。智能网关作为X73的Manager端和系统中央处理模块,连接主设备和从设备。X73消息可以通过TCP/IP、无线蓝牙、USB、GMS网络、WIFI网络等方式进行传输,智能网关可以采用PC电脑、平板电脑、智能手机等;优选地,本发明将智能手机作为智能网关的实现终端,将智能手机作为Manager具有便携型的优势,而且支持GSM(Global System for Mobile Communication)网络或Wi-Fi网络,可以全天候提供网络服务,心电监测仪、心率检测仪等需要用户随身携带的医疗设备可以通过智能手机进行数据传输,而且目前的智能手机大部分都支持蓝牙,蓝牙的HDP服务是面向X73协议开发的,使用IEEE11073-20601和IEEE11073-104zz(zz=01-99)作为数据交换协议,可以用于传输各种X73医疗设备的数据。The medical equipment information exchange system based on the IEEE11073 standard of the present invention includes an Agent and a Manager. Agent is the source of data, usually using a variety of sensors; Manager is responsible for receiving data from sensors, and data transmission between Agent and Manager can be initiated by any party. In the present invention, the medical device acts as the Agent of X73, the one that actively initiates data transmission is the master device, and the one that passively receives data is the slave device. When an Agent actively initiates data transmission, it is the master device, and when it passively receives data, it is the slave device. equipment. The intelligent gateway acts as the Manager end of X73 and the central processing module of the system, connecting the master device and the slave device. The X73 message can be transmitted through TCP/IP, wireless bluetooth, USB, GMS network, WIFI network, etc., and the intelligent gateway can use PC computer, tablet computer, smart phone, etc.; preferably, the present invention uses the smart phone as the realization of the smart gateway The terminal, using the smartphone as the Manager, has the advantage of being portable, and supports the GSM (Global System for Mobile Communication) network or Wi-Fi network, and can provide network services around the clock. Medical equipment can transmit data through smart phones, and most of the current smart phones support Bluetooth. The HDP service of Bluetooth is developed for the X73 protocol, using IEEE11073-20601 and IEEE11073-104zz (zz=01-99) as data exchange A protocol that can be used to transmit data from various X73 medical devices.
在数据处理上,本发明通过在通信模型中增加了事件匹配逻辑,对IEEE11073协议栈进行了扩展,从而实现快速将X73消息匹配为某事件。在应用层,为了降低X73协议的复杂性,本发明按照一定规则将X73消息进行组合,例如可以按照功能进行组合。响应事件对应的消息队列由按照规则组合的X73消息构成,消息队列使用目前比较流行的格式如JSON,将X73消息组合成新格式的目的是降低X73协议的复杂性以及减少数据传输过程中丢失的风险。如IEEE11073-10406的心电监测仪将[Asist-Lim,Brady-Lim,Taqui-Lim,QRS-Number]这四个X73消息用来自动检测心血管疾病,可以将这四个消息设定为心血管事件,当智能网关检测到由心电监测仪发出的这些消息并匹配为心血管事件后,触发回调函数通知设定的响应事件,响应事件对应了由X73消息组合而成的消息队列,智能网关根据该消息队列生成X73消息来控制另外一个设备以完成交互。In terms of data processing, the present invention expands the IEEE11073 protocol stack by adding event matching logic in the communication model, thereby realizing fast matching of X73 messages as an event. At the application layer, in order to reduce the complexity of the X73 protocol, the present invention combines the X73 messages according to certain rules, for example, it can be combined according to functions. The message queue corresponding to the response event is composed of X73 messages combined according to the rules. The message queue uses the currently popular format such as JSON. The purpose of combining X73 messages into a new format is to reduce the complexity of the X73 protocol and reduce the loss of data during transmission. risk. For example, the ECG monitor of IEEE11073-10406 uses the four X73 messages [Asist-Lim, Brady-Lim, Taqui-Lim, QRS-Number] to automatically detect cardiovascular diseases. These four messages can be set as the heart Vascular events, when the intelligent gateway detects these messages sent by the ECG monitor and matches them as cardiovascular events, it triggers the callback function to notify the set response events. The response events correspond to the message queue composed of X73 messages. The gateway generates an X73 message according to the message queue to control another device to complete the interaction.
如图2所示,为本发明实施例中系统框架结构示意图。本发明的技术架构分为三层:设备层、X73协议栈、应用层,其中智能网关由应用层和X73协议栈组成。As shown in FIG. 2 , it is a schematic structural diagram of a system framework in an embodiment of the present invention. The technical architecture of the present invention is divided into three layers: a device layer, an X73 protocol stack, and an application layer, wherein the intelligent gateway is composed of the application layer and the X73 protocol stack.
本发明的智能网关可以基于安卓平台开发,智能网关中的X73协议栈借助开源工具Antidote实现,Antidote是一个X73系列协议实现库,可以兼容多种平台,智能网关的应用层通过JNI(Java Native Interface)和X73协议栈进行交互。医疗设备和智能网关之间可以采用蓝牙、USB或者Wi-Fi连接。The intelligent gateway of the present invention can be developed based on the Android platform, and the X73 protocol stack in the intelligent gateway is realized by the open source tool Antidote. Antidote is an implementation library of X73 series protocols, which can be compatible with various platforms. The application layer of the intelligent gateway is implemented through the JNI (Java Native Interface) ) to interact with the X73 protocol stack. A Bluetooth, USB or Wi-Fi connection can be used between the medical device and the smart gateway.
如图3所示,为本发明实施例中数据传输模式示意图。本发明的设备层由主设备和从设备组成,X73设备有两种数据传输模式:一种是Agent-initiated模式,Agent主动传输数据给Manager;另外一种是Manager-initiated模式,Manager主动请求存储在Agent中的数据。主设备采用的是Agent-initiated模式,由主设备主动发起数据传输;从设备采用的是Manager-initiated模式,被动接收由Manager发出的数据。As shown in FIG. 3 , it is a schematic diagram of a data transmission mode in an embodiment of the present invention. The device layer of the present invention is composed of a master device and a slave device, and the X73 device has two data transmission modes: one is the Agent-initiated mode, where the Agent actively transmits data to the Manager; the other is the Manager-initiated mode, where the Manager actively requests storage Data in the Agent. The master device adopts the Agent-initiated mode, and the master device actively initiates data transmission; the slave device adopts the Manager-initiated mode, and passively receives the data sent by the Manager.
本发明的X73协议栈作为X73协议的Manager,由服务模型、域信息模型、通信模型组成,用来控制医疗设备和智能手机之间的通信以及将X73消息匹配为事件,当接收到主设备发出的X73消息后,判断X73消息是否匹配到某事件,根据匹配结果触发应用层的回调函数,同时也接收应用层生成的X73消息来控制从设备。本发明对X73协议栈进行了扩展,扩展方法是将事件匹配逻辑添加到X73协议栈的通信模型中,目的是为了快速将X73消息匹配为事件。如图4所示,为本发明的X73协议栈中的通信模型示意图。本发明定义了五个状态:物理连接未建立、物理连接已建立、会话未建立、建立会话、消息处理;这五个状态中部分状态具有内嵌关系,具体为:会话未建立、建立会话、消息处理都属于物理连接已建立的子状态,消息处理是建立会话后的状态。扩展的X73协议栈的通信模型相比传统的X73协议的通信模型,增加了事件匹配逻辑,其它部分一致,它们之间状态的对应如表1所示。The X73 protocol stack of the present invention, as the Manager of the X73 protocol, is composed of a service model, a domain information model and a communication model, and is used to control the communication between the medical equipment and the smart phone and match the X73 message as an event. After the X73 message is generated, determine whether the X73 message matches an event, trigger the callback function of the application layer according to the matching result, and also receive the X73 message generated by the application layer to control the slave device. The invention extends the X73 protocol stack, and the extension method is to add event matching logic to the communication model of the X73 protocol stack, in order to quickly match the X73 message as an event. As shown in FIG. 4 , it is a schematic diagram of the communication model in the X73 protocol stack of the present invention. The present invention defines five states: physical connection not established, physical connection established, session not established, session established, message processing; some of the five states have embedded relationships, specifically: session not established, session established, The message processing belongs to the sub-state of the established physical connection, and the message processing is the state after the session is established. Compared with the communication model of the traditional X73 protocol, the communication model of the extended X73 protocol stack adds event matching logic, and other parts are consistent. The state correspondence between them is shown in Table 1.
表1、状态对应Table 1. Status correspondence
本发明的应用层作为智能网关中响应事件的管理端,用于设定响应事件,X73协议栈将IEEE11073消息与设定的事件进行匹配,根据匹配结果触发应用层的回调函数通知响应事件,再根据响应事件对应的消息队列生成IEEE11073消息,将IEEE11073消息发送至IEEE11073协议栈。主设备发送消息到X73协议栈,X73协议栈根据规则将接收到的X73消息匹配为某事件,该事件触发应用层的回调函数通知响应事件,应用层根据响应事件对应的消息队列生成X73消息并传递给X73协议栈来控制从设备。这里的事件与响应事件不一定是一对一的关系,一个事件可以对应多个响应事件。本发明通过对这两种事件加以恰当的描述,用户可以自定义连接事件和响应事件,可以避免直接处理繁琐的X73消息,即便对X73没有任何了解也可以很好地完成医疗设备之间的交互。The application layer of the present invention is used as the management end of the response event in the intelligent gateway to set the response event. The X73 protocol stack matches the IEEE11073 message with the set event, and triggers the callback function of the application layer to notify the response event according to the matching result. Generate the IEEE11073 message according to the message queue corresponding to the response event, and send the IEEE11073 message to the IEEE11073 protocol stack. The master device sends a message to the X73 protocol stack. The X73 protocol stack matches the received X73 message to an event according to the rules. The event triggers the callback function of the application layer to notify the response event. The application layer generates the X73 message according to the message queue corresponding to the response event and Passed to the X73 protocol stack to control the slave device. There is not necessarily a one-to-one relationship between events and response events, and one event can correspond to multiple response events. By properly describing these two events, the present invention can customize the connection event and the response event, avoid directly processing the tedious X73 messages, and can well complete the interaction between medical devices even without any understanding of X73 .
本发明的X73协议中Agent端的DIM(域信息模型)是定义设备类型的决定因素,为了更好地加以说明,以睡眠呼吸治疗仪(SABTE)为例子,医疗设备根据X73-10424(SABTE)发送和接收X73消息,一个Agent通常由几个对象组成,每个对象都至少拥有一个以上的属性,属性用于控制设备行为以及描述测量数据和设备状态,睡眠呼吸治疗仪(SABTE)用于治疗与睡眠相关的疾病。如图5所示,为本发明实施例中睡眠呼吸机DIM结构示意图。The DIM (Domain Information Model) on the Agent side in the X73 protocol of the present invention is the determining factor for defining the type of equipment. And receiving X73 messages, an Agent is usually composed of several objects, each object has at least one or more attributes, attributes are used to control device behavior and describe measurement data and device status, sleep apnea therapy device (SABTE) is used to treat and sleep-related disorders. As shown in FIG. 5 , it is a schematic structural diagram of the DIM of the sleep breathing machine in the embodiment of the present invention.
睡眠呼吸机的DIM有五个对象:Compliance Monitoring、Efficacy Monitoring、Device Settings、Therapy Settings、Service Monitoring,每个对象都含有参数,响应事件对应的消息队列由DIM对象的参数组合而成,组合方法是将这些参数按照功能进行组合,例如睡眠呼吸机有多种功能:CPAP(一种以恒定压力输送空气的原始呼吸疗法)、Bi LevelPAP(提供参数来设置IPAP和EPAP)、Auto Bi Level PAP(根据病人呼吸模式自动调整),为了实现这三种功能,将参数按功能进行组合,如表2所示。每组参数使用消息队列的格式,每个响应事件对应一个消息队列,当事件触发回调函数通知某响应事件的时候,应用层根据对应消息队列中的参数生成X73消息并传递给X73协议栈来控制从设备。The DIM of the sleep ventilator has five objects: Compliance Monitoring, Efficacy Monitoring, Device Settings, Therapy Settings, and Service Monitoring. Each object contains parameters. The message queue corresponding to the response event is composed of the parameters of the DIM object. The combination method is These parameters are combined by function, for example a sleep ventilator has multiple functions: CPAP (an original breathing therapy that delivers air at constant pressure), Bi LevelPAP (parameters are provided to set IPAP and EPAP), Auto Bi Level PAP (according to Patient breathing mode is automatically adjusted), in order to achieve these three functions, the parameters are combined by function, as shown in Table 2. Each set of parameters uses the format of a message queue, and each response event corresponds to a message queue. When an event triggers a callback function to notify a response event, the application layer generates an X73 message according to the parameters in the corresponding message queue and transmits it to the X73 protocol stack for control. slave device.
表2、响应事件、功能及参数组合表Table 2. Response event, function and parameter combination table
随着X73医疗设备在市场上的普及,X73医疗设备之间的交互具有重要的意义,本发明针对X73医疗设备,提供了一种数据交互系统来完成医疗设备之间的交互,提出一种方法组合X73消息,降低X73协议复杂性的同时还减少了数据丢失的风险,通过将X73消息合理地匹配到事件以及对响应事件的X73消息进行合理的组合,用户就可以避免直接处理繁琐的X73消息,从而方便地完成医疗设备之间的交互。With the popularity of X73 medical equipment in the market, the interaction between X73 medical equipment is of great significance. The present invention provides a data interaction system for X73 medical equipment to complete the interaction between medical equipment, and proposes a method Combining X73 messages reduces the complexity of the X73 protocol and reduces the risk of data loss. By reasonably matching X73 messages to events and reasonably combining X73 messages responding to events, users can avoid directly processing tedious X73 messages , so as to easily complete the interaction between medical devices.
为了对本发明作进一步说明,本发明还提出了一种基于IEEE11073标准的医疗设备信息交互方法,如图6所示为本发明的基于IEEE11073标准的医疗设备信息交互方法的流程示意图,包括以下步骤:In order to further illustrate the present invention, the present invention also proposes a medical device information interaction method based on the IEEE11073 standard. Figure 6 is a schematic flowchart of the medical device information interaction method based on the IEEE11073 standard of the present invention, including the following steps:
A、利用主设备采集用户健康数据,基于IEEE11073标准将用户健康数据作为IEEE11073消息发送至智能网关;A. Use the main device to collect user health data, and send the user health data as an IEEE11073 message to the intelligent gateway based on the IEEE11073 standard;
B、利用智能网关的IEEE11073协议栈接收所述主设备发送的IEEE11073消息;B, utilize the IEEE11073 protocol stack of the intelligent gateway to receive the IEEE11073 message sent by the master device;
C、利用智能网关的IEEE11073协议栈设定事件,判断IEEE11073消息是否与设定的事件匹配;若是,则进行步骤D;若否,则进行B;C, utilize the IEEE11073 protocol stack of the intelligent gateway to set the event, and judge whether the IEEE11073 message matches the set event; if so, proceed to step D; if not, proceed to B;
D、利用智能网关的IEEE11073协议栈根据完成匹配的事件触发智能网关的应用层的回调函数;D, utilize the IEEE11073 protocol stack of the intelligent gateway to trigger the callback function of the application layer of the intelligent gateway according to the matched event;
E、利用智能网关的应用层设定响应事件,将触发的回调函数关联到设定的响应事件,再根据该响应事件对应的消息队列生成IEEE11073消息,将IEEE11073消息发送至IEEE11073协议栈;E. Use the application layer of the intelligent gateway to set the response event, associate the triggered callback function with the set response event, and then generate an IEEE11073 message according to the message queue corresponding to the response event, and send the IEEE11073 message to the IEEE11073 protocol stack;
F、利用智能网关的IEEE11073协议栈接收应用层生成的IEEE11073消息并发送至从设备;F, utilize the IEEE11073 protocol stack of the intelligent gateway to receive the IEEE11073 message generated by the application layer and send it to the slave device;
G、利用从设备接收智能网关发送的IEEE11073消息并进行处理。G. Use the slave device to receive and process the IEEE11073 message sent by the intelligent gateway.
如图7所示,为本发明实施例中数据交互时序示意图。主设备通过Agent-initiated模式向智能网关发送X73消息,智能网关的X73协议栈作为Manager接收消息并匹配到某事件,该事件触发回调函数通知设定的响应事件,应用层根据该响应事件对应的消息队列生成X73消息并传递给X73协议栈,X73协议栈通过Manager-initiated模式发送X73消息控制从设备。As shown in FIG. 7 , it is a schematic diagram of a data interaction sequence in an embodiment of the present invention. The master device sends an X73 message to the smart gateway through the Agent-initiated mode. The X73 protocol stack of the smart gateway acts as the Manager to receive the message and match an event. The event triggers the callback function to notify the set response event, and the application layer responds accordingly. The message queue generates an X73 message and transmits it to the X73 protocol stack. The X73 protocol stack sends the X73 message to control the slave device through the Manager-initiated mode.
本领域的普通技术人员将会意识到,这里所述的实施例是为了帮助读者理解本发明的原理,应被理解为本发明的保护范围并不局限于这样的特别陈述和实施例。本领域的普通技术人员可以根据本发明公开的这些技术启示做出各种不脱离本发明实质的其它各种具体变形和组合,这些变形和组合仍然在本发明的保护范围内。Those of ordinary skill in the art will appreciate that the embodiments described herein are intended to assist readers in understanding the principles of the present invention, and it should be understood that the scope of protection of the present invention is not limited to such specific statements and embodiments. Those skilled in the art can make various other specific modifications and combinations without departing from the essence of the present invention according to the technical teaching disclosed in the present invention, and these modifications and combinations still fall within the protection scope of the present invention.
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201810043579.8ACN108259604B (en) | 2018-01-17 | 2018-01-17 | Medical equipment information interaction system and method based on IEEE11073 standard |
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201810043579.8ACN108259604B (en) | 2018-01-17 | 2018-01-17 | Medical equipment information interaction system and method based on IEEE11073 standard |
| Publication Number | Publication Date |
|---|---|
| CN108259604A CN108259604A (en) | 2018-07-06 |
| CN108259604Btrue CN108259604B (en) | 2020-02-14 |
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201810043579.8AExpired - Fee RelatedCN108259604B (en) | 2018-01-17 | 2018-01-17 | Medical equipment information interaction system and method based on IEEE11073 standard |
| Country | Link |
|---|---|
| CN (1) | CN108259604B (en) |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN110545265B (en)* | 2019-08-19 | 2021-12-31 | 重庆大学 | Data communication system and method for carrying out adaptation depending on ATT and indication |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101415251A (en)* | 2008-11-25 | 2009-04-22 | 中兴通讯股份有限公司 | Apparatus for implementing data transmission based on Bluetooth |
| WO2009055635A1 (en)* | 2007-10-26 | 2009-04-30 | Hill-Rom Services, Inc. | System and method for collection and communication of data from multiple patient care devices |
| CN102438039A (en)* | 2011-10-13 | 2012-05-02 | 上海欣方智能系统有限公司 | Perceptive health community information service system based on mobile internet and working method thereof |
| CN103607394A (en)* | 2013-11-20 | 2014-02-26 | 中国科学院深圳先进技术研究院 | IEEE11073 PHD protocol automatic conversion method and apparatus of physiological parameter patient monitor |
| CN104011764A (en)* | 2011-12-22 | 2014-08-27 | 柯惠有限合伙公司 | Systems and methods for patient identification in remote monitoring systems |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2009055635A1 (en)* | 2007-10-26 | 2009-04-30 | Hill-Rom Services, Inc. | System and method for collection and communication of data from multiple patient care devices |
| CN101415251A (en)* | 2008-11-25 | 2009-04-22 | 中兴通讯股份有限公司 | Apparatus for implementing data transmission based on Bluetooth |
| CN102438039A (en)* | 2011-10-13 | 2012-05-02 | 上海欣方智能系统有限公司 | Perceptive health community information service system based on mobile internet and working method thereof |
| CN104011764A (en)* | 2011-12-22 | 2014-08-27 | 柯惠有限合伙公司 | Systems and methods for patient identification in remote monitoring systems |
| CN103607394A (en)* | 2013-11-20 | 2014-02-26 | 中国科学院深圳先进技术研究院 | IEEE11073 PHD protocol automatic conversion method and apparatus of physiological parameter patient monitor |
| Title |
|---|
| "Integrate Personal Healthcare Devices into Smart Home with ISO/IEEE 11073 PHD Standard";Song jian,et al;《Applied Mechanics and Materials》;20130903;487-491* |
| "UPnP and IEEE11073:Integrating person health devices in home networks";Aldenor F.Martins,et al;《2014 IEEE 11th Consumer Communications and Networking Conference(CCNC)》;20140113;1-6* |
| Publication number | Publication date |
|---|---|
| CN108259604A (en) | 2018-07-06 |
| Publication | Publication Date | Title |
|---|---|---|
| JP6120905B2 (en) | Remote healthcare wireless communication hub device and service platform system | |
| TWI617162B (en) | Measurement device | |
| Lee et al. | A mobile care system with alert mechanism | |
| CN101371530B (en) | Automatic and secure configuration of wireless medical networks | |
| CN104584677A (en) | Processor-independent communication of network availability | |
| CN107124520B (en) | Emergency call device, emergency call system and backup method thereof | |
| CN105898893B (en) | Full-duplex communication method for mobile terminal and Internet of things equipment | |
| TW201112694A (en) | Methods and apparatus for communicating using a gateway communications device | |
| WO2017097121A1 (en) | Method and device for providing service based on scene | |
| US20080222251A1 (en) | Adaptive framework for the flow of medical device data in the personal health space | |
| US20180107246A1 (en) | Wireless docking system | |
| EP3742861A1 (en) | Method and apparatus for establishing a connection between devices | |
| CN108259604B (en) | Medical equipment information interaction system and method based on IEEE11073 standard | |
| CN110113430B (en) | Communication method between mobile phone and raspberry pie based on cloud database | |
| CN107027092A (en) | Bluetooth expansion system and Bluetooth expander | |
| Jara et al. | Evaluation of Bluetooth Low Energy Capabilities for Tele-mobile Monitoring in Home-care. | |
| US12089913B2 (en) | Monitoring system, data transmission method, portable monitor, and configurator | |
| CN110535951A (en) | One kind being based on mobile communication service number ward service system | |
| CN111278011B (en) | Network distribution method of intelligent sound box and intelligent sound box | |
| Wen et al. | A Medical Device Interaction System based on IEEE 11073 | |
| KR102402435B1 (en) | Device for pain data logger | |
| Ho et al. | iVS: an intelligent end-to-end vital sign capture platform using smartphones | |
| US8824530B1 (en) | Communication system and method | |
| Lee | Case study: A ble communication design of glucose monitor based on x73-phd standards and continua design guidelines | |
| CN106202844A (en) | Remote Nursing System |
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant | ||
| CF01 | Termination of patent right due to non-payment of annual fee | ||
| CF01 | Termination of patent right due to non-payment of annual fee | Granted publication date:20200214 Termination date:20210117 |