In-vehicle network time fusion system and method based on SOA

By using an SOA-based vehicle network time fusion system in smart cars, combined with GPTP and SOA technology, high-precision time synchronization of the vehicle network in a weak signal environment is achieved, solving the problem of time synchronization interruption in a weak signal environment, and improving Safety and performance of autonomous driving systems.

CN118646509BActive Publication Date: 2024-10-18AUTOCORE INTELLIGENT TECH (NANJING) CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411134052.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-19
Publication Date
2024-10-18
Estimated Expiration
2044-08-19

AI Technical Summary

Technical Problem

In smart cars, existing technology is difficult to maintain time synchronization of the in-vehicle network in environments with weak satellite or cellular network signals, causing key functions of the autonomous driving system to be affected and increasing safety risks.

Method used

An in-vehicle network time fusion system based on SOA is adopted to achieve high-precision PHC time synchronization through GPTP, and SOA technology is used to distribute UTC time to ensure the consistency of all nodes in the in-vehicle network and external UTC time, and to accurately compensate for propagation delays.

Benefits of technology

It achieves the stability and continuity of PHC time in a weak signal environment, reduces errors and safety risks caused by time asynchronization, improves the performance and safety of the autonomous driving system, and reduces implementation costs and complexity.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118646509B_ABST
    Figure CN118646509B_ABST
Patent Text Reader

Abstract

The present invention discloses a vehicle network time fusion system and method based on SOA, which maintains two independent time systems in the vehicle network, PHC time and UTC time; PHC time realizes high-precision time synchronization through GPTP; UTC time first uses an external clock source to time the T-Box, aligns the T-Box system time with the UTC time outside the vehicle, deploys the UTC service provider on the T-Box, and deploys the UTC service consumer on other nodes, distributes the UTC time of the T-Box to other nodes in the vehicle network through the SOA technology, and realizes that all nodes in the vehicle network and the UTC time outside the vehicle are synchronized. The present invention combines GPTP and SOA technologies to realize an efficient UTC time synchronization mechanism between vehicle network nodes; through this fusion method, not only the accuracy of UTC time synchronization is improved, but also the flexibility and scalability of the system are enhanced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of intelligent automobile time synchronization, and in particular to a vehicle network time fusion system and method based on SOA. Background Art

[0002] In the field of smart cars, time synchronization is a key requirement, and different functional scenarios have different requirements for time synchronization. In V2X (Vehicle To Everything, information exchange between vehicles and the outside world) applications, scenarios such as vehicle-cloud collaboration and OTA (Over The Air) require the car to be synchronized with UTC (Universal Time Coordinated), usually through GNSS (Global Navigation Satellite System) or NTP (Network Time Protocol) to synchronize the T-Box (Telematics Box, vehicle communication box). In the vehicle network, scenarios such as sensor fusion and audio and video synchronization require higher-precision time synchronization. GPTP (General Precision Time Protocol) is generally used to achieve PHC (PTP Hardware Clock) time synchronization of all controllers in the vehicle network. At the same time, the functions on some controllers in the vehicle network are also required to be synchronized with UTC time. There are currently two main technical solutions for this requirement:

[0003] Solution 1: Use the UTC time obtained from the vehicle's external facilities to calibrate the T-Box's own system time, and then use the T-Box system time as the clock source of the GPTP master clock to synchronize the PHC time of all controllers in the vehicle network through GPTP, thereby aligning the PHC and UTC time. However, when the vehicle passes through a tunnel or stops in an area with weak satellite or cellular network signals such as an underground garage, the UTC time synchronization may be interrupted. After the signal is restored, the UTC time will be synchronized again, which will cause a time jump, which will cause the PHC time to also have a time jump, which may have an adverse effect on the key functions of the autonomous driving system (such as sensor data fusion and decision planning), increasing safety risks.

