Control method and device and communication equipment
By flexibly adapting the target route of the PPS signal receiving device to the autonomous driving system, the compatibility problem caused by the difference in GNSS equipment types is solved, the system's compatibility and design flexibility are improved, and the cost is reduced.
Patent Information
- Application Number
- CN202411527655.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-29
- Publication Date
- 2025-11-25
AI Technical Summary
In autonomous driving or intelligent assisted driving systems, compatibility issues exist when PPS signal receiving devices are connected to different types of GNSS devices, which affects the implementation of time synchronization mechanisms and limits the flexibility of system architecture and design costs.
By enabling the target line based on information from the first device, different types of second devices can be flexibly adapted to achieve PPS signal processing, reduce design constraints on external devices, and improve compatibility and system architecture flexibility.
This enables flexible adaptation of PPS signal receiving equipment among different GNSS devices, reduces design costs, and improves system compatibility and time synchronization accuracy.
Smart Images

Figure CN121013166A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of communication technology, and in particular to a control method, apparatus and communication equipment. Background Technology
[0002] Currently, vehicles with autonomous driving or intelligent assisted driving capabilities use various sensors such as LiDAR, cameras, and radar to collect surrounding data. The domain controller of the autonomous driving system or intelligent assisted driving system can acquire various perception information and perform fusion perception to realize the vehicle's autonomous driving or intelligent assisted driving functions based on the fusion perception results.
[0003] To improve fusion accuracy, it is necessary to achieve time synchronization between the domain controller and other electronic control units (ECUs) of the vehicle. For example... Figure 1 As shown, the domain controller of an autonomous driving system or intelligent assisted driving system can synchronize time with Global Navigation Satellite System (GNSS) equipment, lidar, etc. GNSS equipment can send Coordinated Universal Time (UTC) information to the domain controller via the Generalized Precision Time Protocol (gPTP), and simultaneously send the corresponding pulse-per-second (PPS) signal to the domain controller. The domain controller corrects the UTC information based on the PPS signal to achieve time synchronization. A similar method can be used to achieve time synchronization between the domain controller and sensors such as lidar. In this process, the device used to output the PPS signal can be called the input device, and the device used to receive the PPS signal can be called the receiving device.
[0004] Currently, there is no unified protocol for PPS signals. In different application scenarios, when different types of input modules are connected to the same receiving module, compatibility issues may arise, affecting the implementation of the aforementioned time synchronization mechanism. Summary of the Invention
[0005] This application provides a control method, apparatus, and communication device for reducing the design constraints of PPS signal receiving devices on external devices, or for improving the compatibility of PPS signal receiving devices and the flexibility of the corresponding electrical and electronic architecture (EE).
[0006] In a first aspect, this application provides a control method, which can be implemented by a first device connected to a second device. The method may include: enabling a target line in at least one line of the first device according to first information; and processing a first pulse-per-second (PPS) signal from the second device through the target line to obtain a second PPS signal, wherein the second PPS signal is used for time synchronization between the first device and the second device.
[0007] Using the above method, the first device, as a PPS signal receiving device, can enable the target line for the second device, allowing the first device to flexibly adapt to different second devices. This reduces the design constraints of the PPS signal receiving device on external devices, or in other words, improves the compatibility of the PPS signal receiving device and the flexibility of the corresponding EE architecture.
[0008] In conjunction with the first aspect, in one possible implementation, the first information can be associated with the output type of the PPS signal of the second device. Thus, the first device can know the output type of the PPS signal of the second device based on the first information, and thereby know how to process the first PPS signal from the second device based on the target line, in order to achieve time synchronization between the first and second devices.
[0009] In conjunction with the first aspect, in one possible implementation, the at least one line may include a first line and a second line, with the output port of the second line connected to the input port of the first line. If the output type of the PPS signal of the second device is a first type, the target line includes the first line and the second line, the second line is enabled, and its output port is connected to the input port of the first line. If the output type of the PPS signal of the second device is a second type, the target line includes the first line, the second line is disabled, and its output port is disconnected from the input port of the first line.
[0010] By connecting the output port of the second line to the input port of the first line and enabling the second line according to the output type of the PPS signal of the second device, the first PPS signal from the second device can be processed using a target line including both the first and second lines when the second line is enabled, and vice versa when the second line is disabled. This allows the first device to flexibly adapt to different second devices, reducing the design constraints of the PPS signal receiving device on external devices, or improving the compatibility of the PPS signal receiving device and the flexibility of the corresponding EE architecture. In conjunction with the first aspect, in one possible implementation, the first device further includes a control module, wherein the enable pin of the control module is connected to the input port of the second line to provide an enable or disable signal to the second line; the output port of the first line is connected to the control module, which is used to achieve time synchronization between the first device and the second device based on the second PPS signal.
[0011] In conjunction with the first aspect, in one possible implementation, if the output type of the PPS signal of the second device is a first type, enabling the target line in at least one line of the first device according to the first information includes: inputting the enable signal to the input port of the second line through the enable pin according to the first information, so that the output port of the second line is connected to the input port of the first line; if the output type of the PPS signal of the second device is a second type, enabling the target line in at least one line of the first device according to the first information includes: inputting the disable signal to the input port of the second line through the enable pin according to the first information, so that the output port of the second line is disconnected from the input port of the first line.
[0012] In conjunction with the first aspect, in one possible implementation, the second line includes a first power supply, which, when the second line is enabled, provides a high-level signal to the input port of the first line.
[0013] In conjunction with the first aspect, in one possible implementation, the second line further includes an NPN transistor and a PNP transistor. The input port of the second line is connected to the base of the NPN transistor, the emitter of the NPN transistor is grounded, the collector of the NPN transistor is connected to the base of the PNP transistor, the emitter of the PNP transistor is connected to the first power supply, and the collector of the PNP transistor is connected to the input port of the first line.
[0014] In conjunction with the first aspect, in one possible implementation, the first device includes a connector connected to the second device, wherein the connector includes at least one pin, each pin being connected to one of the at least one lines, and the first information is associated with a mapping relationship between the second device, the at least one pin, and the at least one line. Thus, the first device can determine, based on the first information, which pin of the second device is connected to the connector and which line that pin is connected to, thereby determining which line to use as the target line to process the first PPS signal from the second device to obtain a second PPS signal.
[0015] In conjunction with the first aspect, in one possible implementation, enabling a target line in at least one line of the first device according to the first information includes: if the first information indicates that the second device is connected to a first pin in the at least one pin, then a third line in the at least one line to which the first pin is connected is designated as the target line; or, if the first information indicates that the second device is connected to a second pin in the at least one pin, then a fourth line in the at least one line to which the second pin is connected is designated as the target line.
[0016] In conjunction with the first aspect, in one possible implementation, when the PPS signal output type of the second device is a first type, the second device is connected to the first pin; or, when the PPS signal output type of the second device is a second type, the second device is connected to the second pin.
[0017] In conjunction with the first aspect, in one possible implementation, the first type includes: a PPS control line in the second device with a low input logic level and a high output impedance state; or a PPS control line in the second device with a high input logic level and a low output logic level; or, the second type includes: a PPS control line in the second device with a low input logic level and a low output logic level; or a PPS control line in the second device with a high input logic level and a high output logic level.
[0018] In conjunction with the first aspect, in one possible implementation, the method further includes: receiving second information from the second device, the second information including Coordinated Universal Time (UTC) information; performing edge sampling in the second PPS signal; and achieving time synchronization between the first device and the second device based on the sampling edges of the second PPS signal and the UTC information.
[0019] In conjunction with the first aspect, in one possible implementation, if the PPS signal output type of the second device is a first type, the step of achieving time synchronization between the first device and the second device based on the sampling edge of the second PPS signal and the UTC information includes: keeping the sampling edge of the second PPS signal unchanged, and achieving time synchronization between the first device and the second device based on the sampling edge of the second PPS signal and the UTC information; if the PPS signal output type of the second device is a second type, the step of achieving time synchronization between the first device and the second device based on the sampling edge of the second PPS signal and the UTC information includes: flipping the sampling edge of the second PPS signal, and achieving time synchronization between the first device and the second device based on the flipped sampling edge and the UTC information.
[0020] In conjunction with the first aspect, in one possible implementation, the method further includes: retrieving the first information from a storage medium when the first device is powered on.
[0021] Secondly, this application provides a control device, comprising: a control module for enabling a target line in at least one line of a first device according to first information, wherein the first device is connected to a second device; and a processing module for processing a first PPS signal from the second device through the target line to obtain a second PPS signal, wherein the second PPS signal is used for time synchronization between the first device and the second device.
[0022] Thirdly, this application provides a communication device, including a control module and at least one line, the communication device being connected to a second device, the control module being configured to enable a target line among the at least one line according to first information; the target line being configured to process a first PPS signal from the second device to obtain a second PPS signal, the second PPS signal being used for time synchronization between the communication device and the second device.
[0023] In conjunction with the third aspect, in one possible implementation, the first information is associated with the output type of the PPS signal of the second device.
[0024] In conjunction with the third aspect, in one possible implementation, the at least one line includes a first line and a second line, with the output port of the second line connected to the input port of the first line. If the output type of the PPS signal of the second device is a first type, the target line includes the first line and the second line, the second line is enabled, and its output port is connected to the input port of the first line. If the output type of the PPS signal of the second device is a second type, the target line includes the first line, the second line is disabled, and its output port is disconnected from the input port of the first line.
[0025] In conjunction with the third aspect, in one possible implementation, the first device further includes a control module, wherein the enable pin of the control module is connected to the input port of the second line for providing an enable signal or a disable signal to the second line; the output port of the first line is connected to the control module, and the control module is used to achieve time synchronization between the first device and the second device based on the second PPS signal.
[0026] In conjunction with the third aspect, in one possible implementation, if the output type of the PPS signal of the second device is a first type, the control module is specifically configured to: input the enable signal to the input port of the second line through the enable pin according to the first information, so that the output port of the second line is connected to the input port of the first line; if the output type of the PPS signal of the second device is a second type, the control module is specifically configured to: input the disable signal to the input port of the second line through the enable pin according to the first information, so that the output port of the second line is disconnected from the input port of the first line.
[0027] In conjunction with the third aspect, in one possible implementation, the second line includes a first power supply, which, when the second line is enabled, provides a high-level signal to the input port of the first line.
[0028] In conjunction with the third aspect, in one possible implementation, the second line further includes an NPN transistor and a PNP transistor. The input port of the second line is connected to the base of the NPN transistor, the emitter of the NPN transistor is grounded, the collector of the NPN transistor is connected to the base of the PNP transistor, the emitter of the PNP transistor is connected to the first power supply, and the collector of the PNP transistor is connected to the input port of the first line.
[0029] In conjunction with the third aspect, in one possible implementation, the first device further includes a connector connected to the second device, wherein the connector includes at least one pin, the at least one pin being connected to the at least one line, and the first information is associated with a mapping relationship between the second device, the at least one pin, and the at least one line.
[0030] In conjunction with the third aspect, in one possible implementation, the control module is specifically configured to: if the first information indicates that the second device is connected to the first pin among the at least one pins, use the third line among the at least one lines to which the first pin is connected as the target line; or, if the first information indicates that the second device is connected to the second pin among the at least one pins, use the fourth line among the at least one lines to which the second pin is connected as the target line.
[0031] In conjunction with the third aspect, in one possible implementation, when the PPS signal output type of the second device is of the first type, the second device is connected to the first pin; or, when the PPS signal output type of the second device is of the second type, the second device is connected to the second pin.
[0032] In conjunction with the third aspect, in one possible implementation, the first type includes: a PPS control line in the second device with a low input logic level and a high output impedance state; or a PPS control line in the second device with a high input logic level and a low output logic level; or, the second type includes: a PPS control line in the second device with a low input logic level and a low output logic level; or a PPS control line in the second device with a high input logic level and a high output logic level.
[0033] In conjunction with the third aspect, in one possible implementation, the communication device further includes a communication module for receiving second information from the second device, the second information including Coordinated Universal Time (UTC) information; the control module is further configured to perform edge sampling in the second PPS signal, and based on the sampling edge of the second PPS signal and the UTC information, realize time synchronization between the first device and the second device.
[0034] In conjunction with the third aspect, in one possible implementation, if the PPS signal output type of the second device is of the first type, the control module is specifically used to: keep the sampling edge of the second PPS signal unchanged, and realize time synchronization between the first device and the second device based on the sampling edge of the second PPS signal and the UTC information; if the PPS signal output type of the second device is of the second type, the control module is specifically used to: flip the sampling edge of the second PPS signal, and realize time synchronization between the first device and the second device based on the flipped sampling edge and the UTC information.
[0035] In conjunction with the third aspect, in one possible implementation, the control module is further configured to retrieve the first information from the storage medium when the first device is powered on.
[0036] Fourthly, this application provides a communication device including at least one processor and an interface circuit, wherein the interface circuit is used to provide data or code instructions to the at least one processor, and the at least one processor is used to implement the method described in the first aspect and any possible implementation thereof through logic circuits or execution code instructions.
[0037] Fifthly, this application provides a computer-readable storage medium storing program code that, when run on a computer, causes the computer to perform the method described in the first aspect and any possible implementation thereof.
[0038] In a sixth aspect, this application provides a computer program product that, when run on a computer, causes the computer to perform the method described in the first aspect and any possible implementation thereof.
[0039] In a seventh aspect, this application provides a vehicle including a first device and a second device, wherein the first device is configured to implement the method described in the first aspect and any possible implementation thereof, for time synchronization with the second device.
[0040] Based on the implementations provided in the above aspects, the embodiments of this application can be further combined to provide more implementations.
[0041] The technical effects that can be achieved by any possible implementation of any aspect from the second to the seventh aspect above can be described with reference to the technical effects that can be achieved by any possible implementation of any aspect from the first aspect above, and the repetitions will not be discussed. Attached Figure Description
[0042] Figure 1This is a schematic diagram of the architecture of an autonomous driving system or an intelligent driver assistance system.
[0043] Figure 2 A schematic diagram illustrating the principle of precise time synchronization;
[0044] Figure 3a A schematic diagram of the internal circuitry structure of a GNSS device;
[0045] Figure 3b A waveform diagram of the input or output PPS signal of a GNSS device;
[0046] Figure 3c A schematic diagram of the internal wiring structure of a domain controller for an autonomous driving system or intelligent driver assistance system;
[0047] Figure 4a A schematic diagram of the internal wiring structure of another type of GNSS equipment;
[0048] Figure 4b A waveform diagram of the input or output PPS signal of another GNSS device;
[0049] Figure 4c A schematic diagram of the internal wiring structure of a domain controller for another type of autonomous driving system or intelligent driver assistance system;
[0050] Figure 5 This is a schematic diagram of the architecture of a communication system applicable to the embodiments of this application;
[0051] Figures 6a-6c This is a schematic diagram of the system architecture for different examples of different implementations of the GNSS module in embodiments of this application;
[0052] Figure 7a This is a schematic diagram of the structure of the first device according to an embodiment of this application;
[0053] Figure 7b This is a schematic diagram of the logic control principle of the target circuit in an embodiment of this application;
[0054] Figure 8 This is a flowchart illustrating the control method according to an embodiment of this application;
[0055] Figure 9a This is a schematic diagram illustrating one implementation of at least one line of the first device in an embodiment of this application.
[0056] Figure 9b This is a schematic diagram illustrating another implementation of at least one line of the first device according to an embodiment of this application;
[0057] Figure 10aThis is a schematic diagram illustrating one implementation of at least one line of the first device in an embodiment of this application.
[0058] Figure 10b This is a waveform diagram of line 1 and line 2 in the enabled state according to an embodiment of this application.
[0059] Figure 10c This is a waveform diagram of line 2 in the disabled state according to an embodiment of this application;
[0060] Figure 11a This is a schematic diagram illustrating another implementation of at least one line of the first device according to an embodiment of this application;
[0061] Figure 11b This is a waveform diagram of line 3 in the enabled state according to an embodiment of this application;
[0062] Figure 11c This is a waveform diagram of line 4 in the enabled state according to an embodiment of this application;
[0063] Figure 12 This is a schematic diagram of the structure of a control device according to an embodiment of this application;
[0064] Figure 13 This is a schematic diagram of the structure of a communication device according to an embodiment of this application. Detailed Implementation
[0065] To facilitate understanding, some terms used in the embodiments of this application will be explained below:
[0066] (1) Coordinated Universal Time (UTC): Also known as Coordinated Universal Time or International Standard Time, it is an international time standard based on atomic clocks. It has high precision and stability and is an important standard for modern time measurement.
[0067] UTC time has a wide range of applications, including but not limited to Global Navigation Satellite Systems (GNSS) and other systems that require high-precision time synchronization. GNSS systems, also known as Global Navigation Satellite Systems, can specifically include: Global Positioning System (GPS), BeiDou Navigation Satellite System (BDS), GLONASS, Galileo, etc.
[0068] (2) Generalized Precision Time Protocol (gPTP): Also known as a generalized clock synchronization protocol, it is an extension of the Institute of Electrical and Electronics Engineers (IEEE) 1588 protocol. It provides globally accurate time services for time-sensitive networks (TSNs) to implement the stream synchronization function in the TSN standard set. In the network, the network port that publishes time synchronization messages is called the master port, and the port that receives time synchronization messages is called the slave port.
[0069] The main logic of gPTP is as follows: using the best master clock algorithm (BMCA), an optimal node is selected in the network system as the master clock (or a pre-determined one) to send the initial reference clock. Other nodes act as slave clocks, forming a tree structure with the master clock as the root to receive clock signals and align with the master clock. That is, the error between the master and slave clock ports is calculated to achieve synchronization, thereby achieving the goal of time synchronization.
[0070] The master clock serves as the time reference for the entire system. Generally, a higher time accuracy is required, and it needs to be synchronized with even higher-precision clocks, such as atomic clocks and satellites. Master clock allocation can be divided into dynamic and static allocation. For vehicles, whose network composition is generally stable, static pre-allocation can be used to determine the master clock. For systems where the network composition changes dynamically, the BMCA algorithm is typically used for allocation.
[0071] (3) Pulse per second (PPS): In the communications industry, PPS stands for pulses per second, and it is generally used in fields requiring precise time synchronization, such as GNSS systems. The purpose of the pulse per second signal is to indicate the exact second. The rising edge of the PPS signal (or PPS pulse) indicates the exact second in UTC, with an accuracy down to the nanosecond level and no accumulated error. This signal is very important in applications requiring high-precision time synchronization, such as clock synchronization and precise time dissemination.
[0072] Taking autonomous driving systems as an example, autonomous driving mainly encompasses three key technical aspects: perception, planning, and control. Currently, it primarily utilizes various sensors (such as radar, lidar, and cameras) to collect external information, and the domain controller employs multi-sensor fusion to achieve planning and control. During sensor fusion, to improve fusion accuracy, motion compensation, time synchronization, and sensor calibration are required beforehand.
[0073] When achieving time synchronization across multiple sensors, a unified clock source must first be selected to provide a time reference for the entire system. This is accomplished by using a combination of PPS pulses and time synchronization messages to synchronize the master device's time. In autonomous driving systems containing multiple different types of sensors, time synchronization protocols based on Ethernet or CAN are typically employed to achieve high-precision time synchronization between the master device and each sensor.
[0074] In time synchronization of autonomous driving systems, high-precision GNSS onboard receivers are often used. These receivers decode navigation satellite signals to achieve positioning and timing functions. Specifically, the GNSS receiver calculates the clock difference between the high-precision atomic clocks in the navigation satellites and the local system time, thereby calibrating the system time and completing the GNSS timing function. Subsequently, the GNSS receiver sends PSS pulses and time synchronization messages to receiving devices (such as domain controllers or industrial control computers). For example, Figure 2 As shown, the PPS pulse is a synchronization pulse signal with a time period (denoted as t1) of 1 second, generated based on UTC. The pulse width is typically between 5 milliseconds and 100 milliseconds, denoted as t0. Time synchronization messages may include information such as latitude and longitude, date (year, month, day), and UTC time (accurate to the second).
[0075] Upon receiving a PPS pulse, the receiving device resets its internal system time (based on a crystal oscillator) to zero (in milliseconds and below) and begins calculating millisecond time from this point. After receiving a time synchronization message, the receiving device extracts the UTC time (hour, minute, second, year, month, day) from the message. The time taken from receiving the PPS pulse to parsing the UTC time from the time synchronization message is denoted as tx. This tx time is added to the UTC integer second and synchronized to the device system, thus completing one time synchronization cycle. The system time is precisely calibrated every second to ensure accuracy.
[0076] With the evolution of electrical and electronic architecture (EE) in automobiles, the internal wiring structure and PPS signal output type of GNSS equipment are inconsistent, resulting in several possible scenarios, as shown below:
[0077] Option (1):
[0078] The internal circuitry of GNSS equipment incorporates circuitry based on open collector (OC) devices (e.g., transistors) or open drain (OD) devices (e.g., MOSFETs). OC or OD devices are referred to as device ①. For example... Figure 3a As shown, taking device ① as an example of an NPN transistor, the input terminal of this circuit is connected to the base of the NPN transistor through a resistor, the emitter of the NPN transistor is grounded, and the collector of the NPN transistor is connected to the output terminal through a resistor.
[0079] After other components (not shown in the figure) inside the GNSS device generate a PPS signal, this PPS signal is input through the input terminal of this line, passes through device ①, and is output through the output terminal of this line, providing it to the input terminal of the domain controller connected to the GNSS device. For example, Figure 3a The circuit shown is characterized by being able to output only a logic low level and not a logic high level. For example, if... Figure 3a The PPS signal input to the input terminal of the line shown is as follows: Figure 3b The square wave signal shown is represented as PPS signal 1. When the input PPS signal is logic low (represented as L), the output of this line is in a high-impedance state; when the input PPS signal is logic high (represented as H), the output PPS signal is logic low. The output signal corresponding to the input square wave signal is as follows: Figure 3bAs shown in Figure 2, the PPS signal is either a low-level signal or a high-impedance state. It should be understood that the example of a "high-impedance" PPS signal in the figure is merely an example; in reality, there is "no signal." Correspondingly, the PPS signal obtained at the domain controller input also appears as a low-level signal or a high-impedance state. Since the input PPS signal has no edge, the domain controller cannot achieve time synchronization based on the input PPS signal.
[0080] Specifically, if the output of the GNSS device is connected to the PPS signal input (denoted as PPS_IN) of the domain controller, and the domain controller provides power to the output of the GNSS device (i.e., the input of the domain controller), then as follows: Figure 3a The circuit shown can provide a square wave signal to the domain controller, denoted as PPS signal 1, with the help of the power supplied by the domain controller. For example... Figure 3a When the PPS signal input to the circuit shown is logic low, the GNSS output provides a logic high signal to the domain controller. Figure 3a When the PPS signal input to the circuit shown is at a logic high level, the GNSS output provides a logic low level signal to the domain controller. The waveform of the PPS signal obtained by the domain controller's input port is as follows. Figure 3b The PPS signal 2 is shown. In this case, the internal wiring of the domain controller can be, for example, as shown in... Figure 3c As shown, the input terminal is connected to power supply 1 via a resistor and a diode. Power supply 1 can be used to provide a high level to the PPS signal input terminal of the domain controller when the GNSS device outputs a high impedance state, so that the domain controller obtains the following... Figure 3b The PPS signal shown is 3.
[0081] In addition, such as Figure 3c As shown, the internal circuitry of the domain controller may also include device ① (e.g., an NPN transistor) and power supply 2. For example, the PPS signal input terminal of the domain controller is connected to the base of the NPN transistor via a resistor, the emitter of the NPN transistor is grounded, and the collector of the NPN transistor is connected to power supply 2 and the output terminal via a resistor. The signal obtained at the domain controller input terminal is as follows: Figure 3b The PPS signal 3 shown, under the control of the internal circuitry based on the NPN transistor and power supply 2, can provide output signals to the system-on-chip (SoC) of the domain controller. Figure 3b The PPS signal 1 is shown. Therefore, the SoC can achieve time synchronization between the domain controller and the GNSS device based on the PPS signal 1.
[0082] Therefore, based on Figure 3a The circuit structure of the GNSS device shown requires that the input of the domain controller be able to provide power to the GNSS device.
[0083] Option (2):
[0084] like Figure 4a As shown, the internal circuit structure of the GNSS equipment includes components such as a power supply, an NPN transistor, and a MOSFET. The input terminal of the circuit is connected to the base of the NPN transistor through a resistor. The emitter of the NPN transistor is grounded. The collector of the NPN transistor is connected to the gate (G) of the MOSFET through a resistor. The power supply is connected to the source (S) of the MOSFET through a resistor. The drain (D) of the MOSFET is connected to the output terminal of the circuit through a diode.
[0085] After other components inside the GNSS device (not shown in the figure) generate a PPS signal, this PPS signal is input through the input terminal of this line, passes through components such as NPN transistors and MOSFETs, and is output at the output terminal, providing power to the domain controller connected to the GNSS device. For example, Figure 4a As shown, this line can output both logic high and logic low levels. Specifically, for example, if... Figure 4a The PPS signal input to the input terminal of the line shown is as follows: Figure 3b and Figure 4b The square wave signal shown is represented as PPS signal 1. After internal circuit processing, the PPS signal output at the output terminal is as follows: Figure 4b The PPS signal 4 shown is... Figure 4a When the PPS signal input to the input terminal of the circuit shown is at a logic high level, in Figure 4a The PPS signal output from the circuit shown is a logic high level; Figure 4a When the PPS signal input to the input terminal of the circuit shown is at a logic low level, in Figure 4a The output PPS signal of the circuit shown is logic low. Correspondingly, the PPS signal input of the domain controller is as follows: Figure 4b The PPS signal shown is 4.
[0086] In this scenario, the internal wiring of the domain controller can be, for example, as follows: Figure 4c As shown, no power supply is required at the PPS signal input terminal. The domain controller's PPS signal input terminal is connected to the base of an NPN transistor via a resistor. The emitter of the NPN transistor is grounded, and the collector of the NPN transistor is connected to both the power supply and the output terminal via a resistor. The signal obtained at the domain controller input terminal is as follows: Figure 4b The PPS signal 4 shown, under the control of the internal circuitry based on the NPN transistor and power supply, can provide the domain controller's SoC with a signal at the output terminal. Figure 4b The PPS signal 5 is shown. Therefore, the SoC can achieve time synchronization between the domain controller and the GNSS device based on the PPS signal 6.
[0087] Therefore, based on Figure 4a The wiring structure of the GNSS device shown does not require the internal wiring of the domain controller to provide power to the GNSS device.
[0088] However, when adopting Figure 3a The GNSS equipment shown is connected to the line using... Figure 4c The domain controller of the line shown, if the input terminal of the GNSS device is still input Figure 3b The PPS signal 1 shown will only receive a high level signal from the GNSS device because there is no power supply to the domain controller's input. Figure 3b The PPS signal shown is 2. Then in... Figure 4c Under the control of the domain controller circuit shown, the SoC will always receive a high-level signal. Without the PPS signal sampling edge, the SoC cannot achieve time synchronization between the domain controller and the GNSS device.
[0089] Or, when adopting Figure 4a The GNSS equipment shown is connected to the line using... Figure 3c For the domain controller of the line shown, if the input terminal of the GNSS device still receives a PPS signal of 1, since the input terminal of the domain controller provides a high level, the PPS signal input from the output terminal of the GNSS device to the domain controller will be... Figure 4b As shown in the diagram, the high level provided by the domain controller's input to PPS signal 4 will pull the low level in PPS signal 4 high, causing the PPS signal actually input to the NPN transistor of the domain controller to always be at a logic high level. Therefore, in... Figure 3c Under the control of the domain controller circuit shown, the SoC will always receive a low-level signal and there will be no PPS signal sampling edge, so the SoC cannot achieve time synchronization between the domain controller and the GNSS device.
[0090] Therefore, adopt Figure 3a The GNSS equipment shown is used for the route. Figure 4c The domain controller shown is not compatible and should be used. Figure 4a The GNSS equipment shown is used for the route. Figure 3c The domain controller shown is also incompatible, which has compatibility issues. This affects the time synchronization of the domain controller and the time synchronization of the various sensors connected to the domain controller, thus affecting the fusion perception accuracy of the autonomous driving system.
[0091] As can be seen, in the current solution, when the PPS signal receiving device (e.g., a domain controller or industrial computer) interfaces with GNSS devices using different wiring structures, the receiving device needs to modify its wiring because the PPS signal output types of different GNSS devices are inconsistent. In other words, different circuit adaptations are required for different signal types. The module providing the PPS signal is called the input module, and the module receiving the PPS signal can be called the receiving module. Since there is no unified protocol for PPS signals, when different types of input modules are connected to the same receiving module, compatibility issues as mentioned above will arise. This necessitates separate adaptation for the receiving module, making platform-based design impossible and resulting in extremely high costs. Furthermore, the fixed wiring of the receiving module also significantly constrains the selection of GNSS devices, thus limiting the flexibility of the architecture design for autonomous driving systems (or intelligent assisted driving systems).
[0092] To address the aforementioned problems, this application provides a control method and communication device to reduce the design constraints of PPS signal receiving devices on external devices, or to improve the compatibility of PPS signal receiving devices and the flexibility of the corresponding EE architecture. The method and apparatus are based on the same technical concept. Since the principles by which the method and apparatus solve problems are similar, their implementations can be mutually referenced, and repeated details will not be elaborated upon. Furthermore, in the various embodiments of this application, unless otherwise specified or logically conflicting, the terminology and / or descriptions between the embodiments are consistent and can be mutually referenced. Technical features in different embodiments can be combined to form new embodiments based on their inherent logical relationships.
[0093] It should be noted that in the embodiments of this application, "at least one" refers to one or more, and "more than one" refers to two or more. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A alone, A and B simultaneously, or B alone, where A and B can be singular or plural. The character " / " generally indicates that the preceding and following related objects are in an "or" relationship. "At least one of the following" or similar expressions refer to any combination of these items, including any combination of single or plural items. For example, at least one of a, b, or c can represent: a, b, c, a and b, a and c, b and c, or a and b and c, where a, b, and c can be single or multiple.
[0094] Furthermore, unless otherwise specified, the ordinal numbers such as "first" and "second" mentioned in the embodiments of this application are used to distinguish multiple objects and are not used to limit the priority or importance of multiple objects. For example, "first device" and "second device" are only used to distinguish different electronic devices, and do not indicate that the two devices have different priorities or importance. For example, in some embodiments, the method steps performed by the first device and the second device can be interchanged.
[0095] To make the objectives, technical solutions, and advantages of this application clearer, the application will now be described in further detail with reference to the accompanying drawings.
[0096] Figure 5 A schematic diagram of the architecture of a communication system applicable to an embodiment of this application is shown.
[0097] like Figure 5 As shown, the communication system may include a first device and a second device. The first device can be connected to the second device. The second device can act as a provider (or input) of the PPS signal, and the first device can act as a receiver (or receiving end) of the PPS signal. The second device can be used to provide the PPS signal to the first device. The first device can also be called a PPS signal receiving device, and the second device can also be called a PPS signal output device. Accordingly, the first device can receive the PPS signal from the second device and can synchronize its time with the second device based on the PPS signal from the second device. Optionally, the communication system may also include at least one third device. The first device and / or the second device can be connected to the at least one third device, and the third device can use a similar method to achieve time synchronization with the first device and / or the second device. It should be understood that... Figure 5 The dashed boxes in the diagram represent optional devices. The connection between different devices only indicates that they can communicate with each other, and does not limit the communication technology used by the two devices.
[0098] For example, Figure 5 The first device in the process can be Figure 1 The domain controller in the system can specifically be the domain controller of the vehicle's autonomous driving system or intelligent driver assistance system. Figure 5 The second device in the process can be Figure 1 GNSS equipment in the middle. Figure 5 The third device in the middle can be Figure 1 Sensors such as cameras and LiDAR are included. It should be understood that... Figure 5 The various devices in the embodiment can be independent devices or functional modules integrated into a certain ECU of the vehicle. This application does not specifically limit them.
[0099] Taking GNSS implementation as a module as an example, in one example, such as Figure 6aAs shown, the GNSS module can be integrated into device A in the vehicle, for example, which may be the vehicle's automated driving integration platform (ADIP). Device A may also include a microcontroller unit (MCU) and an inertial measurement unit (IMU). After the GNSS module receives navigation satellite signals through its antenna, the MCU can calculate the clock difference between the high-precision atomic clock in the navigation satellite and the local system time. It then sends a time synchronization message to the domain controller via the CAN bus and a PPS signal to the domain controller to achieve time synchronization between the domain controller and the GNSS module. Furthermore, the domain controller can synchronize its time with the in-vehicle communication terminal (e.g., the vehicle's T-box) via Ethernet, enabling the in-vehicle communication terminal to implement its own high-precision positioning algorithm.
[0100] In another example, such as Figure 6b As shown, the GNSS module can be integrated into device B, which can be, for example, a vehicle-mounted communication terminal. The IMU can be integrated into the domain controller. After receiving navigation satellite signals through the antenna, the GNSS module can calculate the clock difference between the high-precision atomic clock in the navigation satellite and the local system time, and send a time synchronization message to the domain controller via Ethernet, as well as a PPS signal to the domain controller, to achieve time synchronization between the domain controller and the GNSS module.
[0101] In another example, such as Figure 6c As shown, the GNSS module can be integrated into either device A or device B, and device A can be implemented as follows: Figure 6a The structure shown indicates that device B can be implemented as follows: Figure 6b The structure shown indicates that both Device A and Device B have PPS outputs from their GNSS modules. In the vehicle cabling topology design, the PPS signals output from the GNSS modules of both Device A and Device B can be connected to the domain controller. If either Device A or Device B malfunctions, for example, if the domain controller's SoC cannot access the PPS signal from Device A, it can switch to access the PPS signal from Device B, forming a redundant but more reliable EE architecture, without affecting time synchronization. Alternatively, if there is a supply issue with Device A, without changing the domain controller, a software upgrade can be performed to enable the domain controller to support the control method of this embodiment, achieving a smooth switch and ensuring compatibility between new and old vehicle models.
[0102] It should be understood that Figures 6a-6cThis is merely an illustrative example of how GNSS devices and domain controllers can be implemented on a vehicle and is not intended to limit the scope of the invention. In other embodiments, GNSS devices may be implemented as functional modules integrated into other ECUs, and domain controllers may include modules other than IMUs. Further details will not be provided here.
[0103] In this embodiment, the first device serves as a PPS signal receiving device. In order to enable the first device to be flexibly adapted to different types of GNSS devices, one implementation is to set at least one line in the first device. The control module of the first device enables the target line in the at least one line as needed, so that after processing the first PPS signal from the second device through the target line, the second PPS signal output based on the target line is synchronized with the second device in time.
[0104] Taking the first device as an example, which is the domain controller described above, the control module of the first device can be implemented as a SoC within the first device. For example... Figure 7a As shown, the SoC may include modules for implementing computing functions, such as an MCU or a CPU. When implementing the control method of this application embodiment, the MCU or CPU can obtain first information, which indicates the output type of the PPS signal of the second device. The MCU or CPU can enable at least one line of the first device based on the first information. Figure 7a The target line (illustrated by a solid double-arrow line) is used to process the first PPS signal from the second device. The MCU or CPU can synchronize time with the second device based on the second PPS signal output from the target line.
[0105] For example, the second device adopts such as Figure 3a Taking the circuit structure shown as an example, the output type of the PPS signal of this circuit structure can be represented as the first type, that is, the PPS control circuit in the second device has a low input logic level and a high output impedance state; or a high input logic level and a low output logic level. Or, for example, the second device adopts... Figure 4aTaking the illustrated circuit structure as an example, the output type of the PPS signal of this circuit structure can be represented as the second type, that is, the PPS control line in the second device has a low input logic level and a low output logic level; or a high input logic level and a high output logic level. Regardless of the control circuit structure adopted by the second device, in this embodiment, the first device can enable at least one target line in its own circuit and process the first PPS signal from the second device through the target line to obtain a second PPS signal. This second PPS signal can be used for time synchronization between the first and second devices. Thus, by enabling the target line, the first device can be adapted to the second device, which can reduce the design constraints of the PPS signal receiving device on external devices, or improve the compatibility of the PPS signal receiving device and the flexibility of the corresponding EE architecture.
[0106] In specific implementation, at least one line of the first device itself can be an independent line or a line with an associated relationship. The target line can be an independent line or one or more lines with an associated relationship, so that the first device can be adapted to the second device through the target line, facilitating time synchronization between the first and second devices. This application does not specifically limit this aspect. When the first device enables the target line among the at least one line, it can, for example, enable the target line among the at least one line based on first information. For example, at least one line of the first device itself can be a line with an associated relationship, and the first information can be associated with the output type of the PPS signal of the second device. The first device can enable the target line among the at least one line according to the output type of the PPS signal of the second device. Or, for example, at least one line of the first device itself can be an independent line, and at least one pin of the connector of the first device is respectively connected to the at least one line. The first information can be associated with the mapping relationship between the second device, the at least one pin, and the at least one line. The first device can enable the line connected to the pin of the second device as the target line according to the pin connected to the second device. This will be described in conjunction with examples below, and will not be elaborated further here.
[0107] In one alternative implementation, the first device may further include a storage medium that may include pre-stored first information. For example, as shown... Figure 7a As shown, the storage medium can be an external storage medium associated with the SoC of the first device. In other embodiments, Figure 7aAn internal storage medium can be configured on the SoC (System-on-a-Chip). The MCU or CPU on the SoC can act as the control module of the first device, acquiring first information from the storage medium. The first information can be acquired when the first device powers on. Specifically, for example, when the first device powers on, the control module of the first device can acquire the first information from the storage medium and enable a target line in at least one of the lines based on the first information to achieve line enable and a time synchronization mechanism based on the target line. In other embodiments, the first information can be acquired, for example, when the first device and the second device are first connected and powered on. The control module of the first device can acquire the first information from the storage medium and enable a target line in at least one of the lines based on the first information to achieve line enable and a time synchronization mechanism based on the target line. In another optional embodiment, when the first device powers on, the control module of the first device can also acquire the first information from the external storage medium of the first device or a cloud server to enable the target line based on the first information. This application does not specifically limit the timing or method of acquiring the first information.
[0108] For example, to target different types of GNSS devices (e.g. Figure 6a or Figure 6b Taking a vehicle deployment as an example, the first device can be the domain controller of the vehicle's autonomous driving system or intelligent driver assistance system. The first information can be configured using software configuration words (identifiers). When the domain controller is powered on, its control module can acquire the first information by loading an operating system (OS) and analyze the output type of the PPS signal of the second device based on the first information, or analyze the connector pins to which the second device is connected based on the first information.
[0109] The first information may include, for example, the device identifier of the second device and a software configuration word. The device identifier, for example, is represented as IDn, where n represents the equipment serial number (ESN) of the second device, used to uniquely identify the second device. The software configuration word can be represented in binary, for example, 01 for the first type and 10 for the second type. When the output type of the PPS signal of the second device is the first type, the PPS control circuit within the second device can be as follows: Figure 3a As shown, it is used for input logic low level and output high impedance state; or input logic high level and output logic low level. When the output type of the PPS signal of the second device is the second type, the PPS control circuit in the second device can be as follows: Figure 4a As shown, it is used for input logic low level and output logic low level; or input logic high level and output logic high level.
[0110] In specific implementation, such as Figure 7b As shown, the first device may include a first interface (e.g., a synchronization signal interface, which can be represented as TSYNC_N), a second interface (e.g., a development environment interface, which can be represented as DEVM_N), and a system driver (e.g., which can be represented as SOC_SYSDRV). After the first device is powered on, configuration information (e.g., first information) can be read and initialized through the first interface to enable the target line in at least one of the lines.
[0111] For example, if at least one line of the first device is an associated line, and the first information is associated with the output type of the PPS signal of the second device, then for the first type indicated in the configuration information, i.e., the output type of the PPS signal of the second device connected to the first device is the first type, the first interface can send signal 1 to the second interface to enable the logic control line (e.g., the second line) of the PPS signal through the second interface. Furthermore, the first interface can send signal 2 to the system driver (e.g., MCU or CPU) to indicate cancellation of polarity reversal (i.e., cancellation of the sampling edge toggling of the PPS signal). Subsequently, during time synchronization between the first and second devices, after receiving the first PPS signal from the second device, the first device processes the first PPS signal through the target line (including the first line and the second line) to obtain the second PPS signal. The MCU or CPU of the first device can act as a control module, performing edge sampling in the second PPS signal, and based on the sampling edge of the second PPS signal and the UTC information, achieving time synchronization between the first and second devices. For example, if the output type of the PPS signal of the second device is the first type, the MCU or CPU of the first device keeps the sampling edge of the second PPS signal unchanged, and realizes time synchronization between the first device and the second device based on the sampling edge of the second PPS signal and the UTC information.
[0112] Similarly, for the second type indicated in the configuration information, i.e., the output type of the PPS signal of the second device connected to the first device is the second type, then there is no need for the first interface to send signal 1 to the second interface, i.e., there is no need to enable the second line. In this case, there is also no need for the first interface to send signal 2 to the system driver (e.g., MCU or CPU), i.e., there is no need to cancel the polarity reversal. Furthermore, when synchronizing time between the first device and the second device, after receiving the first PPS signal from the second device, the first device processes the first PPS signal through the target line (including the first line) to obtain the second PPS signal. The MCU or CPU of the first device can act as a control module, performing edge sampling in the second PPS signal, and realizing time synchronization between the first device and the second device based on the sampling edge of the second PPS signal and the UTC information. For example, in the case where the output type of the PPS signal of the second device is the second type, the MCU or CPU of the first device flips the sampling edge of the second PPS signal, and realizes time synchronization between the first device and the second device based on the flipped sampling edge and the UTC information.
[0113] It should be understood that Figure 7b This is merely an illustrative example of how the first information is implemented and the output type of the PPS signal from the second device, and does not constitute any limitation. In other embodiments, the PPS control circuitry within the second device may employ... Figure 3a or Figure 3b In addition to other circuit structures, the output type of the PPS signal of the second device may also include, for example, a third type, a fourth type, etc. The third type may be, for example, an input logic low level and an output logic high level on the PPS control line within the second device; or an input logic high level and an output logic high level. The fourth type may be, for example, an input logic low level and an output logic high level on the PPS control line within the second device; or an input logic high level and an output logic low level. Accordingly, the first device can obtain the first information to know the output type of the PPS signal of the second device, or to know the connector pins to which the second device is connected, so as to enable at least one target line in its own circuit for the second device, allowing the first device to flexibly adapt to different types of second devices.
[0114] To facilitate understanding, the following explanation will be provided in conjunction with a flowchart and various examples.
[0115] Figure 8 A flowchart illustrating the control method according to an embodiment of this application is shown.
[0116] like Figure 8 As shown, the method may include the following steps:
[0117] S810: The first device enables the target line in at least one of its lines based on the first information.
[0118] In this embodiment of the application, the first device may include a control module and at least one line. When implementing S810, the control module may enable the target line in at least one line of the first device according to the first information.
[0119] In one example, the at least one line can be a line with an association, and the first information can be associated with the output type of the PPS signal of the second device.
[0120] like Figure 9a As shown, at least one line of the first device may include line 1 and line 2. Line 1 can be represented as the first line, and line 2 can be represented as the second line. These distinctions will not be elaborated further below. The relationship between these at least one line can be, for example, that the output port of line 1 is connected to the control module of the first device, the enable pin of the control module is connected to the input port of line 2, and the output port of line 2 is connected to the input port of line 1. When implementing S810, the control module can, based on the first information, provide an enable signal or a disable signal to line 2 using a pin to control the state of line 2, thereby controlling whether the target line includes line 2.
[0121] For example, if the output type of the PPS signal of the second device is the first type described above, when implementing S810, the control module can send an enable signal (e.g., a high-level signal) to line 2 through the enable pin according to the first information, so that the output port of line 2 is connected to the input port of line 1. In this case, line 2 is in the enabled state, and the target lines include line 1 and line 2.
[0122] Alternatively, for example, if the output type of the PPS signal of the second device is the second type described above, when implementing S810, the control module can send a de-enabled signal (e.g., a low-level signal or no signal) to line 2 through the enable pin according to the first information, so that the output port of line 2 is disconnected from the input port of line 1. In this case, line 2 is in a de-enabled state, and the target line includes line 1.
[0123] It should be understood that Figure 9a The dashed line indicates that line 2 is an optional line and does not constitute any limitation on at least one line of the first device. In other embodiments, the target line may also be enabled in other ways, which will not be described in detail here.
[0124] In another example, at least one line of the first device can be an independent line. The first device may include, for example, a connector that may include at least one pin connected to at least one line of the first device, the output port of which is connected to the control module of the first device. First information may be associated with a mapping relationship between the second device, the at least one pin, and the at least one line.
[0125] like Figure 9b As shown, the first device may include at least one line, such as line 3 and line 4. The first device may also include a connector connected to the second device. The connector includes at least one pin, for example, represented as pin 1 and pin 2. This at least one pin is connected to the input port of at least one line of the first device, and the output port of the at least one line is connected to the control module. For example, pin 1 is connected to the input port of line 3, and pin 2 is connected to the input port of line 4. When implementing S820, the control module can determine the connector pin to which the second device is connected based on the first information, and connect that pin to the line as the target line, thus identifying the target line among the at least one line.
[0126] For example, if the first information indicates that the second device is connected Figure 9b Pin 1 in the diagram is designated as the first pin. Therefore, when implementing S810, the control module can use the third line (e.g., line 3) of the at least one line to which the first pin is connected as the target line. Alternatively, for example, if the first information indicates that the second device is connected to... Figure 9b Pin 2 in the diagram is referred to as the second pin. When implementing S810, the control module can use the fourth line (e.g., line 4) of the at least one line to which the second pin is connected as the target line.
[0127] It should be understood that Figure 9b The dashed lines indicate that the corresponding connector pins and lines are optional and do not constitute any limitation. In other embodiments, the number of connector pins and lines may be greater than 2, which will not be elaborated here.
[0128] S820: The first device processes the first PPS signal from the second device through the target line to obtain the second PPS signal.
[0129] In this embodiment, the second PPS signal is used for time synchronization between the first device and the second device. For example, after S820, the following steps may also be included:
[0130] S830 (Optional Step): The first device achieves time synchronization between the first device and the second device based on the second PPS signal.
[0131] For example, prior to implementing S830, the first device could receive second information from the second device, which included Coordinated Universal Time (UTC) information. As an example, the second information could be carried in a time synchronization message from the second device. When implementing S830, the first device could perform edge sampling on the second PPS signal and, based on the sampled edges of the second PPS signal and the UTC information, achieve time synchronization between the first device and the second device.
[0132] For example, based on the sampling edge of the second PPS signal, the control module resets its internal system time (to milliseconds or less) to zero and begins calculating millisecond time. The control module extracts the UTC time (hour, minute, second, year, month, day) from the second information. The time used by the control module to parse the UTC time from the sampling edge of the second PPS signal is represented as tx. The tx time is added to the UTC whole-second time and synchronized to the control module, thus completing one time synchronization. The system time is precisely calibrated every second to ensure accuracy.
[0133] Therefore, by using the above method, at least one line is set up inside the first device, and the control module enables the target line in the at least one line to process the first PPS signal from the second device according to the output type of the PPS signal from the second device. This allows the first device to flexibly adapt to different types of GNSS devices, be compatible with devices with multiple PPS output types, reduce the constraints of the first device on peripheral devices, and standardize the design of the first device, greatly saving costs. When deployed in a vehicle, this method allows the first device to accommodate both new and old vehicle models, improving the compatibility of the first device and the flexibility of the corresponding EE architecture.
[0134] In this application embodiment, the target line may include different line branches under different circumstances to process the first PPS signals from different second devices to obtain a second PPS signal that can be used for time synchronization. For ease of understanding, the following is combined with Figure 9a or Figure 9b The circuit structure shown is illustrated with an example.
[0135] Example 1:
[0136] Using at least one line of the first device as follows Figure 9a Taking the structure shown as an example, the internal circuit structure of the first device can be specifically as follows: Figure 10aAs shown, for example, line 2 may include an NPN transistor and a PNP transistor. The input port of line 2 is connected to the base of the NPN transistor via a resistor. The emitter of the NPN transistor is grounded. The collector of the NPN transistor is connected to the base of the PNP transistor via a resistor. The emitter of the PNP transistor is connected to power supply 1 (e.g., represented as the first power supply). The collector of the PNP transistor is connected to the output terminal of line 2 and the input port of line 1 via a diode and a resistor. Line 2 may also include capacitors, resistors, and other components connected to the NPN or PNP transistors respectively, with the connection relationships as shown in the diagram. Figure 10a As shown. Line 1 may include an NPN transistor. The input port of Line 1 is connected to the base of the NPN transistor through a resistor. The emitter of the NPN transistor is grounded. The collector of the NPN transistor is connected to a second power supply (e.g., power supply 2) and the output port of Line 1, as well as the SoC of the first device, through a resistor.
[0137] The SoC can implement S810 as the aforementioned control module. For example, if the output type of the PPS signal of the second device is the first type mentioned above, that is, the PPS control line in the second device has a low input logic level and a high output impedance state; or a high input logic level and a low output logic level. When implementing S810, based on... Figure 10a The internal circuit structure shown allows the System-on-Chips (SoC) to enable line 2 by sending an enable signal to its input port (POWER_EN) via an enable pin. This enable signal is, for example, a high-level signal. When line 2 is enabled, its output port is connected to the input port of line 1, and the target lines include both line 1 and line 2.
[0138] When implementing S820, if the input port of line 1 receives the first PPS signal from the second device, since line 2 is enabled, power supply 1 in line 2 can provide a high level (e.g., 12V) to provide a high-level signal to the input port of line 1 when the second device outputs a high-impedance state. Therefore, under the control of line 2, the actual PPS signal obtained by line 1 is a square wave signal. Figure 10bAs shown, in the second device, if a high level is input at the input terminal, a low level is output at the output terminal; if a low level is input at the input terminal, a high-impedance state is output at the output terminal. It should be understood that the example of a "high-impedance" PPS signal in the diagram is merely an example; in reality, there is "no signal." Since the output port of the second device is connected to the input port of line 1 of the first device, and line 2 is enabled, it can provide a high level based on power supply 1 under the control of line 2. This allows the high-impedance output of the second device to obtain a high-level signal at the input port of line 1. Therefore, the actual PPS signal obtained at the input port of line 1 is a square wave signal, i.e., the first PPS signal. In the first device, under the control of line 2 and based on the line structure of line 1, line 1 can have: input logic low level, output logic high level; input logic high level, output logic low level, i.e., the second PPS signal. The second PPS signal is transmitted to the SoC through the output port of line 1.
[0139] The SoC can implement S830 as the aforementioned control module to achieve time synchronization between the first device and the second device. For example, the control module can perform edge sampling on the second PPS signal received from the output port of the first line, and keep the sampling edge of the second PPS signal unchanged. Based on the sampling edge of the second PPS signal, the UTC information is corrected to achieve time synchronization between the first device and the second device.
[0140] Example 2:
[0141] The first equipment shall still use at least one line as follows: Figure 9a Taking the structure shown as an example, the internal circuit structure of the first device can be specifically as follows: Figure 10a As shown.
[0142] The SoC can implement S810 as the aforementioned control module. For example, if the output type of the PPS signal of the second device is the second type mentioned above, that is, the PPS control line in the second device has a low input logic level and a low output logic level; or a high input logic level and a high output logic level. When implementing S810, based on... Figure 10a The internal circuit structure shown allows the control module (SoC) to send a de-enabled signal to the input port (POWER_EN) of line 2 via the enable pin. When line 2 is in a de-enabled state, the output port of line 2 is disconnected from the input port of line 1. The target line includes line 1.
[0143] When implementing S820, if the input port of line 1 receives the first PPS signal from the second device, since line 2 is in a disabled state, power supply 1 in line 2 will not provide a high level (e.g., 12V). Therefore, the actual PPS signal obtained by line 1 has the same waveform as the PPS signal output by the second device. Figure 10c As shown, in the second device, if a high level is input at the input terminal, a high level is output at the output terminal; if a low level is input at the input terminal, a low level signal is output at the output terminal. Since the output port of the second device is connected to the input port of line 1 of the first device, and the first device does not provide power to the second device, the PPS signal at the output terminal of the second device is also the PPS signal at the input port of line 1, i.e., the first PPS signal. In the first device, based on the line structure of line 1, it is possible to have: input logic low level, output logic high level; input logic high level, output logic low level, i.e., the second PPS signal. The second PPS signal is transmitted to the SoC through the output port of line 1.
[0144] The SoC can implement S830 as the aforementioned control module to achieve time synchronization between the first device and the second device. For example, the control module can perform edge sampling on the second PPS signal received from the output port of the first line, and after flipping the sampled edge of the second PPS signal, achieve time synchronization between the first device and the second device based on the flipped sampled edge and the UTC information.
[0145] Example 3:
[0146] Using at least one line of the first device as follows Figure 9b Taking the structure shown as an example, the internal circuit structure of the first device can be specifically as follows: Figure 11a As shown, for example, pin 1 of the connector is connected to the input port of line 3, and pin 2 of the connector is connected to the input port of line 4.
[0147] Line 3 includes power supply 1, power supply 2, and an NPN transistor. Power supply 1 is connected to the input port of line 3 via a diode and a resistor. The input port of line 3 is connected to the base of the NPN transistor via a resistor. The emitter of the NPN transistor is grounded. The collector of the NPN transistor is connected to the output port of line 3 via a resistor and to power supply 2 via a resistor and a diode. The output port of line 3 is connected to the SoC. Alternatively, line 4 includes power supply 3 and an NPN transistor. The input port of line 4 is connected to the base of the NPN transistor via a resistor. The emitter of the NPN transistor is grounded. The collector of the NPN transistor is connected to the output port of line 4 via a resistor and to power supply 3 via a resistor and a diode. The output port of line 4 is connected to the SoC.
[0148] The SoC can implement S810 as the aforementioned control module. For example, if the output type of the PPS signal of the second device is the aforementioned first type, that is, the PPS control line in the second device has a low input logic level and a high output impedance state; or a high input logic level and a low output logic level, and the mapping relationship contained in the first information indicates that pin 1 of the connector of the second device to the first device is connected to line 3, then when implementing S810, based on... Figure 11a The internal circuit structure shown allows the control module (SoC) to enable pin 1 based on the first information and use the line 3 to which pin 1 is connected as the target line.
[0149] When implementing S820, if the input port of line 3 receives the first PPS signal from the second device, since power supply 1 in line 3 can provide a high level (e.g., 12V), a high-level signal can be provided to the input port of line 3 when the second device outputs a high-impedance state. Therefore, the first PPS signal actually obtained at the input port of line 3 is a square wave signal. Figure 11b In the second device, if a high level is input at the input terminal, a low level is output at the output terminal; if a low level is input at the input terminal, a high-impedance state is output at the output terminal. It should be understood that the example of a "high-impedance" PPS signal in the diagram is merely an example; in reality, there is "no signal." Since the output port of the second device is connected to the input port of line 3 of the first device via pin 1, and line 3 of the first device can provide a high level based on power supply 1, a high-impedance state output from the second device's output terminal can obtain a high-level signal at the input port of line 3. Therefore, the actual PPS signal obtained at the input port of line 3 is a square wave signal, i.e., the first PPS signal. In the first device, based on the line structure of line 3, line 3 can have: input logic low level, output logic high level; input logic high level, output logic low level, i.e., the second PPS signal. The second PPS signal is transmitted to the SoC through the output port of line 3.
[0150] The SoC can implement S830 as the aforementioned control module to achieve time synchronization between the first device and the second device. For example, the control module can perform edge sampling on the second PPS signal received from the output port of line 3, and keep the sampling edge of the second PPS signal unchanged. Based on the sampling edge of the second PPS signal and the UTC information, time synchronization between the first device and the second device can be achieved.
[0151] Example 4:
[0152] The first equipment shall still use at least one line as follows: Figure 9b Taking the structure shown as an example, the internal circuit structure of the first device can be specifically as follows: Figure 11a As shown.
[0153] The SoC can implement S810 as the aforementioned control module. For example, if the output type of the PPS signal of the second device is the aforementioned second type, that is, the PPS control line in the second device has a low input logic level and a low output logic level; or a high input logic level and a high output logic level, and the mapping relationship contained in the first information indicates that pin 2 of the connector of the second device to the first device is connected to line 4, then when implementing S810, based on... Figure 11a The internal circuit structure shown allows the control module (SoC) to enable pin 2 based on the first information and use the line 4 to which pin 2 is connected as the target line.
[0154] When implementing S820, if the input port of line 4 receives the first PPS signal from the second device, since the input port of line 4 will not provide a high level, the waveform of the PPS signal output by the output terminal of the second device will be consistent with the waveform of the PPS signal obtained at the input port of line 4. For example... Figure 11c In the second device, if a high level is input at the input terminal, a high level is output at the output terminal; if a low level is input at the input terminal, a low level signal is output at the output terminal. Since the output port of the second device is connected to the input port of line 4 of the first device via pin 2, and the input port of line 4 of the first device does not provide power to the second device, the PPS signal at the output terminal of the second device is also the PPS signal at the input port of line 1, i.e., the first PPS signal. In the first device, based on the circuit structure of line 4, the second PPS signal can be generated as follows: input logic low level, output logic high level; input logic high level, output logic low level. The second PPS signal is transmitted to the SoC through the output port of line 4.
[0155] The SoC can implement S830 as the aforementioned control module to achieve time synchronization between the first device and the second device. For example, the control module can perform edge sampling on the second PPS signal received from the output port of line 4, flip the sampled edge of the second PPS signal, and achieve time synchronization between the first device and the second device based on the flipped sampled edge and the UTC information.
[0156] Therefore, through the control methods of the different examples described above, the first device, as a PPS signal receiving device, can enable the target line for the second device, so that the first device can flexibly adapt to different second devices, thereby reducing the design constraints of the PPS signal receiving device on external devices, or improving the compatibility of the PPS signal receiving device and the flexibility of the corresponding EE architecture.
[0157] This application also provides a control device for executing the method executed by the first device or the control module of the first device or the target line of the first device in the above method embodiments. The relevant features can be found in the above method embodiments, and will not be repeated here.
[0158] like Figure 12 As shown, the control device 1200 may include: a control module 1201, configured to enable a target line in at least one line of the first device according to first information, wherein the first device is connected to the second device; and a processing module 1202, configured to process a first PPS signal from the second device through the target line to obtain a second PPS signal, wherein the second PPS signal is used for time synchronization between the first device and the second device.
[0159] For specific implementation details, please refer to the method steps implemented by the first device, the control module of the first device, or the target line of the first device in the above method embodiments, which will not be repeated here.
[0160] It should be understood that the division of units in the above device is only a logical functional division. In actual implementation, they can be fully or partially integrated into a single physical entity, or they can be physically separated. Furthermore, the units in the device can be implemented by a processor calling software; for example, the device includes a processor connected to a memory containing instructions. The processor calls the instructions stored in the memory to implement any of the above methods or to implement the functions of each unit in the device. The processor can be, for example, a general-purpose processor, such as a Central Processing Unit (CPU) or a microprocessor, and the memory can be internal or external to the device. Alternatively, the units in the device can be implemented as hardware circuits. The functionality of some or all units can be achieved through the design of these hardware circuits, which can be understood as one or more processors. For example, in one implementation, the hardware circuit is an application-specific integrated circuit (ASIC). The functionality of some or all of the above units is achieved through the design of the logical relationships between the components within the circuit. In another implementation, the hardware circuit can be implemented using a programmable logic device (PLD). Taking a field-programmable gate array (FPGA) as an example, it can include a large number of logic gates. The connection relationships between the logic gates are configured through a configuration file, thereby achieving the functionality of some or all of the above units. All units of the above device can be implemented entirely through processor-invoked software, entirely through hardware circuits, or partially through processor-invoked software with the remaining parts implemented through hardware circuits.
[0161] In this application embodiment, the processor is a circuit with signal processing capabilities. In one implementation, the processor can be a circuit with instruction reading and execution capabilities, such as a CPU, microprocessor, graphics processing unit (GPU) (which can be understood as a type of microprocessor), or digital signal processor (DSP). In another implementation, the processor can implement certain functions through the logical relationships of hardware circuits. These logical relationships of hardware circuits are fixed or reconfigurable. For example, the processor is a hardware circuit implemented as an ASIC or PLD, such as an FPGA. In a reconfigurable hardware circuit, the process of the processor loading a configuration document and configuring the hardware circuit can be understood as the process of the processor loading instructions to implement the functions of some or all of the above units. Furthermore, it can also be a hardware circuit designed for artificial intelligence, which can be understood as an ASIC, such as a Neural Network Processing Unit (NPU), Tensor Processing Unit (TPU), or Deep Learning Processing Unit (DPU).
[0162] As can be seen, each unit in the above device can be one or more processors (or processing circuits) configured to implement the above methods, such as: CPU, GPU, NPU, TPU, DPU, microprocessor, DSP, ASIC, FPGA, or a combination of at least two of these processor forms.
[0163] Furthermore, the units in the above devices can be integrated in whole or in part, or they can be implemented independently. In one implementation, these units are integrated together as a system-on-a-chip (SOC). The SOC may include at least one processor for implementing any of the above methods or implementing the functions of the units in the device. The at least one processor may be of different types, such as CPU and FPGA, CPU and artificial intelligence processor, CPU and GPU, etc.
[0164] In a simplified embodiment, those skilled in the art will realize that the communication devices described in the above embodiments can all be employed. Figure 13 As shown in the figure.
[0165] like Figure 13 The illustrated device 1300 includes at least one processor 1310 and a communication interface 1330. In an alternative design, a memory 1320 may also be included.
[0166] The specific connection medium between the processor 1310 and the memory 1320 described above is not limited in the embodiments of this application.
[0167] In such Figure 13 In the device, the processor 1310 can transmit data through the communication interface 1330 when communicating with other devices.
[0168] When the communication device adopts Figure 13 When in the form shown, Figure 13 The processor 1310 can call computer execution instructions stored in the memory 1320, enabling the device 1300 to execute any of the above method embodiments.
[0169] This application also relates to a chip system including a processor for calling a computer program or computer instructions stored in a memory to cause the processor to execute the methods of any of the above embodiments.
[0170] In one possible implementation, the processor can be coupled to the memory via an interface.
[0171] In one possible implementation, the chip system may also directly include a memory in which computer programs or computer instructions are stored.
[0172] For example, the memory can be volatile memory or non-volatile memory, or may include both. The non-volatile memory can be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), or flash memory. The volatile memory can be random access memory (RAM), which serves as an external cache. By way of example, but not limitation, many forms of RAM are available, such as static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous linked dynamic random access memory (SLDRAM), and direct rambus RAM (DRRAM).
[0173] This application also relates to a processor for calling a computer program or computer instructions stored in a memory to cause the processor to execute the methods described in any of the above embodiments.
[0174] For example, in the embodiments of this application, the processor is an integrated circuit chip with signal processing capabilities. For instance, the processor can be an FPGA, a general-purpose processor, a DSP, an ASIC, or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, a system-on-chip (SoC), a CPU, a network processor (NP), a microcontroller unit (MCU), a PLD, or other integrated chips, capable of implementing or executing the methods, steps, and logic block diagrams disclosed in the embodiments of this application. A general-purpose processor can be a microprocessor or any conventional processor. The steps of the methods disclosed in the embodiments of this application can be directly embodied in the execution of a hardware decoding processor, or executed by a combination of hardware and software modules in the decoding processor. The software modules can reside in random access memory, flash memory, read-only memory, programmable read-only memory, electrically erasable programmable memory, registers, or other mature storage media in the art. This storage medium is located in memory; the processor reads information from the memory and, in conjunction with its hardware, completes the steps of the above methods.
[0175] It should be understood that embodiments of this application may be provided as methods, systems, or computer program products.
[0176] In one possible implementation, embodiments of this application provide a computer-readable storage medium storing program code that, when executed on a computer, causes the computer to perform the method embodiments described above.
[0177] In one possible implementation, this application provides a computer program product that, when run on a computer, causes the computer to execute the above-described method embodiments.
[0178] Therefore, this application may take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this application may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0179] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.
[0180] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.
[0181] Obviously, those skilled in the art can make various modifications and variations to the embodiments of this application without departing from the scope of the embodiments of this application. Therefore, if these modifications and variations to the embodiments of this application fall within the scope of the claims of this application and their equivalents, this application also intends to include these modifications and variations. In the various embodiments of this application, unless otherwise specified or logically conflicting, the terminology and / or descriptions between the various embodiments are consistent and can be mutually referenced. Technical features in different embodiments can be combined to form new embodiments based on their inherent logical relationships.
Claims
1. A control method, characterized in that, Applied to a first device, the first device being connected to a second device, the method includes: Based on the first information, enable the target line in at least one of the lines of the first device; The first second pulse (PPS) signal from the second device is processed through the target line to obtain a second PPS signal, which is used for time synchronization between the first device and the second device.
2. The method according to claim 1, characterized in that, The first information is associated with the output type of the PPS signal of the second device.
3. The method according to claim 2, characterized in that, The at least one line includes a first line and a second line, wherein the output port of the second line is connected to the input port of the first line, wherein, If the output type of the PPS signal of the second device is the first type, the target line includes the first line and the second line, the second line is in an enabled state, and the output port of the second line is connected to the input port of the first line; If the output type of the PPS signal of the second device is the second type, the target line includes the first line, the second line is in a disabled state, and the output port of the second line is disconnected from the input port of the first line.
4. The method according to claim 3, characterized in that, The first device further includes a control module, wherein the enable pin of the control module is connected to the input port of the second line and is used to provide an enable signal or a disable signal to the second line; the output port of the first line is connected to the control module, and the control module is used to realize time synchronization between the first device and the second device based on the second PPS signal.
5. The method according to claim 3, characterized in that, If the output type of the PPS signal of the second device is the first type, enabling the target line in at least one line of the first device according to the first information includes: Based on the first information, the enable signal is input to the input port of the second line through the enable pin, so that the output port of the second line is connected to the input port of the first line; If the output type of the PPS signal of the second device is the second type, enabling the target line in at least one line of the first device according to the first information includes: Based on the first information, the de-enable signal is input to the input port of the second line through the enable pin, so that the output port of the second line is disconnected from the input port of the first line.
6. The method according to any one of claims 3-5, characterized in that, The second line includes a first power supply, which provides a high-level signal to the input port of the first line when the second line is enabled.
7. The method according to claim 6, characterized in that, The second circuit also includes an NPN transistor and a PNP transistor. The input port of the second circuit is connected to the base of the NPN transistor, the emitter of the NPN transistor is grounded, the collector of the NPN transistor is connected to the base of the PNP transistor, the emitter of the PNP transistor is connected to the first power supply, and the collector of the PNP transistor is connected to the input port of the first circuit.
8. The method according to claim 1, characterized in that, The first device further includes a connector connected to the second device, wherein the connector includes at least one pin, the at least one pin being connected to the at least one line, and the first information is associated with a mapping relationship between the second device, the at least one pin, and the at least one line.
9. The method according to claim 8, characterized in that, The step of enabling a target line in at least one line of the first device according to the first information includes: If the first information indicates that the second device is connected to the first pin of the at least one pin, then the third line of the at least one line to which the first pin is connected is taken as the target line; or... If the first information indicates that the second device is connected to the second pin of the at least one pin, the fourth line of the at least one line to which the second pin is connected shall be the target line.
10. The method according to claim 9, characterized in that, When the PPS signal output type of the second device is the first type, the second device is connected to the first pin; or, when the PPS signal output type of the second device is the second type, the second device is connected to the second pin.
11. The method according to any one of claims 3-7 and 10, characterized in that, The first type includes: a PPS control line in the second device with a low input logic level and a high output impedance state; a high input logic level and a low output logic level; or... The second type includes: input logic low level and output logic low level in the PPS control line within the second device; input logic high level and output logic high level.
12. The method according to claim 11, characterized in that, The method further includes: Receive second information from the second device, the second information including Coordinated Universal Time (UTC) information; Edge sampling is performed on the second PPS signal, and time synchronization between the first device and the second device is achieved based on the sampling edge of the second PPS signal and the UTC information.
13. The method according to claim 12, characterized in that, If the PPS signal output type of the second device is the first type, the step of achieving time synchronization between the first device and the second device based on the sampling edge of the second PPS signal and the UTC information includes: Keeping the sampling edge of the second PPS signal unchanged, time synchronization between the first device and the second device is achieved based on the sampling edge of the second PPS signal and the UTC information; If the PPS signal output type of the second device is the second type, the step of achieving time synchronization between the first device and the second device based on the sampling edge of the second PPS signal and the UTC information includes: After flipping the sampling edge of the second PPS signal, time synchronization between the first device and the second device is achieved based on the flipped sampling edge and the UTC information.
14. The method according to any one of claims 1-13, characterized in that, The method further includes: When the first device is powered on, the first information is retrieved from the storage medium.
15. A control device, characterized in that, include: A control module is configured to enable a target line in at least one line of a first device based on first information, wherein the first device is connected to a second device. The processing module is used to process the first PPS signal from the second device through the target line to obtain a second PPS signal, which is used for time synchronization between the first device and the second device.
16. A communication device, characterized in that, The communication device includes a control module and at least one line, and is connected to a second device. The control module is used to enable a target line in the at least one line according to first information. The target line is used to process the first PPS signal from the second device to obtain a second PPS signal, which is used for time synchronization between the communication device and the second device.
17. A communication device, characterized in that, It includes at least one processor and an interface circuit, the interface circuit being used to provide data or code instructions to the at least one processor, the at least one processor being used to implement the method as described in any one of claims 1-14 through logic circuits or executing code instructions.
18. A computer-readable storage medium, characterized in that, The computer-readable medium stores program code that, when run on a computer, causes the computer to perform the method as described in any one of claims 1-14.
19. A computer program product, characterized in that, When the computer program product is run on a computer, it causes the computer to perform the method as described in any one of claims 1-14.
20. A vehicle, characterized in that, It includes a first device and a second device, wherein the first device is used to implement the method as described in any one of claims 1-14 to synchronize time with the second device.
Citation Information
Patent Citations
Signal synchronization method, device and equipment based on Internet of Vehicles, and storage medium
CN117135706A
Laser radar controller and radar system
CN218675305U
Time synchronization method and apparatus for domain controller, domain controller and storagr medium
US20220329335A1