Time synchronization method and device, electronic equipment and storage medium
By using entangled photon pairs and environmental configuration adjustment methods in the automotive field, the traditional time synchronization method has been solved in the accuracy and safety of the traditional time synchronization method, high accuracy and stable time synchronization are achieved, and the safe and efficient operation of the vehicle is ensured. .
Patent Information
- Application Number
- CN202411511588.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-28
- Publication Date
- 2025-02-18
AI Technical Summary
Traditional time synchronization methods have limited accuracy and safety problems in the automotive field, and cannot achieve high-precision and reliable time synchronization.
Entangled photon pairs are used to achieve time synchronization of on-board equipment. During the transmission of entangled photon pairs, the vehicle's environmental configuration parameters are adjusted by monitoring the photon transmission indicators to optimize the photon transmission process, and time synchronization is achieved by adjusting the phase of the atomic clock. .
It improves the accuracy and stability of time synchronization, optimizes the photon transmission efficiency, and ensures the safe and efficient operation of the vehicle.
Smart Images

Figure CN119483796A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of time synchronization technology, and in particular to a time synchronization method, device, electronic equipment and storage medium. Background Art
[0002] With the rapid development of autonomous driving technology, the accuracy and stability of time synchronization in the automotive field are becoming more and more critical. Traditional time synchronization methods usually rely on signal transmission and reception, such as using satellite signals or network protocols to synchronize clocks. However, these methods have certain limitations, such as limited accuracy and safety issues.
[0003] (1) Limited accuracy: Due to factors such as signal transmission delay, environmental interference, clock drift, and protocol and algorithm limitations, traditional time synchronization methods cannot meet very high accuracy requirements.
[0004] (2) Security issues: Traditional time synchronization methods are vulnerable to various network attacks, lack encryption and authentication mechanisms when transmitting time signals, and have single point failure risks and data leakage risks, which affect the accuracy and reliability of time synchronization. Summary of the invention
[0005] In order to solve the above technical problems, the present invention discloses a time synchronization method, device, electronic device and storage medium, which use entangled photon pairs to achieve time synchronization of vehicle-mounted equipment. During the transmission of the entangled photon pairs, if it is monitored that there is an abnormality in the transmission process of the photons, the corresponding optimal environmental configuration parameters are determined based on the preset optical fiber configuration parameters of the vehicle, and the current environmental parameters of the vehicle are adjusted to the optimal environmental configuration parameters, so that the transmission process of the photons can be optimized and the transmission efficiency of the photons can be improved, so that the entangled photon pairs can be normally transmitted to the vehicle-mounted equipment and form an atomic clock under the action of the entangled photon pairs. By adjusting the phase of the atomic clock, accurate and stable time synchronization between the vehicle-mounted equipment is achieved, thereby ensuring the safe and efficient operation of the vehicle.
[0006] In order to achieve the above object, the present invention provides a time synchronization method, which is applied to a target vehicle, comprising:
[0007] Obtaining a target time synchronization instruction; the target time synchronization instruction includes first vehicle-mounted device information and second vehicle-mounted device information;
[0008] In response to the target time synchronization instruction, a target entangled photon pair is generated, the target entangled photon pair includes a first photon and a second photon, the first photon is sent through a preset optical fiber to a first vehicle-mounted device corresponding to the first vehicle-mounted device information, and the second photon is sent through the preset optical fiber to a second vehicle-mounted device corresponding to the second vehicle-mounted device information;
[0009] In the case where an abnormality is detected in the transmission process of the target entangled photon pair, target environment configuration information is determined based on the preset optical fiber configuration information corresponding to the preset optical fiber, and the current environment configuration information of the target vehicle is adjusted to the target environment configuration information, so that in the environment corresponding to the target environment configuration information, a first atomic clock is formed in the first vehicle-mounted device through the action of the first photon, and a second atomic clock is formed in the second vehicle-mounted device through the action of the second photon;
[0010] The first phase information of the first atomic clock or the second phase information of the second atomic clock is adjusted to achieve time synchronization between the first vehicle-mounted device and the second vehicle-mounted device.
[0011] In an optional embodiment, when it is detected that the transmission process of the target entangled photon pair is abnormal, before determining the target environment configuration information based on the preset optical fiber configuration information corresponding to the preset optical fiber, the method further includes:
[0012] Monitoring target transmission index information of the target entangled photon pair during transmission; the target transmission index information includes at least one transmission index of optical power, coherence level, and noise level;
[0013] Based on the target transmission index information, it is determined whether there is an abnormality in the transmission process of the target entangled photon pair.
[0014] In an optional embodiment, when an abnormality is detected in the transmission process of the target entangled photon pair, target environment configuration information is determined based on the preset optical fiber configuration information corresponding to the preset optical fiber, and the current environment configuration information of the target vehicle is adjusted to the target environment configuration information, so that in the environment corresponding to the target environment configuration information, a first atomic clock is formed in the first vehicle-mounted device through the action of the first photon, and a second atomic clock is formed in the second vehicle-mounted device through the action of the second photon, including:
[0015] When an abnormality is detected in the transmission process of the first photon and / or the second photon, obtaining preset optical fiber configuration information and current environment configuration information of the target vehicle;
[0016] Determining target environment configuration information corresponding to the preset optical fiber configuration information;
[0017] When the current environment configuration information is inconsistent with the target environment configuration information, the current environment configuration information is adjusted to the target environment configuration information, so that in the environment corresponding to the target environment configuration information, the first photon can reach the first vehicle-mounted device, the second photon can reach the second vehicle-mounted device, and the first atomic clock is formed in the first vehicle-mounted device through the action of the first photon, and the second atomic clock is formed in the second vehicle-mounted device through the action of the second photon.
[0018] In an optional embodiment, adjusting the first phase information of the first atomic clock or the second phase information of the second atomic clock to achieve time synchronization between the first on-board device and the second on-board device includes:
[0019] Acquire the first phase information and the second phase information;
[0020] When the first phase information is inconsistent with the second phase information, the first phase information or the second phase information is adjusted until the phase difference between the first phase information and the second phase information is zero, so as to achieve time synchronization between the first vehicle-mounted device and the second vehicle-mounted device.
[0021] In an optional embodiment, the determining the target environment configuration information corresponding to the preset optical fiber configuration information includes:
[0022] The preset optical fiber configuration information is input into a target environment parameter prediction model for prediction to obtain target environment configuration information corresponding to the preset optical fiber configuration information; the target environment parameter prediction model is trained based on the optical fiber configuration information of a sample optical fiber and an environmental configuration information label corresponding to the sample optical fiber.
[0023] In an optional embodiment, the determining the target environment configuration information corresponding to the preset optical fiber configuration information further includes:
[0024] Determine target configuration parameters based on the preset optical fiber configuration information and the current environment configuration information; the target configuration parameters include optical fiber configuration parameters corresponding to the preset optical fiber configuration information and environment configuration parameters corresponding to the current environment configuration information;
[0025] generating an initial population based on the target configuration parameters, wherein the initial population includes a plurality of target configuration parameter sets;
[0026] The target configuration parameter set is optimized by using a preset genetic algorithm to obtain target environment configuration information corresponding to the preset optical fiber configuration information.
[0027] In an optional embodiment, when the current environment configuration information is inconsistent with the target environment configuration information, adjusting the current environment configuration information to the target environment configuration information includes:
[0028] Determine a target error based on the current environment configuration information and the target environment configuration information;
[0029] Inputting the target error into a preset proportional-integral-differential controller to obtain a target control amount;
[0030] A corresponding target control instruction is generated based on the target control amount; the target control instruction is used to control the current environment configuration information to be adjusted to the target environment configuration information.
[0031] The present invention also provides a time synchronization device, applied to a target vehicle, comprising:
[0032] A synchronization instruction acquisition module, used to acquire a target time synchronization instruction; the target time synchronization instruction includes the first vehicle-mounted device information and the second vehicle-mounted device information;
[0033] an entangled photon pair generation module, configured to generate a target entangled photon pair in response to the target time synchronization instruction, wherein the target entangled photon pair includes a first photon and a second photon, and send the first photon to the first vehicle-mounted device corresponding to the first vehicle-mounted device information through a preset optical fiber, and send the second photon to the second vehicle-mounted device corresponding to the second vehicle-mounted device information through the preset optical fiber;
[0034] a transmission adjustment module, for determining target environment configuration information based on preset optical fiber configuration information corresponding to the preset optical fiber, and adjusting the current environment configuration information of the target vehicle to the target environment configuration information, when an abnormality is detected in the transmission process of the target entangled photon pair, so that in the environment corresponding to the target environment configuration information, a first atomic clock is formed in the first vehicle-mounted device through the action of the first photon, and a second atomic clock is formed in the second vehicle-mounted device through the action of the second photon;
[0035] The phase adjustment module is used to adjust the first phase information of the first atomic clock or the second phase information of the second atomic clock to achieve time synchronization between the first vehicle-mounted device and the second vehicle-mounted device.
[0036] The present invention also provides an electronic device, comprising a processor and a memory, wherein the memory stores at least one instruction or at least one program, and the at least one instruction or the at least one program is loaded and executed by the processor to implement the time synchronization method as described above.
[0037] The present invention also provides a computer-readable storage medium, in which at least one instruction or at least one program is stored. The at least one instruction or the at least one program is loaded and executed by a processor to implement the time synchronization method as described above.
[0038] Implementing the embodiments of the present invention has the following beneficial effects:
[0039] The time synchronization method disclosed in the present invention uses entangled photon pairs to achieve time synchronization of vehicle-mounted equipment. During the transmission of the entangled photon pairs, if it is monitored that there is an abnormality in the transmission process of the photons, the corresponding optimal environmental configuration parameters are determined based on the preset optical fiber configuration parameters of the vehicle, and the current environmental parameters of the vehicle are adjusted to the optimal environmental configuration parameters, thereby optimizing the transmission process of the photons and improving the transmission efficiency of the photons, so that the entangled photon pairs can be normally transmitted to the vehicle-mounted equipment and form an atomic clock under the action of the entangled photon pairs. By adjusting the phase of the atomic clock, accurate and stable time synchronization between the vehicle-mounted equipment is achieved, thereby ensuring the safe and efficient operation of the vehicle. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] In order to more clearly illustrate the time synchronization method, device, electronic device and storage medium described in the present invention, the drawings required for the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0041] Figure 1 A schematic diagram of a time synchronization method provided by an embodiment of the present invention;
[0042] Figure 2 A schematic diagram of a process flow of a photon transmission process optimization method provided by an embodiment of the present invention;
[0043] Figure 3 A schematic diagram of the structure of a time synchronization device provided by an embodiment of the present invention;
[0044] Figure 4 A schematic structural diagram of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0045] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.
[0046] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product, or server that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products, or devices.
[0047] Please refer to Figure 1 , which shows a flow chart of a time synchronization method provided by an embodiment of the present invention. This specification provides method operation steps as described in the embodiment or flow chart, but may include more or fewer operation steps based on conventional or non-creative labor. The order of steps listed in the embodiment is only one way of executing the steps among many, and does not represent the only execution order. When the actual system or server product is executed, it can be executed in the order of the method shown in the embodiment or the accompanying drawings. Specifically, Figure 1 As shown, the time synchronization method is applied to a target vehicle, comprising:
[0048] S101, obtaining a target time synchronization instruction; the target time synchronization instruction includes first vehicle-mounted device information and second vehicle-mounted device information;
[0049] In the embodiment of this specification, the first vehicle-mounted device and the second vehicle-mounted device are vehicle-mounted devices to be synchronized in the target vehicle. The vehicle-mounted device to be synchronized may be a controller or a sensor in the target vehicle. Time synchronization is used to ensure that the collection time of sensor data is accurate, and the controller can make decisions and control based on accurate time information.
[0050] In the embodiments of this specification, the first vehicle-mounted device information refers to information related to the first vehicle-mounted device, and may include information such as the name or number of the first vehicle-mounted device used to represent the first vehicle-mounted device; the second vehicle-mounted device information refers to information related to the second vehicle-mounted device, and may include information such as the name or number of the second vehicle-mounted device used to represent the second vehicle-mounted device;
[0051] In the embodiment of this specification, the first vehicle-mounted device information and the second vehicle-mounted device information included in the target time synchronization instruction are used to indicate which two vehicle-mounted devices need to be time synchronized;
[0052] For example, if the target time synchronization instruction includes two numbering information items 01 and 02, 01 is the number corresponding to the first vehicle-mounted device, and 02 is the number corresponding to the second vehicle-mounted device, it indicates that the devices that need to be time synchronized are the first vehicle-mounted device and the second vehicle-mounted device.
[0053] S103, in response to the target time synchronization instruction, generating a target entangled photon pair, the target entangled photon pair comprising a first photon and a second photon, sending the first photon to a first vehicle-mounted device corresponding to the first vehicle-mounted device information through a preset optical fiber, and sending the second photon to a second vehicle-mounted device corresponding to the second vehicle-mounted device information through the preset optical fiber;
[0054] In the embodiments of this specification, quantum entanglement is a unique physical phenomenon in which a non-classical correlation exists between two or more particles, which can instantly affect each other's state even if they are far apart. Time synchronization based on quantum entanglement takes advantage of this property and achieves more accurate time synchronization by sharing entangled states between clocks;
[0055] In the embodiment of the present specification, after the target time synchronization instruction is obtained, a target entangled photon pair is generated in response to the target time synchronization instruction, and then based on the first vehicle-mounted device information and the second vehicle-mounted device information included in the target time synchronization instruction, the first photon in the target entangled photon pair is sent to the first vehicle-mounted device, and the second photon in the target entangled photon pair is sent to the second vehicle-mounted device;
[0056] In the embodiments of the present specification, the generation of the target entangled photon pair can be achieved using a nonlinear optical crystal, such as a barium borate (BBO) crystal, a potassium titanyl phosphate (KTP) crystal, etc.; specifically, a laser beam is used to irradiate the nonlinear optical crystal, and a spontaneous parametric down-conversion (SPDC) process is used to generate the target entangled photon pair, and the two photons in the target entangled photon pair have the same wavelength, polarization and direction, but their phases are random;
[0057] In the embodiment of the present specification, the target entangled photon pair includes a first photon and a second photon. The first photon is sent to a first vehicle-mounted device through a preset optical fiber, and the second photon is sent to a second vehicle-mounted device through a preset optical fiber. At least one atom is respectively arranged in the first vehicle-mounted device and the second vehicle-mounted device. After the photon reaches the vehicle-mounted device, it interacts with one of the atoms therein, so that the atom is in an excited state, forming an optical atomic clock. The oscillation frequency of the optical atomic clock matches the frequency of the photon, thereby forming a stable time reference.
[0058] In the embodiments of this specification, a high-precision optical beam splitter can be used to accurately separate the generated entangled photon pairs and guide them to different paths; a fiber coupler is installed on each path to couple the photons into a preset optical fiber; and optical isolators are installed at both ends of the preset optical fiber to reduce reflection and interference.
[0059] S105, when an abnormality is detected in the transmission process of the target entangled photon pair, target environment configuration information is determined based on the preset optical fiber configuration information corresponding to the preset optical fiber, and the current environment configuration information of the target vehicle is adjusted to the target environment configuration information, so that in the environment corresponding to the target environment configuration information, a first atomic clock is formed in the first vehicle-mounted device through the action of the first photon, and a second atomic clock is formed in the second vehicle-mounted device through the action of the second photon;
[0060] In an embodiment of the present specification, when it is detected that the transmission process of the target entangled photon pair is abnormal, before determining the target environment configuration information based on the preset optical fiber configuration information corresponding to the preset optical fiber, the method further includes:
[0061] Monitoring target transmission index information of the target entangled photon pair during transmission; the target transmission index information includes at least one transmission index of optical power, coherence level, and noise level;
[0062] Based on the target transmission index information, it is determined whether there is an abnormality in the transmission process of the target entangled photon pair.
[0063] In the embodiment of the present specification, it is possible to determine whether there is an abnormality in the transmission process of the photons by monitoring the optical power of the first photon and the second photon during the transmission process. Specifically, if the optical power is within a preset range, it indicates that there is no abnormality in the transmission process of the photons. The preset range is usually between a few microwatts (μW) and a few milliwatts (mW), and can be set according to actual conditions.
[0064] In the embodiments of this specification, the optical power of the first photon and the second photon during transmission may be monitored by an optical power meter or a synchronous PIN photodiode detector;
[0065] In the embodiment of the present specification, it is possible to determine whether there is an abnormality in the transmission process of the photons by monitoring the coherence level of the first photon and the second photon during the transmission process. Specifically, if the coherence decreases significantly, it indicates that there is an abnormality in the transmission process of the photons;
[0066] In the embodiment of the present specification, the spectrum width of the first photon and the second photon during the transmission process can be monitored by a spectrum analyzer. If the spectrum is narrow, it indicates that the coherence is strong, otherwise the coherence is weak;
[0067] In the embodiment of the present specification, it is possible to determine whether there is an abnormality in the transmission process of the photons by monitoring the noise level of the first photons and the second photons during the transmission process. Specifically, if there is too much noise, it indicates that there is an abnormality in the transmission process of the photons;
[0068] In the embodiments of the present specification, the stability of the interference fringes of the first photon and the second photon during the transmission process can be monitored by a Michelson interferometer. If the stability decreases, it indicates that the noise level is high, which means that there is an abnormality in the transmission process of the photon;
[0069] The embodiments of this specification determine whether there is an abnormality in the transmission process based on at least one transmission indicator of the optical power, coherence level and noise level of the entangled photon pair during the transmission process. If an abnormality is detected in the transmission process of the entangled photon pair, the current environmental configuration information of the vehicle is further adjusted to the optimal environmental configuration information corresponding to the vehicle, thereby optimizing the transmission process of the entangled photon pair and ensuring that the entangled photon pair can be transmitted normally to the on-board equipment, thereby achieving accurate and stable time synchronization between the on-board equipment.
[0070] In the embodiments of this specification, Figure 2 A flow chart of a method for optimizing a photon transmission process provided by an embodiment of the present invention, wherein when an abnormality is detected in the transmission process of the target entangled photon pair, target environment configuration information is determined based on preset optical fiber configuration information corresponding to the preset optical fiber, and the current environment configuration information of the target vehicle is adjusted to the target environment configuration information, so that in the environment corresponding to the target environment configuration information, a first atomic clock is formed in the first vehicle-mounted device through the action of the first photon, and a second atomic clock is formed in the second vehicle-mounted device through the action of the second photon, including:
[0071] S201, when it is detected that the transmission process of the first photon and / or the second photon is abnormal, obtaining preset optical fiber configuration information and current environment configuration information of the target vehicle;
[0072] In the embodiment of the present specification, when it is determined that there is an abnormality in the transmission process of the target entangled photons based on at least one transmission index of the optical power, coherence level and noise level of the target entangled photon pair during the transmission process, the preset optical fiber configuration information and the current environment configuration information of the target vehicle are obtained;
[0073] In the embodiments of this specification, the preset optical fiber configuration information refers to the configuration parameters of the preset optical fiber in the target vehicle, which may include the length and refractive index of the preset optical fiber, etc.; the current environment configuration information refers to the configuration parameters of the environment in which the preset optical fiber in the target vehicle is currently located, which may include temperature, absolute humidity, magnetic induction intensity, pressure, etc.;
[0074] S203, determining target environment configuration information corresponding to the preset optical fiber configuration information;
[0075] In the embodiments of this specification, the target environment configuration information refers to the optimal environment configuration parameters corresponding to the preset optical fiber. When the preset optical fiber in the target vehicle is in the environment corresponding to the target environment configuration information, the performance of the preset optical fiber is optimal, thereby ensuring that the target entangled photon pair can be normally transmitted to the vehicle-mounted equipment through the preset optical fiber in the environment corresponding to the target environment configuration information.
[0076] S205. When the current environment configuration information is inconsistent with the target environment configuration information, the current environment configuration information is adjusted to the target environment configuration information, so that in the environment corresponding to the target environment configuration information, the first photon can reach the first vehicle-mounted device, the second photon can reach the second vehicle-mounted device, and the first atomic clock is formed in the first vehicle-mounted device through the action of the first photon, and the second atomic clock is formed in the second vehicle-mounted device through the action of the second photon.
[0077] In an embodiment of the present specification, if the current environment configuration information of the target vehicle is inconsistent with the target environment configuration information corresponding to the preset optical fiber configuration information, it indicates that the configuration parameters of the current environment of the preset optical fiber in the target vehicle are not the optimal environment configuration parameters, which causes an abnormality in the transmission process of the target entangled photon pair, and thus it is necessary to adjust the current environment configuration information to the target environment configuration information (i.e., the optimal environment configuration parameters corresponding to the preset optical fiber), so that when the preset optical fiber in the target vehicle is in the environment corresponding to the target environment configuration information, the first photon can reach the first vehicle-mounted device through the preset optical fiber, and a first atomic clock is formed in the first vehicle-mounted device through the action of the first photon, and the second photon can reach the second vehicle-mounted device through the preset optical fiber, and a second atomic clock is formed in the second vehicle-mounted device through the action of the second photon.
[0078] The embodiments of this specification utilize entangled photon pairs to achieve time synchronization of vehicle-mounted equipment. During the transmission of the entangled photon pairs, if an abnormality is detected in the transmission process of the photons, the corresponding optimal environmental configuration parameters are determined based on the preset optical fiber configuration parameters of the vehicle, and the current environmental parameters of the vehicle are adjusted to the optimal environmental configuration parameters, thereby optimizing the transmission process of the photons and improving the transmission efficiency of the photons, so that the entangled photon pairs can be normally transmitted to the vehicle-mounted equipment and form an atomic clock under the action of the entangled photon pairs, and further by adjusting the phase of the atomic clock, accurate and stable time synchronization between the vehicle-mounted equipment is achieved, thereby ensuring the safe and efficient operation of the vehicle.
[0079] In an embodiment of the present specification, the determining of the target environment configuration information corresponding to the preset optical fiber configuration information includes:
[0080] The preset optical fiber configuration information is input into a target environment parameter prediction model for prediction to obtain target environment configuration information corresponding to the preset optical fiber configuration information; the target environment parameter prediction model is trained based on the optical fiber configuration information of a sample optical fiber and an environmental configuration information label corresponding to the sample optical fiber.
[0081] In the embodiments of this specification, the target environment configuration information corresponding to the preset optical fiber configuration information can be predicted by establishing a machine learning model;
[0082] Specifically, for a sample optical fiber with a fixed length and refractive index, its transmission efficiency under different environmental configuration parameters can be tested experimentally, and the environmental configuration parameter corresponding to the maximum transmission efficiency is determined as the environmental configuration information label corresponding to the sample optical fiber. The same method can be used to obtain environmental configuration information labels corresponding to multiple sample optical fibers with different lengths and refractive indices, thereby forming a sample data set. Each sample data in the sample data set includes the optical fiber configuration information of the sample optical fiber and the environmental configuration information label corresponding to the sample optical fiber. The preset machine learning model is further supervised based on the sample data set to obtain a target environmental parameter prediction model.
[0083] In the embodiment of the present specification, the preset optical fiber configuration information of the target vehicle is input into the target environment parameter prediction model, and the prediction result obtained is the target environment configuration information corresponding to the preset optical fiber configuration information (i.e., the optimal environment configuration parameters corresponding to the preset optical fiber);
[0084] The embodiments of this specification predict the optimal environmental configuration parameters corresponding to the preset optical fiber configuration parameters by establishing a machine learning model. When an abnormality is detected in the transmission process of the entangled photon pair, the preset optical fiber configuration parameters of the vehicle can be input into the prediction model to obtain the corresponding optimal environmental configuration parameters, and then the current environmental parameters of the vehicle can be further adjusted to the optimal environmental configuration parameters, thereby optimizing the transmission process of photons and improving the transmission efficiency of photons, so that the entangled photon pairs can be normally transmitted to the on-board equipment and realize accurate and stable time synchronization between the on-board equipment.
[0085] In an embodiment of the present specification, the determining of the target environment configuration information corresponding to the preset optical fiber configuration information further includes:
[0086] Determine target configuration parameters based on the preset optical fiber configuration information and the current environment configuration information; the target configuration parameters include optical fiber configuration parameters corresponding to the preset optical fiber configuration information and environment configuration parameters corresponding to the current environment configuration information;
[0087] generating an initial population based on the target configuration parameters, wherein the initial population includes a plurality of target configuration parameter sets;
[0088] The target configuration parameter set is optimized by using a preset genetic algorithm to obtain target environment configuration information corresponding to the preset optical fiber configuration information.
[0089] In the embodiments of this specification, the optical fiber configuration parameters may include the length and refractive index of the preset optical fiber, and the environmental configuration parameters may include temperature, absolute humidity, magnetic induction intensity, pressure, etc.;
[0090] In the embodiment of this specification, a target configuration parameter set in the initial population is an individual, and each target configuration parameter set includes specific optical fiber configuration parameters and environmental configuration parameters;
[0091] In the embodiment of this specification, the environmental configuration parameters are optimized by evaluating the fitness of individuals in the population, selecting, crossing, and varying the process, and a set of optimal environmental configuration parameters is obtained to determine the target environmental configuration information corresponding to the preset optical fiber configuration information;
[0092] For example, when the preset optical fiber length is 30m and the refractive index is 1.48, the optical fiber configuration parameters include the optical fiber length and the refractive index, and the environmental configuration parameters include the temperature, absolute humidity, magnetic induction intensity, and pressure. That is, the target configuration parameters include the optical fiber length, the refractive index, the temperature, the absolute humidity, the magnetic induction intensity, and the pressure. The target configuration parameters are encoded as individual genetic information of a binary bit string, and each individual represents a specific environmental configuration parameter, thereby generating an initial population as follows:
[0093] Table 1 Initial population table
[0094]
[0095]
[0096] Define a fitness function to characterize the transmission efficiency and other performance indicators of the preset optical fiber under different environmental configuration parameters: fitness ψ = 1 / (ζ+k); where ζ represents the attenuation factor, k represents the fitness adjustment coefficient, and the fitness adjustment coefficient can be set according to actual needs. Here it is set to 1. In the fitness evaluation, k is a constant that affects the output of the fitness function. Its function is to adjust the influence of the attenuation factor to ensure the reasonable calculation of the fitness value. By introducing k, the range of the fitness value can be controlled to avoid inappropriate values in actual calculations and ensure the stability of the algorithm. ζ = t+ρv+H+P+λ+l; where t represents temperature, ρv represents absolute humidity of the environment, H represents magnetic induction intensity, P represents air pressure, λ represents the refractive index of the optical fiber, and l represents the length of the optical fiber. After the fitness evaluation, the generated fitness is as follows:
[0097] Table 2 Fitness evaluation table of initial population
[0098]
[0099] The first three individuals with high fitness are initially selected using the roulette wheel method and assigned to the new population. Specifically, individual 1, individual 3, and individual 4 are selected for crossover and mutation inheritance to generate new individuals.
[0100] Crossover method: Individual 1 and individual 3 are crossed to generate a new individual 11; individual 11: absolute humidity ρv = (16.0 + 0.1) / 2 = 8.05, magnetic induction intensity H = (50 + 60) / 2 = 55, pressure P = (85 + 70) / 2 = 77.5, temperature t is inherited from individual 1 and remains unchanged.
[0101] Mutation method: Slightly change the humidity, magnetic induction intensity and pressure of individual 4 to obtain individual 12. Individual 12: absolute humidity ρv = 4 + 0.5 = 4.5, magnetic induction intensity H = 20 + 4 = 24, pressure P = 100-8 = 92, temperature t inherited from individual 4 and remains unchanged.
[0102] Repeat the above steps to perform multiple fitness evaluations, selections, crossovers, and mutations until a preset number of iterations (e.g., 10,000 times) is reached or the fitness converges to a preset order of magnitude, and a set of environmental configuration parameters corresponding to the individual with the highest fitness in the population finally obtained is determined as the target environmental configuration information corresponding to the preset optical fiber configuration information; the preset number of iterations and the preset order of magnitude can be set according to actual conditions.
[0103] In the embodiment of this specification, when an abnormality is detected in the transmission process of the entangled photon pairs, the optimal environmental configuration parameters corresponding to the preset optical fiber configuration parameters of the vehicle can be determined through a genetic algorithm, and the current environmental parameters of the vehicle can be further adjusted to the optimal environmental configuration parameters, thereby optimizing the transmission process of the photons and improving the transmission efficiency of the photons, so that the entangled photon pairs can be normally transmitted to the on-board equipment and realize accurate and stable time synchronization between the on-board equipment.
[0104] In the embodiment of the present specification, when the current environment configuration information is inconsistent with the target environment configuration information, adjusting the current environment configuration information to the target environment configuration information includes:
[0105] Determine a target error based on the current environment configuration information and the target environment configuration information;
[0106] Inputting the target error into a preset proportional-integral-differential controller to obtain a target control amount;
[0107] A corresponding target control instruction is generated based on the target control amount; the target control instruction is used to control the current environment configuration information to be adjusted to the target environment configuration information.
[0108] In the embodiments of this specification, a feedback control mechanism can be used to dynamically adjust the environmental configuration parameters of the environment in which the preset optical fiber is located through a proportional-integral-differential controller;
[0109] For example, the temperature of the environment in which the optical fiber is located is adjusted by feedback control, and the temperature value in the target environment configuration information is T set = 25℃, the current temperature can be obtained through the temperature sensor. Assuming the current temperature is T actual =20℃, then the target error can be determined as e(t)=T set -T actual , input the target error into the preset proportional integral differential controller to obtain the target control amount, and the preset proportional integral differential controller is set to u(t) = K p *e(t)+K i ∫e(t)dt+K d *(de(t) / dt), where K p Represents proportional gain, K i Indicates the integral gain, K d Denotes the differential gain, K p , K i and K d It can be set according to the actual situation. Here, K p =2, K i =0.1, K d=0.5, and only consider the target control amount u(t)=2*5+0.1*0+0.5*0=10 at the current time t=0, and then generate a corresponding target control instruction based on the target control amount, the target control instruction includes control information corresponding to the target control amount, such as turning on the heater and the operating temperature and working time of the heater, and send the target control instruction to the corresponding environment adjustment device, so that the environment adjustment device adjusts the environment configuration parameters of the preset optical fiber environment based on the target control instruction;
[0110] The embodiments of this specification utilize entangled photon pairs to achieve time synchronization of vehicle-mounted equipment. During the transmission of the entangled photon pairs, if an abnormality is detected in the transmission process of the photons, the corresponding optimal environmental configuration parameters are determined based on the preset optical fiber configuration parameters of the vehicle, and the current environmental parameters of the vehicle are adjusted to the optimal environmental configuration parameters using a feedback control mechanism. This can optimize the transmission process of the photons and improve the transmission efficiency of the photons, so that the entangled photon pairs can be transmitted normally to the vehicle-mounted equipment and achieve accurate and stable time synchronization between the vehicle-mounted equipment.
[0111] S107: Adjust the first phase information of the first atomic clock or the second phase information of the second atomic clock to achieve time synchronization between the first vehicle-mounted device and the second vehicle-mounted device.
[0112] In the embodiment of the present specification, the adjusting the first phase information of the first atomic clock or the second phase information of the second atomic clock to achieve time synchronization between the first vehicle-mounted device and the second vehicle-mounted device includes:
[0113] Acquire the first phase information and the second phase information;
[0114] When the first phase information is inconsistent with the second phase information, the first phase information or the second phase information is adjusted until the phase difference between the first phase information and the second phase information is zero, so as to achieve time synchronization between the first vehicle-mounted device and the second vehicle-mounted device.
[0115] In the embodiments of this specification, the working principle of the atomic clock is based on a basic concept in quantum physics: the energy level transition of atoms. The atomic clock measures time by using the frequency of electromagnetic waves emitted or absorbed when electrons inside atoms transition between two energy levels. The frequency of such electromagnetic waves is also called transition frequency, which is very stable. Therefore, accurate time can be obtained by measuring the transition frequency.
[0116] In the embodiments of the present specification, at least one atom is respectively arranged in the first vehicle-mounted device and the second vehicle-mounted device. These atoms can be atoms such as cesium, rubidium, hydrogen, strontium, etc. that can form an atomic clock. Each atom has its own specific transition frequency. After the first photon reaches the first vehicle-mounted device, it interacts with an atom in the first vehicle-mounted device to excite the atom to transition from a low energy level to a high energy level. Since the excited state is unstable, when the atom spontaneously transitions from the excited state back to a low energy level, it emits an electromagnetic wave. The frequency of the electromagnetic wave can be used as a time reference. By measuring the frequency of the electromagnetic wave, the time signal generated by the first atomic clock can be obtained, and the time signal is the time of the first vehicle-mounted device. Similarly, after the second photon reaches the second vehicle-mounted device, it interacts with an atom in the second vehicle-mounted device to form a second atomic clock. The time signal generated by the second atomic clock is the time of the second vehicle-mounted device.
[0117] In the embodiments of this specification, phase difference refers to the delay time of two signals at corresponding effective moments (generally referring to rising edges or falling edges), phase refers to instant delay, phase synchronization is also called time synchronization, and refers to the synchronization of the effective edge (rising edge or falling edge) of the clock signal. Therefore, adjusting the phase refers to adjusting the delay time between the time signal generated by the first atomic clock and the time signal generated by the second atomic clock. When the phase difference between the time signal generated by the first atomic clock and the time signal generated by the second atomic clock is zero, it indicates that the first atomic clock is time synchronized with the second atomic clock, that is, the first vehicle-mounted device is time synchronized with the second vehicle-mounted device;
[0118] In the embodiments of this specification, a phase modulator can be used to adjust the phase of the time signal generated by the atomic clock so that the delay time between the time signal generated by the first atomic clock and the time signal generated by the second atomic clock is zero, that is, the phase difference is zero;
[0119] In the embodiments of this specification, a high-precision phase measuring instrument, such as a Michelson interferometer or a Mach-Zehnder interferometer, may be used to obtain first phase information of a time signal generated by a first atomic clock and second phase information of a time signal generated by a second atomic clock;
[0120] In the embodiment of the present specification, if the first atomic clock in the first vehicle-mounted device is the master clock and the second atomic clock in the second vehicle-mounted device is the slave clock, the second phase information of the second atomic clock is adjusted so that the second phase information is synchronized with the first phase information, that is, the phase difference between the first phase information and the second phase information is zero, thereby realizing synchronization between the second vehicle-mounted device and the first vehicle-mounted device; if the second atomic clock in the second vehicle-mounted device is the master clock and the first atomic clock in the first vehicle-mounted device is the slave clock, the first phase information of the first atomic clock is adjusted so that the first phase information is synchronized with the second phase information, that is, the phase difference between the first phase information and the second phase information is zero, thereby realizing synchronization between the first vehicle-mounted device and the second vehicle-mounted device;
[0121] The embodiments of this specification utilize entangled photon pairs to achieve time synchronization of vehicle-mounted equipment. During the transmission of the entangled photon pairs, if an abnormality is detected in the transmission process of the photons, the corresponding optimal environmental configuration parameters are determined based on the preset optical fiber configuration parameters of the vehicle, and the current environmental parameters of the vehicle are adjusted to the optimal environmental configuration parameters, thereby optimizing the transmission process of the photons and improving the transmission efficiency of the photons, so that the entangled photon pairs can be normally transmitted to the vehicle-mounted equipment and form an atomic clock under the action of the entangled photon pairs. By adjusting the phase of the atomic clock, accurate and stable time synchronization between the vehicle-mounted equipment is achieved, thereby ensuring the safe and efficient operation of the vehicle.
[0122] It can be seen from the above-mentioned embodiment of the time synchronization method applied to the target vehicle provided by the present invention that the embodiment of the present invention obtains a target time synchronization instruction; the target time synchronization instruction includes first vehicle-mounted device information and second vehicle-mounted device information; in response to the target time synchronization instruction, a target entangled photon pair is generated, the target entangled photon pair includes a first photon and a second photon, the first photon is sent to the first vehicle-mounted device corresponding to the first vehicle-mounted device information through a preset optical fiber, and the second photon is sent to the second vehicle-mounted device corresponding to the second vehicle-mounted device information through the preset optical fiber; in the case where an abnormality is detected in the transmission process of the target entangled photon pair, the target environment configuration information is determined based on the preset optical fiber configuration information corresponding to the preset optical fiber, and the current environment configuration information of the target vehicle is adjusted to the target environment configuration information, so that in the environment corresponding to the target environment configuration information, a first atomic clock is formed in the first vehicle-mounted device through the action of the first photon, and a second atomic clock is formed in the second vehicle-mounted device through the action of the second photon; the first phase information of the first atomic clock or the second phase information of the second atomic clock is adjusted to achieve time synchronization between the first vehicle-mounted device and the second vehicle-mounted device. The technical solution provided in the embodiments of this specification utilizes entangled photon pairs to achieve time synchronization of on-board equipment. During the transmission of the entangled photon pairs, if an abnormality is detected in the transmission process of the photons, the corresponding optimal environmental configuration parameters are determined based on the preset optical fiber configuration parameters of the vehicle, and the current environmental parameters of the vehicle are adjusted to the optimal environmental configuration parameters, thereby optimizing the transmission process of the photons and improving the transmission efficiency of the photons, so that the entangled photon pairs can be normally transmitted to the on-board equipment and form an atomic clock under the action of the entangled photon pairs. By adjusting the phase of the atomic clock, accurate and stable time synchronization between the on-board equipment is achieved, thereby ensuring the safe and efficient operation of the vehicle.
[0123] The embodiment of the present invention also provides a time synchronization device, such as Figure 3As shown, it is a schematic diagram of the structure of a time synchronization device provided by an embodiment of the present invention; specifically, the device is applied to a target vehicle, comprising:
[0124] The synchronization instruction acquisition module 310 is used to acquire a target time synchronization instruction; the target time synchronization instruction includes the first vehicle-mounted device information and the second vehicle-mounted device information;
[0125] An entangled photon pair generation module 320 is used to generate a target entangled photon pair in response to the target time synchronization instruction, wherein the target entangled photon pair includes a first photon and a second photon, and the first photon is sent to the first vehicle-mounted device corresponding to the first vehicle-mounted device information through a preset optical fiber, and the second photon is sent to the second vehicle-mounted device corresponding to the second vehicle-mounted device information through the preset optical fiber;
[0126] A transmission adjustment module 330 is used to determine target environment configuration information based on preset optical fiber configuration information corresponding to the preset optical fiber when an abnormality is detected in the transmission process of the target entangled photon pair, and adjust the current environment configuration information of the target vehicle to the target environment configuration information, so that in the environment corresponding to the target environment configuration information, a first atomic clock is formed in the first vehicle-mounted device through the action of the first photon, and a second atomic clock is formed in the second vehicle-mounted device through the action of the second photon;
[0127] The phase adjustment module 340 is used to adjust the first phase information of the first atomic clock or the second phase information of the second atomic clock to achieve time synchronization between the first vehicle-mounted device and the second vehicle-mounted device.
[0128] In the embodiment of this specification, the device also includes:
[0129] A transmission index information monitoring module, used to monitor the target transmission index information of the target entangled photon pair during the transmission process; the target transmission index information includes at least one transmission index of optical power, coherence level and noise level;
[0130] A transmission process information determination module is used to determine whether there is an abnormality in the transmission process of the target entangled photon pair based on the target transmission index information.
[0131] In the embodiment of this specification, the transmission adjustment module 330 includes:
[0132] A configuration information acquisition unit, configured to acquire preset optical fiber configuration information and current environment configuration information of the target vehicle when an abnormality is detected in the transmission process of the first photon and / or the second photon;
[0133] A target environment configuration information determining unit, configured to determine target environment configuration information corresponding to the preset optical fiber configuration information;
[0134] An environment configuration information adjustment unit is used to adjust the current environment configuration information to the target environment configuration information when the current environment configuration information is inconsistent with the target environment configuration information, so that in the environment corresponding to the target environment configuration information, the first photon can reach the first vehicle-mounted device, the second photon can reach the second vehicle-mounted device, and the first atomic clock is formed in the first vehicle-mounted device through the action of the first photon, and the second atomic clock is formed in the second vehicle-mounted device through the action of the second photon.
[0135] In the embodiment of this specification, the phase adjustment module 340 includes:
[0136] A phase information acquisition unit, configured to acquire the first phase information and the second phase information;
[0137] A phase information adjustment unit is used to adjust the first phase information or the second phase information when the first phase information is inconsistent with the second phase information until the phase difference between the first phase information and the second phase information is zero, so as to achieve time synchronization between the first vehicle-mounted device and the second vehicle-mounted device.
[0138] In this embodiment of the specification, the target environment configuration information determination unit includes:
[0139] A prediction subunit is used to input the preset optical fiber configuration information into a target environment parameter prediction model for prediction to obtain target environment configuration information corresponding to the preset optical fiber configuration information; the target environment parameter prediction model is trained based on the optical fiber configuration information of the sample optical fiber and the environmental configuration information label corresponding to the sample optical fiber.
[0140] In this embodiment of the specification, the target environment configuration information determination unit further includes:
[0141] A target configuration parameter determination subunit, configured to determine target configuration parameters based on the preset optical fiber configuration information and the current environment configuration information; the target configuration parameters include optical fiber configuration parameters corresponding to the preset optical fiber configuration information and environment configuration parameters corresponding to the current environment configuration information;
[0142] An initial population generating subunit, configured to generate an initial population based on the target configuration parameters, wherein the initial population includes a plurality of target configuration parameter sets;
[0143] The optimization parameter solving subunit is used to perform optimization parameter solving on the target configuration parameter set by using a preset genetic algorithm to obtain target environment configuration information corresponding to the preset optical fiber configuration information.
[0144] In the embodiment of this specification, the environment configuration information adjustment unit includes:
[0145] a target error determination subunit, configured to determine a target error based on the current environment configuration information and the target environment configuration information;
[0146] A target control amount determination subunit is used to input the target error into a preset proportional integral differential controller to obtain a target control amount;
[0147] The target control instruction generating subunit is used to generate a corresponding target control instruction based on the target control amount; the target control instruction is used to control the current environment configuration information to be adjusted to the target environment configuration information.
[0148] An embodiment of the present invention also provides an electronic device, comprising a processor and a memory; the memory stores one or more instructions, and the one or more instructions are suitable for the processor to load and execute to implement the time synchronization method as described in the above method embodiment.
[0149] The memory can be used to store software programs and modules. The processor executes various functional applications and data processing by running the software programs and modules stored in the memory. The memory can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, application programs required for functions, etc.; the data storage area can store data created according to the use of the device, etc. In addition, the memory can include a high-speed random access memory and can also include a non-volatile memory, such as at least one disk storage device, a flash memory device or other volatile solid-state storage device. Accordingly, the memory can also include a memory controller to provide the processor with access to the memory.
[0150] Figure 4 The schematic diagram of the structure of an electronic device provided in an embodiment of the present invention, the internal structure of the electronic device may include but is not limited to: a processor 401, a memory 402 and a communication interface 403, wherein the processor 401, the memory 402 and the communication interface 403 in the electronic device may be connected by a bus or other means, and the embodiment shown in this specification Figure 4 The example of connecting through bus is taken in the following.
[0151] Among them, the processor 401 (or CPU (Central Processing Unit)) is the computing core and control core of the electronic device. The communication interface 403 is used for communication between the memory 402 and the processor 401. The memory 402 (Memory) is used to store programs and data. It can be understood that the memory here can be a high-speed RAM storage device or a non-volatile storage device (nonvolatile memory), such as at least one disk storage device; optionally, it can also be at least one storage device located away from the aforementioned processor. The memory provides a storage space, which stores the operating system of the electronic device, which may include but is not limited to: Windows system (an operating system), Linux system (an operating system), etc., and the present invention does not limit this; and, a computer program (including program code) suitable for being loaded and executed by the processor is also stored in the storage space. In the embodiment of this specification, the processor 401 loads and executes the computer program stored in the memory 402 to implement the time synchronization method provided in the above method embodiment.
[0152] An embodiment of the present invention also provides a computer-readable storage medium, which can be set in an electronic device to store at least one instruction, at least one program, code set or instruction set related to a time synchronization method in a method embodiment. The at least one instruction, the at least one program, the code set or instruction set can be loaded and executed by a processor of the electronic device to implement the time synchronization method provided by the above-mentioned method embodiment.
[0153] Optionally, in this embodiment, the above-mentioned storage medium may include but is not limited to: a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk, and other media that can store program codes.
[0154] It should be noted that the sequence of the embodiments of the present invention described above is for description only and does not represent the advantages and disadvantages of the embodiments. The above describes specific embodiments of this specification, and other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0155] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0156] Those skilled in the art will appreciate that all or part of the steps to implement the above embodiments may be accomplished by hardware or by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a disk, or an optical disk, etc.
[0157] The above disclosure is only a preferred embodiment of the present invention, which certainly cannot be used to limit the scope of the present invention. Therefore, equivalent changes made according to the claims of the present invention are still within the scope of the present invention.
Claims
1. A time synchronization method, applied to a target vehicle, characterized in that: include: Get the target time synchronization instruction; The target time synchronization instruction includes first vehicle-mounted device information and second vehicle-mounted device information; In response to the target time synchronization instruction, a target entangled photon pair is generated, the target entangled photon pair includes a first photon and a second photon, the first photon is sent through a preset optical fiber to a first vehicle-mounted device corresponding to the first vehicle-mounted device information, and the second photon is sent through the preset optical fiber to a second vehicle-mounted device corresponding to the second vehicle-mounted device information; In the case where an abnormality is detected in the transmission process of the target entangled photon pair, target environment configuration information is determined based on the preset optical fiber configuration information corresponding to the preset optical fiber, and the current environment configuration information of the target vehicle is adjusted to the target environment configuration information, so that in the environment corresponding to the target environment configuration information, a first atomic clock is formed in the first vehicle-mounted device through the action of the first photon, and a second atomic clock is formed in the second vehicle-mounted device through the action of the second photon; The first phase information of the first atomic clock or the second phase information of the second atomic clock is adjusted to achieve time synchronization between the first vehicle-mounted device and the second vehicle-mounted device.
2. The time synchronization method according to claim 1, characterized in that: In the case where an abnormality is detected in the transmission process of the target entangled photon pair, before determining the target environment configuration information based on the preset optical fiber configuration information corresponding to the preset optical fiber, the method further includes: Monitoring target transmission index information of the target entangled photon pair during transmission; the target transmission index information includes at least one transmission index of optical power, coherence level, and noise level; Based on the target transmission index information, it is determined whether there is an abnormality in the transmission process of the target entangled photon pair.
3. The time synchronization method according to claim 1, characterized in that: In the case where an abnormality is detected in the transmission process of the target entangled photon pair, target environment configuration information is determined based on the preset optical fiber configuration information corresponding to the preset optical fiber, and the current environment configuration information of the target vehicle is adjusted to the target environment configuration information, so that in the environment corresponding to the target environment configuration information, a first atomic clock is formed in the first vehicle-mounted device through the action of the first photon, and a second atomic clock is formed in the second vehicle-mounted device through the action of the second photon, including: When an abnormality is detected in the transmission process of the first photon and / or the second photon, obtaining preset optical fiber configuration information and current environment configuration information of the target vehicle; Determining target environment configuration information corresponding to the preset optical fiber configuration information; When the current environment configuration information is inconsistent with the target environment configuration information, the current environment configuration information is adjusted to the target environment configuration information, so that in the environment corresponding to the target environment configuration information, the first photon can reach the first vehicle-mounted device, the second photon can reach the second vehicle-mounted device, and the first atomic clock is formed in the first vehicle-mounted device through the action of the first photon, and the second atomic clock is formed in the second vehicle-mounted device through the action of the second photon.
4. The time synchronization method according to claim 1, characterized in that: The adjusting the first phase information of the first atomic clock or the second phase information of the second atomic clock to achieve time synchronization between the first vehicle-mounted device and the second vehicle-mounted device includes: Acquire the first phase information and the second phase information; When the first phase information is inconsistent with the second phase information, the first phase information or the second phase information is adjusted until the phase difference between the first phase information and the second phase information is zero, so as to achieve time synchronization between the first vehicle-mounted device and the second vehicle-mounted device.
5. The time synchronization method according to claim 3, characterized in that: The determining of the target environment configuration information corresponding to the preset optical fiber configuration information includes: The preset optical fiber configuration information is input into a target environment parameter prediction model for prediction to obtain target environment configuration information corresponding to the preset optical fiber configuration information; the target environment parameter prediction model is trained based on the optical fiber configuration information of a sample optical fiber and an environmental configuration information label corresponding to the sample optical fiber.
6. The time synchronization method according to claim 3, characterized in that: The determining of the target environment configuration information corresponding to the preset optical fiber configuration information further includes: Determine target configuration parameters based on the preset optical fiber configuration information and the current environment configuration information; the target configuration parameters include optical fiber configuration parameters corresponding to the preset optical fiber configuration information and environment configuration parameters corresponding to the current environment configuration information; generating an initial population based on the target configuration parameters, wherein the initial population includes a plurality of target configuration parameter sets; The target configuration parameter set is optimized by using a preset genetic algorithm to obtain target environment configuration information corresponding to the preset optical fiber configuration information.
7. The time synchronization method according to claim 3, characterized in that: When the current environment configuration information is inconsistent with the target environment configuration information, adjusting the current environment configuration information to the target environment configuration information includes: Determine a target error based on the current environment configuration information and the target environment configuration information; Inputting the target error into a preset proportional-integral-differential controller to obtain a target control amount; A corresponding target control instruction is generated based on the target control amount; the target control instruction is used to control the current environment configuration information to be adjusted to the target environment configuration information.
8. A time synchronization device, applied to a target vehicle, characterized in that: include: A synchronization instruction acquisition module, used to acquire a target time synchronization instruction; The target time synchronization instruction includes first vehicle-mounted device information and second vehicle-mounted device information; an entangled photon pair generation module, configured to generate a target entangled photon pair in response to the target time synchronization instruction, wherein the target entangled photon pair includes a first photon and a second photon, and send the first photon to the first vehicle-mounted device corresponding to the first vehicle-mounted device information through a preset optical fiber, and send the second photon to the second vehicle-mounted device corresponding to the second vehicle-mounted device information through the preset optical fiber; a transmission adjustment module, for determining target environment configuration information based on preset optical fiber configuration information corresponding to the preset optical fiber, and adjusting the current environment configuration information of the target vehicle to the target environment configuration information, when an abnormality is detected in the transmission process of the target entangled photon pair, so that in the environment corresponding to the target environment configuration information, a first atomic clock is formed in the first vehicle-mounted device through the action of the first photon, and a second atomic clock is formed in the second vehicle-mounted device through the action of the second photon; The phase adjustment module is used to adjust the first phase information of the first atomic clock or the second phase information of the second atomic clock to achieve time synchronization between the first vehicle-mounted device and the second vehicle-mounted device.
9. An electronic device, characterized in that: The device includes a processor and a memory, wherein the memory stores at least one instruction or at least one program, and the at least one instruction or the at least one program is loaded and executed by the processor to implement the time synchronization method as described in any one of claims 1-7.
10. A computer-readable storage medium, characterized in that: The storage medium stores at least one instruction or at least one program, and the at least one instruction or the at least one program is loaded and executed by the processor to implement the time synchronization method as described in any one of claims 1-7.
