Parallel synchronization method and device for vehicle-mounted Ethernet devices
The parallel synchronization method is used to detect the signals to be identified in the vehicle Ethernet device, identify different types of synchronization signals and select the corresponding synchronization method, which solves the compatibility problem between vehicle Ethernet devices and improves the convenience of device updates and system upgradeability.
Patent Information
- Application Number
- CN202111538532.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-15
- Publication Date
- 2025-09-19
- Estimated Expiration
- 2041-12-15
AI Technical Summary
In the existing technology, it is difficult to achieve effective synchronization between different models of in-vehicle Ethernet devices, resulting in poor compatibility and affecting equipment updates and maintenance costs.
A parallel synchronization method is adopted to receive the signal to be identified and determine its type, and then select the corresponding synchronization method for synchronization, including the detection and synchronization of link synchronization signals and auto-negotiation signals.
It achieves good compatibility between different in-vehicle Ethernet devices, reduces maintenance costs during device selection and updating, and improves the system's upgradability.
Smart Images

Figure CN114363865B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of Ethernet equipment, and in particular to a parallel synchronization method and equipment for vehicle-mounted Ethernet equipment. Background Art
[0002] Ethernet devices refer to devices that implement Ethernet communication based on Ethernet standards and rely on Ethernet hardware. They are often considered synonymous with Ethernet network interface hardware. Automotive Ethernet devices are designed specifically for the in-vehicle environment, ensuring they better meet the needs of the in-vehicle environment and achieve better performance. Typically, in-vehicle Ethernet devices are optimized around three key dimensions: stability, immobilization, and upgradeability. With the advancement of communication technology, the standards for in-vehicle Ethernet devices have been upgraded to 1000BASE, enabling reliable Gigabit Ethernet communication in the in-vehicle environment. This better meets user needs, such as enabling greater bandwidth to carry higher-bitrate streaming media and enabling data exchange between more in-vehicle devices. Therefore, updating in-vehicle Ethernet devices has extremely high application value.
[0003] In the prior art, there are numerous manufacturers of in-vehicle Ethernet devices, and different models of these devices have significantly different standards and communication interfaces. Typically, this issue is addressed through technology selection and architectural design to achieve compatibility between different devices. However, during actual implementation, the inventors discovered that these existing techniques fail to effectively resolve the handshake issue between in-vehicle Ethernet devices using different synchronization methods, leading to difficulties in updating in-vehicle Ethernet devices and poor compatibility after updates. Summary of the Invention
[0004] In view of the above problems existing in the prior art, the present invention provides a parallel synchronization method and device for an in-vehicle Ethernet device.
[0005] The specific technical solutions are as follows:
[0006] A parallel synchronization method for an in-vehicle Ethernet device, comprising:
[0007] Step S1: receiving a signal to be identified transmitted from a transmitter;
[0008] Step S2: determining whether the signal to be identified is a first type of synchronization signal;
[0009] If so, performing Ethernet synchronization with the transmitter using a first synchronization method;
[0010] If not, a second synchronization method is used to perform Ethernet synchronization with the transmitter.
[0011] Preferably, step S2 includes:
[0012] Step S21: Acquire the data sequence of the signal to be identified;
[0013] Step S22: determining whether the signal to be identified is the first type of synchronization signal according to the data sequence;
[0014] If so, performing Ethernet synchronization with the transmitter using the first synchronization method;
[0015] If not, use the second synchronization method to perform Ethernet synchronization with the transmitter.
[0016] Preferably, the first type synchronization signal is a link synchronization signal, and step S22 includes:
[0017] Step S221: comparing the data sequence with a pre-generated synchronization code to generate a comparison result;
[0018] Step S222: determining whether the signal to be identified is the link synchronization signal according to the comparison result;
[0019] If so, performing Ethernet synchronization with the transmitter using the first synchronization method;
[0020] If not, use the second synchronization method to perform Ethernet synchronization with the transmitter.
[0021] Preferably, in step S221, a sliding correlation method is used to compare the data sequence one by one according to the synchronization code to generate a correlation value;
[0022] When the correlation value is greater than a threshold value, a comparison result indicating that the signal to be identified is the link synchronization signal is output.
[0023] Preferably, the method for generating the correlation value is:
[0024]
[0025] Wherein, corr(n) is the correlation value, ref(k) is the synchronization code, rx(nk) is the data sequence, k is the correlation length, K is the length of the data sequence, and n is the current time.
[0026] Preferably, the method for generating the synchronization code includes:
[0027] generating a signal coding sequence;
[0028] The signal encoding sequence is sampled to generate the synchronization code.
[0029] Preferably, when the second synchronization method is auto-negotiation synchronization, before step S1, the method further includes:
[0030] Step S01: sending a self-negotiation signal to the transmitter, and determining whether the transmitter returns a response signal;
[0031] If so, performing Ethernet synchronization with the transmitter using the second synchronization method;
[0032] If not, go to step S1.
[0033] An in-vehicle Ethernet device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the parallel synchronization method according to any one of claims 1 to 7 is executed;
[0034] Also included is a communication interface module, wherein the communication interface module is connected to an external Ethernet device via a communication interface;
[0035] The communication interface module establishes a communication connection with the external Ethernet device under the control of the processor.
[0036] The above technical solution has the following advantages or beneficial effects: by performing parallel detection on the signals to be identified, the detection speed is fast, and different synchronization signals can be detected, so that the vehicle Ethernet device selects the corresponding synchronization method for synchronization according to different synchronization signals, which facilitates the setting of different types of vehicle Ethernet devices during device selection and subsequent updates. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] The embodiments of the present invention will be described more fully with reference to the accompanying drawings, which are provided for illustration and description only and are not intended to limit the scope of the present invention.
[0038] Figure 1 A schematic diagram of a parallel synchronization method according to an embodiment of the present invention;
[0039] Figure 2 This is a schematic diagram of sub-steps of step S2 according to an embodiment of the present invention;
[0040] Figure 3 This is a schematic diagram of sub-steps of step S22 according to an embodiment of the present invention;
[0041] Figure 4 Schematic diagram of a pre-synchronization method according to an embodiment of the present invention; DETAILED DESCRIPTION
[0042] The following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making any creative efforts shall fall within the scope of protection of the present invention.
[0043] It should be noted that, in the absence of conflict, the embodiments of the present invention and the features in the embodiments may be combined with each other.
[0044] The present invention will be further described below with reference to the accompanying drawings and specific embodiments, but they are not intended to limit the present invention.
[0045] The present invention comprises:
[0046] A parallel synchronization method for in-vehicle Ethernet devices, such as Figure 1 As shown, including:
[0047] Step S1: receiving a data sequence transmitted from a transmitter;
[0048] Step S2: determining whether the signal to be identified is a first type of synchronization signal;
[0049] If so, performing Ethernet synchronization with the transmitter using a first synchronization method;
[0050] If not, use the second synchronization method to perform Ethernet synchronization with the transmitter.
[0051] Specifically, to address the existing problem of multiple synchronization methods between in-vehicle Ethernet devices, which can lead to poor compatibility between different in-vehicle Ethernet devices, the present invention provides a parallel synchronization method that detects the signals to be identified and uses the corresponding synchronization method based on the detection results. This technical approach effectively achieves good compatibility between different in-vehicle Ethernet devices, thereby reducing maintenance costs during device selection and subsequent updates and upgrades, and improving the overall upgradeability of the system.
[0052] Furthermore, in a specific implementation, the first type of synchronization signal may be a Link Synchronization signal or another type of Ethernet communication signal, and the second type of synchronization signal may be a 1000BASE-T1 signal or another type of Ethernet communication signal. Furthermore, in a specific implementation, the determination process for the signals to be identified may be performed sequentially or simultaneously, and this is not further limited herein.
[0053] In one embodiment, to address the existing problem of multiple synchronization modes between in-vehicle Ethernet devices, which can lead to poor compatibility between different in-vehicle Ethernet devices and the inability of some in-vehicle Ethernet devices to perform parallel determinations on signals to be identified, this embodiment employs a sequential process of first determining whether the signal to be identified is a first-type synchronization signal and then determining whether it is a second-type synchronization signal. This allows for effective detection of signals to be identified on lower-performance in-vehicle Ethernet devices and improves compatibility between different in-vehicle Ethernet devices.
[0054] In a preferred embodiment, Figure 2 As shown, step S2 includes:
[0055] Step S21: Acquire a data sequence of a signal to be identified;
[0056] Step S22: determining whether the signal to be identified is a first type synchronization signal according to the data sequence;
[0057] If so, performing Ethernet synchronization with the transmitter using a first synchronization method;
[0058] If not, use the second synchronization method to perform Ethernet synchronization with the transmitter.
[0059] Specifically, in this embodiment, the signal corresponding to the first synchronization method is a link synchronization signal. To identify the link synchronization signal, this embodiment compares the data sequence in the link synchronization signal with a locally preset synchronization code to confirm whether the signal to be identified is the link synchronization signal, thereby achieving synchronization. In actual implementation, the link synchronization signal is typically a signal with a period of 5μs, including a pulse signal with a duration of 1μs. By comparing with the sample signal, effective detection of the link synchronization signal can be achieved.
[0060] In a preferred embodiment, the first type of synchronization signal is a link synchronization signal, such as Figure 3 As shown, step S22 includes:
[0061] Step S221: Compare the data sequence with a pre-generated synchronization code to generate a comparison result;
[0062] Step S222: determining whether the signal to be identified is a link synchronization signal based on the comparison result;
[0063] If so, performing Ethernet synchronization with the transmitter using a first synchronization method;
[0064] If not, use the second synchronization method to perform Ethernet synchronization with the transmitter.
[0065] In a preferred embodiment, in step S221, a sliding correlation method is used to compare the data sequence one by one according to the synchronization code to generate a correlation value;
[0066] When the correlation value is greater than a threshold value, a comparison result is outputted, indicating that the signal to be identified is a link synchronization signal.
[0067] In a preferred embodiment, the method for generating the correlation value is:
[0068]
[0069] Where corr(n) is the correlation value, ref(k) is the synchronization code, rx(nk) is the data sequence, k is the correlation length, K is the length of the data sequence, and n is the current time.
[0070] Specifically, in this embodiment, a sliding correlation method is used to compare the signal to be identified and the sample signal. During the specific implementation process, after a data sequence of a specific length is extracted from the signal to be identified, the synchronization code and the data sequence are compared one by one in chronological order and the comparison results are calculated. When the comparison results of the synchronization code and the data sequence are consistent, that is, the correlation value between the segment of the signal to be identified and the sample signal is greater than the threshold value, it indicates that the identification signal is a link synchronization signal. After the complete comparison of the segment of the signal to be identified, if the comparison result still fails to reach the threshold value, it indicates that the segment of the signal to be identified is not a link synchronization signal. By comparing the signal to be identified and the sample signal using the sliding correlation method, a better signal comparison effect can be achieved, thereby accurately identifying the link synchronization signal.
[0071] In a preferred embodiment, the method for generating the synchronization code includes:
[0072] generating a signal coding sequence;
[0073] The signal code sequence is sampled to generate a synchronization code.
[0074] Specifically, in this embodiment, the signal coding sequence may be in the form of p(x)=x 8 +x 4 +x 3 +x 2 +1 PN code sequence, where x is the number of bits in the current sequence. To address the low accuracy of link synchronization signal recognition in existing technologies, this embodiment achieves better link synchronization signal recognition by setting a signal encoding sequence. As an optional implementation, the sample signal is a 255-bit signal sequence, which is sampled at a preset sampling frequency to produce the synchronization code. In one embodiment, the sampling frequency is determined based on the duration of the link synchronization signal to be compared.
[0075] In a preferred embodiment, when the second synchronization method is self-negotiation synchronization, such as Figure 4 As shown, before step S1, the following steps are also included:
[0076] Step S01: Sending a self-negotiation signal to a transmitter and determining whether the transmitter returns a response signal;
[0077] If so, perform Ethernet synchronization with the transmitter using a second synchronization method;
[0078] If not, go to step S1.
[0079] Specifically, to address the slow speed of parallel detection of multiple signals in the prior art, the parallel synchronization method in this embodiment also includes an auto-negotiation signal synchronization process. Specifically, when sampling the signal to be identified, a pulse signal corresponding to the auto-negotiation signal is pre-sent to the transmitter. This pulse signal can be a Fast Link Pulse (FLP) or a Normal Link Pulse (NLP), which includes the receiver's transmission rate and operating mode. If the transmitter uses the auto-negotiation signal for synchronization, step S01 directly confirms the synchronization mode, thereby shortening the synchronization time.
[0080] As an optional implementation manner, when the signal corresponding to the second synchronization method is an auto-negotiation signal, the method for identifying the signal includes:
[0081] Obtaining a pulse sequence of a signal to be identified;
[0082] Determine whether the signal to be identified is an auto-negotiation signal based on the pulse sequence.
[0083] Specifically, in this embodiment, the second type of synchronization signal is the auto-negotiation signal within the 1000BASE-T1 signal. In specific implementations, the auto-negotiation signal is typically a fast link pulse (FLP) or a normal link pulse (NLP). The auto-negotiation signal can be detected by receiving the pulse sequence and determining its type, or by comparing it with a preset signal sequence. Through the aforementioned technical means, this method can be applied to the detection and synchronization of auto-negotiation signals, improving the compatibility of in-vehicle Ethernet devices with this type of communication protocol.
[0084] As an optional implementation manner, the second synchronization method corresponding to the self-negotiation process includes:
[0085] Continuously sending a pulse signal to the transmitter until a pulse signal sent by the transmitter is received;
[0086] The pulse signal includes a confirmation bit;
[0087] Sending a first negotiation signal to the transmitter, and receiving a second negotiation signal sent by the transmitter;
[0088] A transmission rate and a working mode are generated according to the first negotiation signal and the second negotiation signal to complete the Ethernet synchronization process.
[0089] Specifically, during implementation, when the first type of synchronization signal is an auto-negotiation signal, the transmitter and receiver must simultaneously send a pulse signal to initiate the auto-negotiation synchronization process. Adding an acknowledgement bit to the pulse signal allows the transmitter to confirm that the current signal is an auto-negotiation signal, thereby achieving synchronization. In actual implementation, the first and second negotiation signals contain the duplex mode and maximum transmission rate supported by the transmitter or receiver, which can be expressed as a clock / digital sequence. By reading this sequence, the corresponding transmission rate and operating mode can be obtained, thereby achieving synchronization.
[0090] An in-vehicle Ethernet device includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, it performs the aforementioned parallel synchronization method. The device also includes a communication interface module connected to an external Ethernet device via a communication interface. The communication interface module establishes a communication connection with the external Ethernet device under the control of the processor.
[0091] In this embodiment, the processor reads a computer program stored in a memory, so that the processor can execute the functional actions specified in each step or combination of steps in the above flowchart in a forward, reverse, or simultaneous manner. In this embodiment, the memory can be a computer-readable signal medium or a computer-readable storage medium, including but not limited to electronic, magnetic, optical, electromagnetic, infrared or semiconductor systems, devices or apparatuses, or any suitable combination of the foregoing, such as random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable read-only memory (CD-ROM).
[0092] It should be understood that the processor in the in-vehicle Ethernet device can be understood as one or more application-specific integrated circuits (ASICs), DSPs, programmable logic devices (PLDs), complex programmable logic devices (CPLDs), field-programmable gate arrays (FPGAs), general-purpose processors, controllers, microcontrollers (MCUs), microprocessors, or other electronic components, which are used to execute the aforementioned computer programs or implement the aforementioned parallel synchronization method.
[0093] The beneficial effects of the present invention are as follows: by performing parallel detection on the signals to be identified, the detection speed is fast, and different synchronization signals can be detected, so that the vehicle Ethernet device selects the corresponding synchronization method for synchronization according to different synchronization signals, which facilitates the setting of different types of vehicle Ethernet devices during device selection and subsequent updating.
[0094] The above are only preferred embodiments of the present invention and do not limit the implementation mode and protection scope of the present invention. For those skilled in the art, it should be aware that all solutions obtained by equivalent substitutions and obvious changes made using the description and illustrations of the present invention should be included in the protection scope of the present invention.
Claims
1. A parallel synchronization method for an in-vehicle Ethernet device, characterized in that: include: Step S01: sending a self-negotiation signal to a transmitter, and determining whether the transmitter returns a response signal; If so, performing Ethernet synchronization with the transmitter using a second synchronization method; The second synchronization method is auto-negotiation synchronization; If not, go to step S1; Step S1: receiving a signal to be identified transmitted from a transmitter; Step S2: determining whether the signal to be identified is a first type of synchronization signal; If so, performing Ethernet synchronization with the transmitter using a first synchronization method; If not, performing Ethernet synchronization with the transmitter using the second synchronization method; The signal corresponding to the first synchronization method is a link synchronization signal, the first synchronization method is implemented based on the link synchronization signal, and the signal corresponding to the second synchronization method is a 1000BASE-T1 signal; The second synchronization method includes: continuously sending a pulse signal to the transmitter until a pulse signal sent by the transmitter is received; The pulse signal includes a confirmation bit; sending a first negotiation signal to the transmitter, and receiving a second negotiation signal sent by the transmitter; A transmission rate and a working mode are generated according to the first negotiation signal and the second negotiation signal to complete the Ethernet synchronization process.
2. The parallel synchronization method according to claim 1, characterized in that: The step S2 comprises: Step S21: Acquire the data sequence of the signal to be identified; Step S22: determining whether the signal to be identified is the first type of synchronization signal according to the data sequence; If so, performing Ethernet synchronization with the transmitter using the first synchronization method; If not, use the second synchronization method to perform Ethernet synchronization with the transmitter.
3. The parallel synchronization method according to claim 2, characterized in that: The first type of synchronization signal is a link synchronization signal, and step S22 includes: Step S221: comparing the data sequence with a pre-generated synchronization code to generate a comparison result; Step S222: determining whether the signal to be identified is the link synchronization signal according to the comparison result; If so, performing Ethernet synchronization with the transmitter using the first synchronization method; If not, use the second synchronization method to perform Ethernet synchronization with the transmitter.
4. The parallel synchronization method according to claim 3, characterized in that: In step S221, a sliding correlation method is used to compare the data sequence one by one according to the synchronization code to generate a correlation value; When the correlation value is greater than a threshold value, a comparison result indicating that the signal to be identified is the link synchronization signal is output.
5. The parallel synchronization method according to claim 4, characterized in that: The method for generating the correlation value is: ; in, is the correlation value, is the synchronization code, is the data sequence, k is the correlation length, K is the length of the data sequence, For the current moment.
6. The parallel synchronization method according to claim 3, characterized in that: The method for generating the synchronization code includes: generating a signal coding sequence; The signal encoding sequence is sampled to generate the synchronization code.
7. A vehicle-mounted Ethernet device, characterized in that: The method comprises a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the parallel synchronization method according to any one of claims 1 to 6 is executed; Also included is a communication interface module, wherein the communication interface module is connected to an external Ethernet device via a communication interface; The communication interface module establishes a communication connection with the external Ethernet device under the control of the processor.
Citation Information
Patent Citations
Parallel detection method for Ethernet devices without self-negotiating signals
CN109218005A