CN116224755A - Time correction method, device, equipment and medium - Google Patents

Time correction method, device, equipment and medium Download PDF

Info

Publication number
CN116224755A
CN116224755A CN202310315425.0A CN202310315425A CN116224755A CN 116224755 A CN116224755 A CN 116224755A CN 202310315425 A CN202310315425 A CN 202310315425A CN 116224755 A CN116224755 A CN 116224755A
Authority
CN
China
Prior art keywords
time
current
positioning information
positioning
vehicle
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.)
Pending
Application number
CN202310315425.0A
Other languages
Chinese (zh)
Inventor
杜兵兵
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Streamax Technology Co Ltd
Original Assignee
Streamax Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Streamax Technology Co Ltd filed Critical Streamax Technology Co Ltd
Priority to CN202310315425.0A priority Critical patent/CN116224755A/en
Publication of CN116224755A publication Critical patent/CN116224755A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G04HOROLOGY
    • G04RRADIO-CONTROLLED TIME-PIECES
    • G04R20/00Setting the time according to the time information carried or implied by the radio signal
    • G04R20/02Setting the time according to the time information carried or implied by the radio signal the radio signal being sent by a satellite, e.g. GPS
    • GPHYSICS
    • G04HOROLOGY
    • G04GELECTRONIC TIME-PIECES
    • G04G7/00Synchronisation
    • GPHYSICS
    • G04HOROLOGY
    • G04RRADIO-CONTROLLED TIME-PIECES
    • G04R20/00Setting the time according to the time information carried or implied by the radio signal
    • G04R20/02Setting the time according to the time information carried or implied by the radio signal the radio signal being sent by a satellite, e.g. GPS
    • G04R20/04Tuning or receiving; Circuits therefor

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Radar, Positioning & Navigation (AREA)
  • Remote Sensing (AREA)
  • Electric Clocks (AREA)

Abstract

The invention discloses a time correction method, a time correction device, time correction equipment and a time correction medium. The method comprises the following steps: acquiring current positioning information sent by a vehicle positioning module; detecting whether the current positioning information is valid positioning information; if the current positioning information is effective positioning information, detecting whether the positioning time in the current positioning information meets a time correction condition; if the positioning time meets the time correction condition, determining the current time correction time corresponding to the vehicle dome lamp according to the positioning time and the acquisition time of the current positioning information, and sending the current time correction time to the vehicle dome lamp so that the vehicle dome lamp updates the current time of the vehicle dome lamp according to the current time correction time. According to the embodiment of the invention, the time of the vehicle dome lamp can be corrected according to the positioning time in the currently acquired positioning information, and the current time of the vehicle dome lamp is updated to the current time correction time, so that the time of the dome lamp is ensured to be consistent with the time of the dome lamp on other taxis.

Description

