| Drug compliance usually refers to the consistency and timeliness of the patient’s medication and the doctor’s order.Oral administration is a basic job of the clinical nurse in the inpatient department.It is divided into three steps: doctor’s order processing,pharmacy dispensing,and drug delivery to the mouth.However,In practice,it is very difficult to achieve "drug delivery to the mouth".The development of the Internet of Things and information technology has made it possible for medical staff to remotely manage and monitor patients’ medication.The hospital inpatient department presents the characteristics of "dense rooms,large crowds,and difficult construction".It must use a combination of wireless and wired communication technologies that support multi-node access,strong penetration,and low power consumption.The use of the monitoring gateway and the display system of the nurse workstation can establish effective communication between inpatients and medical staff,which can solve the problem of "drug delivery to the mouth".The main contents of this thesis are as follows:1.In view of the technical requirements of "multi-node access,strong penetration and low power consumption",combined with cost and other factors,Lo Ra(5G narrowband)was selected as the node access scheme for the monitoring gateway and 4G is selected as the access cloud system scheme by analyzing the common wireless communication technologies such as Bluetooth,Zig Bee,Wi Fi and 4G/5G.The LPKT002-Advanced Lo Ra WAN development kit was selected as the gateway hardware carrier,and combined with the actual development needs of the project,the development and migration of related peripheral drivers were completed.2.Aiming at the hardware carrier selected in 1,according to the requirements put forward by the user,the gateway software was developed.Firstly,the communication protocol between the nodes and the gateway,and the gateway and the cloud server is designed;It adopts a layered design,which is composed of three modules: bottom layerhardware abstraction layer(HAL),middle layer-packet forwarder(Packetforward),and network layer-embedded NS server.Multi-threading is used to realize the communication between the modules.Finally,in order to ensure the security of data transmission,the AES128 symmetric encryption algorithm is introduced in the data processing module of the embedded NS server.3.Aiming at the wireless deployment of on-site nodes and gateways,limited by the number of terminal nodes,first,the communication behavior of the gateway is simulated by establishing a communication link model and a data packet transmission collision model.Then,the Lo Ra Sim algorithm code is improved to simulate the Lo Ra wireless network in the hospital environment,and give the deployment suggestions of nodes and monitoring gateways.Finally,according to the actual conditions,a laboratory test platform was built to perform functional and performance tests on the gateway,and the test results reached the expected goal. |