[summary of the invention]
The invention provides a kind of blue teeth wireless automatic timer, it is low in energy consumption, use is flexible.
Technical scheme of the present invention is: a kind of blue teeth wireless automatic timer, comprise housing, the power supply being provided with bluetooth main control unit and bluetooth main control unit is powered in housing, housing is provided with a smart key, bluetooth main control unit is built-in with MCU and supports the 2.4G transceiver of bluetooth 4.0 specification, and MCU is connected with described smart key by switching circuit;
MCU, according to the number of clicks of the smart key received in first scheduled time, sends different control commands by 2.4G transceiver to mobile terminal.
A kind of blue teeth wireless automatic timer, comprise housing, bluetooth TICC2541 chip is installed in housing, the P0_1 pin of TICC2541 chip connects smart key by switching circuit, XOSC_Q2 pin and the XOSC_Q1 pin of TICC2541 chip connect crystal oscillating circuit, and RF_N pin and the RF_P pin of TICC2541 chip connect antenna circuit; The P1_0 pin of TICC2541 chip, P1_1 pin or P0_7 pin connect LED; The DVDD1 pin of TICC2541 chip, DVDD2 pin, AVDD4 pin, AVDD1 pin, AVDD2 pin, AVDD5 pin, AVDD6 pin connect 3.3V power supply respectively; The P2_1 pin of TICC2541 chip, P2_2 pin and RESET_N pin connect software upgrading circuit, and P2_3/OSC32K_Q2 pin, the P2_4/OSC32K_Q1 pin of TICC2541 chip connect filter circuit.
Blue teeth wireless automatic timer of the present invention, is only provided with a smart key, can complete several functions operation, save the unnecessary operation of large amount of complex and unnecessary button by the number of clicks of this smart key, and structure is relative with operation simple, uses flexibly; And adopting bluetooth 4.0 specification, power consumption is lower, and the equipment use time is long.
[embodiment]
Below in conjunction with accompanying drawing, one detailed elaboration is done to specific embodiments of the invention.
As Fig. 1, blue teeth wireless automatic timer of the present invention, comprise housing, the power supply being provided with bluetooth main control unit and bluetooth main control unit is powered in housing, housing is provided with a smart key, bluetooth main control unit is built-in with MCU and supports the 2.4G transceiver of bluetooth 4.0 specification, and MCU is connected with described smart key by switching circuit;
MCU, according to the number of clicks of the smart key received in first scheduled time, sends different control commands by 2.4G transceiver to mobile terminal.
This smart key can control the startup of automatic timer and the control to mobile phone photograph after connecting mobile terminal (such as mobile phone), MCU is by judging that the number of clicks of user within a period of time is made different corresponding, such as click smart key when starting shooting can start shooting and complete and be connected with the bluetooth of mobile phone, when user click smart key five times fast and the 5th vice-minister by automatic timer when 5 seconds will increase/delete HID(HumaninterfaceDevice) agreement; When user click frequency is less than five times, different controlling functions can be started according to different number of clicks, user can shift to an earlier date and sets first scheduled time and operating function corresponding to different number of clicks in the terminal, such as, click once to perform and take pictures, click twice execution recording etc.; Now mobile terminal is according to the edit instruction received, and sets described first scheduled time and control command corresponding to different number of clicks, these control commands comprise take pictures, sectional drawing, caller identification etc.
As can be seen here, blue teeth wireless automatic timer of the present invention, can complete several functions operation by the number of clicks of a smart key, save the unnecessary operation of large amount of complex and unnecessary button, and structure is relative with operation simple, uses flexibly; And adopting bluetooth 4.0 specification, power consumption is lower, and the equipment use time is long.
During concrete enforcement, the mains switch be connected with MCU can also be connected with between described bluetooth main control unit and power supply, when MCU does not receive the key command of smart key within second scheduled time, control mains switch and close, power supply of cutting off the electricity supply.This second scheduled time can be set as 100ms, when automatic timer in 100ms without any task time, automatic timer will enter battery saving mode.
Certainly, after control mains switch closed for second scheduled time, MCU controls mains switch and opens, and starts Power supply.Namely, after closedown 100ms, the wake-up device when next timestamp 100ms arrives also proceeds to have judged whether task, and automatic timer power consumption is reduced further.
Automatic timer does not in the past have upgrade function, the binary system firmware that MCU of the present invention is read from server by mobile terminal described in 2.4G transceivers, and judge that whether binary system firmware is complete by checking algorithm, verification is by rear, binary system firmware to be written in the inner FLASH of bluetooth main control unit by the mode of IAP and to arrange again and upgrade mark, after blue teeth wireless automatic timer resets, perform new firmware program, solve with this problem that automatic timer firmware cannot upgrade.
In order to show the operating state of automatic timer, the present invention also comprises the LED be connected with MCU, by the operating state of the interval flashing instruction blue teeth wireless automatic timer of LED.Such as when automatic timer is in not-connected status by the interval flashing that the cycle of carrying out is 1 second, be the interval flashing of 3 seconds by the cycle of carrying out when automatic timer is in connection status.
Described bluetooth main control unit is preferably TICC2541 chip.Now, bluetooth TICC2541 chip is installed in housing, the circuit theory diagrams of bluetooth main control unit as shown in Figure 2,3, 4, the P0_1 pin of TICC2541 chip connects smart key by switching circuit, XOSC_Q2 pin and the XOSC_Q1 pin of TICC2541 chip connect crystal oscillating circuit, and RF_N pin and the RF_P pin of TICC2541 chip connect antenna circuit; The P1_0 pin of TICC2541 chip, P1_1 pin or P0_7 pin connect LED; The DVDD1 pin of TICC2541 chip, DVDD2 pin, AVDD4 pin, AVDD1 pin, AVDD2 pin, AVDD5 pin, AVDD6 pin connect 3.3V power supply respectively; The P2_1 pin of TICC2541 chip, P2_2 pin and RESET_N pin connect software upgrading circuit, and P2_3/OSC32K_Q2 pin, the P2_4/OSC32K_Q1 pin of TICC2541 chip connect filter circuit.
POWERKEY in Fig. 3 is multifunction push key, i.e. smart key, can control the startup of automatic timer and the control to mobile phone photograph after connecting mobile phone.
Wherein, described antenna circuit comprises 10 electric capacity and two antennas, the RF_N pin of TICC2541 chip is connected with one end of the second electric capacity L101 and the 3rd electric capacity C107 by the first electric capacity C111, the other end ground connection of the second electric capacity L101, the RF_P pin of TICC2541 chip is connected with one end of the 5th electric capacity C112 and the 6th electric capacity L102 by the 4th electric capacity C106, the other end ground connection of the 5th electric capacity C112, the other end of the 3rd electric capacity C107 is connected with the other end of the 6th electric capacity L102, and be connected with one end of the 7th electric capacity C110 and the 8th electric capacity C109, the other end ground connection of the 7th electric capacity C110, the other end of the 8th electric capacity C109 is connected with positive pole antenna by the 9th electric capacity R104, one end of the tenth electric capacity C108 is connected between the 8th electric capacity C109 and the 9th electric capacity R104, the other end ground connection of the tenth electric capacity C108,
Described crystal oscillating circuit comprises crystal oscillator chip MT6166, the XOSC_Q2 pin of TICC2541 chip is connected with a HOT pin of crystal oscillator chip MT6166 and passes through the 11 electric capacity C104 ground connection, and the XOSC_Q1 pin of TICC2541 chip is connected with the 2nd HOT pin of crystal oscillator chip MT6166 and passes through the 12 electric capacity C103 ground connection.
Above-described embodiment of the present invention, does not form limiting the scope of the present invention.Any amendment done within the spirit and principles in the present invention, equivalent replacement and improvement etc., all should be included within claims of the present invention.