CN112802591A - LUA-based thermal updating method for medical instrument data acquisition equipment - Google Patents

LUA-based thermal updating method for medical instrument data acquisition equipment Download PDF

Info

Publication number
CN112802591A
CN112802591A CN202110102643.7A CN202110102643A CN112802591A CN 112802591 A CN112802591 A CN 112802591A CN 202110102643 A CN202110102643 A CN 202110102643A CN 112802591 A CN112802591 A CN 112802591A
Authority
CN
China
Prior art keywords
collector
lua
lua script
medical equipment
iot platform
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110102643.7A
Other languages
Chinese (zh)
Inventor
杨明超
余小益
马旋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Pioneering Huikang Technology Co ltd
Original Assignee
Pioneering Huikang Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Pioneering Huikang Technology Co ltd filed Critical Pioneering Huikang Technology Co ltd
Priority to CN202110102643.7A priority Critical patent/CN112802591A/en
Publication of CN112802591A publication Critical patent/CN112802591A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G16INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
    • G16HHEALTHCARE INFORMATICS, i.e. INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR THE HANDLING OR PROCESSING OF MEDICAL OR HEALTHCARE DATA
    • G16H40/00ICT specially adapted for the management or administration of healthcare resources or facilities; ICT specially adapted for the management or operation of medical equipment or devices
    • G16H40/40ICT specially adapted for the management or administration of healthcare resources or facilities; ICT specially adapted for the management or operation of medical equipment or devices for the management of medical equipment or devices, e.g. scheduling maintenance or upgrades

Abstract

The invention discloses a LUA-based thermal updating method for medical instrument data acquisition equipment. The invention realizes the hot update of the embedded equipment by utilizing the LUA script, is an innovation of the updating mode of the embedded equipment, shortens the time taken by the whole updating process, and has less erasing and copying operations on the hardware memory chip of the collector by the LUA script hot update, thereby being more effective. The LUA hot updating process does not affect other functions of the collector, when the LUA script is in a problem during hot updating, the collector can be normally connected with the IOT platform, and other basic functions can be stably performed.

Description

