| Drug compliance refers to the consistency between the patient’s medication and the doctor’s advice,while from the perspective of drug treatment,it refers to the patient’s implementation of the drug treatment plan.Any drug used on the patient has a certain dose,improve the medication compliance for the prevention and treatment of chronic diseases has a vital role.For most chronic diseases,the drug cycle is long and the phenomenon of drug leakage is serious,which affects the drug compliance.Based on this design,a medication compliance monitoring device is developed,which is used to store drugs,monitor medication information and send medication reminders,so as to improve medication compliance and achieve better treatment effect.Relevant research is conducted on the device,and the main work is as follows:1.Design and complete the medication compliance monitoring device,the device is based on LED as the carrier of drug testing module,the main use of photosensitive resistance by specific wavelength light will change under the principle of resistance medicine collected information,this device includes medication compliance monitoring devices,mobile phone APP and medication information sharing and analysis platform.The medication compliance monitoring device interacts with the mobile APP for data communication through the Bluetooth module of the device to complete functions such as lock picking,quantity query and status query.The hardware device is based on STM32F030 series chip design.2.The low power consumption design of the drug compliance device is optimized from the system level.This design the Bluetooth wireless communication module as the unit,when the device is in a non-working state when the module will work into low power mode,the core processing module combined with STM32 Coetex M0 kernel provides stop mode,the device to collect the medicine information,and other functions in the process of timely,dynamically adjust the clock and the voltage,the medicine detection module based on the device LED lights inside the opening and closing of Settings to reduce the power consumption of the device.3.The data transmission format based on Bluetooth wireless communication is defined to improve the security transmission of data interaction between the device and the mobile phone.The smart phone interacts with the device’s Bluetooth modulethrough the Bluetooth module to carry out data exchange,lock opening,quantity query,status query and other relevant instructions and drug information data transmission.In order to ensure the security and integrity of the data communication between the acquisition device and the smart terminal of mobile phone,on the basis of the Bluetooth data communication,a communication protocol and data frame format for the wireless data transmission of the device are stipulated to ensure the integrity and security of the data transmission. |