The specific embodiment
Medicine bottle/the box device of reminding function of the present invention comprises medicine bottle/box, described medicine bottle/box is provided with testing circuit 1, the bottle/box lid turn on sensor module 3 that described testing circuit comprises micro controller module 2 and is electrically connected to described micro controller module 2, real-time clock module 7, battery power management module 4 and reminding function module 6, described bottle/box lid turn on sensor module 3 comprises the sensor whether being opened for detection of bottle/box lid, described battery power management module 4 is used to micro controller module 2, bottle/box lid turn on sensor module 3, reminding function module 6, real-time clock module 7 provides working power.
Device of the present invention also comprises radio-frequency communication module 5 that can access of radio network and is located at the control platform on communication terminal, and described control platform contacts with micro controller module 2 by described radio-frequency communication module 5.
After user connects by the radio-frequency communication module 5 of device of the present invention and the communication terminal of user, can set mode of operation and the running parameter of device of the present invention, the control platform (application program) of communication terminal also can be controlled duty of the present invention, alerting pattern etc.
Communication terminal of the present invention can be smart mobile phone or panel computer, or other are with the electronic equipment of wireless communication function.
The control platform of being located at communication terminal of the present invention, refer to be located on communication terminal, can be for mode of operation and the running parameter on device of the present invention be set, control duty of the present invention, alerting pattern, and can reach the application program of the transmission of data by radio-frequency communication module 5 and micro controller module 2, and can carry out bottle/box lid start-up time and number of times record and statistics.
In the present invention, the medicine bottle/box device of device of the present invention, device, apparatus of the present invention, reminding function all refers to the medicine bottle/box device of a kind of reminding function provided by the present invention.
Radio-frequency communication module 5 access of radio network of the present invention, can adopt the modes such as bluetooth, WI-FI, zigbee.
Micro controller module 2 provided by the present invention can also can connect communication terminal by wireless network with data storage function, and for example smart mobile phone or panel computer carry out history data store and processing.
Described testing circuit also comprises inertial sensor module 8, the 3-axis acceleration sensor of described inertial sensor module 8 inclusion test X-axis, Y-axis, Z axis.
Inertial sensor module 8 is main by detecting the 3-axis acceleration sensor of X-axis, Y-axis, Z axis, detect the whole acceleration of medicine bottle/box, acceleration has reflected the mass motion information of medicine bottle/box, and the content that can detect comprises: the motion of medicine bottle/box or static situation, the situation of being impacted etc.In concrete application example, inertial sensor module 8 can be realized by MEMS acceleration transducers such as ADXL345 or LIS3DH.
Described radio-frequency communication module 5 is bluetooth 4.0 radio-frequency communication modules, and it is the SOC(system on a chip) process chip of cc2541, cc2540 or nRF51822 that described micro controller module 2 and radio-frequency communication module 5 adopt model.
Described bottle/box lid turn on sensor module 3 adopts microswitch as sensor element, also can adopt proximity transducer to realize.
Described real-time clock module 7 adopts the real-time timepiece chip that model is ds1302, or adopts the 32.768kHz agitator of cc2541 inside to produce real-time clock signal.
Voltage stabilizing when described battery power management module 4 completes battery discharge and battery charging are controlled, the discharge voltage of battery is relevant with battery electric quantity, and unstable, battery discharge voltage is higher than internal system running voltage, battery power management module by the voltage stabilizing of battery discharge voltage step-down to a certain specific voltage value of internal system running voltage 2.0 ~ 3.0V.Consider low-power consumption requirement of the present invention, and electric current is very little while further contemplating testing circuit of the present invention work, should selects the voltage-releasing voltage stabilizer of low quiescent current, for example, select HT7530-1 low-dropout regulator, its quiescent current is less than 5uA.When adopting rechargeable battery, battery charging is controlled and need to be carried out blood pressure lowering and current limliting to the 5V output voltage of external charger, when cell voltage is too low, adopt constant-current charge, when battery is about to be full of, adopt constant-voltage charge, and provide the signal of battery charging state to export, in concrete application example, battery charging can adopt single battery charging chip SE9017, SE9016 or LTC4054 to realize, and charged state can be shown by red, green dual-colored LED.
The present invention also comprises reminding function module 6, described battery power management module 4 is used to micro controller module 2, bottle/box lid turn on sensor module 3, inertial sensor module 8, real-time clock module 7, reminding function module 6, radio-frequency communication module 5 that working power is provided, when using rechargeable battery, battery power management module 4 also can utilize external power source to charge for battery.
Described reminding function module 6 provides the eccentric vibrations motor of vibration reminding and the LED element of sparkling prompting is provided.Described medication alert module, in order to point out user to take tablet, when needs point out user to take tablet, can be used the eccentric vibrations motor in reminding function module 6 to carry out vibration reminding, also can use LED element to carry out sparkling prompting.
Micro controller module 2 of the present invention mainly completes following work for the treatment of: 1, the output signal of receiving bottle/lid turn on sensor module 3; 2, configuration real-time clock module 7, reads the real-time time data that real-time clock module 7 generates; 3, detect cell voltage and charging and discharging state; 4, control eccentric vibrations motor and the LED sparkling prompting of reminding function module 6; 5, control 5 work of radio-frequency communication module, while being bluetooth 4.0 such as it, set Bluetooth transmission parameter, transmission content, receiving bluetooth, is responsible for bluetooth connection, bluetooth output transfer function.In concrete application example, bluetooth 4.0 radio-frequency communication modules can be realized by cc2541, cc2540 or nRF51822 on-chip system chip, such chip is radio frequency on-chip system chip, and its inside has single-chip microcomputer kernel and 2.4GHz RF transceiver, and can move bluetooth 4.0 low-power consumption protocol stacks.
The real-time clock module 7 that the present invention comprises by testing circuit 1, can regularly initiate to take tablet by reminding function module 6 and remind, and can realize the autonomous timed reminding that leaves communication terminal.Simultaneously, the present invention is by the exercise data of inertial sensor module 8 measuring devices, at ordinary times in resting state, after specific exercise data sequence being detected, micro controller module 2 is just controlled radio-frequency communication module 5 and is opened, control medicine bottle/box enter power consumption larger can connection mode, significantly saved electric weight.
Embodiment 1
The present invention is a kind of medicine bottle/box device of reminding function, comprises housing and bottle/box lid, is fixed with testing circuit 1 in housing.
With reference to Fig. 1.In the present embodiment, bottle/box lid turn on sensor module 3, real-time clock module 7, battery power management module 4, radio-frequency communication module 5 and reminding function module 6 that described testing circuit 1 comprises micro controller module 2 and is electrically connected to described micro controller module 2, described bottle/box lid turn on sensor module 3 comprises the sensor whether being opened for detection of bottle/box lid, and described battery power management module 4 is used to micro controller module 2, bottle/box lid turn on sensor module 3, radio-frequency communication module 5, reminding function module 6 that working power is provided.
In the present embodiment, described device also comprises radio-frequency communication module 5, can be connected with communication terminals such as mobile phone, panel computers, by the running parameter of the control platform configuration device of the present invention on communication terminal.Device of the present invention can regularly be initiated to take tablet by medication alert module to user and be reminded, and can cover turn on sensor module at bottle/box and detect after user takes medicine, and automatically stops reminding.Solve the problem of reminding the user that need to regularly take medicine to take medicine on time, increased prompting success rate.
Embodiment 2
With reference to figure 2, the present embodiment comprises housing, in described housing, be fixed with testing circuit 1, the bottle/box lid turn on sensor module 3 that described testing circuit 1 comprises micro controller module 2 and is electrically connected to described micro controller module 2, battery power management module 4, inertial sensor module 8, radio-frequency communication module 5 and reminding function module 6, described bottle/box lid turn on sensor module 3 comprises the sensor whether being opened for detection of bottle/box lid, described battery power management module 4 is used to micro controller module 2, bottle/box lid turn on sensor module 3, inertial sensor module 8, radio-frequency communication module 5, reminding function module 6 provides working power.When using rechargeable battery, battery power management module 4 also can utilize external power source to charge for battery.
The real-time clock module 7 that the present invention comprises by testing circuit 1, can regularly initiate to take tablet by reminding function module 6 and remind, and can realize the autonomous timed reminding that leaves communication terminal.Simultaneously, the present invention is by the exercise data of inertial sensor module 8 measuring devices, at ordinary times in resting state, after specific exercise data sequence being detected, micro controller module 2 is just controlled radio-frequency communication module 5 and is opened, control medicine bottle/box enter power consumption larger can connection mode, significantly saved electric weight.
Those skilled in the art should be known, and technical characterictic and work process that each module has in embodiment 1 are equally applicable to the present embodiment, therefore do not repeat herein.
With reference to figure 4, medicine bottle of the present invention comprises housing 9 and bottle cap 10, whether be opened sensor element 11 of detection bottle cap in described bottle cap turn on sensor module 3 is connected with housing 9, bottle cap 10 cover tightly with bottle cap 10 relaxed states under, bottle cap 10 can produce change in location with the sensor element 11, by installation site and the installation method of choose reasonable the sensor element 11, make sensor responsive to bottle cap change in location; For example, when adopting microswitch as sensor element 11, should select microswitch installation site and angle, make: when bottle cap is closed, microswitch is pressed, when bottle cap is opened, microswitch is upspring; For example, when adopting proximity transducer as sensor element 11, should select proximity transducer installation site and angle, make: when bottle cap 11 is closed, during with bottle cap 11 unlatching, proximity transducer detects the distinguishable state that approaches.Consider quiescent dissipation, when adopting proximity transducer as sensor element, need regularly activated sensors to detect.
With reference to figure 5.Medicine box of the present invention comprises housing 14 and lid 12, sensor element 13 and housing 14 that whether the detection lid in described lid turn on sensor module 3 is opened are connected, lid 12 cover tightly with lid 12 relaxed states under, lid 12 can produce change in location with the sensor element 13, by installation site and the installation method of choose reasonable the sensor element 13, make 13 pairs of lids of sensor, 12 change in location responsive; For example, when adopting microswitch as sensor element 12, should select microswitch installation site and angle, make: when lid 12 is closed, microswitch is pressed, when lid 12 is opened, microswitch is upspring; For example, when adopting proximity transducer as sensor element 13, should select proximity transducer installation site and angle, make: when lid is closed, during with lid unlatching, proximity transducer detects the distinguishable state that approaches.Consider quiescent dissipation, when adopting proximity transducer as sensor element, need regularly activated sensors to detect.
With reference to Fig. 3. the present invention mainly has following operation mode, 1. 1, power-up initializing mode by micro controller module 2, control and dispatch:, 2., bluetooth connects, arranges reminder parameters mode, 3., sleep mode, 4., remind judgement mode, 5., reminding function mode, 6., detect bottle/box lid and open mode.
With reference to figure 3, when the present embodiment is used, when device powers on, after reset, device enters the 1. power-up initializing mode of above-mentioned mode, the main bottle/box lid turn on sensor that initializes, inertial sensor, real-time clock, bluetooth protocol repertory etc., after initialization finishes, device enters the 3. sleep mode in above-mentioned mode, now because modules enters low power consumpting state, reduced battery powered electric current, extended the stand-by time of device, 3. sleeping in mode, when inertial sensor module 8 detects specific movable information, inertial sensor module 8 is sent interruption to micro controller module 2, micro controller module 2 activates device wake, and enter 2. bluetooth and connect, reminder parameters mode is set, the radio-frequency communication module 5 of this timer is can connection mode, every some seconds, carry out one time Bluetooth broadcast, wireless connections are set up in wait.In bluetooth, connect, arrange in reminder parameters mode, if the application program that user's operating handset end is supporting, by bluetooth 4.0 low-power consumption agreements, device is connected with the control platform (application program) of communication terminal, now, user can be by communication terminal end application setting/configure device of the present invention prompting constantly, whether remind, alerting pattern etc., the configuration information of above-mentioned setting is sent to device by bluetooth 4.0 low-power consumption agreements.3. sleeping in mode, device regularly carries out wake-up activation one time, and enters 4. prompting judgement mode.4. remind in judgement mode, mainly that the time data of real-time clock module 7 and reminding function time are contrasted, if the time meets reminding function condition, and bottle/box lid turn on sensor module 3 does not detect bottle/box and covers in this prompting period and opened, device enters 5. reminding function mode, if do not meet above-mentioned condition, device is skipped 5. reminding function mode, directly enters and 6. detects bottle/box lid unlatching mode.In reminding function mode, the prompting that device is set according to connecting in bluetooth, during reminder parameters mode is set whether, the parameter such as alerting pattern, optionally control reminding function module 6, flash, shake or sound carries out medication alert, if what set is not remind, this timer is mourned in silence so, does not send any type of prompting.6. detect bottle/box lid and open in mode, device reads the testing result of bottle/box lid turn on sensor module, and after obtaining testing result, gets back to the mode of 3. sleeping.
Compared with prior art, device provided by the present invention has following beneficial effect:
(1) the present invention can be according to the parameter of setting, and timed reminding user takes tablet, and can, after user's opening bottles/lid being detected, automatically stop user's medication alert.
(2) the present invention can also set up radio-frequency communication module 5, can be interconnected with communication terminals such as smart mobile phone, Intelligent flat computers, by the control platform (application program) of communication terminal, set easily medicine bottle/box time, remind constantly, whether remind, alerting pattern etc.
(3) the present invention can also set up inertial sensor module 8, therefore motion conditions that can sensing device, can be according to the sleep of different behavior control devices, state of activation, to reduce operating current, the stand-by time of extension fixture, and can replace traditional man-machine interaction modes such as button, switch, and make whole device more intelligent and easy-to-use.
(4) workflow that adopts low-power chip and optimize for low-power consumption, can realize long-time standby.
(5) there is the medication alert mode of selectable secret, can protect user's the privacy of taking medicine.
Embodiment 3. the present invention disclose a kind of reminding function method of medicine bottle/box device of reminding function simultaneously, and as shown in Figure 6, described method comprises the steps, wherein, step 2) loop to step 5):
1), setting steps: user arranges the reminder parameters of the medicine bottle/box device of reminding function;
2), determining step: the medicine bottle/box device of described reminding function regularly judges, integrating step 4) the user's information of whether taking medicine obtaining that detects, judge whether to meet the condition of user being sent to medication alert;
3), remind step: if step 2) time of judging meets the condition of user being sent to medication alert, device is according to abovementioned steps 1) configuration information, by reminding function module, 6 couples of users remind;
4), detecting step: when user opens after bottle/box lid, the change of state that bottle/box lid is opened is by the perception of bottle/box lid turn on sensor module (3), and device thinks that user takes medicine, and records bottle/box lid start-up time and number of times;
5) bottle/box lid start-up time and the number of times of record, transmitting step: the medicine bottle of described reminding function/box device is connecting wireless network regularly, transmitting step 4).
Described step 1) setting steps comprises that three sub-steps: a, device enter can connection mode,, user is by attack/the knock medicine bottle/medicine box device of reminding function, make inertial sensor module 8 sensitivities, and send signal to micro controller module 2, micro controller module 2 receives after inertial sensor module 8 signals, and radio-frequency communication module 5 is configured to can find/can be accessed by pattern; B, device is connected with communication terminal, that is, user is by operation communication terminal, makes control platform on communication terminal and the medicine bottle/medicine box device of reminding function set up wireless connections by radio-frequency communication module 5; C, user set reminder parameters by the control platform of being located on communication terminal,, user is located at the control platform on communication terminal by use, and the user who sets the medicine bottle/medicine box device of reminding function arranges and remind the moment, alert interval, remind number of times, whether remind and the reminder parameters such as alerting pattern at every turn.Wherein, remind and constantly refer to: what user set need to send the moment of medication alert user; Alert interval refers to: when arriving above-mentioned prompting constantly, to user, send after medication alert, in the situation that user does not get it filled, send the interval between repetition medication alert to user next time; Each number of times of reminding refers to: each reminds the maximum times of the repetition medication alert of constantly sending to user; Whether remind and refer to: when arriving reminding is during the moment, whether to user, send medication alert; Alerting pattern refers to: when reaching prompting during the moment, and the alerting pattern that reminding user is taken medicine, mode comprises: sparkling prompting, vibration reminding, sound prompting etc.After reminder parameters has been set, the control platform of being located on communication terminal transfers to the reminder parameters of above-mentioned setting the medicine bottle/medicine box device of reminding function by the wireless connections of setting up in sub-step b.
Described step 2) determining step comprises two sub-steps: d, starts to remind judgement,, according to step 1) prompting moment of setting in sub-step c, alert interval, remind number of times at every turn, compare with the time output of the real-time clock module 7 of the medicine bottle/medicine box device of reminding function, when the time=prompting moment+n * alert interval (n< reminds number of times) at every turn, and when step 4) sub-step f does not detect the unlatching of bottle/box lid, output " starts to remind ".E, finish to remind judgement, that is, when time ≠ promptings moment+n * alert interval (n< reminds number of times) at every turn, or step 4) sub-step f is when bottle/box lid being detected and opening, output " end prompting ".
Described step 3) is reminded step: the prompting setting according to step 1) setting steps whether and alerting pattern, and step 2) judged result of determining step, carry out medication alert.Whether the prompting setting when step 1) is "No", while not reminding, even step 2) judgment result is that of determining step " starting to remind ", the medicine bottle/box device of reminding function does not also send any prompting to user; .Whether the prompting setting when step 1) is "Yes", while reminding, when step 2) judgment result is that of determining step is while " starting to remind ", and the alerting pattern that the medicine bottle/box device of reminding function sets according to step 1), sends medication alert to user.When step 2) judgment result is that of determining step is while " finishing to remind ", and the medicine bottle/box device of reminding function stops sending any prompting to user.
Described step 4) detecting step comprises two sub-steps: f, bottle/box lid open detection, by the change of state of being opened by bottle/box lid turn on sensor module 3 perception bottle/box lids, when bottle/box lid, opens, and device just thinks that user takes medicine; G, bottle/box lid open record, when sub-step f bottle/box lid turn on sensor module 3 detects bottle/box lid and opens, covers start-up time by bottle/box and is recorded in micro controller module 2, and bottle/box is covered to opening times adds one.
In described step 5) transmitting step, medicine bottle/the box device of reminding function is according to timing transmission time connecting wireless network, by micro controller module 2 timing controlled radio-frequency communication modules 5, initiate wireless network connection request, after setting up wireless connections, by the bottle/box lid start-up time and the bottle/box lid opening times that are recorded in step 4) sub-step g in micro controller module 2, transfer to the control platform of being located on communication terminal, by the control platform of being located on communication terminal, carry out data analysis and demonstration.If connected unsuccessfully, abandon so current transmitting step, and again attempt setting up wireless connections at next one timing transmission time.
The above-mentioned specific embodiment is used for the present invention that explains, rather than limits the invention, and in the protection domain of spirit of the present invention and claim, any modification and change that the present invention is made, all fall into protection scope of the present invention.