LUA-based thermal updating method for medical instrument data acquisition equipment
Technical Field
The invention belongs to the technical field of medical Internet of things, and particularly relates to a thermal updating method for medical instrument data acquisition equipment based on LUA.
Background
The program updating mode of the collector as the embedded hardware device is troublesome, the problem of BUG or optimization program is mainly solved by updating the firmware program and re-burning the firmware program on the chip, different devices need to burn the program in advance, and the replacement of the butt joint device after burning needs to be re-burned. For hardware supporting OTA, updating is relatively simple, but if part of hardware equipment does not support OTA, the hardware equipment needs to be connected in the field for upgrading, and thus maintenance is troublesome. In the embodiment, the LUA script file is used as a core program of the collector, the host C program is kept unchanged, and the LUA script file is issued through the IOT platform so as to adapt to different medical equipment and collect data of different instruments. The LUA script is light in weight, and supports aerial upgrading, and the field connection equipment is not needed for carrying out procedures, and only the corresponding script file is issued on the platform according to the butted medical equipment. The technical problems of complexity of equipment docking, remote firmware upgrading and the like are solved.
The invention carries out embedded software development on the hardware equipment of the collector. The main technique used is LUA script hot-update.
LUA script: lua is a lightweight and compact scripting language written in the standard C language and open in source code form, designed to be embedded in applications to provide flexible extension and customization of applications.
Characteristics of LUA.
1. And (4) light weight. The system is written by a standard C language and is opened in a source code form, and only one hundred of K can be conveniently embedded into other programs after being compiled.
2. And (4) the expansion is realized. Lua provides a very easy-to-use expansion interface and mechanism: these functions are provided by the host language (usually C or C + +), which Lua can use as if they were built-in nature.
Hot updating: the hot update is a common update mode for various large applications APP. Briefly, it is the immediate update encountered when opening an APP after the user installs the APP firmware package by downloading. The invention relates to a heat-seeing update method, which is characterized in that a LUA script file is used for dynamically updating a firmware program of collector equipment, program update is carried out under the condition of no shutdown, and a collector can be directly adapted to various medical equipment after update.
Among them, LUA (scripting language), IOT platform (internet of things access base platform), HIS (hospital information system), LIS (laboratory information management system), HL7 (hygiene information exchange standard).
Disclosure of Invention
Aiming at the defects in the prior art, the invention provides a thermal updating method of medical instrument data acquisition equipment based on LUA.
Aiming at the service use scene of a medical instrument, the adaptation and data acquisition of medical equipment and a collector (hardware equipment) are realized by using the LUA script language, clinical data are obtained and effectively processed, and finally the clinical data are transmitted to each service system of a hospital.
The medical instrument data acquisition equipment, namely the acquisition device, is adapted to the medical equipment in a LUA script hot updating mode, acquires data from the medical equipment and forwards a data analysis result to the service system.
A thermal updating method of a medical instrument data acquisition device based on LUA comprises the following steps.
And (1) designing a program of the collector and burning the program.
The basic functions of the collector comprise network configuration system configuration, an encapsulation read-write interface, a data acquisition, packaging, uploading and retransmission mechanism, a key polling response, screen display, a time synchronization mechanism, a buzzer alarm mechanism, an electric energy metering and energy saving function and OTA firmware upgrading; the read-write interface type comprises a network port and a serial port. And after the program design of the collector is completed, burning the program into the hardware equipment of the collector.
And (2) designing and uploading the LUA script.
The adaptation and the data acquisition of collector and medical equipment are realized to utilize LUA script language, and the function of LUA script design contains: adapting to the medical equipment, acquiring the data of the medical equipment and analyzing the data of the medical equipment. After the LUA script is designed, the LUA script file is uploaded to an Internet of things access basic platform, namely an IOT platform, and the IOT platform stores the LUA script file for subsequent issuing and use.
And (3) configuring a collector.
The collector is powered on firstly, then the network of the collector is configured (if the collector is in the 4G version, the network does not need to be configured, and the collector can be powered on directly), and the collector can be ensured to be connected to the IOT platform normally.
And (4) carrying out hot updating on the LUA script.
After the collector and the IOT platform are in normal communication, the collector can be seen to be on-line on the IOT platform, and the IOT platform selects the LUA script file to issue according to the information of the medical equipment, so that hot updating is realized. The information of the medical equipment comprises the manufacturer, the model and the connection mode of the medical equipment, the version of the LUA script file and the size of the LUA script file. After the distribution is completed, the collector is restarted and powered on, adaptation with the connected medical equipment is started, data of the medical equipment are obtained and analyzed, and the analysis result is packaged and uploaded to the IOT platform.
And (5) the IOT platform receives the data uploaded by the collector and stores or forwards the data to each service system of the hospital.
Furthermore, each business system of the hospital comprises a hospital information system HIS and a laboratory information management system LIS.
The invention has the following beneficial effects.
An improvement over the prior art.
The LUA script language replaces part of C language programs, so that the functions of the collector equipment are realized by light weight, the compiling amount of C program codes is reduced, and the storage space of the collector equipment occupied by the programs is reduced. Compared with the function of realizing the embedded equipment by a pure C language program, the LUA script language is more powerful and convenient.
2. The existing embedded device generally only packages and uploads data, and data analysis is generally not realized on a device terminal, but is handed to an IOT platform end (or other back ends) to realize the function, so that the data analysis is troublesome and needs to be realized by designing other compiling language programs.
3. The present example replaces the OTA of existing embedded devices with LUA script hot-update. In the prior OTA technology, a program C is packaged and sent to a collector in a bin file form (generally M is a unit) for integral upgrade, the whole upgrade process is influenced by a network or the installation position of equipment, the bin file occupies a large storage space and is slow in transmission process, and once a problem occurs in the process, the bin file is troublesome to retransmit. By adopting the LUA hot updating mode and taking the C program as a main body, the LUA script only plays an auxiliary role, different medical equipment can be adapted only by issuing the LUA script file during hot updating, the burnt C program does not need to be changed, the function of the collector equipment can be expanded only by a plurality of KB LUA scripts, and the OTA is more convenient and faster.
Has the advantages of simple process and low cost.
1. And innovative technology application. The hot update technology is commonly used for updating application programs of mobile terminals such as mobile phones, the embedded device adopts C language for compiling and programming, a single C language program cannot support hot update, the example realizes the hot update of the embedded device by using the LUA script, and the method is an innovation of an update mode of the embedded device.
2. High efficiency. Compared with the existing updating mode of the embedded equipment, the LUA script is updated in a hot mode, only the LUA script language part needs to be updated, the C program which is burnt in advance does not need to be changed, the time of the whole updating process is shortened, and the erasing and copying operation of the hardware memory chip of the collector is less and more effective due to the LUA script hot updating.
3. And (4) stability. The collector normally runs without depending on the LUA script, and the LUA script is only the extension of the collector function. The LUA hot updating process does not affect other functions of the collector, when the LUA script is in a problem during hot updating, the collector can be normally connected with the IOT platform, and other basic functions can be stably performed.
4. And (4) starting from original source. The LUA scripting language source code is open-source and official allows for various business programs, with subsequent version iterations and functional extensions.
Drawings
Fig. 1 is a schematic structural diagram of an embodiment of the present invention.
FIG. 2 is a flowchart of a thermal update process according to an embodiment of the present invention.
Detailed Description
The invention is further described below with reference to the figures and examples.
As shown in FIG. 1, the method of the present invention is divided into the following steps.
1. The basic functions of the collector are realized by adopting C language programming, and the invention adopts C language to carry out cross compiling based on a Linux operating system and designs a program meeting the basic functions of the collector. The basic functions of the collector comprise network configuration system configuration, an encapsulation read-write interface, a data acquisition, packaging, uploading and retransmission mechanism, a key polling response, screen display, a time synchronization mechanism, a buzzer alarm mechanism, an electric energy metering and energy saving function and OTA firmware upgrading; the read-write interface type comprises a network port and a serial port. And after the program design of the collector is completed, burning the program into the hardware equipment of the collector.
LUA script design. The LUA script serves as an auxiliary program to further expand the functions of the collector. The functionality implemented by the design LUA script is as described above. The LUA script directly interacts with the C program, an interface packaged in the C program is called, medical equipment data received by a serial port or a network port are directly obtained, after the medical equipment data are successfully obtained, the LUA script analyzes the data of the medical equipment based on an HL7 standard protocol, key fields are taken out of analysis results (specifically selected according to the type of the medical equipment), and the key fields are packaged and uploaded to a server through the C program.
3. Program burning and script uploading.
And burning the program C into the collector equipment. When the collector is produced, the procedure can be recorded by default, and the collector can also be directly connected with a computer to carry out C procedure burning. The collector is powered on, if the collector is a WIFI version, the collector is firstly connected with a network, the network connection mode is web configuration, a configuration page can be opened through a mobile phone or a computer terminal, basic network parameters (an IP address, a subnet mask, a gateway and an access port) of the collector are configured, and if the collector is of a 4G version, the IOT platform can be directly accessed.
And uploading the LUA script to the IOT platform. And opening an IOT platform through a webpage, selecting script management in the configuration service, uploading the LUA script file, and maintaining the information (script name, version number, verification mode, verification code, type of adaptive medical equipment and type of adaptive equipment) of the uploaded LUA script file.
LUA script hot update. When the collector needs to be updated (the updating conditions are generally two, namely the firmware needs to be updated, and the collector replaces the connected medical equipment), the LUA script hot updating mode is adopted in any updating condition. Firstly, ensuring that a collector is normally connected to an IOT platform, opening firmware management in the IOT platform selection configuration service, inquiring the collector needing to be updated (the collector can be inquired by taking the version number of the collector as a keyword), selecting a corresponding LUA script file (can be selected according to the name, version, size and type of adaptive medical equipment of the script) after the collector is selected, and clicking the script to issue. The collector receives the issued LUA script file, and the LUA script file is issued again when network interruption or updating failure occurs in the receiving process. And starting hot updating after receiving, copying the LUA script file by the collector, storing the LUA script file in a chip storage space, and finishing the hot updating.
FIG. 2 is a flowchart of a thermal update process according to an embodiment of the present invention.
5. After the hot update is completed, the collector can continue to work normally, acquires the data of the medical equipment, analyzes the data by using the LUA script, packages and uploads the data to the IOT platform, and the platform forwards the data to each service system (HIS, LIS and the like).