[0004] Solution 2: Implement two independent time synchronization mechanisms in the vehicle network, one for synchronizing high-precision PHC time, and the other for synchronizing UTC time through a private protocol. However, due to the large differences in the chips, hardware platforms, and operating systems of the controllers in the vehicle, the difficulty and cost of developing and deploying private protocols are relatively high, and the interoperability with systems from different software vendors is poor. Summary of the invention

[0005] In order to solve the deficiencies in the prior art, the present invention aims to provide a vehicle network time fusion system and method based on SOA.

[0006] To achieve the purpose of the present invention, the technical solution adopted by the present invention is:

[0007] A vehicle network time fusion system based on SOA, including T-Box, gateway, controller, GPTP master node, GPTP slave node, UTC service provider, and UTC service consumer;

[0008] The vehicle's external facilities provide UTC time to the T-Box through GNSS or cloud services; the T-Box deploys a UTC service provider and synchronizes the gateway's PHC time as a GPTP slave node; the gateway distributes PHC time as a GPTP master node and deploys a UTC service consumer; the controller deploys a UTC service consumer and synchronizes the gateway's PHC time as a GPTP slave node;

[0009] Two independent time systems are maintained in the vehicle network, PHC time and UTC time. PHC time is synchronized with high precision through GPTP. UTC time is first synchronized to T-Box through an external clock source, and the T-Box system time is aligned with the UTC time outside the vehicle. The UTC service provider is deployed on the T-Box, and the UTC service consumer is deployed on other nodes. The UTC time of T-Box is distributed to other nodes in the vehicle network through SOA technology, so that all nodes in the vehicle network and the UTC time outside the vehicle are synchronized.

[0010] Furthermore, the GPTP master node deploys multiple GPTP master ports, and the GPTP slave node deploys one GPTP slave port; the GPTP slave port receives synchronization messages from the GPTP master node in the GPTP protocol, and the GPTP master port is responsible for periodically sending synchronization messages to the GPTP slave node in the GPTP protocol.

[0011] Furthermore, the UTC service provider provides UTC time based on an accurate external clock source; the UTC service consumer consumes the UTC time service and uses the time service provided by the UTC service provider to calibrate its own clock or collaboratively process business logic.

[0012] A vehicle network time fusion method based on SOA maintains two independent time systems in the vehicle network, PHC time and UTC time; PHC time achieves high-precision time synchronization through GPTP; UTC time is first synchronized to T-Box through an external clock source, and the T-Box system time is aligned with the UTC time outside the vehicle. The UTC service provider is deployed on the T-Box, and the UTC service consumers are deployed on other nodes. The UTC time of the T-Box is distributed to other nodes in the vehicle network through the SOA technology, so that all nodes in the vehicle network and the UTC time outside the vehicle are synchronized.

[0013] Furthermore, two types of SOA service interfaces are supported: message notification in publish / subscribe mode and remote service call in request / response mode.

[0014] Furthermore, in the service interface of the publish / subscribe mode, the UTC service consumer subscribes to specific events, and the UTC service provider sends specific messages to the UTC service consumer periodically or when events change.

[0015] Furthermore, in the request / response mode service interface, the UTC service consumer sends a request to request related data or request to perform related operations. After receiving the request, the UTC service provider performs related operations according to the content and responds to the request of the UTC service consumer through a response.

[0016] Furthermore, the propagation delay is calculated using the synchronized high-precision PHC time. When the UTC service provider sends the UTC time t1, the local PHC time T1 is also sent. When the UTC service consumer receives the message, the local PHC time T2 is recorded. The UTC service consumer then calculates the synchronized UTC time t2 at the current moment, that is, t2=t1+(T2-T1).

[0017] The beneficial effect of the present invention is that, compared with the prior art, the present invention integrates GPTP and SOA technology to realize an efficient vehicle network UTC time synchronization solution. The main advantages can be summarized as follows:

[0018] Dual clock synchronization mechanism: GPTP is used to ensure high-precision PHC time synchronization, while SOA technology is used to efficiently distribute UTC time to achieve consistency between all nodes in the vehicle network and the external world time. Even in environments with weak satellite or cellular network signals, such as tunnels or underground garages, this mechanism can maintain the stability and continuity of PHC time, which is crucial for key functions of autonomous driving systems (such as sensor data fusion, audio and video synchronization, etc.), and effectively reduces errors and safety risks caused by time asynchrony.