Time correction method, device, equipment and medium
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a time correction method, apparatus, device, and medium.
Background
Taxis typically have a dome light on the roof. The roof light of a taxi includes a light-emitting diode (LED) display screen. When the taxi waits for passengers in public places, the top lamp of the taxi can play appointed commodity display information through the LED display screen to display the appointed commodity. Such as railway stations, subway stations, bus stations, airports, etc. In order to effectively display commodities, it is often required that a plurality of top lights of taxis simultaneously play the same commodity display information.
In the related art, a vehicle control device on a taxi can set the time of a top lamp of the taxi, so that the time of the top lamp is ensured to be consistent with the system time of the vehicle control device. And when the time of detecting the dome lamp reaches the playing time of the appointed commodity display information, the dome lamp of each taxi plays the appointed commodity display information at the same time. However, there is often a time difference in the system time of the vehicle control devices on different taxis. The time of the dome lamp is set by the vehicle control equipment according to the system time, and the time of the dome lamp cannot be guaranteed to be consistent with the time of the dome lamp of other taxis. The time of the dome lamps of different taxis is different, the time is delayed when the appointed commodity display information is played, the problem that the pictures are not synchronous occurs, the same commodity display information cannot be played at the same time, and the problem that good commodity display effect is difficult to achieve is solved.
Disclosure of Invention
The invention provides a time correction method, a time correction device and a time correction medium, which are used for solving the problem that in the related art, vehicle control equipment sets the time of a top lamp according to the system time and cannot ensure that the time of the top lamp is consistent with the time of the top lamp of other taxis.
According to an aspect of the present invention, there is provided a time correction method including:
acquiring current positioning information sent by a vehicle positioning module;
detecting whether the current positioning information is valid positioning information;
if the current positioning information is effective positioning information, detecting whether positioning time in the current positioning information meets a time correction condition or not;
if the positioning time meets the time correction condition, determining the current time correction time corresponding to the vehicle dome lamp according to the positioning time and the current positioning information acquisition time, and sending the current time correction time to the vehicle dome lamp so that the vehicle dome lamp updates the current time of the vehicle dome lamp according to the current time correction time.
According to another aspect of the present invention, there is provided a time correction apparatus including:
the positioning information acquisition module is used for acquiring the current positioning information sent by the vehicle positioning module;
the positioning information detection module is used for detecting whether the current positioning information is effective positioning information or not;
the time detection module is used for detecting whether the positioning time in the current positioning information meets a time correction condition if the current positioning information is effective positioning information;
and the time correction module is used for determining the current time correction time corresponding to the vehicle dome lamp according to the positioning time and the acquisition time of the current positioning information and sending the current time correction time to the vehicle dome lamp so that the vehicle dome lamp updates the current time of the vehicle dome lamp according to the current time correction time if the positioning time meets the time correction condition.
According to another aspect of the present invention, there is provided an electronic apparatus including:
at least one processor;
and a memory communicatively coupled to the at least one processor;
wherein the memory stores a computer program executable by the at least one processor to enable the at least one processor to perform the time correction method according to any one of the embodiments of the present invention.
According to another aspect of the present invention, there is provided a computer readable storage medium storing computer instructions for causing a processor to execute the time correction method according to any one of the embodiments of the present invention.
According to the technical scheme, the current positioning information sent by the vehicle positioning module is obtained; then detecting whether the current positioning information is effective positioning information; detecting whether the positioning time in the current positioning information meets a time correction condition under the condition that the current positioning information is effective positioning information; under the condition that the positioning time meets the time correction condition, the current time correction time corresponding to the vehicle dome lamp is determined according to the positioning time and the acquisition time of the current positioning information, the current time correction time is sent to the vehicle dome lamp, so that the vehicle dome lamp updates the current time of the vehicle dome lamp according to the current time correction time, the problem that in the related art, the time of the dome lamp cannot be guaranteed to be consistent with the time of the dome lamp of other taxis due to the fact that the vehicle control equipment sets the time of the dome lamp according to the system time is solved, the time of the vehicle dome lamp is corrected according to the positioning time in the currently acquired positioning information, the current time of the vehicle dome lamp is updated to the current time correction time, the current time of the vehicle dome lamp is guaranteed to be consistent with the current time determined by the vehicle positioning module through a satellite, and therefore the beneficial effect that the time of the dome lamp is guaranteed to be consistent with the time of the dome lamp on other taxis is guaranteed.
It should be understood that the description in this section is not intended to identify key or critical features of the embodiments of the invention or to delineate the scope of the invention. Other features of the present invention will become apparent from the description that follows.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for the description of the embodiments will be briefly described below, and it is apparent that the drawings in the following description are only some embodiments of the present invention, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a flowchart of a time correction method according to an embodiment of the invention.
Fig. 2 is a flowchart of a time correction method according to a second embodiment of the present invention.
Fig. 3 is a schematic structural diagram of a time correction device according to a third embodiment of the present invention.
Fig. 4 is a schematic structural diagram of an electronic device implementing a time correction method according to an embodiment of the present invention.
Detailed Description
In order that those skilled in the art will better understand the present invention, a technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present invention without making any inventive effort, shall fall within the scope of the present invention.
It should be noted that the terms "object," "first," "second," and the like in the description and the claims of the present invention and the above drawings are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the invention described herein may be implemented in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Example 1
Fig. 1 is a flowchart of a time correction method according to an embodiment of the invention. The time correction method provided by the embodiment of the invention is applied to the vehicle control equipment on each taxi. The method can be applied to the situation that the time of the top lamp of the taxi is corrected by the vehicle control equipment on each taxi and the time of the top lamp is consistent with the time of the top lamps of other taxis, the method can be executed by a time correction device, the time correction device can be realized in a hardware and/or software mode, and the time correction device can be configured in the vehicle control equipment on each taxi.
As shown in fig. 1, the method includes:
step 101, current positioning information sent by a vehicle positioning module is obtained.
Optionally, the vehicle control device on the taxi is an electronic device for managing various components and functional modules on the taxi. The vehicle control device may be, for example, a whole vehicle controller on a taxi.
Optionally, the vehicle positioning module is arranged on the taxi and is used for positioning the taxi through the satellite and sending positioning information of the taxi to the vehicle control device at each whole second moment. The vehicle positioning module may be a global positioning system (Global Positioning System, GPS) module or a beidou positioning module. The vehicle control device is connected with the vehicle positioning module through a communication interface, and can perform information interaction through the communication interface. Communication interfaces include, but are not limited to: RS232 serial port.
Optionally, the positioning information sent by the vehicle positioning module at each whole second time includes vehicle position coordinates and positioning time. The vehicle location coordinates may be current longitude and latitude coordinates of the taxi determined by the vehicle positioning module via satellite. The positioning time may be a current time determined by the vehicle positioning module through a satellite.
Optionally, the vehicle control device obtains current positioning information sent by the vehicle positioning module. The current positioning information is the positioning information sent by the vehicle positioning module on the taxi at the current whole second moment.
Step 102, detecting whether the current positioning information is valid positioning information.
Optionally, the effective positioning information is positioning information sent by the vehicle positioning module in a normal working state. In general, if the vehicle position coordinates in the positioning information are empty, that is, if the vehicle position coordinates do not exist in the positioning information, the positioning information may not be valid positioning information.
Optionally, the detecting whether the current positioning information is valid positioning information includes: detecting whether a vehicle position coordinate exists in the current positioning information; if the current positioning information has the vehicle position coordinates, determining that the current positioning information is effective positioning information; and if the vehicle position coordinates do not exist in the current positioning information, determining that the current positioning information is not effective positioning information.
Thus, the vehicle control device automatically determines whether the current positioning information is valid according to whether the vehicle position coordinates exist in the current positioning information after acquiring the current positioning information sent by the vehicle positioning module.
Optionally, if the current positioning information is not effective positioning information, which indicates that the current positioning information obtained at present is not the positioning information sent by the vehicle positioning module in the normal working state, and the positioning time in the positioning information cannot be used for correcting the time of the vehicle dome lamp, the vehicle control device returns to execute the operation of obtaining the current positioning information sent by the vehicle positioning module, so as to obtain the positioning information sent by the vehicle positioning module at the next whole second moment.
Step 103, if the current positioning information is effective positioning information, detecting whether the positioning time in the current positioning information meets a time correction condition.
Alternatively, the time correction condition is a condition for judging whether or not it is necessary to correct the time of the vehicle dome lamp according to the positioning time in the currently acquired positioning information.
Optionally, the detecting whether the positioning time in the current positioning information meets a time correction condition includes: detecting whether the positioning time in the current positioning information is an integer minute; if the positioning time in the current positioning information is an integer minute, determining that the positioning time in the current positioning information meets a time correction condition; and if the positioning time in the current positioning information is an integer minute, determining that the positioning time in the current positioning information does not meet a time correction condition.
Thus, the vehicle control apparatus can perform a time correction process of correcting the time of the vehicle overhead lamp according to the positioning time in the current positioning information at each whole minute point.
Optionally, after determining that the current positioning information is valid positioning information, the method further includes: and storing the current positioning information and the acquisition time of the current positioning information to a preset storage position.
Therefore, the vehicle control device stores the current positioning information and the acquisition time of the current positioning information after determining that the current positioning information is the effective positioning information, so that when detecting that the positioning time in the current positioning information meets the time correction condition, the vehicle control device determines the current time correction time corresponding to the vehicle dome lamp according to the positioning time and the acquisition time of the current positioning information.
Optionally, the preset storage location is a storage location in the vehicle positioning module for storing valid positioning information and an acquisition time of the valid positioning information. The acquisition time of the current positioning information is the system time of the vehicle control device when the current positioning information is acquired.
Optionally, if the positioning time does not meet the time correction condition, which indicates that the time of the vehicle dome lamp does not need to be corrected according to the positioning time in the currently acquired positioning information, the vehicle control device returns to execute the operation of acquiring the current positioning information sent by the vehicle positioning module, so as to acquire the positioning information sent by the vehicle positioning module at the next whole second moment.
104, if the positioning time meets the time correction condition, determining the current time correction time corresponding to the vehicle dome lamp according to the positioning time and the current positioning information acquisition time, and sending the current time correction time to the vehicle dome lamp so that the vehicle dome lamp updates the current time of the vehicle dome lamp according to the current time correction time.
Optionally, the vehicle dome lamp is a dome lamp disposed on top of a taxi. The vehicle dome lamp includes an LED display screen. When the current time reaches the appointed time, the vehicle dome lamp can play appointed commodity display information through the LED display screen to display the appointed commodity.
Optionally, if the positioning time meets a time correction condition, which indicates that the time of the vehicle dome lamp needs to be corrected according to the positioning time in the currently acquired positioning information, the vehicle control device determines a current time correction time corresponding to the vehicle dome lamp according to the positioning time and the current positioning information, and sends the current time correction time to the vehicle dome lamp, so that the vehicle dome lamp updates the current time of the vehicle dome lamp according to the current time correction time.
Optionally, the determining the current time correction time corresponding to the vehicle dome lamp according to the positioning time and the current time for acquiring the positioning information includes: calculating the time difference between the current system time and the acquisition time of the current positioning information; detecting whether the time difference is within a preset time difference range; and if the time difference is within the preset time difference range, adding the preset time to the positioning time to obtain the current time correction time corresponding to the vehicle dome lamp.
Optionally, after detecting whether the time difference is within a preset time difference range, the method further includes: if the time difference is not in the preset time difference range, the time difference between the current system time and the acquisition time of the current positioning information is recalculated after waiting for a preset time interval. Then it is detected whether the recalculated time difference is within a preset time difference range. And if the recalculated time difference is within the preset time difference range, adding the preset time to the positioning time to obtain the current time correction time corresponding to the vehicle dome lamp. If the recalculated time difference is not in the preset time difference range, continuously waiting for a preset time interval and recalculating the time difference between the current system time and the acquisition time of the current positioning information until the time difference is in the preset time difference range.
Optionally, the acquisition time of the current positioning information is a system time of the vehicle control apparatus when the current positioning information is acquired. The current system time is the system time of the vehicle control device at the current time. The positioning time in the current positioning information is the current time determined by the vehicle positioning module through the satellite. The time difference between the current system time and the acquisition time of the current positioning information is a time period that elapses after the vehicle positioning module determines the positioning time through the satellite. The current time correction time corresponding to the vehicle dome lamp is an accurate current time determined according to the positioning time in the current positioning information.
Optionally, the preset time difference range is a time range set according to a preset duration. The time difference may be within a predetermined time difference range, and may not yet reach the predetermined time difference range. And if the time difference is within the preset time difference range, indicating that the preset time length is elapsed after the vehicle positioning module determines the positioning time through the satellite. The exact current time should be the positioning time plus a preset duration. And if the time difference is not in the preset time difference range, indicating that the time length passing after the vehicle positioning module determines the positioning time through the satellite does not reach the preset time length.
Alternatively, the time in embodiments of the present invention is accurate to milliseconds. The preset duration is 1 second. The preset time difference ranges from 995 milliseconds to 1005 milliseconds. The preset time interval is 1 millisecond. The time difference is less than 1005 milliseconds.
Optionally, it is detected whether the time difference is greater than 995 milliseconds and less than 1005 milliseconds. If the time difference is greater than 995 milliseconds and less than 1005 milliseconds, which indicates that 1 second has elapsed after the vehicle positioning module determines the positioning time by satellite, the vehicle control device adds 1 second to the positioning time to obtain the current time correction time corresponding to the vehicle dome lamp.
Optionally, if the time difference is less than or equal to 995 ms, which indicates that the elapsed time period after the vehicle positioning module determines the positioning time by the satellite has not reached 1 second, the vehicle control device waits for 1 ms and then recalculates the time difference between the current system time and the acquisition time of the current positioning information. The vehicle control apparatus then detects whether the recalculated time difference is greater than 995 milliseconds and less than 1005 milliseconds. If the recalculated time difference is greater than 995 milliseconds and less than 1005 milliseconds, the vehicle control device adds 1 second to the positioning time to obtain a current time correction time corresponding to the vehicle dome lamp. If the recalculated time difference is not within the preset time difference range, the vehicle control device continues to wait for 1 millisecond and recalculate the time difference between the current system time and the acquisition time of the current positioning information until the time difference is greater than 995 milliseconds and less than 1005 milliseconds.
Optionally, after determining the current time correction time corresponding to the vehicle dome lamp, the vehicle control device sends the current time correction time to the vehicle dome lamp, so that the vehicle dome lamp updates the current time of the vehicle dome lamp according to the current time correction time.
Optionally, the sending the current time to the vehicle dome lamp includes: and sending the current time correction time to the vehicle dome lamp through a communication interface. The vehicle control equipment is connected with the vehicle dome lamp through a communication interface, and can conduct information interaction through the communication interface. Communication interfaces include, but are not limited to: RS232 serial port.
Optionally, the updating the current time of the vehicle dome lamp according to the current time correction time includes: and after the current time correction time is received, the current time of the vehicle dome lamp is updated to the current time correction time, and time correction is completed.
Optionally, the vehicle control device on each taxi corrects the time of the vehicle dome lamp according to the positioning time in the currently acquired positioning information, and updates the current time of the vehicle dome lamp to the current time correction time, so that the current time of the vehicle dome lamp on each taxi is consistent with the current time determined by the vehicle positioning module on each taxi through the satellite.
In general, the current time determined by the vehicle positioning module on each taxi through the satellite is the same, and no time difference exists. The current time of the vehicle dome lamp on each taxi is consistent with the current time determined by the vehicle positioning module on each taxi through the satellite, namely, the time of the vehicle dome lamp on each taxi is consistent with the time of the dome lamps on other taxis. The time of the vehicle dome lamp on each taxi is consistent with the time of the dome lamps on other taxis, so that the same commodity display information can be simultaneously played, and the problem of good commodity display effect is solved.
Therefore, the time correction method of the embodiment of the invention can correct the time of the vehicle dome lamp according to the positioning time in the currently acquired positioning information, update the current time of the vehicle dome lamp to the current time correction time, and ensure that the current time of the vehicle dome lamp is consistent with the current time determined by the vehicle positioning module through satellites, thereby ensuring that the time of the dome lamp is consistent with the time of the dome lamp on other taxis.
According to the technical scheme, the current positioning information sent by the vehicle positioning module is obtained; then detecting whether the current positioning information is effective positioning information; detecting whether the positioning time in the current positioning information meets a time correction condition under the condition that the current positioning information is effective positioning information; under the condition that the positioning time meets the time correction condition, the current time correction time corresponding to the vehicle dome lamp is determined according to the positioning time and the acquisition time of the current positioning information, the current time correction time is sent to the vehicle dome lamp, so that the vehicle dome lamp updates the current time of the vehicle dome lamp according to the current time correction time, the problem that in the related art, the time of the dome lamp cannot be guaranteed to be consistent with the time of the dome lamp of other taxis due to the fact that the vehicle control equipment sets the time of the dome lamp according to the system time is solved, the time of the vehicle dome lamp is corrected according to the positioning time in the currently acquired positioning information, the current time of the vehicle dome lamp is updated to the current time correction time, the current time of the vehicle dome lamp is guaranteed to be consistent with the current time determined by the vehicle positioning module through a satellite, and therefore the beneficial effect that the time of the dome lamp is guaranteed to be consistent with the time of the dome lamp on other taxis is guaranteed.
Example two
Fig. 2 is a flowchart of a time correction method according to a second embodiment of the present invention. Embodiments of the invention may be combined with various alternatives to one or more of the embodiments described above. As shown in fig. 2, the method includes:
step 201, current positioning information sent by a vehicle positioning module is obtained.
Step 202, detecting whether the current positioning information is valid positioning information: if yes, go to step 203; if not, go back to execute step 201.
Step 203, storing the current positioning information and the acquisition time of the current positioning information to a preset storage position.
Step 204, detecting whether the positioning time in the current positioning information is an integer minute: if yes, go to step 205; if not, go back to execute step 201.
Step 205, determining that the positioning time in the current positioning information meets a time correction condition, determining a current time correction time corresponding to a vehicle dome lamp according to the positioning time and the acquisition time of the current positioning information, and sending the current time correction time to the vehicle dome lamp so that the vehicle dome lamp updates the current time of the vehicle dome lamp according to the current time correction time.
According to the technical scheme, the time correction process of correcting the time of the vehicle dome lamp according to the positioning time in the current positioning information can be executed at the whole minute point, the time of the vehicle dome lamp is corrected according to the positioning time in the current acquired positioning information, the current time of the vehicle dome lamp is updated to be the current time correction time, the current time of the vehicle dome lamp is ensured to be consistent with the current time determined by the vehicle positioning module through a satellite, and therefore the time of the dome lamp is ensured to be consistent with the time of the dome lamp on other taxis.
Example III
Fig. 3 is a schematic structural diagram of a time correction device according to a third embodiment of the present invention. The apparatus may be configured in an electronic device. As shown in fig. 3, the apparatus includes: a positioning information acquisition module 301, a positioning information detection module 302, a time detection module 303, and a time correction module 304.
The positioning information obtaining module 301 is configured to obtain current positioning information sent by the vehicle positioning module; a positioning information detection module 302, configured to detect whether the current positioning information is valid positioning information; a time detection module 303, configured to detect whether a positioning time in the current positioning information meets a time correction condition if the current positioning information is valid positioning information; and the time correction module 304 is configured to determine a current time correction time corresponding to the vehicle dome lamp according to the positioning time and the current time of acquiring the positioning information if the positioning time meets a time correction condition, and send the current time correction time to the vehicle dome lamp, so that the vehicle dome lamp updates the current time of the vehicle dome lamp according to the current time correction time.
According to the technical scheme, the current positioning information sent by the vehicle positioning module is obtained; then detecting whether the current positioning information is effective positioning information; detecting whether the positioning time in the current positioning information meets a time correction condition under the condition that the current positioning information is effective positioning information; under the condition that the positioning time meets the time correction condition, the current time correction time corresponding to the vehicle dome lamp is determined according to the positioning time and the acquisition time of the current positioning information, the current time correction time is sent to the vehicle dome lamp, so that the vehicle dome lamp updates the current time of the vehicle dome lamp according to the current time correction time, the problem that in the related art, the time of the dome lamp cannot be guaranteed to be consistent with the time of the dome lamp of other taxis due to the fact that the vehicle control equipment sets the time of the dome lamp according to the system time is solved, the time of the vehicle dome lamp is corrected according to the positioning time in the currently acquired positioning information, the current time of the vehicle dome lamp is updated to the current time correction time, the current time of the vehicle dome lamp is guaranteed to be consistent with the current time determined by the vehicle positioning module through a satellite, and therefore the beneficial effect that the time of the dome lamp is guaranteed to be consistent with the time of the dome lamp on other taxis is guaranteed.
In an optional implementation manner of the embodiment of the present invention, optionally, the positioning information detection module 302 is specifically configured to: detecting whether a vehicle position coordinate exists in the current positioning information; if the current positioning information has the vehicle position coordinates, determining that the current positioning information is effective positioning information; and if the vehicle position coordinates do not exist in the current positioning information, determining that the current positioning information is not effective positioning information.
In an optional implementation manner of the embodiment of the present invention, optionally, the time detection module 303 is specifically configured to: detecting whether the positioning time in the current positioning information is an integer minute; if the positioning time in the current positioning information is an integer minute, determining that the positioning time in the current positioning information meets a time correction condition; and if the positioning time in the current positioning information is an integer minute, determining that the positioning time in the current positioning information does not meet a time correction condition.
In an optional implementation manner of the embodiment of the present invention, optionally, when performing the operation of determining the current time correction time corresponding to the vehicle dome lamp according to the positioning time and the current positioning information acquisition time, the time correction module 304 is specifically configured to: calculating the time difference between the current system time and the acquisition time of the current positioning information; detecting whether the time difference is within a preset time difference range; and if the time difference is within the preset time difference range, adding the preset time to the positioning time to obtain the current time correction time corresponding to the vehicle dome lamp.
In an optional implementation manner of the embodiment of the present invention, optionally, when performing the operation of determining the current time correction time corresponding to the vehicle dome lamp according to the positioning time and the current positioning information acquisition time, the time correction module 304 is further configured to: if the time difference is not in the preset time difference range, the time difference between the current system time and the acquisition time of the current positioning information is recalculated after waiting for a preset time interval.
In an optional implementation manner of the embodiment of the present invention, optionally, the time correction device further includes: and the information storage module is used for storing the current positioning information and the acquisition time of the current positioning information to a preset storage position.
In an optional implementation of the embodiment of the present invention, optionally, the time correction module 304 is specifically configured to, when performing the operation of sending the current time to the vehicle dome lamp: and sending the current time correction time to the vehicle dome lamp through a communication interface.
The specific manner in which the various modules perform the operations in the apparatus of the above embodiments have been described in detail in connection with the embodiments of the method, and will not be described in detail herein.
The time correction device can execute the time correction method provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of executing the time correction method.
Example IV
Fig. 4 shows a schematic diagram of the structure of an electronic device 10 that may be used to implement the time correction method of an embodiment of the invention. The components shown herein, their connections and relationships, and their functions, are meant to be exemplary only, and are not meant to limit implementations of the inventions described and/or claimed herein.
As shown in fig. 4, the electronic device 10 includes at least one processor 11, and a memory, such as a Read Only Memory (ROM) 12, a Random Access Memory (RAM) 13, etc., communicatively connected to the at least one processor 11, in which the memory stores a computer program executable by the at least one processor, and the processor 11 may perform various appropriate actions and processes according to the computer program stored in the Read Only Memory (ROM) 12 or the computer program built into the Random Access Memory (RAM) 13 from the storage unit 18. In the RAM 13, various programs and data required for the operation of the electronic device 10 may also be stored. The processor 11, the ROM 12 and the RAM 13 are connected to each other via a bus 14. An input/output (I/O) interface 15 is also connected to bus 14.
Various components in the electronic device 10 are connected to the I/O interface 15, including: an input unit 16 such as a keyboard, a mouse, etc.; an output unit 17 such as various types of displays, speakers, and the like; a storage unit 18 such as a magnetic disk, an optical disk, or the like; and a communication unit 19 such as a network card, modem, wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information/data with other devices via a computer network, such as the internet, and/or various telecommunication networks.
The processor 11 may be a variety of general and/or special purpose processing components having processing and computing capabilities. Some examples of processor 11 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various specialized Artificial Intelligence (AI) computing chips, various processors running machine learning model algorithms, digital Signal Processors (DSPs), and any suitable processor, controller, microcontroller, etc. The processor 11 performs the respective methods and processes described above, such as the time correction method.
In some embodiments, the time correction method may be implemented as a computer program tangibly embodied on a computer-readable storage medium, such as the storage unit 18. In some embodiments, part or all of the computer program may be loaded and/or installed onto the electronic device 10 via the ROM 12 and/or the communication unit 19. When a computer program is built into RAM 13 and executed by processor 11, one or more steps of the time correction method described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to perform the time correction method in any other suitable way (e.g. by means of firmware).
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuit systems, field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), systems On Chip (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs, the one or more computer programs may be executed and/or interpreted on a programmable system including at least one programmable processor, which may be a special purpose or general-purpose programmable processor, that may receive data and instructions from, and transmit data and instructions to, a storage system, at least one input device, and at least one output device.
The computer program for implementing the time correction method of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the computer programs, when executed by the processor, cause the functions/acts specified in the flowchart and/or block diagram block or blocks to be implemented. The computer program may execute entirely on the machine, partly on the machine, as a stand-alone software package, partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of the present invention, a computer-readable storage medium may be a tangible medium that can contain, or store a computer program for use by or in connection with an instruction execution system, apparatus, or device. The computer readable storage medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. Alternatively, the computer readable storage medium may be a machine readable signal medium. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) through which a user can provide input to the electronic device. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic input, speech input, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a background component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such background, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), wide Area Networks (WANs), blockchain networks, and the internet.
The computing system may include clients and servers. The client and server are typically remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server can be a cloud server, also called a cloud computing server or a cloud host, and is a host product in a cloud computing service system, so that the defects of high management difficulty and weak service expansibility in the traditional physical hosts and VPS service are overcome.
It should be appreciated that various forms of the flows shown above may be used to reorder, add, or delete steps. For example, the steps described in the present invention may be performed in parallel, sequentially, or in a different order, so long as the desired results of the technical solution of the present invention are achieved, and the present invention is not limited herein.
The above embodiments do not limit the scope of the present invention. It will be apparent to those skilled in the art that various modifications, combinations, sub-combinations and alternatives are possible, depending on design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the scope of the present invention.