Claims (2)

1. A thermal updating method of medical instrument data acquisition equipment based on LUA is characterized by comprising the following steps:
step (1), program design and program burning of the collector:
the basic functions of the collector comprise network configuration system configuration, an encapsulation read-write interface, a data acquisition, packaging, uploading and retransmission mechanism, a key polling response, screen display, a time synchronization mechanism, a buzzer alarm mechanism, an electric energy metering and energy saving function and OTA firmware upgrading; the read-write interface type comprises a network port and a serial port; after the program design of the collector is completed, burning the program into the hardware equipment of the collector;
step (2), LUA script design and uploading:
the adaptation and the data acquisition of collector and medical equipment are realized to utilize LUA script language, and the function of LUA script design contains: adapting to medical equipment, acquiring medical equipment data and analyzing the medical equipment data; after the LUA script is designed, uploading the LUA script file to an Internet of things access basic platform, namely an IOT platform, and storing the LUA script file by the IOT platform for subsequent issuing and use;
step (3), collector configuration:
firstly, powering on a collector, and then configuring a network of the collector to ensure that the collector can be normally connected to the IOT platform;
step (4), updating the LUA script in a hot mode:
after the collector is in normal communication with the IOT platform, the IOT platform can see that the collector is on-line, and the IOT platform selects the LUA script file to issue according to the information of the medical equipment to realize hot updating; the information of the medical equipment comprises the manufacturer, the model and the connection mode of the medical equipment, the version of the LUA script file and the size of the LUA script file; after the distribution is completed, the collector is restarted and is adapted to the connected medical equipment, the data of the medical equipment is obtained and analyzed, and the analysis result is packaged and uploaded to the IOT platform;
and (5) the IOT platform receives the data uploaded by the collector and stores or forwards the data to each service system of the hospital.
2. A LUA-based medical instrument data collection device thermal update method as claimed in claim 1, wherein each business system of the hospital includes a hospital information system HIS and a laboratory information management system LIS.
CN202110102643.7A 2021-01-26 2021-01-26 LUA-based thermal updating method for medical instrument data acquisition equipment Pending CN112802591A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110102643.7A CN112802591A (en) 2021-01-26 2021-01-26 LUA-based thermal updating method for medical instrument data acquisition equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110102643.7A CN112802591A (en) 2021-01-26 2021-01-26 LUA-based thermal updating method for medical instrument data acquisition equipment