[0019] Accurate delay compensation: The propagation delay is taken into account during the time synchronization process. By using the synchronized PHC time to calculate and compensate for this delay, the accuracy of time synchronization is further improved, effectively reducing the error that may be caused by the delay.

[0020] Multiple advantages of SOA architecture: SOA architecture provides flexible time synchronization solutions, including service interfaces in publish / subscribe mode and request / response mode, to meet the needs of diverse application scenarios. SOA's standardized interfaces and protocols simplify the development and deployment process, reduce dependence on specific hardware or operating systems, and reduce implementation costs and complexity. In addition, SOA's modularity and scalability make it easy to add or modify services, improve the reusability of software units, and promote collaboration between vehicle manufacturers and software developers, thereby improving system interoperability.

[0021] In summary, the present invention provides a more accurate, reliable, low-cost and easy-to-implement vehicle network UTC time synchronization solution, which significantly improves the performance and safety of the autonomous driving system while enhancing the flexibility and maintainability of the system. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] Figure 1 It is a schematic diagram of the SOA-based vehicle network time fusion system of the present invention;

[0023] Figure 2 This is a diagram of the service interface type of the publish / subscribe model;

[0024] Figure 3 It is a diagram of the service interface type of the request / response mode;

[0025] Figure 4 This is a schematic diagram of eliminating the UTC service propagation delay;

[0026] Figure 5 It is the UTC time synchronization flow chart of the publish / subscribe mode;

[0027] Figure 6 It is a UTC time synchronization flow chart of the request / response mode. DETAILED DESCRIPTION

[0028] The technical solution of the present invention is further described below in conjunction with the accompanying drawings and embodiments. The following embodiments are only used to more clearly illustrate the technical solution of the present invention, and cannot be used to limit the protection scope of this application.

[0029] like Figure 1 As shown, the SOA-based vehicle network time fusion system deployed in the vehicle network includes T-Box, gateway, controller, GPTP master node, GPTP slave node, UTC service provider, and UTC service consumer.

[0030] Among them, 1 represents T-Box, 2 represents gateway, 3 and 4 represent controllers, 5 represents the local network area inside the vehicle, 6 represents external facilities of the vehicle, 7 represents wireless transmission of UTC data, 8, 12, and 13 represent GPTP slave ports (S), 9, 10, and 11 represent GPTP master ports (M), 14 represents UTC service providers, and 15, 16, and 17 represent UTC service consumers.

[0031] Vehicle external facilities provide accurate UTC data to T-Box through GNSS or cloud services; T-Box realizes communication between the vehicle and the external network, deploys UTC service providers, and synchronizes the PHC time of the gateway as a GPTP slave node; the gateway distributes PHC time as a GPTP master node and deploys UTC service consumers; the controller deploys UTC service consumers and synchronizes the PHC time of the gateway as a GPTP slave node.

[0032] The GPTP master node deploys multiple GPTP master ports (M), and the GPTP slave node deploys one GPTP slave port (S). In the GPTP protocol, the GPTP slave port (S) is the port that receives synchronization messages from the GPTP master node; the GPTP master port (M) is the port that is responsible for regularly sending synchronization messages to the GPTP slave node in the GPTP protocol.

[0033] The UTC service provider provides system time based on an accurate external clock source, namely UTC time. The UTC service consumer is a component that consumes the UTC time service. It uses the time service provided by the service provider to calibrate its own clock or collaborate on business logic.