Claims (10)

1. A time correction method, comprising:
acquiring current positioning information sent by a vehicle positioning module;
detecting whether the current positioning information is valid positioning information;
if the current positioning information is effective positioning information, detecting whether positioning time in the current positioning information meets a time correction condition or not;
if the positioning time meets the time correction condition, determining the current time correction time corresponding to the vehicle dome lamp according to the positioning time and the current positioning information acquisition time, and sending the current time correction time to the vehicle dome lamp so that the vehicle dome lamp updates the current time of the vehicle dome lamp according to the current time correction time.
2. The method of claim 1, wherein the detecting whether the current positioning information is valid positioning information comprises:
detecting whether a vehicle position coordinate exists in the current positioning information;
if the current positioning information has the vehicle position coordinates, determining that the current positioning information is effective positioning information;
and if the vehicle position coordinates do not exist in the current positioning information, determining that the current positioning information is not effective positioning information.
3. The method of claim 1, wherein the detecting whether the positioning time in the current positioning information satisfies a time correction condition comprises:
detecting whether the positioning time in the current positioning information is an integer minute;
if the positioning time in the current positioning information is an integer minute, determining that the positioning time in the current positioning information meets a time correction condition;
and if the positioning time in the current positioning information is an integer minute, determining that the positioning time in the current positioning information does not meet a time correction condition.
4. The method of claim 1, wherein determining a current time of day corresponding to a vehicle dome lamp based on the location time and the current location information acquisition time comprises:
calculating the time difference between the current system time and the acquisition time of the current positioning information;
detecting whether the time difference is within a preset time difference range;
and if the time difference is within the preset time difference range, adding the preset time to the positioning time to obtain the current time correction time corresponding to the vehicle dome lamp.
5. The method of claim 4, further comprising, after detecting whether the time difference is within a preset time difference range:
if the time difference is not in the preset time difference range, the time difference between the current system time and the acquisition time of the current positioning information is recalculated after waiting for a preset time interval.
6. The method of claim 2, further comprising, after determining that the current positioning information is valid positioning information:
and storing the current positioning information and the acquisition time of the current positioning information to a preset storage position.
7. The method of claim 1, wherein said sending the current time of day to the vehicle dome comprises:
and sending the current time correction time to the vehicle dome lamp through a communication interface.
8. A time correction device, characterized by comprising:
the positioning information acquisition module is used for acquiring the current positioning information sent by the vehicle positioning module;
the positioning information detection module is used for detecting whether the current positioning information is effective positioning information or not;
the time detection module is used for detecting whether the positioning time in the current positioning information meets a time correction condition if the current positioning information is effective positioning information;
and the time correction module is used for determining the current time correction time corresponding to the vehicle dome lamp according to the positioning time and the acquisition time of the current positioning information and sending the current time correction time to the vehicle dome lamp so that the vehicle dome lamp updates the current time of the vehicle dome lamp according to the current time correction time if the positioning time meets the time correction condition.
9. An electronic device, the electronic device comprising:
at least one processor;
and a memory communicatively coupled to the at least one processor;
wherein the memory stores a computer program executable by the at least one processor to enable the at least one processor to perform the time correction method of any one of claims 1-7.
10. A computer readable storage medium storing computer instructions for causing a processor to perform the time correction method of any one of claims 1-7.
CN202310315425.0A 2023-03-28 2023-03-28 Time correction method, device, equipment and medium Pending CN116224755A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310315425.0A CN116224755A (en) 2023-03-28 2023-03-28 Time correction method, device, equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310315425.0A CN116224755A (en) 2023-03-28 2023-03-28 Time correction method, device, equipment and medium

