| With the arrival of the era of the Internet of Things,many fields such as intelligent medical care and intelligent logistics have begun to explore the application of the Internet of Things technology.Considering that the patient population has low immunity and is sensitive to environmental factors,the hospital needs to carry out effective monitoring and evaluation of ward environment.At present,the Internet of Things technology has the problems of strong heterogeneity,high coupling degree and the demand of mass data information processing,which makes it have higher requirements on computing,storage,analysis and other aspects.All of these requirements need to rely on platforms with matching processing power,which limits the development of the Internet of Things.Based on this background,combined with the actual needs of environmental monitoring and electrical equipment control in the ward,this paper designs an Internet of Things monitoring and control system applied in the ward to improve the patient’s self-cultivation environment.In this paper,the cloud platform is used to monitor the environmental parameters in the ward in real time,realize the two-way control of the sensor node and the controller node,and predict the use of equipment in a certain period of time.This paper is mainly divided into two parts,namely,the hardware system and the software system of the Internet of Things.(1)In the hardware system of the Internet of Things,the paper designs the environment monitoring node and the controller node,which includes the main control module,Wi Fi networking module,the power supply and peripheral circuit module,the sensor module and the controller module.On the basis of hardware,software program is written.Sensor nodes realize the collection of ward environmental parameters,and the collected data and information are uploaded to the cloud server through Wi Fi module.The control instruction sent by the cloud server is received by the controller node.The controller node completes the corresponding operation according to the instruction.Thus,the bidirectional control of the system is realized.The node modules realized in this paper mainly include temperature collection module,humidity collection module,carbon dioxide collection module,dust collection module,gravity collection module and intelligent lamp control module.(2)In the software system of Internet of Things,the paper realizes the message transmission of publish and subscribe mode on client and server side based on the Mosquitto framework of MQTT.Nginx is used as the server,and the service processing program is written by Python programming language,which realizes the two-way communication between the cloud platform server and the sensor node/controller node,and the function of storing and managing the collected environmental data.Web development technology is used to realize real-time animation display and control of sensor node state changes and to display data in the form of visual images.In order to realize personalized customization needs of users and make differential response to designated users,the attention mechanism is used to do data mining on users’ historical behavior,capture key information helpful for current behavior prediction and predict the status of future devices,so as to provide direction for future secondary development.Finally communication effect,interaction effect and behavior prediction accuracy between hardware and software modules of the Internet of Things are tested,results show that the Io T applied to ward monitoring control system is stable for a long time communication effect,good for real-time two-way interaction function,friendly and convenient for visualization operation and the accuracy of state prediction of different equipment is nearly 90%,it is met to monitor the ward environment and control the ward equipment for the patient. |