[0034] The vehicle network time fusion system based on SOA described in the present invention maintains two independent time systems in the vehicle network, PHC time and UTC time. In the vehicle network time fusion method based on SOA described in the present invention, PHC time achieves high-precision time synchronization through GPTP; and UTC time first synchronizes the T-Box through an external clock source, thereby aligning the T-Box system time with the UTC time outside the vehicle, deploying the UTC service provider on the T-Box, and the UTC service consumer on other nodes, and distributing the T-Box system time to other nodes in the vehicle network through SOA technology, thereby achieving synchronization of all nodes in the vehicle network and the UTC time outside the vehicle.

[0035] The method of the present invention supports two types of SOA service interfaces, namely message notification in a publish / subscribe mode and remote service call in a request / response mode.

[0036] For the service interface of the publish / subscribe mode, the UTC service consumer subscribes to specific events, and the UTC service provider sends specific messages to the UTC service consumer periodically or when events change. Figure 2 As shown, the UTC service provider on the T-Box periodically sends the local system time of the T-Box to the vehicle network, and the UTC service consumers on other nodes in the network can obtain the UTC data distributed by the UTC service provider by subscribing to the UTC service.

[0037] For the service interface in request / response mode, the UTC service consumer sends a request to request related data or to request to perform related operations. After receiving the request, the UTC service provider performs related operations according to the content and responds to the request of the UTC service consumer through a response, such as Figure 3 As shown, the UTC service consumer actively initiates a UTC time service request to the UTC service provider on the T-Box to obtain the current UTC data of the T-Box.

[0038] In order to eliminate the propagation delay of UTC service, the present invention uses the synchronized high-precision PHC time to calculate the propagation delay. The basic principle is that when the service provider sends the UTC time t1, the local PHC time T1 is sent together. When the service consumer receives the message, the local PHC time T2 is recorded. Then, the service consumer can calculate the current synchronized UTC time t2 based on these time parameters, that is, t2=t1+(T2-T1). The principle of obtaining time is as follows: Figure 4 shown.

[0039] The service interface of the publish / subscribe mode allows the service consumer to periodically obtain the latest UTC time published by the service provider through subscription. The flow chart is as follows: Figure 5 shown.

[0040] The service provider executes periodically to obtain the current system time, that is, UTC time t1, and the current PHC time T1, and then sends the time information (t1, T1) at the same time; the service consumer periodically obtains the latest UTC time published by the service provider through subscription, extracts the time information (t1, T1), obtains the local PHC time T2, and calculates the synchronized UTC time t2, that is, t2=t1+(T2-T1).

[0041] The request / response service interface allows the service consumer to actively obtain the latest UTC time of the service provider. The flow chart is as follows Figure 6 shown.

[0042] The service consumer sends a UTC service request. After receiving the request, the service provider obtains the current system time, that is, UTC time t1, and the current PHC time T1, and then sends the time information (t1, T1) at the same time; the service consumer receives and extracts the time information (t1, T1), obtains the local PHC time T2, and calculates the synchronized UTC time t2, that is, t2=t1+(T2-T1).

[0043] The present invention is based on a vehicle network time fusion method based on SOA (Service-Oriented Architecture), and aims to improve the time synchronization mechanism in the vehicle network through the application of SOA. The method uses GPTP to ensure that the PHCs of all controllers in the vehicle network can synchronize monotonically increasing time. At the same time, it combines GPTP and SOA technologies to achieve an efficient UTC time synchronization mechanism between vehicle network nodes. Through this fusion method, the present invention not only improves the accuracy of UTC time synchronization, but also enhances the flexibility and scalability of the system, making the time synchronization in the vehicle network more stable and reliable, thereby supporting complex vehicle autonomous driving functions.

[0044] The applicant of the present invention has made a detailed explanation and description of the implementation examples of the present invention in conjunction with the drawings in the specification. However, those skilled in the art should understand that the above implementation examples are only preferred implementation schemes of the present invention, and the detailed description is only to help readers better understand the spirit of the present invention, but not to limit the scope of protection of the present invention. On the contrary, any improvements or modifications based on the inventive spirit of the present invention should fall within the scope of protection of the present invention.

Claims

1. A vehicle network time fusion system based on SOA, characterized in that: Including T-Box, gateway, controller, GPTP master node, GPTP slave node, UTC service provider, UTC service consumer; The vehicle's external facilities provide UTC time to the T-Box via GNSS or cloud services; T-Box deploys UTC service provider and synchronizes the gateway’s PHC time as a GPTP slave node; The gateway distributes PHC time as the GPTP master node and deploys UTC service consumers; the controller deploys UTC service consumers and synchronizes the gateway's PHC time as the GPTP slave node; Two independent time systems are maintained in the vehicle network, PHC time and UTC time; PHC time is synchronized with high precision through GPTP. UTC time is first synchronized to T-Box through an external clock source, and the T-Box system time is aligned with the UTC time outside the vehicle. The UTC service provider is deployed on the T-Box, and the UTC service consumer is deployed on other nodes. The UTC time of T-Box is distributed to other nodes in the vehicle network through SOA technology, so that all nodes in the vehicle network and the UTC time outside the vehicle are synchronized. Supports two types of SOA service interfaces: message notification in publish / subscribe mode and remote service call in request / response mode; The service interface of the publish / subscribe mode, the UTC service provider on the T-Box periodically sends the local system time of the T-Box to the vehicle network, and the UTC service consumers on other nodes in the network obtain the UTC data distributed by the UTC service provider by subscribing to the UTC service; The service interface in request / response mode, the UTC service Consumer actively initiates a UTC time service request to the UTC service Provider on the T-Box to obtain the current UTC data of the T-Box.

2. The SOA-based vehicle network time fusion system according to claim 1 is characterized in that: The GPTP master node deploys multiple GPTP master ports, and the GPTP slave node deploys one GPTP slave port; The GPTP slave port receives synchronization messages from the GPTP master node in the GPTP protocol, and the GPTP master port is responsible for periodically sending synchronization messages to the GPTP slave node in the GPTP protocol.

3. The SOA-based vehicle network time fusion system according to claim 1 is characterized in that: UTC service providers provide UTC time based on an accurate external clock source; UTC service consumers consume UTC time services and use the time services provided by UTC service providers to calibrate their own clocks or collaborate on business logic.

4. A method for in-vehicle network time fusion based on SOA, based on the in-vehicle network time fusion system based on SOA according to any one of claims 1 to 3, characterized in that: Two independent time systems are maintained in the vehicle network, PHC time and UTC time. PHC time is synchronized with high precision through GPTP. UTC time is first synchronized to T-Box through an external clock source, and the T-Box system time is aligned with the UTC time outside the vehicle. The UTC service provider is deployed on the T-Box, and the UTC service consumers are deployed on other nodes. The UTC time of T-Box is distributed to other nodes in the vehicle network through SOA technology, so that all nodes in the vehicle network and the UTC time outside the vehicle are synchronized.

5. The SOA-based vehicle network time fusion method according to claim 4 is characterized in that: Supports two types of SOA service interfaces: message notification in publish / subscribe mode and remote service call in request / response mode.

6. The SOA-based vehicle network time fusion method according to claim 5 is characterized in that: The service interface of the publish / subscribe mode, UTC service consumers subscribe to specific events, and UTC service providers send specific messages to UTC service consumers periodically or when events change.

7. The SOA-based vehicle network time fusion method according to claim 5, characterized in that: The service interface of the request / response mode is used by the UTC service consumer to send a request to request related data or request to perform related operations. After receiving the request, the UTC service provider performs related operations according to the content and responds to the request of the UTC service consumer through a response.

8. The SOA-based vehicle network time fusion method according to claim 5, characterized in that: The propagation delay is calculated using the synchronized high-precision PHC time. When the UTC service provider sends the UTC time t1, the local PHC time T1 is also sent. When the UTC service consumer receives the message, the local PHC time T2 is recorded. The UTC service consumer then calculates the current synchronized UTC time t2, i.e., t2=t1+(T2-T1).

Citation Information

Patent Citations

  • Distributed network management system and information processing method

    CN105429805A

  • Clock synchronization method and system

    CN112751643A