Cardiovascular disease has always been a great threat to human health,because of its occasional,hidden,sudden characteristics,resulting in its morbidity and mortality in the forefront of many diseases.According to “the data of China cardiovascular disease report 2018”,the prevalence rate of the disease is still on the rise.It is estimated that there are now 290 million patients,indicating that one in every five people is a patient with cardiovascular disease.In 2016,the mortality rate of the disease surpassed that of tumors and other diseases and it still ranks the first.Nowadays,the fast pace of life and the culture of working overtime in various major companies make the work pressure of contemporary young people too great.As a result,most of the young generation of office workers have irregular diet and rest,resulting in longterm sub-health.The patients obviously began to get younger,the incidence of increased,sudden death tragedy frequently occurred.Prevention and health care are now the main responses.For this reason,ECG equipment appeared.Traditional ECG devices have the inconvenience of carry,poor interactivity,difficulties of software maintenance,poor scalability,and unsightly UI design.Therefore,it is very important to design a new type of portable remote ECG device.In order to overcome the shortage of traditional ECG monitoring equipment,a remote handheld embedded ecg device based on MQTT protocol is designed in this paper,combining with the advantages of embedded products.In terms of hardware,it includes two sub-devices of "relay + chest patch" :The relay device is mainly based on Cortex-M4 kernel STM32F429IGH6 as the MCU,EC20 R2.1 as the 4G module,NRF5182 multi-protocol bluetooth low-power 2.4GHz chip as the bluetooth transmission module;The chest strap device is mainly composed of the chest strap electrode,ADS1292 IRSM,NRF5182 bluetooth module and BMA250 acceleration sensor.In terms of software,it adopts MVP(Model_View_Present)design pattern to make the interface and data processed in their respective modules,reduce coupling and realize the separation of business logic and view logic;In addition,modular programming is used in software to improve the reuse rate of code and solve the problems of late code maintenance and function extension.In terms of UI design,the UI development based on STem Win framework is adopted to design a beautiful and easy-to-operate human-computer interaction interface.The data frame format based on MQTT protocol is designed to realize the safe and reliable ECG data transmission.The whole system collects ECG data by chest patch and then sends it to the relay system.The relay uses 4G to send to the server for ECG analysis.Reliable ECG report is obtained through ECG data preprocessing,QRS detection and beat classification.The system test proves that the design scheme of remote ECG equipment based on "relay + chest patch" is reasonable and feasible. |