Publications (1)

Publication Number Publication Date
CN112802591A true CN112802591A (en) 2021-05-14

Family

ID=75811803

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110102643.7A Pending CN112802591A (en) 2021-01-26 2021-01-26 LUA-based thermal updating method for medical instrument data acquisition equipment

Country Status (1)

Country Link
CN (1) CN112802591A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114500352A (en) * 2021-12-28 2022-05-13 创业慧康科技股份有限公司 Plug-in hot updating system and method for medical Internet of things message routing device
CN114500352B (en) * 2021-12-28 2024-05-07 创业慧康科技股份有限公司 Plug-in hot updating system and method for medical internet of things message routing device

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
AU6069399A (en) * 1998-09-09 2000-03-27 Yeong Kuang Oon Automation oriented healthcare delivery system based on medical scripting language
CN105204910A (en) * 2015-10-15 2015-12-30 北京乐动卓越科技有限公司 Script hot updating method and system
CN106155729A (en) * 2015-04-21 2016-11-23 阿里巴巴集团控股有限公司 The hot update method of Lua script, Apparatus and system
CN106790588A (en) * 2016-12-28 2017-05-31 珠海国芯云科技有限公司 A kind of platform of internet of things based on cloud computing creates system and method
CN110033855A (en) * 2017-11-17 2019-07-19 西门子医疗有限公司 For controlling method, operator's equipment, operating system and the medical technical device of the operation of medical technical device
US20200194112A1 (en) * 2018-12-16 2020-06-18 Allen Izadpanah Telehealth Platform
CN111477314A (en) * 2020-06-04 2020-07-31 郭文军 Terminal medical equipment data acquisition device, acquisition method and acquisition system

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
AU6069399A (en) * 1998-09-09 2000-03-27 Yeong Kuang Oon Automation oriented healthcare delivery system based on medical scripting language
CN106155729A (en) * 2015-04-21 2016-11-23 阿里巴巴集团控股有限公司 The hot update method of Lua script, Apparatus and system
CN105204910A (en) * 2015-10-15 2015-12-30 北京乐动卓越科技有限公司 Script hot updating method and system
CN106790588A (en) * 2016-12-28 2017-05-31 珠海国芯云科技有限公司 A kind of platform of internet of things based on cloud computing creates system and method
CN110033855A (en) * 2017-11-17 2019-07-19 西门子医疗有限公司 For controlling method, operator's equipment, operating system and the medical technical device of the operation of medical technical device
US20200194112A1 (en) * 2018-12-16 2020-06-18 Allen Izadpanah Telehealth Platform
CN111477314A (en) * 2020-06-04 2020-07-31 郭文军 Terminal medical equipment data acquisition device, acquisition method and acquisition system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
刘斌,黄卫东,肖仁辉: "《基于远程医疗背景的服务接口集成设计》", 《福建电脑》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114500352A (en) * 2021-12-28 2022-05-13 创业慧康科技股份有限公司 Plug-in hot updating system and method for medical Internet of things message routing device
CN114500352B (en) * 2021-12-28 2024-05-07 创业慧康科技股份有限公司 Plug-in hot updating system and method for medical internet of things message routing device

