Summary of the invention
For shortcoming easily inadequate during the above-mentioned pointer gauge pair of the prior art mentioned, the invention provides a kind of newly realize indicator pair by Bluetooth technology time method, it transmits correct time signal to pointer gauge by Bluetooth technology, and when driving pointer to carry out pair, greatly facilitate pointer gauge pair time operation.
The present invention solves the technical scheme that its technical matters adopts: a kind of method when realizing indicator pair by Bluetooth technology, the method comprises the steps:
(1) microcontroller, in timer sets up communication path by Bluetooth communication chip and Bluetooth terminal;
(2), Bluetooth terminal passes through bluetooth path transmission time information to the Bluetooth communication chip of timer section;
(3), microcontroller gets the temporal information that Bluetooth communication chip receives;
(4), microcontroller drives movement revolution;
(5), revolution drives indicators turn;
(6), pointer is docked to the consistent position of the literal temporal information content with obtaining;
(7), user is by reading the content obtaining of literal position to temporal information.
The technical scheme that the present invention solves the employing of its technical matters further comprises:
Described step (1) Timer and Bluetooth terminal have two kinds of situations to shake hands:
In the first situation, when user thinks the bluetooth and timer bluetooth opening Bluetooth terminal, after both set up communication port, carry out immediately shaking hands or shaking hands by pressing the time service control be arranged on Bluetooth terminal;
In the second situation, Bluetooth terminal and timer, by the time of agreement, are opened bluetooth simultaneously, after setting up communication port, are automatically shaken hands.
In described step (4), microcontroller CD-ROM drive motor method comprises the steps:
A two groups of storeies are set in (), microcontroller, one group of holding time information, preserve pointer position information for one group;
(b), the storage content of temporal information storer can be changed after timer obtains the temporal information of mobile phone by Bluetooth communication;
C whether (), microcontroller compare two groups of storeies and mate, judge the driving direction that motor needs, if do not mate, drive movement revolution according to the direction determined, change the storage content of positional information storer simultaneously
(d), circulation execution (c) step, until two groups of storeies mate mutually, stop drive, now pointer position can expression time information.
Between described timer and Bluetooth terminal except transmission time information, also transmission comprises date and/or week information.
The invention has the beneficial effects as follows: the present invention can the distance of ACU and mobile phone, ensure the success ratio of time service, and its need can get temporal information a few second, pair time accurately, quick.The present invention simultaneously can be supported in global range, can realize time service to timer immediately after time zone switches.
Embodiment
The present embodiment is the preferred embodiment for the present invention, and other its principles all are identical with the present embodiment or approximate with basic structure, all within scope.
Method of the present invention is mainly used in the electronic product with pointer clocking capability, the primary structure of the product (being called timer in the present invention) applied in the present invention comprising: Bluetooth communication chip, microcontroller, movement motor, literal (or with the structure of information suggesting effect or parts, as: be arranged on the numeral on dial plate) and pointer, Bluetooth communication chip outputs signal to microcontroller, the revolution of microprocessor controls movement, movement motor driving indicators turn.
Implementation procedure of the present invention comprises the steps:
1, microcontroller sets up communication path by Bluetooth communication chip and mobile phone, and in the present embodiment, for the realization of bluetooth time service function, timer and mobile phone mainly have two kinds of situations can carry out shaking hands carrying out information transmission:
1), in the first situation, mobile phone is opened (in the present embodiment when user thinks, for mobile phone, during concrete enforcement, Bluetooth terminal also can adopt dull and stereotyped other electronic equipments waited with Bluetooth function) bluetooth and timer bluetooth, after both set up communication port, carry out immediately shaking hands or shaken hands, like this for user thinks synchronously to provide approach by the time service control pressed on the app that is contained on mobile phone.
2), in the second situation, mobile phone and equipment, by the time of agreement, open bluetooth simultaneously, after setting up communication port, automatically shake hands, so just can facilitate user, make it not need active operation, the consistance of equipment end information and mobile phone terminal information can be ensured.
2, Bluetooth terminal (as: mobile phone) by information such as bluetooth path transmitting time, dates to the Bluetooth communication chip of timer section, after communication port is set up, to carry out information transmission, the information package such as time can be entered in packet by the app be arranged on mobile phone, then send information to timer by communication port;
3, microcontroller gets the information such as time, date that Bluetooth communication chip receives;
4, microcontroller passes through I/O port or other interface driver movement revolution of chip, and when microcontroller CD-ROM drive motor method is as follows: arrange two groups of storeies in (1), microcontroller, one group of holding time information, preserves pointer position information for one group, (2), the storage content of temporal information storer can be changed after timer obtains the temporal information of mobile phone by Bluetooth communication, (3), whether microcontroller compares two groups of storeies and mates, judge the driving direction that motor needs, if do not mate, drive movement revolution according to the direction determined, change the storage content of positional information storer simultaneously, (4), circulation execution (3) step, until two groups of storeies mate mutually, stop driving, now pointer position can expression time information, same mode synchronously can indicate the date, week etc. other information contents obtained by bluetooth,
5, revolution drives indicators turn;
6, pointer is docked to the literal position consistent to information contents such as the Time of Days with acquisition;
7, user is by reading the content obtaining of literal position to the information such as time, date.
Product of the present invention obtains the information such as the time of Bluetooth terminal by Bluetooth communication, and by microprocessor controls movement motor, makes pointer pass through instruction literal, give expression to the content of institute's obtaining information clear and intuitively.The invention solves common smart bluetooth wrist-watch the time of acquisition to be shown by electronic display screen, and invention drives movement motor by microcontroller, makes the pointer information such as expression time, date more intuitively.The present invention solves the blue tooth products of general band clocking capability simultaneously, the information such as the time obtained from terminal can only be shown by display screen, and cannot drive movement motor by microcontroller, makes the information such as pointer energy accurate expression time.
The present invention by be mainly used in possess bluetooth communication capability band hand-manipulating of needle instruction time, informational function Intelligent wearable electronic product, or band hand-manipulating of needle instruction time, informational function the timing product such as wrist-watch.The product of the inventive method is adopted mainly to comprise following product feature: 1, product has bluetooth communication capability, 2, product by with the terminal such as mobile phone, flat board, PC by information such as Bluetooth communication acquisition time, dates, 3, product is by microcontroller CD-ROM drive motor, 4, after movement motor is driven, the information such as pointer instruction time, date are made.
The speed of information and the success ratios of the information such as acquisition time, date such as product acquisition time date can be improved by the present invention, adopt the present invention can meet the requirement of whole world time zone acquisition time, the information such as the time or date that time service can be obtained or week, by microcontroller CD-ROM drive motor, make the content giving expression to institute's obtaining information that pointer is clear and intuitive.Allowed by the present invention the electronic products such as timer can more fast and accurately from information such as mobile phone acquisition times, and allow the letter disk content indicated by reading pointer that user can be clear and intuitive, quick and precisely recognize the information such as time, date and weather.Timer microcontroller of the present invention is by driving hand-manipulating of needle revolution, and drive the hand-manipulating of needle to rotate, the literal content obtaining that user stops instruction by reading pointer needs correct information.