Publications (1)

Publication Number Publication Date
CN116224755A true CN116224755A (en) 2023-06-06

Family

ID=86571380

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310315425.0A Pending CN116224755A (en) 2023-03-28 2023-03-28 Time correction method, device, equipment and medium

Country Status (1)

Country Link
CN (1) CN116224755A (en)

Similar Documents

Publication Publication Date Title
CN112988535B (en) Test method, device, storage medium and program product for data push service
CN115139792A (en) Vehicle display control system, method, device, equipment and medium
CN113591580B (en) Image annotation method and device, electronic equipment and storage medium
WO2024104189A1 (en) Vehicle positioning method and apparatus, electronic device, and storage medium
CN113722342A (en) High-precision map element change detection method, device and equipment and automatic driving vehicle
CN112595329B (en) Vehicle position determining method and device and electronic equipment
CN112883041A (en) Data updating method and device, electronic equipment and storage medium
CN116224755A (en) Time correction method, device, equipment and medium
CN114596362B (en) High-point camera coordinate calculation method and device, electronic equipment and medium
US20220139220A1 (en) Method and apparatus for detecting light state data
CN116634102B (en) Front-end command equipment and data processing method based on same
CN117291393A (en) Method, equipment, device and storage medium for dispatching network appointment vehicle relay bill
US20230025458A1 (en) Positioning method and on-board device
CN117423174A (en) Attendance checking and card punching method, device, equipment and storage medium
CN115435720A (en) Test scene generation method, device, equipment and storage medium
CN115294991A (en) Voice processing method and device and electronic equipment
CN116909121A (en) Timing method, device and equipment of vehicle-mounted terminal and storage medium
CN116744229A (en) Position reminding method, device, equipment and medium
CN114861461A (en) Target detection method based on simulation, electronic device and storage medium
CN116642503A (en) Likelihood map updating method, device, equipment and storage medium
CN117109560A (en) Auxiliary positioning method, device, vehicle, cloud end and storage medium
CN116700758A (en) Whole vehicle version management method, device, equipment and storage medium
CN116691673A (en) Vehicle control method, device, equipment and storage medium
CN118034969A (en) Test vehicle monitoring data processing method, device, equipment and storage medium
CN117421140A (en) Data processing method, device, equipment and medium

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