Similar Documents

Publication Publication Date Title
CN102403034B (en) DSP controls single-board device and remote upgrade method thereof and server
US10713034B2 (en) Updating web resources
JP5838527B2 (en) Method, apparatus and communication device for updating firmware
US10880711B1 (en) Electronic subscriber identity module (eSIM) management platform
US20050227683A1 (en) Apparatus and method for over the air software repair
JP2004038876A (en) Data format conversion method and device for program and the like, and controller management system using the data format conversion device
KR101541112B1 (en) FOTA system and the method
CN110851163B (en) Software updating method compatible with multi-equipment platform based on CAN communication
CN103729189A (en) Broadcast protocol conversion method, system and terminal based on LUA
CN109791497A (en) A kind of method, apparatus and terminal executing hot patch
JP2005524898A (en) Communication system, compatible mobile device, and method for storing pages in mobile device
CN103634393A (en) IVR (interactive voice response) and realization method thereof
CN106851626A (en) Android system batch upgrade realizes device and method under LAN environment
CN104978378B (en) A kind of Web access method and device
CN112802591A (en) LUA-based thermal updating method for medical instrument data acquisition equipment
CN113641581A (en) Mixed-mode mobile application debugging method and system
CN106648805A (en) Intelligent device, intelligent system, and method for intelligently installing application
CN113055723A (en) Version debugging and upgrading method, device, equipment and storage medium
CN108989428A (en) Bluetooth terminal upgrade method, server, computer readable storage medium and system
CN102143222A (en) Application resource downloading adaptation method and downloading adaptation device
US11372627B2 (en) System and method for providing integrated development environment (IDE) for programmable software system
CN104320483A (en) System and method for assisting application program to be upgraded
CN114035819A (en) Data acquisition control method, system and device for serial port equipment of Internet of things
CN110874226B (en) Android system function upgrading method
KR101437837B1 (en) Method and apparatus for downloading of content interlock between dynamic platform  in a mobile communication system

Legal Events

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20210514