Font Size: a A A

Design And Implementation Of Smart Medicine Box Based On NB-IoT

Posted on:2022-10-03Degree:MasterType:Thesis
Country:ChinaCandidate:D L ZhouFull Text:PDF
GTID:2492306575468544Subject:Electronics and Communications Engineering
Abstract/Summary:PDF Full Text Request
Elderly patients with chronic diseases often have poor medication compliance due to memory decline and many kinds of medication,which lead to complications and endanger the health of the elderly.As a kind of medical auxiliary equipment,smart medicine box is of great help to improve the medication compliance of patients.At present,the smart medicine box,mainly for storing drugs and alarms,only aims at the home environment,with single function and complex operation.So it is unable to monitor the process of taking medicine at home and in hospital.In this thesis,a smart medicine box is designed for application scenarios including home and hospital.The main contents are as follows:1.Complete the design and implementation of medicine box hardware and conduct lectotype analysis and project approachment for the main modules.Based on the technology of Narrow Band Internet of Things,the medicine boxes,with STM32 controller as the core,realize remote operation and control,relieve old people’s barrier in using intelligent devices and help guardians and medical staff get real-time information of patients’ dose taking situation.In combination with technologies such as radio frequency identification and speech synthesis,problems arising in complicated medication were solved like the reminding of medicine dose and order,monitoring of does taking state and feedback of medication record,thereby monitoring patients’ drug use.2.Complete the design and implementation of medicine box firmware and conduct project approachment for the main operational module.Seven tasks including drug dispensing,medicine taking,medicine taking record retransmission,firmware upgrade,etc.were designed to be compatible for both home and hospital environments.Given that characteristics of parallelism,interactivity and high timeliness existed among different tasks,Lite OS was introduced to achieve multi-task scheduling.Furthermore,achieve inter-task communication by means of a mixture mechanism involving global variable,shared memory and message queue in combination with the data interacting characteristics among tasks.Besides,shared resource synchronization was realized among tasks through mutex.3.Complete the design and implementation of medicine box firmware remote upgrading and conduct project approachment for patch file generation,process updating,FLASH partition and Boot Loader boot program.Due to the high cost of the network needed by whole-package upgrading,difference-based upgrading was adopted,patch files were generated with bsdiff difference algorithm as the basis and 5 modification case tests were implemented targeted at the project code.It is shown that at 87 percent network cost is saved.In addition,the breakpoint resume mechanism was designed for data transmission,which solved problems like abnormal power failure and update pack re-transmission.4.Set up a test environment for medicine box hardware and firmware and conduct respective tests and analysis for terminal hardware and firmware functions.Gradually modify and improve the problems found in the test process and carry out the on-site trial application.It is shown that the medicine box basically meets the expected design targets and requirements.
Keywords/Search Tags:medication reminder, smart medicine box, Narrow Band Internet of Things, firmware upgrade
PDF Full Text Request
Related items