CN108282493A - A kind of Wireless clock module and wireless calibration method - Google Patents
A kind of Wireless clock module and wireless calibration method Download PDFInfo
- Publication number
- CN108282493A CN108282493A CN201810179293.2A CN201810179293A CN108282493A CN 108282493 A CN108282493 A CN 108282493A CN 201810179293 A CN201810179293 A CN 201810179293A CN 108282493 A CN108282493 A CN 108282493A
- Authority
- CN
- China
- Prior art keywords
- wireless
- school
- circuit
- mcu
- clock module
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 20
- 239000013078 crystal Substances 0.000 claims abstract description 9
- 230000009471 action Effects 0.000 claims abstract description 4
- 238000004891 communication Methods 0.000 claims description 10
- 230000005611 electricity Effects 0.000 claims description 4
- 238000006243 chemical reaction Methods 0.000 claims description 3
- 230000008569 process Effects 0.000 abstract description 5
- 230000001186 cumulative effect Effects 0.000 abstract description 4
- 230000006870 function Effects 0.000 description 5
- 238000007726 management method Methods 0.000 description 5
- 230000005540 biological transmission Effects 0.000 description 3
- 230000008859 change Effects 0.000 description 3
- 238000010586 diagram Methods 0.000 description 3
- 238000012545 processing Methods 0.000 description 3
- 230000002123 temporal effect Effects 0.000 description 3
- 230000009466 transformation Effects 0.000 description 3
- 238000013501 data transformation Methods 0.000 description 2
- 238000011017 operating method Methods 0.000 description 2
- 238000013459 approach Methods 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000004883 computer application Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000003672 processing method Methods 0.000 description 1
- 230000004044 response Effects 0.000 description 1
- 230000008054 signal transmission Effects 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/28—Timers or timing mechanisms used in protocols
Landscapes
- Engineering & Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Electric Clocks (AREA)
Abstract
The present invention proposes a kind of Wireless clock module, including circuit, inside MCU, crystal oscillator and RTC chip when wireless school;The crystal oscillator is communicated to connect with RTC chip, when for driving RTC chip precisely to walk;Circuit and RTC chip are communicated to connect with the internal MCU respectively when the wireless school, the internal MCU is instructed when being used to receive the school of user, and circuit obtains standard UTC time when controlling the wireless school, and then the RTC chip is calibrated according to the standard UTC time;Circuit is used under the control action of the internal MCU access external ntp server and obtains standard UTC time when the wireless school.The invention also provides a kind of wireless calibration methods.Module and wireless calibration method when the wireless school of the present invention, when local zone time is walked in scheme when eliminating other schools during the cumulative errors brought by itself precision so that process more convenient and quicker, precision higher when school.
Description
Technical field
The present invention relates to wireless network and computer application field, more particularly to when a kind of Wireless clock module and wireless school
Method.
Background technology
Existing real-time clock module (Real Time Clock, referred to as " RTC block ") is typically necessary manually school
When, when being again mounted to equipment after when school is complete, or carrying out with reference to school with another local clock source, more particularly to
Occasion when needing more equipment always while keeping precisely walking, mode is not only inconvenient for operation when above-mentioned school, but also cumulative errors
It is larger, it is difficult to ensure that multiple devices simultaneously keep it is identical precisely walk when.
Invention content
The purpose of the present invention is to solve inconvenient and precision when real-time clock module school in the prior art is poor
The problem of, propose a kind of Wireless clock module and wireless calibration method.
The Wireless clock module of the present invention, including circuit, inside MCU, crystal oscillator and RTC chip when wireless school;The crystal oscillator
Communicated to connect with the RTC chip, for drive the RTC chip at school it is front and back precisely walk when;It is electric when the wireless school
Road and RTC chip are communicated to connect with the internal MCU respectively, and the internal MCU is instructed when being used to receive the school of user, and root
Standard UTC time is obtained according to circuit when instruction controls the wireless school when school, then according to the standard UTC time pair
The RTC chip is calibrated;Circuit is used to access external NTP under the control action of the internal MCU when the wireless school
Server simultaneously obtains standard UTC time.
In a preferred embodiment, when circuit is WiFi, bluetooth, infrared, schools Zigbee when the wireless school in circuit
Any one or arbitrary combination.
In a preferred embodiment, when the wireless school, circuit is the schools WiFi when circuit, electricity when the wireless school
Road includes WiFi antennas and WiFi chip;When the wireless school, circuit is bluetooth school when circuit, circuit when the wireless school
Including Bluetooth antenna and Bluetooth chip;When the wireless school, circuit is infrared school when circuit, circuit packet when the wireless school
Include infrared chip;When the wireless school, circuit is the schools Zigbee when circuit, circuit includes Zigbee days when the wireless school
Line and Zigbee chips.
In a preferred embodiment, circuit and router are wirelessly connected when the wireless school, the router with it is described
Ntp server is connected by cable, and circuit by NTP servers described in the router access and obtains when the wireless school
Standard UTC time.
In a preferred embodiment, the internal MCU is with external MCU by communicating to connect, or with cell phone application/PC
Client communication connects, and when school to receive user instructs.
In a preferred embodiment, when the internal MCU is communicated to connect with the external MCU, the internal MCU is logical
Spi bus, iic bus or UART buses is crossed to communicate to connect with the external MCU;As the internal MCU and the mobile phone
When APP/PC client communications connect, the internal MCU is connect with the cell phone application/pc client by TCP communication.
In a preferred embodiment, it when the internal MCU is communicated to connect by iic bus with the external MCU, needs
The pin to be connected includes SCL, SDA and BUSY pin, and SCL, SDA pin indicates that the internal MCU is total by the IIC
Line is connected with the external MCU;The BUSY pins are that IIC busy signals indicate pin.
In a preferred embodiment, when the internal MCU is communicated to connect by the iic bus and the external MCU
When, it further includes DA_REC pins to need the pin connected, and the DA_REC pins are that the Wireless clock module receives network number
According to signal designation pin, for so that the Wireless clock module carries out network data transmission.
In a preferred embodiment, the Wireless clock module further includes rechargeable battery and/or electric power management circuit, institute
It states rechargeable battery to be electrically connected with the RTC chip, for powering to RTC chip after a loss of power;The electric power management circuit and institute
Circuit is electrically connected when stating wireless school, for converting voltage so that the Wireless clock module can adapt to the outer of wide-voltage range
Portion's power supply.
The present invention also proposes a kind of wireless calibration method, includes the following steps:Step S1:Circuit and router when wireless school
It establishes and is wirelessly connected;Step S2:Internal MCU is instructed when receiving the school of user and compared with instruction when the school to prestore inside it,
When the two is consistent, by circuit when instruction is sent to the wireless school when school;Step S3:Circuit passes through when the wireless school
Router access ntp server simultaneously obtains standard UTC time, and the standard UTC time is then transferred to the internal MCU;
Step S4:After the internal MCU receives the standard UTC time, it is converted, and according to the temporal information after conversion
RTC chip is calibrated.
Compared with prior art, beneficial effects of the present invention have:
The Wireless clock module of the present invention operates when realizing the school to RTC chip by circuit when wireless school, improves this
Need mutual disassembly's lower module when the preceding schools RTC, when school after the completion of the method installed again, or need using local clock source as base
The mode of quasi- doubling time, simplifies operating procedure, has the characteristics that automation, may be programmed, is practical, accurate, eliminates other
The cumulative errors brought by itself precision during when local zone time is walked in scheme when school so that process more convenient and quicker when school,
And precision higher when school.
Description of the drawings
Fig. 1 is the internal structure schematic diagram of Wireless clock module in one embodiment of the invention.
Fig. 2 is the internal structure of Wireless clock module and its connection relation signal with outside in one embodiment of the invention
Figure.
Fig. 3 is the step flow chart of wireless calibration method in one embodiment of the invention.
Fig. 4 is the connection relationship diagram of Wireless clock module and outside MCU in one embodiment of the invention.
Fig. 5 is that Wireless clock module and the connection relation of cell phone application/pc client are illustrated in one embodiment of the invention
Figure.
Fig. 6 is the internal structure schematic diagram of Wireless clock module in another embodiment of the present invention.
Specific implementation mode
With reference to embodiment and compares attached drawing the present invention is described in further details.Wherein identical attached drawing
Label indicates identical component, unless stated otherwise.It is emphasized that following the description is only exemplary, without
It is to limit the scope of the invention and its apply.
In one embodiment, Wireless clock module 1 of the invention, as shown in Figure 1, circuit 11, interior when including wireless school
Portion MCU12, crystal oscillator 13 and RTC chip 14, wherein when wireless school circuit 11 and RTC chip 14 respectively with internal MCU12 communication links
It connects;Crystal oscillator 13 and RTC chip 14 communicate to connect, for driving RTC chip 14 front and back when precisely walking at school.Internal MCU12
It is instructed when school for receiving user, and standard UTC time is obtained according to circuit 11 when instruction controls wireless school when the school, then
RTC chip 14 is calibrated according to the standard UTC times;Circuit 11 is used for the control action in internal MCU12 when wireless school
NTP outside lower access (Net Time Protocol, Network Time Protocol, referred to as " NTP ") server and when obtaining standard UTC
Between.In a preferred embodiment, in order to reduce volume, crystal oscillator 13 can be integrated with RTC chip 14.
In the specific embodiment of the present invention, the internal structure of Wireless clock module 1 and its connection with outside
Relationship is as shown in Figure 2.In figure 2 it can be seen that in the present embodiment, circuit when circuit 11 is specially the schools WiFi when wireless school,
Including WiFi antennas 111 and WiFi chip 112, wherein connected by radio-frequency antenna between WiFi antennas 111 and WiFi chip 112
It connects, WiFi chip 112 is connect with inside MCU12 by UART buses, is connected in particular by receiving circuit RX and transmitting line TX
It connects;In addition, RTC chip is connect with inside MCU by iic bus, in particular by signal transmission line SCL and data line
Road SDA connections.In this embodiment, WiFi antennas 111 are wirelessly connected with router 2, and router 2 and NTP is serviced
Device 3 is connected by cable, to which the WiFi antennas 111 of the present embodiment can access distal end ntp server, and profit by router 2
Standard UTC time is obtained with ICP/IP protocol.
In other variant embodiments, WiFi chip 112 can also pass through other buses such as IIC or SPI and inside
MCU12 is communicated to connect;RTC chip can also be communicated to connect by spi bus and inside MCU, belong to the simple change to this case
Shape or transformation fall into the protection domain of this case.
In other variant embodiments, when circuit 11 can also be bluetooth, infrared, schools Zigbee when wireless school in circuit
Any one either arbitrarily combination or when circuit 11 can also be bluetooth, infrared, schools Zigbee when wireless school circuit with it is upper
The arbitrary combination of circuit improves the reliability of wireless connection to achieve the effect that resource complementation when stating the schools WiFi.When wireless school
When circuit 11 is bluetooth school when circuit, circuit 11 includes Bluetooth antenna and Bluetooth chip when wireless school;The circuit 11 when wireless school
For infrared school when circuit when, circuit 11 includes infrared chip when wireless school;Circuit when circuit 11 is the schools Zigbee when wireless school
When, circuit 11 includes Zigbee antennas and Zigbee chips when wireless school.Specifically, when wireless school, circuit 11 is infrared school
When circuit when, need the router of external connection also to have infrared receiver and sending function at this time, the time from ntp server
Information data translates into infra-red code data, and the data head that band is had an agreement, Wireless clock inside modules of the present invention it is red
Circuit then receives always infrared information when outer school, and when recognizing the infrared valid data format with temporal information, this is believed
Breath is sent to infrared chip, and internal MCU then by carrying out digital independent to infrared chip, equally may be implemented to internal RTC cores
Piece is calibrated.When infrared chip changes zigbee chips or Bluetooth chip into router and clock module, equally may be used
Function when realizing above-mentioned school, details are not described herein.
In the following description, it will be illustrated for circuit when the schools WiFi, it is not intended that the nothing of the present invention
Circuit is only a kind of this mode of WiFi when line school, other it is any can with router establish be wirelessly connected schools when circuit, such as
The circuit when schools such as upper bluetooth, the infrared, Zigbee, belongs to the simple deformation to this case or transformation, falls into the guarantor of this case
Protect range.
Method flow when the Wireless clock module of the present invention carries out wireless school as shown in figure 3, carry out step S1 first,
Circuit is established with router and is wirelessly connected when wireless school.Specifically, when internal MCU is opened the Wireless clock module of the present invention after the power is turned on
It is dynamic, it can WiFi titles and password and the WiFi titles of default setting in the MCU programs of inside and close first in automatic decision LAN
Whether code is consistent, and checks port connection, consistent, can be attached, and otherwise suspend mode waits for, in internal MCU programs
The WiFi titles and password of acquiescence can carry out instruction change by external MCU.
When wireless school, circuit and router are established be wirelessly connected after, carry out step S2, instruction is simultaneously when internal MCU receives school
Compared with instruction when the school to prestore inside it, when the two is consistent, electricity when instruction when the school is sent to wireless school by internal MCU
WiFi chip in road, otherwise internal MCU suspend mode always wait for command adapted thereto triggering.
After instruction is sent to WiFi chip as internal MCU high-ranking officers, step S3 is carried out, WiFi chip refers to when receiving the school
It enables, and by router access ntp server, obtains standard UTC time, the standard UTC time is then transferred to inside
MCU.Specifically, WiFi chip obtains standard UTC time, Daytime services by connecting the ports Daytime of ntp server
The application based on TCP, server is intercepted in TCP port number 13, once have connection establish be returned to ASCII forms date and
Time data closes connection after having transmitted.
After standard UTC time is transferred to internal MCU by WiFi chip, carries out step S4, internal MCU and receive the standard
UTC time data, and detect whether character string has " UTC " to judge whether time format is accurate, then the temporal information is turned
Change into RTC chip identification format (mainly extract clock information, then carry out calculating conversion, added and subtracted according to time zone, for example, in
8th areas Guo Dong add 8 hours), then the RTC chip of inside modules is calibrated.
The Wireless clock module of the present invention instructs when in use, the school of user can be received by following two approach,
It is as shown in Figure 4 and Figure 5 respectively.In Fig. 4, the inside MCU of Wireless clock module of the present invention is connected with periphery MCU, needs to connect
Pin be SCL, SDA, BUSY pin also to connect DA_REC pins if to carry out network data transmission, wherein
SCL, SDA pin indicate that internal MCU is connected by iic bus with periphery MCU;BUSY pins are connected to the IO feet of internal MCU,
BUSY pins are that IIC busy signals indicate pin.In the present embodiment, it defines when BUSY pins are " 1 " and indicates idle state, at this time
Iic bus can be operated by external MCU, and internally MCU transmits signal or data;BUSY pins are busy condition when being " 0 ", this
When no thoroughfare external MCU operations iic bus internally MCU transmits signal or data.By external MCU to iic bus into
The state that BUSY pins must be first read before row operation, for the operation of next step could be carried out when not busy state.
In the present embodiment, the inside MCU chip of clock module have the main equipments of IIC communications with from functions of the equipments, when
After the power is turned on, internal MCU is initialized module, and detects whether to connect router, and inside modules MCU default settings are from equipment
Function waits for the instruction of external MCU at this time, and when the instruction not from external MCU, module enters suspend mode wait state.When
When internal MCU receives the school of external MCU after instruction, the state of BUSY pins will become " 0 " from " 1 ", at this time internal MCU
With master device functionality, WiFi chip can be controlled and obtain standard UTC time, and according to the standard UTC time to RTC chip
It is calibrated.In the present embodiment, user can be come by the iic bus between external MCU, inside MCU and RTC chip
The time and data information or control RTC chip in RTC chip are read indirectly.In other variant embodiments, such as Fig. 4 institutes
Show, external MCU can also directly be connect with RTC chip by iic bus, and user can directly be read by external MCU at this time
Time and data information in RTC chip or control RTC chip.
In the present embodiment, DA_REC pins are the signal designation pin of Wireless clock module receiving network data, are " 1 "
When indicate idle state, that is, be not received by network data, be " 0 " when indicate that busy condition, i.e. Wireless clock module are received
To the network data from PC/APP, directly directly reading data using IIC modes by external MCU again at this time can.
The Wireless clock module of the present invention has data-transformation facility (below referred to as " module "), for example, module is sent out
It send data to pc client, Networked E-Journals assistant is opened first on cell phone application/pc client, procotol is selected as TCP
Client patterns, first passing through instruction makes the upper router of module connection, and interface then, which is arranged, by network access router to look into
The module I P address having connected is ask, if module's address is 192.168.0.2, or the IP directly by instructing read module
The module I P address of acquisition, is then inserted Networked E-Journals assistant's menu option server ip frame by address, and server end slogan is
8080, check the IP address of cell phone application/pc client local, if cell phone application/pc client IP address is 192.168.0.3,
Then for external MCU by the network transmission function of IIC instruction unpack modules, setup module transport-type is TCP modes, and to
The IP address 192.168.0.3 and port numbers 8080 of its transmitting cell-phone APP/PC clients, then external MCU send demand data
Information gives internal MCU, can see the response data that clock module is sent in computer network debugging assistant sink block at this time
Information.
For another example module receives the data that cell phone application/pc client is sent out, it is first turned on cell phone application/pc client
Networked E-Journals assistant, procotol are selected as TCP Server patterns, fill in cell phone application/PC client local ip address respectively
192.168.0.3 with local port number 8080, connection is clicked, external MCU judges whether the value of DA_REC pins is " 0 " at this time,
If it is " 0 ", then it represents that the network data from cell phone application/pc client has been received in module, then reuses the side IIC
It is exactly the data value that pc client issues module that formula, which directly reads the value on SDA data lines, is then continued waiting for for " 1 ", when waiting
Between the then internal microcontroller suspend mode more than 5 minutes, and disconnect network connection.
It can be seen from the above, in the embodiment shown in fig. 4, user only need to use IIC communications that can complete all operations,
IIC traffic operations are simple, take up less resources, and user only needs to use several simple IIC operational orders, so that it may so that the present invention
Wireless clock module realize that complicated correcting time in network and data-transformation facility, user also can without understanding network knowledge in depth
Easily obtain the useful network information.
The Wireless clock module of the present invention refers to when in use, the school of user can be received by cell phone application/pc client
It enables, as shown in Figure 5.In Figure 5, cell phone application/pc client and the inside MCU of module are communicated by TCP connects, when user thinks
When being instructed when sending school to the inside MCU of module by cell phone application/pc client, it is first turned on cell phone application/pc client
Networked E-Journals assistant, procotol is selected as TCP Server patterns, with filling in cell phone application/pc client local IP respectively
Location, such as 192.168.0.3 and local port number, such as 8080, connection is clicked, cell phone application/PC visitors hereafter can be passed through
Family end instructs when internally MCU sends school.When MCU receives the school after instruction, so that it may obtain standard to control WiFi chip
UTC time, the process step of process as shown in figure 3 is similar when specific school, and details are not described herein.In the present embodiment, sharp
Clock module is calibrated using TCP communication with cell phone application/pc client, module is not needed and passes through SPI, IIC, UART etc.
Bus is connected with outside MCU, process when further simplifying the school of clock module.
In a preferred embodiment, Wireless clock module of the invention, as shown in fig. 6, can also include rechargeable battery 15
And/or electric power management circuit 16, wherein rechargeable battery 15 is electrically connected with RTC chip, for powering after a loss of power to RTC chip,
So that the Wireless clock module of the present invention after long-time powers off it is also ensured that not entanglement when walking, timing course is not by extraneous
Interference, keeps higher reliability;Electric power management circuit 16 is electrically connected with circuit when wireless school 11, for converting voltage, is expanded
The voltage range of choice of user.For example, in one embodiment, the operating voltage of WiFi chip and inside MCU are 3.3v, are passed through
Electric power management circuit 16, module can work normally in external power supply 3v-5.5v wide pressure ranges.
It may be noted that according to the needs of implementation, each step/component described in this application can be split as more multistep
The part operation of two or more step/components or step/component can be also combined into new step/component by suddenly/component,
To achieve the object of the present invention, the simple deformation to this case or transformation are belonged to, falls into the protection domain of this case.
The Wireless clock module of the present invention operates when realizing the school to RTC chip by circuit when wireless school, improves this
Need mutual disassembly's lower module when the preceding schools RTC, when school after the completion of the method installed again, or need using local clock source as base
The mode of quasi- doubling time, simplifies operating procedure, has the characteristics that automation, may be programmed, is practical, accurate, eliminates other
The cumulative errors brought by itself precision during when local zone time is walked in scheme when school so that process more convenient and quicker when school,
And precision is high when school.
The above-mentioned wireless calibration method of the present invention can be realized in hardware, firmware, or be implemented as being storable in record
Software or computer code in medium (such as CD ROM, RAM, floppy disk, hard disk or magneto-optic disk), or it is implemented through network
The original storage of download is in long-range recording medium or nonvolatile machine readable media and will be stored in local recording medium
Computer code, to which method described here can be stored in using all-purpose computer, application specific processor or programmable
Or such software processing in the recording medium of specialized hardware (such as ASIC or FPGA).It is appreciated that computer, processing
Device, microprocessor controller or programmable hardware include can store or receive software or computer code storage assembly (for example,
RAM, ROM, flash memory etc.), when the software or computer code are by computer, processor or hardware access and execute, realize
Processing method described here.In addition, when all-purpose computer accesses the code for realizing the processing being shown here, code
Execute special purpose computer all-purpose computer is converted to for executing the processing being shown here.
The above content is a further detailed description of the present invention in conjunction with specific preferred embodiments, and it cannot be said that
The specific implementation of the present invention is confined to these explanations.For those skilled in the art to which the present invention belongs, it is not taking off
Under the premise of from present inventive concept, several equivalent substitute or obvious modifications can also be made, and performance or use is identical, all answered
When being considered as belonging to protection scope of the present invention.
Claims (10)
1. a kind of Wireless clock module, which is characterized in that circuit, inside MCU, crystal oscillator and RTC chip when including wireless school;It is described
Crystal oscillator and the RTC chip communicate to connect, for driving the RTC chip front and back when precisely walking at school;The wireless school
When circuit and RTC chip communicated to connect respectively with the internal MCU, the internal MCU is instructed when being used to receive the school of user, and
Standard UTC time is obtained according to circuit when instruction controls the wireless school when school, then according to the standard UTC time pair
The RTC chip is calibrated;Circuit is used to access external NTP under the control action of the internal MCU when the wireless school
Server simultaneously obtains standard UTC time.
2. Wireless clock module according to claim 1, which is characterized in that when the wireless school circuit be WiFi, bluetooth,
Any one when infrared, schools Zigbee in circuit or arbitrary combination.
3. Wireless clock module according to claim 2, which is characterized in that when the wireless school, circuit is the schools WiFi
When circuit, circuit includes WiFi antennas and WiFi chip when the wireless school;Electricity when circuit is bluetooth school when the wireless school
Lu Shi, circuit includes Bluetooth antenna and Bluetooth chip when the wireless school;Circuit when circuit is infrared school when the wireless school
When, circuit includes infrared chip when the wireless school;It is described wireless when the wireless school, circuit is the schools Zigbee when circuit
Circuit includes Zigbee antennas and Zigbee chips when school.
4. Wireless clock module according to claim 1, which is characterized in that circuit and router are wireless when the wireless school
Connection, the router connect with the ntp server by cable, and circuit passes through the router access when the wireless school
The ntp server simultaneously obtains standard UTC time.
5. Wireless clock module according to claim 1, which is characterized in that the internal MCU with external MCU by communicating
Connection, or communicated to connect with cell phone application/pc client, when school to receive user, instruct.
6. Wireless clock module according to claim 5, which is characterized in that when the internal MCU and the external MCU are logical
When letter connection, the internal MCU is communicated to connect by spi bus, iic bus or UART buses and the external MCU;Work as institute
When stating internal MCU with the cell phone application/pc client communication connection, the internal MCU and the cell phone application/pc client are logical
Cross TCP communication connection.
7. Wireless clock module according to claim 6, which is characterized in that when the internal MCU passes through iic bus and institute
When stating external MCU communication connections, it includes SCL, SDA and BUSY pin to need the pin connected, and SCL, SDA pin indicates institute
Internal MCU is stated by the iic bus to be connected with the external MCU;The BUSY pins are that IIC busy signals indicate pin.
8. Wireless clock module according to claim 7, which is characterized in that when the internal MCU passes through the iic bus
When being communicated to connect with the external MCU, it further includes DA_REC pins to need the pin connected, and the DA_REC pins are the nothing
The signal designation pin of line clock module receiving network data, for so that the Wireless clock module carries out network data biography
It is defeated.
9. according to any Wireless clock modules of claim 1-8, which is characterized in that further include rechargeable battery and/or electricity
Power management circuits, the rechargeable battery are electrically connected with the RTC chip, for powering after a loss of power to RTC chip;The power supply
Management circuit is electrically connected with circuit when the wireless school, for converting voltage so that the Wireless clock module can adapt to width
The external power supply of voltage range.
10. a kind of wireless calibration method, which is characterized in that include the following steps:
Step S1:Circuit is established with router and is wirelessly connected when wireless school;
Step S2:Internal MCU is instructed when receiving the school of user and compared with instruction when the school to prestore inside it, when the two is consistent
When, by circuit when instruction is sent to the wireless school when school;
Step S3:Circuit by router access ntp server and obtains standard UTC time when the wireless school, then by institute
The standard UTC time of stating is transferred to the internal MCU;
Step S4:After the internal MCU receives the standard UTC time, it is converted, and according to the time after conversion
RTC chip is calibrated in information.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810179293.2A CN108282493B (en) | 2018-03-05 | 2018-03-05 | Wireless clock module and wireless timing method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810179293.2A CN108282493B (en) | 2018-03-05 | 2018-03-05 | Wireless clock module and wireless timing method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108282493A true CN108282493A (en) | 2018-07-13 |
CN108282493B CN108282493B (en) | 2024-01-30 |
Family
ID=62809012
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810179293.2A Active CN108282493B (en) | 2018-03-05 | 2018-03-05 | Wireless clock module and wireless timing method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108282493B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111756561A (en) * | 2019-03-28 | 2020-10-09 | 上海寰泰电子有限公司 | Clock initialization configuration method and device |
CN113126694A (en) * | 2021-04-13 | 2021-07-16 | 山东英信计算机技术有限公司 | Time synchronization method, system, equipment and storage medium of computer management subsystem |
Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH11205456A (en) * | 1998-01-08 | 1999-07-30 | Hitachi Ltd | Mobile radio equipment with clock and time control system therefor |
KR20050064158A (en) * | 2003-12-23 | 2005-06-29 | 주식회사 팬택앤큐리텔 | Analog watch having function of correcting time automatically |
US20090310593A1 (en) * | 2008-06-17 | 2009-12-17 | Qualcomm Incorporated | Self-positioning access points |
CN201600566U (en) * | 2009-11-30 | 2010-10-06 | 杭州市电力局 | Electric meter timing device based on broadcasting station signals |
CN201673377U (en) * | 2010-05-21 | 2010-12-15 | 深圳市飞亚达科技发展有限公司 | Wireless timing system based on GPS/Beidou dual-mode time service |
CN102176720A (en) * | 2011-02-15 | 2011-09-07 | 长江南京航道局 | Pharos remote control telemetering terminal based on internet of things (IOT) application |
KR20130140950A (en) * | 2012-05-18 | 2013-12-26 | 김용광 | Time correction system capable of mode power save using battery |
CN204116832U (en) * | 2014-08-18 | 2015-01-21 | 郭杰平 | A kind of hand movement of function when there is WIFI network school |
CN106483906A (en) * | 2016-12-14 | 2017-03-08 | 南京工业职业技术学院 | A kind of GPS automatic correcting time Control management system based on WIFI |
CN106814600A (en) * | 2017-01-17 | 2017-06-09 | 冯宇霖 | Bluetooth technology clock networking timing system and method for the one kind based on the Big Dipper/GPS |
-
2018
- 2018-03-05 CN CN201810179293.2A patent/CN108282493B/en active Active
Patent Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH11205456A (en) * | 1998-01-08 | 1999-07-30 | Hitachi Ltd | Mobile radio equipment with clock and time control system therefor |
KR20050064158A (en) * | 2003-12-23 | 2005-06-29 | 주식회사 팬택앤큐리텔 | Analog watch having function of correcting time automatically |
US20090310593A1 (en) * | 2008-06-17 | 2009-12-17 | Qualcomm Incorporated | Self-positioning access points |
CN201600566U (en) * | 2009-11-30 | 2010-10-06 | 杭州市电力局 | Electric meter timing device based on broadcasting station signals |
CN201673377U (en) * | 2010-05-21 | 2010-12-15 | 深圳市飞亚达科技发展有限公司 | Wireless timing system based on GPS/Beidou dual-mode time service |
CN102176720A (en) * | 2011-02-15 | 2011-09-07 | 长江南京航道局 | Pharos remote control telemetering terminal based on internet of things (IOT) application |
KR20130140950A (en) * | 2012-05-18 | 2013-12-26 | 김용광 | Time correction system capable of mode power save using battery |
CN204116832U (en) * | 2014-08-18 | 2015-01-21 | 郭杰平 | A kind of hand movement of function when there is WIFI network school |
CN106483906A (en) * | 2016-12-14 | 2017-03-08 | 南京工业职业技术学院 | A kind of GPS automatic correcting time Control management system based on WIFI |
CN106814600A (en) * | 2017-01-17 | 2017-06-09 | 冯宇霖 | Bluetooth technology clock networking timing system and method for the one kind based on the Big Dipper/GPS |
Non-Patent Citations (1)
Title |
---|
张良华: ""高精度GPS实时时钟SD2421API在实时数据采集中的应用"", 《万方》, pages 1 - 2 * |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111756561A (en) * | 2019-03-28 | 2020-10-09 | 上海寰泰电子有限公司 | Clock initialization configuration method and device |
CN113126694A (en) * | 2021-04-13 | 2021-07-16 | 山东英信计算机技术有限公司 | Time synchronization method, system, equipment and storage medium of computer management subsystem |
CN113126694B (en) * | 2021-04-13 | 2023-08-04 | 山东英信计算机技术有限公司 | Time setting method, system, equipment and storage medium of computer management subsystem |
Also Published As
Publication number | Publication date |
---|---|
CN108282493B (en) | 2024-01-30 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110213058A (en) | A kind of block chain all-in-one machine for realizing data cochain | |
CN109615841A (en) | Beidou multi-user card data transmission device and transmission method applied to FTU | |
CN102448098B (en) | Based on physical layer test macro and the method for ARM and DSP coenocytism | |
CN109981360B (en) | Internet of things equipment site opening method, device and system and storage medium | |
CN108282493A (en) | A kind of Wireless clock module and wireless calibration method | |
CN207732991U (en) | Internet of things data acquisition transmitter based on LoRa | |
CN207853934U (en) | A kind of Wireless clock equipment | |
WO2021008503A1 (en) | Management control method and device for new fronthaul network | |
CN110212937B (en) | Low-power-consumption module based on single Beidou module and multi-card data transmission mode | |
CN106713417A (en) | Ammeter applying things-of-internet sensing and perception module | |
CN209419644U (en) | A kind of LoRa Tandem Gateway | |
CN110381027A (en) | Embedded device carries the device and method that carplay agreement connects vehicle device by USB | |
CN111252639B (en) | Method, system, terminal and medium for offline updating elevator car display screen resources | |
CN108173913A (en) | The LTE wireless private networks communication device and method of a kind of electric fault indicator | |
CN102932193A (en) | Network device, management terminal and configuration management system | |
CN210693980U (en) | Control circuit of Internet of things gateway, Internet of things gateway and Internet of things system | |
CN110071792B (en) | Low-delay high-reliability wireless transmission control method based on half-duplex bus | |
CN106408773A (en) | Electricity meter using Internet of Things sensing module with information processing | |
CN101368876B (en) | Testing bench frame control system for open type internal combustion engine | |
CN221102615U (en) | Intelligent plug, power supply control system and electronic equipment | |
CN106921807B (en) | A kind of telephone operation machine system and its self checking method | |
WO2018195763A1 (en) | Intelligent in-vehicle system authenticating connection based on sound waves and method for connection in authentication | |
CN111131012A (en) | Control circuit of Internet of things gateway, Internet of things gateway and Internet of things system | |
CN103067482B (en) | Remote maintenance system | |
CN205725749U (en) | Anury field recorders and system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |