Offline time service device, method, computer program product and electronic equipment

文档序号:1878151 发布日期:2021-11-23 浏览:17次 中文

阅读说明:本技术 离线授时装置、方法、计算机程序产品以及电子设备 (Offline time service device, method, computer program product and electronic equipment ) 是由 赵波 张庆安 姜晓新 于 2021-08-10 设计创作,主要内容包括:本发明涉及一种离线授时装置、方法、计算机程序产品以及电子设备,其中离线授时装置包括时间源获取单元,配置成从卫星获取第一时间信息;时间源校准单元,配置成根据第一时间信息确定校准时间,以及响应于离线授时装置与卫星处于连接状态,根据时间源获取单元按照预置的频次从卫星获取的卫星时间和卫星数量对校准时间进行校准;以及离线授时单元,配置成响应于离线授时装置与卫星处于断开状态,以校准时间为基础进行计数并输出用于对时的授时时间。根据本发明的技术方案,可以提供离线授时服务。(The invention relates to an offline time service device, an offline time service method, a computer program product and electronic equipment, wherein the offline time service device comprises a time source acquisition unit, a time source acquisition unit and a time source acquisition unit, wherein the time source acquisition unit is configured to acquire first time information from a satellite; the time source calibration unit is configured to determine calibration time according to the first time information, respond to the fact that the off-line time service device is connected with the satellite, and calibrate the calibration time according to the satellite time and the satellite number acquired by the time source acquisition unit from the satellite according to the preset frequency; and the off-line time service unit is configured to respond to the off-line time service device and the satellite being in a disconnected state, count on the basis of the calibration time and output time service time for time service. According to the technical scheme of the invention, the offline time service can be provided.)

1. An offline time service device, the offline time service device comprising:

a time source acquisition unit configured to acquire first time information from a satellite;

the time source calibration unit is configured to determine calibration time according to the first time information, respond to the fact that the off-line time service device is connected with the satellite, and calibrate the calibration time according to the satellite time and the satellite number acquired by the time source acquisition unit from the satellite according to the preset frequency;

the off-line time service unit is configured to respond to the off-line time service device and the satellite being in a disconnected state, count and output time service time for time service based on the calibration time, and output warning information for prompting time calibration; and

the computer driving unit is configured to receive the time service time, the warning information and the first time information for time service to a computer.

2. The offline time service device of claim 1, wherein the first time information comprises: satellite time, number of satellites, satellite position; and, the time source calibration unit is further configured to: and determining compensation time according to the satellite number and the satellite positions, and determining calibration time according to the satellite time and the compensation time.

3. The offline time service device of claim 1, further comprising a power supply unit and a USB interface, wherein the power supply unit is further configured to: charging the off-line time service device through the USB interface; and the offline time service device outputs the authorization time through the USB interface.

4. The offline time service device of claim 1, wherein the time source obtaining unit is further configured to: outputting the first time information through a serial port; and, the time source calibration unit is further configured to:

and acquiring the first time information through the serial port.

5. An off-line time service method is characterized by comprising the following steps:

obtaining first time information from a satellite;

determining a calibration time according to the first time information;

in response to being connected with the satellite, calibrating the calibration time according to the satellite time and the satellite number acquired from the satellite at a preset frequency; and

in response to being disconnected from the satellite, counting and outputting authorization time based on the calibration time, and outputting warning information for prompting time calibration;

and receiving the time service time, the warning information and the first time information for time service to the computer.

6. The method of claim 5, wherein the first time information comprises: satellite time, number of satellites, satellite position; and the step of determining a calibration time from the first time information comprises: and determining compensation time according to the satellite number and the satellite positions, and determining calibration time according to the satellite time and the compensation time.

7. A computer-readable storage medium storing computer instructions for causing a computer to perform the offline timing method of any one of claims 5-6.

8. An electronic device, comprising: at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of any one of claims 5-6.

Technical Field

The invention relates to the technical field of time service. More particularly, the present invention relates to an offline time service apparatus, method, computer program product and electronic device.

Background

Currently, there are two main methods for time service: communication channel time service and satellite time service. The communication channel time service mainly uses the Network Time Protocol (NTP) of the internet time synchronization, the method depends on the internet seriously, and the method can not ensure the accuracy of time in the area where the network signal coverage is incomplete or the network signal is unstable. The satellite time service method is mainly used for receiving signals transmitted by GPS satellites so as to realize accurate time service in the global range. However, the current satellite or communication channel online time service method needs to arrange an antenna or connect the internet, but some systems in some environments cannot meet the above two requirements at any time.

Disclosure of Invention

In order to at least partially solve the technical problems mentioned in the background, the invention provides an offline time service device, an offline time service method, a computer program product and an electronic device.

According to a first aspect of the present invention, there is provided an offline time service apparatus, comprising: a time source acquisition unit configured to acquire first time information from a satellite; a time source calibration unit configured to determine a calibration time based on the first time information, and calibrate the calibration time based on the satellite time and the number of satellites acquired from the satellites by the time source acquisition unit at a preset frequency in response to the apparatus being in a connected state with the satellites; the off-line time service unit is configured to respond to the off-line time service device and the satellite being in a disconnected state, count and output time service time for time service based on the calibration time, and output warning information for prompting time calibration; and the computer driving unit is configured to receive the time service time, the warning information and the first time information for time service to the computer.

According to an optional embodiment of the first aspect of the present invention, the first time information comprises: satellite time, number of satellites, satellite position; and, the time source calibration unit is further configured to: and determining compensation time according to the satellite number and the satellite positions, and determining calibration time according to the satellite time and the compensation time.

According to an alternative embodiment of the first aspect of the present invention, the apparatus further comprises a power supply unit and a USB interface, the power supply unit being further configured to: the battery charges the off-line time service device through the USB interface; and the offline time service device outputs the authorization time through the USB interface.

According to an optional embodiment of the first aspect of the present invention, the time source obtaining unit is further configured to: outputting the first time information through a serial port; and, the time source calibration unit is further configured to: and acquiring the first time information through the serial port.

According to a second aspect of the present invention, there is provided an offline time service method, including: obtaining first time information from a satellite; determining a calibration time according to the first time information; in response to being in a connected state with the satellite, calibrating the calibration time according to the satellite time and the number of satellites acquired from the satellite according to a preset frequency; in response to being disconnected from the satellite, counting and outputting authorization time based on the calibration time, and outputting warning information for prompting time calibration; and receiving the time service time, the warning information and the first time information for time service to the computer.

According to an alternative embodiment of the second aspect of the invention, the first time information comprises: satellite time, number of satellites, satellite position; and the step of determining a calibration time from the first time information comprises: and determining compensation time according to the satellite number and the satellite positions, and determining calibration time according to the satellite time and the compensation time.

According to a third aspect of the present invention, there is provided a non-transitory computer readable storage medium having stored thereon computer instructions for causing the computer to perform the offline timing method according to the second aspect of the present invention.

According to a fourth aspect of the present invention, there is provided an electronic apparatus comprising: at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method according to the second aspect of the invention.

Through the above description of the solution of the present invention, those skilled in the art can understand that the offline time service device of the present invention can provide offline time service for different computer systems by using the computer driving unit after calibrating the time output by the offline time service unit when online time service cannot be performed through a satellite.

The foregoing description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood and to make the above and other objects, features, and advantages of the present invention more clearly understandable.

Drawings

The above and other objects, features and advantages of exemplary embodiments of the present invention will become readily apparent from the following detailed description read in conjunction with the accompanying drawings. In the accompanying drawings, several embodiments of the present invention are illustrated by way of example and not by way of limitation, and like reference numerals designate like or corresponding parts throughout the several views, in which:

FIG. 1 is a schematic structural diagram illustrating an offline time service device according to an embodiment of the present invention;

FIG. 2 is a schematic structural diagram illustrating an offline time service device according to another embodiment of the present invention; and

FIG. 3 is a flow chart illustrating an offline time service method according to an embodiment of the present invention.

Detailed Description

The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.

It should be understood that the terms "first", "second", "third" and "fourth", etc. in the claims, the description and the drawings of the present invention are used for distinguishing different objects and are not used for describing a particular order. The terms "comprises" and "comprising," when used in the specification and claims of this specification, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.

It is also to be understood that the terminology used in the description of the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in the specification and claims of this application, the singular form of "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should be further understood that the term "and/or" as used in the specification and claims of this specification refers to any and all possible combinations of one or more of the associated listed items and includes such combinations.

As used in this specification and claims, the term "if" may be interpreted contextually as "when", "upon" or "in response to a determination" or "in response to a detection". Similarly, the phrase "if it is determined" or "if a [ described condition or event ] is detected" may be interpreted contextually to mean "upon determining" or "in response to determining" or "upon detecting [ described condition or event ]" or "in response to detecting [ described condition or event ]".

The following detailed description of embodiments of the invention refers to the accompanying drawings.

The embodiment of the invention is an off-line time service device, and fig. 1 is a schematic structural diagram illustrating the embodiment. As shown in fig. 1, the offline timing device 100 includes a time source acquiring unit 101, a time source calibrating unit 102, an offline timing unit 103, and a computer driving unit 104.

The time source acquisition unit 101 is configured to acquire first time information from a satellite. In more detail, the time source obtaining unit 101 may receive Satellite signals from GNSS (Global Navigation Satellite System) satellites, obtain Satellite time, and record Satellite observation data. The satellite observation data recorded by the time source acquiring unit 101 may include: the satellite number to which the received satellite signal belongs, the states of the satellites, the number of satellites, and the like. For example, satellite observations may include: the number of satellites, satellite ephemeris, satellite health status, altitude, pseudorange, carrier phase, satellite clock model parameters, ionospheric correction parameters, etc. The first time information here may be satellite time and satellite observation data.

The time source obtaining unit 101 may include a satellite module and an antenna unit, which may integrate an integrated circuit composed of an RF chip, a baseband chip, a core CPU, and related peripheral circuits. Information such as the time, number, and location of satellite transmissions can be acquired by the time source acquisition unit 101. The time source obtaining unit 101 may output data sent by the satellite through a serial port. The first time information may be information such as time, number, and location of satellite transmissions.

The time source calibration unit 102 is configured to determine a calibration time based on the first time information. The time source calibration unit 102 may obtain the first time information through a serial port, obtain the compensation time through calculation, and then calculate the satellite time and the compensation time, where the result after the calculation is the calibration time. It should be noted that the satellite time received by the time source calibration unit 102 is erroneous, and the error of the satellite time is caused by two reasons, one is caused by the system error of the satellite itself, and the other is caused by the transmission error of the satellite signal.

The satellite's own system errors include, but are not limited to, the satellite's antenna phase center bias, satellite orbit errors, and satellite clock error. In the GPS measurement, the observed value is based on the position of the phase center of the antenna of the receiver, and the phase center of the antenna is theoretically consistent with the geometric center of the antenna, but actually the phase center of the antenna changes with the intensity and direction of the signal input, that is, the instantaneous position of the phase center (generally called phase center) is different from the theoretical phase center during the observation, and this difference is called the position offset of the phase center of the antenna, that is, the deviation of the phase center of the antenna; the satellite orbit error is also called satellite ephemeris error, and is an error between the position of a satellite observed by the receiver and the position of a real satellite. For each satellite, the satellite clock error can be calculated according to the pseudo range and the navigation message.

The transmission error of the satellite signal includes, but is not limited to, an error of ionospheric delay and an error of tropospheric delay, wherein the tropospheric delay error generally refers to a signal delay error generated when an electromagnetic wave signal passes through an unionized neutral atmosphere with a height of 50km or less. The ionized layer delay error is an observed value error caused by an ionized layer effect, the ionized layer is an atmospheric layer with the height of 60-1000km, medium-sized gas molecules in the ionized layer are partially ionized under the action of solar ultraviolet rays, X rays, high-energy particles and the like, a large number of electrons and positive ions are generated, an ionized layer area is formed, and the propagation speed of electromagnetic wave signals can change when the electromagnetic wave signals pass through the ionized layer. In this embodiment, the tropospheric delay error may be calculated by using a Saastamoinen model, a Hopfield model, a Marini model, a Chao model, or an Ifadis model, or may be obtained by using a Klobuchar model. The time source calibration unit 102 may calculate the system error of the satellite itself and the transmission error of the satellite signal, and convert into the compensation time.

The time source calibration unit 102 is further configured to: in response to the offline time service device 100 being connected to the satellite, the calibration time is calibrated according to the satellite time and the number of satellites acquired from the satellite by the time source acquisition unit 101 according to the preset frequency. When the satellite signal acquired by the offline time service device 100 is stable (for example, the offline time service device 100 is placed in an open outdoor area), the time source acquiring unit 101 may acquire information of the satellite time and the satellite number according to a preset frequency (for example, 1 time/second), and the time source calibrating unit 102 may determine whether the calibration time is accurate according to the satellite time and the satellite number, and perform real-time calibration when the calibration time is inaccurate. In this embodiment, the frequency of the online calibration (i.e., "preset frequency" in this embodiment) can be planned according to the actual usage scenario.

The offline time service unit 103 is configured to count and output the time service time for time service based on the calibration time in response to the offline time service device 100 being disconnected from the satellite. The offline timing unit 103 may include an RTC (real Time clock) integrated circuit. The RTC integrated circuit may employ a crystal oscillator as a clock source, which counts according to a set time and outputs time information. When the off-line time service device is disconnected from the satellite, the off-line time service unit 103 counts the number of times in seconds based on the calibration time, and estimates and outputs the time service time. The offline time service unit 103 also outputs alarm information to prompt that time calibration needs to be performed again. When the off-line time is too long, which may cause a certain error between the time service obtained based on the calibration time and the actual satellite time, the off-line time service unit 103 outputs an alarm message to prompt the time calibration to be performed again. The carrier of the alarm information includes, but is not limited to, text, images, voice, video, and the like.

The computer drive unit 104 is configured to receive time service information, warning information, and first time information for time service to the computer. The computer driving unit 104 receives the time service time and alarm information sent by the offline time service unit 103 and the first time information (such as the number of satellites, etc.) sent by the time source obtaining unit 101, and provides the time service to a plurality of computer systems, so as to provide time service for different computer systems.

The offline time service device provided by the embodiment can provide offline time service for different computer systems by using the computer driving unit after calibrating the time output by the offline time service unit under the condition that online time service cannot be performed through a satellite.

Fig. 2 is a schematic structural diagram illustrating an offline time service device according to still another embodiment of the present invention. As shown in fig. 2, the offline time service device 200 includes a time source acquisition unit 201, a time source calibration unit 202, an offline time service unit 203, a computer drive unit 204, and a power supply unit 205. The power supply unit 205 may adopt a battery power supply mode, which includes a battery, a power management chip, and peripheral circuits. Alternatively, the battery herein employs a lithium battery. The power supply unit 205 may also be configured with a USB interface through which a battery in the power supply unit 205 may be charged. In this embodiment, the power supply unit 205 may supply power to the time source acquisition unit 201, the time source calibration unit 202, the offline time service unit 203, and the computer driving unit 204 to ensure that the offline time service device 200 can operate offline. It should be noted that the structures and functions of the time source obtaining unit 201, the time source calibrating unit 202, the offline time service unit 203, and the computer driving unit 204 in this embodiment are the same as or similar to those of the time source obtaining unit 101, the time source calibrating unit 102, the offline time service unit 103, and the computer driving unit 104 in the foregoing embodiment, and are not described again here.

In other embodiments, the offline timing device 100 or 200 further includes a USB interface, and the USB interface outputs the timing time, and the adaptation rate of the offline timing device can be improved by transmitting the timing time through the USB interface.

Fig. 3 is a flowchart illustrating an offline time service method according to an embodiment of the present invention. As shown in fig. 3, the offline time service method includes the following steps:

in step 301, first time information is obtained from a satellite.

In step 302, a calibration time is determined based on the first time information.

In step 303, the calibration time is calibrated according to the satellite time and the number of satellites acquired from the satellites at a preset frequency in response to being in a connected state with the satellites.

In step 304, in response to being disconnected from the satellite, the authorized time is counted and outputted based on the calibration time, and warning information for prompting the time calibration is outputted.

In step 305, the time service time, the warning information, and the first time information for time service to the computer are received.

In some optional implementations of this embodiment, the first time information includes: the satellite time, the number of satellites, the satellite position, and the offset time may be determined in step 302 based on the number of satellites, the satellite position, and the calibration time may be determined based on the satellite time and the offset time.

The offline time service method in this embodiment is a method embodiment corresponding to the offline time service device in the foregoing, and specific contents may be referred to in the description of the offline time service device in the foregoing, and are not described herein again.

It should also be appreciated that any module, unit, component, server, computer, terminal, or device executing instructions exemplified herein may include or otherwise have access to a computer-readable medium, such as a storage medium, computer storage medium, or data storage device (removable) and/or non-removable, such as a magnetic disk, optical disk, or tape. Computer storage media may include volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information, such as computer readable instructions, data structures, program modules or other data.

Examples of computer storage media include RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, Digital Versatile Disks (DVD) or other optical storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other medium which can be used to store the desired information and which can be accessed by an application, a module, or both. Any such computer storage media may be part of, or accessible or connectable to, a device. Any applications or modules described herein may be implemented using computer-readable/executable instructions that may be stored or otherwise maintained by such computer-readable media.

Through the above description of the scheme of the present invention, those skilled in the art can understand that the method for sending screen-projecting information by a self-reading terminal of the present invention can respectively judge whether the background image information and the handwritten image information of the current frame change, and determine to send the background image information or the handwritten image information according to the judgment result, thereby effectively reducing the data volume of each transmission, and avoiding the influence of data delay on the screen-projecting synchronization effect.

Although the embodiments of the present invention are described above, the descriptions are only examples for facilitating understanding of the present invention, and are not intended to limit the scope and application scenarios of the present invention. It will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the spirit and scope of the invention as defined by the appended claims.

9页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:时钟同步方法、装置、设备及存储介质

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!