Internet of vehicles method and system, vehicle, computer equipment and storage medium

By using the network confirmation message mechanism in the vehicle network to monitor and process the network status of the vehicle functional module, the problems of unreliable network abnormality detection and cumbersome reset process in the existing technology are solved, and more efficient network recovery and stability improvement are achieved .

CN119011376APending Publication Date: 2024-11-22ZHEJIANG GEELY HLDG GRP CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410995847.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-24
Publication Date
2024-11-22

AI Technical Summary

Technical Problem

The existing Internet of Vehicles systems have problems with unreliability and single application scenarios in network abnormality detection and recovery, especially the limitation of USB communication protocol, which leads to network instability and cumbersome reset process.

Method used

By introducing a network confirmation message mechanism between vehicle-mounted functional modules in the vehicle-mounted network, using the network confirmation message monitoring and determination module network status, network status supervision and abnormal processing are realized, network detection process is simplified, and periodic broadcasting and timing are used. The mechanism improves network recovery efficiency.

Benefits of technology

It improves the network detection and recovery efficiency of the Internet of Vehicles system, reduces the risk of data loss, enhances the reliability and stability of the network, and reduces the use of bus resources. It is suitable for a variety of network layouts and device connection scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119011376A_ABST
    Figure CN119011376A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of Internet of Vehicles, in particular to an Internet of Vehicles method and system, a vehicle, computer equipment and a storage medium. The vehicle networking method comprises the following steps: constructing a vehicle-mounted network; accessing the vehicle-mounted function module to a vehicle-mounted network; wherein the vehicle-mounted function module comprises a first module and a second module; controlling the first module to send a network confirmation message to the second module; and in response to the second module feedback abnormal signal, determining that the first module network is abnormal. By adopting the method, the vehicle function modules can supervise the network states of each other, the function / authority requirements on the vehicle function modules can be reduced, and the network detection process of the vehicle function modules can be simplified.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of vehicle networking, and in particular to a vehicle networking method, a vehicle networking system, a vehicle, a computer device, and a computer-readable storage medium. Background Art

[0002] The vehicle network recovery solution is usually implemented using the USB (Universal Serial Bus) communication protocol. In the specific scenario of sharing the network through the USB link, the USB link limitation is prone to the problem of a relatively single usage scenario. The technical solution of reloading the USB link driver of the vehicle communication terminal to achieve USB link reset is usually applicable to situations where network problems occur in the vehicle communication terminal, but the scenarios that usually cause the network to be unusable are more complicated. However, there is a risk that problems will occur at each node in the vehicle and affect the network link, and there is a risk that abnormal nodes cannot be reliably located. Summary of the invention

[0003] Based on this, it is necessary to provide a vehicle networking method, a vehicle networking system, a vehicle, a computer device and a computer-readable storage medium to address the above-mentioned technical problems, which can enable the vehicle functional modules to monitor each other's network status, help reduce the function / authority requirements for the vehicle functional modules, and help simplify the network detection process of the vehicle functional modules.

[0004] On the one hand, a vehicle networking method is provided, which includes: constructing an in-vehicle network; connecting an in-vehicle functional module to the in-vehicle network; wherein the in-vehicle functional module includes a first module and a second module; controlling the first module to send a network confirmation message to the second module; and determining that the network of the first module is abnormal in response to an abnormal signal fed back by the second module.

[0005] In one embodiment of the present application, after controlling the first module to send a network confirmation message to the second module, the method includes: controlling the second module to monitor its preset port; determining whether the preset port has obtained the network confirmation message; and controlling the second module to feedback an abnormal signal in response to the preset port not receiving the network confirmation message from the first module.

[0006] In one embodiment of the present application, the feedback abnormal signal includes: accumulating the cumulative number of network confirmation messages of the first module that have not been obtained; comparing the cumulative number with a first threshold; wherein the first threshold represents the number of network confirmation messages of the first module that are allowed not to be obtained; in response to the cumulative number being higher than the first threshold, allowing the feedback abnormal signal.

[0007] In one embodiment of the present application, the vehicle-mounted functional module is also connected to the controller bus; in response to the preset port not receiving the network confirmation message of the first module, it also includes: controlling the second module to query the bus address of the first module; instructing the second module to generate an exception feedback message, and sending the exception feedback message to the bus address of the first module through the controller bus.

[0008] In one embodiment of the present application, after instructing the second module to generate an exception feedback message, it also includes: creating an exception attention thread; controlling the exception attention thread to monitor whether the first module sends a network confirmation message, and counting the feedback frequency of the exception feedback message; in response to the feedback frequency being higher than a second threshold, determining to trigger network exception processing; wherein the second threshold represents the frequency at which feedback of exception feedback messages is allowed.

[0009] In one embodiment of the present application, controlling the first module to send a network confirmation message to the second module includes: controlling the first module to periodically broadcast the network confirmation message at a first time interval to enable the second module to monitor the network confirmation message; controlling the second module to periodically determine whether to obtain the network confirmation message at a second time interval; in response to obtaining the network confirmation message, determining that the network of the first module is normal.

[0010] In one embodiment of the present application, after controlling the first module to send a network confirmation message to the second module, it includes: controlling the second module to identify the module identifier carried by the network confirmation message; in response to the module identifier existing in the focus module group of the second module, allowing the second module to receive the network confirmation message and identify the network status of the matched vehicle-mounted functional modules in the focus module group; in response to identifying the network status of each vehicle-mounted functional module in the focus module group within a preset period, clearing the network status identifier in the focus module group.

[0011] In one embodiment of the present application, after determining that the network of the first module is abnormal, it also includes: obtaining the current network configuration item of the first module; comparing the current network configuration item with the preset configuration item of the first module; in response to the current network configuration item not matching the preset configuration item, updating the preset configuration item with the current network configuration item.

[0012] In one embodiment of the present application, after comparing the current network configuration item with the preset configuration item of the first module, it also includes: in response to the current network configuration item matching the preset configuration item, controlling the restart of the vehicle network; and / or, before obtaining the current network configuration item of the first module, it also includes: controlling the network detector to select the vehicle function module to perform network status self-test; in response to the network status self-test being abnormal, determining to perform network configuration item detection on the first module.

[0013] On the other hand, a vehicle networking system is provided, which includes a network module and a management module; the network module is used to build a vehicle network; the management module is connected to the network module and is used to connect the vehicle function module to the vehicle network; wherein the vehicle function module includes a first module and a second module; the first module is controlled to send a network confirmation message to the second module; in response to the second module not receiving the network confirmation message, it is determined that the network of the first module is abnormal.

[0014] On the other hand, a vehicle is provided, comprising a vehicle body and a vehicle networking system as in any one of the above embodiments; the vehicle body is provided with an on-board functional module; and the vehicle networking system is provided in the vehicle body.

[0015] On the other hand, a computer device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, and when the processor executes the computer program, the steps of the vehicle networking method in any of the above-mentioned embodiments are implemented.

[0016] On the other hand, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps of the vehicle networking method in any of the above embodiments are implemented.

[0017] The above-mentioned vehicle networking method, vehicle networking system, vehicle, computer equipment and computer-readable storage medium connect the vehicle-mounted functional modules to the vehicle-mounted network to realize the connection between the vehicle-mounted functional modules through the network, which is conducive to reducing the requirements and restrictions on the vehicle-mounted functional modules to perform network detection through the bus link and improving the connection flexibility. The vehicle-mounted functional module that sends the network confirmation message is used as the first module, and the vehicle-mounted functional module that receives the network confirmation message is used as the second module. The first module is controlled to send the network confirmation message to the second module, and the network confirmation message is used to determine whether the first module has a network abnormality, so that the vehicle-mounted functional modules can send network confirmation messages to each other, realize the supervision of each other's network status, and also help to simplify the network detection process of the vehicle-mounted functional modules. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] Figure 1 This is a flow chart of an embodiment of the vehicle networking method of the present application;

[0019] Figure 2 This is a flowchart of another embodiment of the vehicle networking method of the present application;

[0020] Figure 3 This is a flow chart of an embodiment of the present application for obtaining a network confirmation message;

[0021] Figure 4 This is a flowchart of an embodiment of the present application for determining whether the first module has a network anomaly;

[0022] Figure 5 This is a flowchart of an embodiment of network exception processing of the present application;

[0023] Figure 6 It is a structural schematic diagram of an embodiment of a vehicle of the present application;

[0024] Figure 7 It is a structural diagram of an embodiment of the vehicle-mounted functional module of the present application;

[0025] Figure 8 It is a structural diagram of an embodiment of the vehicle networking system of the present application;

[0026] Fig. 9 It is a structural diagram of another embodiment of the vehicle networking system of the present application;

[0027] Fig.10 It is a structural diagram of an embodiment of a computer device of the present application. DETAILED DESCRIPTION

[0028] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0029] With the rapid development of smart car entertainment functions, the functions of vehicle systems are becoming more and more abundant, and the demand for network access is also increasing. However, in the design of the Internet of Vehicles system of related vehicles, the link design has many limitations; for example, there are many intermediate nodes, unstable physical connections, unstable node drivers, etc., which easily lead to network instability. In view of this, the Internet of Vehicles system, while providing basic Internet access functions, also needs to have the function of automatically identifying situations where the network cannot be used, resetting the network, and automatically repairing the network.

[0030] However, the solutions for network status verification and recovery are usually targeted at specific USB communication protocols as described in the background technology, which results in limited application scenarios. In addition, the link is usually checked through the Internet Packet Explorer (Ping), but some vehicles may restrict the use of ping to access each other between the on-board functional modules for reasons such as network security, further limiting the application scenarios. In addition, the network is usually reset by reloading the USB driver, which can solve almost all software problems in principle. The reset method is relatively simple and crude, but both driver loading and device restarting take a certain amount of time, and excessive reset is prone to occur.

[0031] In order to solve the technical problems of unreliable vehicle network anomaly detection and relatively single application scenarios in related technologies, the present application provides a vehicle networking method, a vehicle networking system, a vehicle, a computer device, and a computer-readable storage medium. The vehicle networking method includes building a vehicle network; connecting a vehicle function module to the vehicle network; wherein the vehicle function module includes a first module and a second module; controlling the first module to send a network confirmation message to the second module; and determining that the first module network is abnormal in response to the feedback of an abnormal signal from the second module. The specific structure and working principle of the present application are described in detail below.

[0032] See also Figure 1 , Figure 1 It is a flow chart of an embodiment of the vehicle networking method of the present application.

[0033] S101: Build the vehicle network.

[0034] In this embodiment, the vehicle network may refer to functional services that can be constructed in the vehicle through wireless communication technology. The vehicle network is constructed in the vehicle to provide network services during vehicle operation. For example, the vehicle network can be constructed based on a vehicle gateway module, or it can be established based on other local area network technologies, binding Internet Protocol (IP) addresses, etc., which is not limited here.

[0035] S102: Connecting the vehicle-mounted functional module to the vehicle-mounted network; wherein the vehicle-mounted functional module includes a first module and a second module.

[0036] In this embodiment, the vehicle-mounted functional module may be a module in the vehicle that can realize certain functions and has network status verification requirements, for example, a telematics box (TBOX), an in-vehicle infotainment system (IVI), an autonomous driving control unit (ADCU), etc., which are not limited here.

[0037] The vehicle's on-board functional modules are connected to the constructed on-board network, and the network connection between the on-board functional modules is realized through the vehicle Internet of Things. In this embodiment, the first module is a vehicle-mounted functional module that needs to confirm the network status, and the second module is a vehicle-mounted functional module that confirms other vehicle-mounted functional modules. In other words, a vehicle-mounted functional module can be used as the first module; or, it can be used as the second module; or, it can be used as the first module to verify its network status, and also as the second module to verify the network status of other vehicle-mounted functional modules, which is not limited here.

[0038] S103: Control the first module to send a network confirmation message to the second module.

[0039] In this embodiment, as the name implies, the network confirmation message is used to confirm the network status of the vehicle-mounted functional module as the first module.

[0040] In response to the vehicle function module joining the vehicle network, it can be considered that the vehicle function modules are connected to each other. Therefore, the first module can be controlled to send a network confirmation message to the second module through the vehicle network to verify the network status of the vehicle function module as the first module through the network confirmation message.

[0041] At the same time, the second module can be controlled to receive a network confirmation message to verify the network status of the first module. For example, when the second module does not receive the network confirmation message from the first module, it can be considered that the network of the first module is abnormal, so as to simplify the principle of verifying the network status of the on-board functional module, thereby helping to improve the efficiency of the network status of the on-board functional module, so as to promote the efficiency of vehicle network recovery, thereby helping to reduce the risk of data loss and improve the reliability of the Internet of Vehicles. Alternatively, when the second module receives the network confirmation message from the first module, it can identify the content of the network confirmation message. In response to the abnormal content of the network confirmation message, it can be considered that the network of the first module is abnormal, and the cause of the network abnormality of the first module can be located based on the network confirmation message.

[0042] S104: In response to the abnormal signal fed back by the second module, determining that the network of the first module is abnormal.

[0043] In this embodiment, when the second module believes that the first module may have a network abnormality problem, it can feedback an abnormality signal. In response to the feedback of the abnormality signal by the second module, it can be considered that the vehicle-mounted functional module as the first module needs to perform network status confirmation or recovery, so it is determined that the network of the first module is abnormal.

[0044] It can be seen that in this embodiment, the vehicle-mounted functional module is connected to the vehicle-mounted network to realize the connection between the vehicle-mounted functional modules through the network, which is conducive to reducing the requirements and restrictions on the vehicle-mounted functional modules to perform network detection through the bus link, improving the connection flexibility and network management flexibility, and reducing the occupation of bus resources. The vehicle-mounted functional module that sends the network confirmation message is used as the first module, and the vehicle-mounted functional module that receives the network confirmation message is used as the second module. The first module is controlled to send the network confirmation message to the second module, and the network confirmation message is used to determine whether the first module has a network abnormality, so that the vehicle-mounted functional modules can send network confirmation messages to each other, realize the supervision of each other's network status, and also help to simplify the network detection process of the vehicle-mounted functional modules.

[0045] In this embodiment, the vehicle-mounted functional module is used to send a network confirmation message with specified content during its life cycle to perform network status detection. This method is applicable to the direct connection between the vehicle-mounted communication terminal and the vehicle-mounted entertainment system, and is also applicable to the hardware layout network connection using a bridge method through a vehicle gateway module. It is also suitable for network detection of vehicle-mounted communication terminals and vehicle-mounted entertainment systems, and can also perform network status verification on other device nodes with network access capabilities.

[0046] See also Figure 2 , Figure 2 It is a flowchart of another embodiment of the vehicle networking method of the present application.

[0047] S201: Build the vehicle network.

[0048] S202: Connect the vehicle-mounted functional module to the vehicle-mounted network.

[0049] In this embodiment, the vehicle function modules can all be connected to the vehicle gateway module, and the network connection between the vehicle function modules can be realized through the gateway module bridge. It can be considered that the vehicle function modules connected to the vehicle network can be used as electronic control units (ECU) nodes.

[0050] S203: Determine whether the vehicle network has been started.

[0051] In this embodiment, when it is determined that the vehicle network has been started, it can be considered that the vehicle network can work reliably and the network status verification result of the vehicle function module is credible, so step S204 is executed; when it is determined that the vehicle network has not been started, it can be considered that the vehicle network has not been able to work reliably and the network status verification result of the vehicle function module is not credible, so step S203 is repeatedly executed until it is determined that the vehicle network has been started.

[0052] S204: Create and send socket communication and timer.

[0053] In this embodiment, a socket represents an abstract endpoint for bidirectional communication between application processes on different hosts in a network. A socket is one end of process communication on a network, providing a mechanism for application layer processes to exchange data using network protocols. Socket communication is created and sent to the vehicle function module so that the Internet of Vehicles system can connect to the vehicle function module network.

[0054] As the name implies, a timer can play a timing role. In this embodiment, a timer can also be created and sent to the vehicle-mounted functional module. In this way, according to the timing role of the timer, the vehicle-mounted functional module as the first module can be controlled to send a network confirmation message at a first interval, and / or the vehicle-mounted functional module as the second module can be timed for a second interval to determine whether to obtain a network confirmation message, which is not limited here.

[0055] It should be noted that the timer can be timed synchronously when the subsequent steps are executed. If so, the first module and / or the second module can read the timing duration of the timer in real time, or the timer can send a related signal to the first module and / or the second module after the timing is completed, or other possible implementation methods can be used, which will not be described in detail here. In other words, inquiries such as the first duration and the second duration are not strictly in accordance with the process steps described in this embodiment, and it is necessary to judge whether the timing duration is reached at a specified step, that is, the implementation method described in this embodiment is not a strict limitation of this application.

[0056] In an alternative embodiment, an instruction may be sent to the vehicle-mounted functional module, and the vehicle-mounted functional module may time the first duration and the second duration by itself, which is not limited here.

[0057] S205: Determine whether the first duration has been reached.

[0058] In this embodiment, when it is determined that the first time length has been reached, it is considered that the second module has completed the previous network confirmation message processing, and step S206 is executed; when it is determined that the first time length has not been reached, S205 is repeatedly executed.

[0059] S206: Control the first module to send a network confirmation message.

[0060] In this embodiment, in response to reaching the first duration, the first module can be controlled to send a network confirmation message to the second module. In other words, in this embodiment, the first module is controlled to periodically broadcast the network confirmation message at intervals of the first duration, so that the second module monitors the network confirmation message.

[0061] Optionally, when the first module sends a network confirmation message, it can be broadcast to the vehicle-mounted functional modules that join the vehicle-mounted network, so that other vehicle-mounted functional modules can monitor and extract the network confirmation message; further, each vehicle-mounted functional module can also plan some of the vehicle-mounted functional modules that it is concerned about, that is, forming a module group of concern mentioned later, and when it monitors that the vehicle-mounted functional modules in the module group of concern it maintains broadcast a network confirmation message, it receives the network confirmation message. The specific implementation method will be explained later and will not be repeated here. Alternatively, when each vehicle-mounted functional module is used as the first module, at least some other vehicle-mounted functional modules can be selected as the second module to send a network confirmation message in a targeted manner.

[0062] Furthermore, the network confirmation message may include the Internet Protocol (IP) address of the vehicle-mounted functional module as the first module, and the port number of the applied server. In this way, the burden of the second module identifying the source vehicle-mounted functional module that sends the network confirmation message is reduced, which is conducive to further simplifying the process of network status verification, and can reduce the network resources occupied by the network status verification process. In addition, the relatively concise network confirmation message is also conducive to improving the stability of the Internet of Vehicles.

[0063] S207: Control the second module to monitor its preset port.

[0064] In this embodiment, the preset port refers to a pre-designated port that can be used to receive the network confirmation message, and / or refers to a target port for the first module to send the network confirmation message.

[0065] The second module can be controlled to monitor its preset port to monitor whether there are several network confirmation messages sent by the first module. The monitored first module can represent other vehicle-mounted function modules except the vehicle-mounted function module currently serving as the second module. Optionally, all network confirmation messages sent by other vehicle-mounted function modules as the first module can be monitored; or, network confirmation messages sent by some other vehicle-mounted function modules as the first module can be monitored, which is not limited here.

[0066] S208: Determine whether the preset port obtains a network confirmation message.

[0067] In this embodiment, when it is determined that the preset port obtains the network confirmation message, it can be considered that the network status of the first module is normal, and step S205 is executed to control the first module to periodically send the network confirmation message. When it is determined that the preset port does not obtain the network confirmation message, it can be considered that the first module has a risk of network abnormality, and step S209 is executed.

[0068] It can be that after the first module is controlled to send a network confirmation message, it is immediately determined whether the preset port obtains the corresponding network confirmation message within the preset time; or, each time a network confirmation message is monitored, the network status of the corresponding source vehicle-mounted functional module is recorded, and when the second time period is reached, the multiple vehicle-mounted functional modules associated with it as the first module are verified at the same time, which is not limited here. An implementation method of this step will be explained by example in the following text, and will not be repeated here.

[0069] Optionally, the first duration of each on-board functional module can be the same, so that each on-board functional module can feedback the network confirmation message in a close time, reducing the risk of complicating the network status verification due to different feedback times, and improving the efficiency of the network status verification. Therefore, the first duration can also match the second duration, such as the two can be the same duration, to ensure that the second module can fully obtain the network confirmation message of other first modules in each verification cycle, reduce the risk of byes or multiple network confirmation messages from the same first module in the same cycle, and further improve the reliability of network status verification. Furthermore, the revelation timing moment of the first duration and the second duration can be the same moment; or they can be separated by a certain duration, and the interval duration can be less than the first duration and the second duration, which will not be repeated here.

[0070] S209: Determine whether the accumulated number of times of the first module reaches a first threshold.

[0071] In this embodiment, the cumulative number is the cumulative number of times that the network confirmation message of the first module is not obtained. The first threshold may represent the number of times that the network confirmation message of the first module is not obtained.

[0072] When the cumulative number of the first module reaches the first threshold, it can be considered that the first module has a network anomaly problem, and step S210 is executed. When the cumulative number of the first module does not reach the first threshold, step S205 is executed to reduce the risk of misjudging the first module network anomaly.

[0073] That is to say, in this embodiment, the cumulative number of times the network confirmation message of the first module is not obtained can be accumulated. The cumulative number is compared with the first threshold. In response to the cumulative number being higher than the first threshold, feedback of an abnormal signal is allowed. In other words, in this embodiment, the cumulative number of times the network confirmation message of the first module is not received can be considered to be a temporary network abnormality with the possibility of self-recovery, so as to reduce the frequent determination of abnormalities of the first module, thereby reducing the burden of frequent network inspections and recovery of the first module. Of course, in an alternative embodiment, the network of the first module can be determined to be abnormal if the network confirmation message of the first module is not received, which is beneficial to reduce the risk of abnormalities in the Internet of Vehicles, thereby helping to improve the reliability of the Internet of Vehicles, which is not limited here.

[0074] S210: Triggering network exception processing for the first module.

[0075] In this embodiment, in response to the cumulative number of times that the network confirmation message of the first module has not been obtained has reached the first threshold, it can be considered that there is a network abnormality in the first module and it may affect the implementation of its function, so the network abnormality processing of the first module is triggered to try to restore the network status of the first module.

[0076] Optionally, a current network configuration item of the first module may be obtained, the current network configuration item may be compared with a preset configuration item of the first module, and in response to the current network configuration item not matching the preset configuration item, the preset configuration item may be updated with the current network configuration item.

[0077] In this way, when a network anomaly occurs in the vehicle-mounted functional module as the first module, there is no need to simply and roughly restart the network, thereby reducing the risk of excessive resetting. In this embodiment, it is believed that the network anomaly in the first module may be caused by a change in the routing configuration, and correcting the configuration can also complete the network status recovery. At the same time, such a design can also avoid as much as possible the situation where the architectural design is not applicable due to security restrictions that do not allow ping operations, thereby completing the network status verification and recovery without destroying the network security design. The network anomaly handling will be further illustrated in combination with other recovery methods later, so it will not be repeated here.

[0078] See also Figure 3 , Figure 3 It is a flowchart of an embodiment of the present application for obtaining a network confirmation message.

[0079] S2081: Start the timing of the second duration.

[0080] In this embodiment, starting the timing of the second duration can be achieved through the timer described in the previous text, and the timing of the second duration can be started when the second module receives the corresponding timer; or, the timing of the second duration can be started synchronously when controlling the second module to monitor the preset port, which is not limited here.

[0081] S2082: Determine whether the source vehicle-mounted functional module of the network confirmation message exists in the focus module group of the second module.

[0082] In this embodiment, the source vehicle-mounted functional module of the network confirmation message indicates the vehicle-mounted functional module from which the network confirmation message originates. The module group of interest indicates that the vehicle-mounted functional module as the second module pays attention to the collection of vehicle-mounted functional modules of the network status; optionally, the vehicle-mounted functional module located in the module group of interest may be an on-board functional module that interacts with the current vehicle-mounted functional module. Each on-board functional module may maintain a module group of interest respectively, or each on-board functional module may jointly maintain a total module group of interest, which is not limited here. Taking the vehicle-mounted functional module as an ECU node as an example, the module group of interest may exist in the form of an ECU status list.

[0083] When it is determined that the source vehicle function module of the network confirmation message exists in the module group of interest of the second module, step S2083 is executed. When the source vehicle function module of the network confirmation message does not exist in the module group of interest of the second module, step S2084 is executed.

[0084] In response to the second module obtaining the network confirmation message, the second module can be controlled to identify the module identifier carried by the network confirmation message. The module identifier can be additionally carried by the network confirmation message; or, as described in the example above, the network confirmation message can include the port number and the IP address of the source vehicle-mounted functional module, so the IP address can be used as the module identifier to further reduce the data volume of the network confirmation message, which is conducive to reducing the burden of transmitting the network confirmation message, so as to improve the transmission efficiency of the network confirmation message, and further improve the efficiency of vehicle network status verification and recovery.

[0085] The source vehicle function module of the network confirmation message is identified, and then it is determined whether it is the vehicle function module of concern. In this way, the network status verification burden of each vehicle function module as the second module can be significantly reduced in this embodiment, the network status verification efficiency can be improved, and the efficiency of vehicle network recovery can be improved, thereby improving the reliability and stability of the vehicle network of this example.

[0086] S2083: Identify the network status of the matched vehicle function modules in the module group of interest.

[0087] In this embodiment, in response to the source vehicle-mounted function module of the network confirmation message existing in the focus module group of the second module, the network confirmation message is obtained, and it can be considered that the network status of the source vehicle-mounted function module is normal, so the network status of the matched vehicle-mounted function module in the focus module group is identified.

[0088] Taking the module group of interest as the ECU status list as an example, the active ECU list item corresponding to the source vehicle-mounted functional module can be updated to indicate that the network confirmation message sent by the vehicle-mounted functional module corresponding to the ECU list item has been received, and the network status of the vehicle-mounted functional module can be considered normal.

[0089] In other words, in response to the module identifier existing in the module group of interest of the second module, the second module can receive a network confirmation message to identify the network status of the matched vehicle function module in the module group of interest; and determine that the network of the vehicle function module as the first module is normal.

[0090] S2084: Ignore the network confirmation message of the preset port.

[0091] In this embodiment, the source vehicle-mounted functional module responding to the network confirmation message does not exist in the focus module group of the second module. It can be considered that the source vehicle-mounted functional module is weakly correlated with the vehicle-mounted functional module serving as the second module, and the network confirmation message can be ignored, thereby improving the efficiency of network confirmation message processing.

[0092] S2085: Determine whether the second duration has been reached.

[0093] In this embodiment, when it is determined that the second time period has not been reached, step S2082 is executed; when it is determined that the second time period has been reached, step S2086 is executed. In this way, the second module is controlled to periodically determine whether to obtain a network confirmation message at intervals of the second time period.

[0094] S2086: Determine whether the network confirmation messages of each vehicle-mounted functional module in the module group of interest are obtained.

[0095] In this embodiment, when it is determined that the network confirmation messages of each vehicle-mounted functional module in the module group of interest have not been obtained, step S2087 is executed; when it is determined that the network confirmation messages of each vehicle-mounted functional module in the module group of interest have been obtained, step S2088 is executed.

[0096] That is to say, in this embodiment, the network confirmation message can be received in real time, which can reduce the risk of network congestion. Moreover, when a cycle of the second time length is reached, it is confirmed whether the network confirmation messages of each vehicle-mounted functional module in the module group of interest have been obtained, thereby improving the efficiency of confirming the vehicle-mounted functional modules with the risk of abnormal network status.

[0097] S2087: Clear the network status identifier in the module group of interest.

[0098] In this embodiment, in response to identifying the network status of each vehicle-mounted functional module in the module group of interest within a preset period, it can be considered that the network status of each vehicle-mounted functional module in the module group of interest is normal, and the network status identification in the module group of interest can be cleared to obtain and identify the network confirmation message of the next period, which can improve each period. For example, the status of each vehicle-mounted functional module in the ECU status list can be cleared.

[0099] S2088: Allow the second module to feedback an abnormal signal.

[0100] In this embodiment, in response to the fact that the network confirmation messages of each vehicle-mounted functional module in the module group of interest have not been obtained, it can be considered that the second module has a risk of abnormal network status, so it is allowed to determine that the network of the first module is abnormal, so as to allow the second module to feedback an abnormal signal. As described in the example above, abnormal information can be fed back when the network confirmation message is not received; or, the cumulative number of times the network confirmation message is not received can be checked. The following example describes the implementation method of checking whether the cumulative number of times reaches the first threshold.

[0101] See also Figure 4 , Figure 4 It is a flowchart of an embodiment of the present application for determining whether the first module has a network abnormality.

[0102] S2091: Create an exception attention thread.

[0103] In this embodiment, a thread is the smallest unit that the operating system can schedule operations on. It is contained in a process and is the actual operation unit in the process. A thread refers to a single sequential control flow in a process. Multiple threads can run concurrently in a process, and each thread executes different tasks in parallel.

[0104] In this embodiment, a thread may be created separately to monitor the network status of the first module, namely, an abnormality concern thread. In other words, the abnormality concern thread is used to monitor the network status of the first module that has a risk of abnormal network status.

[0105] S2092: Control the second module to send an abnormal feedback message to the first module.

[0106] In this embodiment, in response to the preset port not receiving the network confirmation message of the first module, the second module can be controlled to query the bus address of the first module. The second module is instructed to generate an abnormal feedback message. The abnormal feedback message is used to feedback the information that the first module did not receive the network confirmation message. The abnormal feedback message is sent to the bus address of the first module through the controller bus.

[0107] That is to say, in this embodiment, when the network confirmation message sent by the first module is not received, it can be considered that the first module has a risk of network abnormality, so it is chosen to feedback abnormal information (i.e., abnormal feedback message) to it through the bus. Compared with the implementation method of feeding back the abnormal feedback message to the first module through the vehicle network, this embodiment is designed to fully consider the situation where the first module cannot receive information due to abnormal network status, so as to reduce the risk of the first module being unable to receive abnormal feedback messages, thereby improving the effectiveness of abnormal information feedback and further improving the reliability of the vehicle network.

[0108] In other words, using bus messages such as the Controller Area Network (CAN) to transmit network link information can fully utilize the communication links between vehicle-mounted functional modules for information complementarity, which can increase the accuracy of locating network problems, thereby helping to improve the reliability of the basis provided for subsequent network recovery, so as to help narrow the scope of impact of network recovery.

[0109] S2093: Monitor the abnormal feedback message fed back by the second module through the abnormal attention thread.

[0110] In this embodiment, when the abnormality attention thread detects the abnormality of the network status of the first module, it can monitor the abnormal feedback message fed back by the second module to represent the cumulative number of times that the network confirmation message of the first module was not received in the previous text through the number of abnormal feedback messages.

[0111] Furthermore, in this embodiment, taking into account that when there is a risk of abnormal network status in the first module, abnormal feedback messages may be received from multiple other vehicle-mounted functional modules, abnormal monitoring threads can be created separately to monitor the abnormal feedback messages of different vehicle-mounted functional modules respectively; alternatively, abnormal feedback messages within a cycle can be monitored by one abnormal monitoring thread, and the number of abnormal feedback messages received within a cycle is counted as one. Other implementation methods will not be described in detail here.

[0112] S2094: Determine whether the accumulated number of abnormal feedback messages is one.

[0113] In this embodiment, when it is determined that the accumulated number of abnormal feedback messages is one, step S2095 is executed; when it is determined that the accumulated number of abnormal feedback messages is not one, step S2096 is executed.

[0114] S2095: Create a timer of a third duration.

[0115] In this embodiment, in response to the cumulative number of abnormal feedback messages being one, it can be considered that the first module normally feeds back network confirmation messages in the forward moment, so a timer of the third duration can be created and started to obtain the frequency of the first module failing to feed back network confirmation messages within the third duration.

[0116] At the same time, as described in the above example, the third duration can be independently timed. When the third duration is reached, the frequency of the first module not sending the network confirmation message is evaluated, or certain steps can be performed as in this embodiment to determine whether the timing of the third duration is completed, which is not limited here.

[0117] S2096: Count the cumulative number of abnormal feedback messages fed back by the second module.

[0118] In this embodiment, in response to determining that the cumulative number of abnormal feedback messages is not one time, it can be considered that the timer of the third duration has been created and started, and the situation of not feeding back the network confirmation message has occurred within the timing period of the third duration. Therefore, the cumulative number of abnormal feedback messages of the second module can be accumulated, so that the frequency of the first module not sending the network confirmation message can be evaluated by using the cumulative number of abnormal feedback messages.

[0119] S2097: Determine whether the third duration has been reached.

[0120] In this embodiment, when it is determined that the third time period has not been reached, step S2093 is executed; when it is determined that the third time period has been reached, step S2098 is executed.

[0121] S2098: Determine whether the accumulated quantity is higher than a preset value.

[0122] In this embodiment, when the cumulative number is higher than the preset value, it can be considered that the second module is allowed to feedback an abnormal signal, and the first module network is determined to be abnormal, and step S210 is executed to trigger network processing of the first module. When the cumulative number is not higher than the preset value, step S2099 is executed.

[0123] If so, the abnormality attention thread can be controlled to monitor whether the first module sends a network confirmation message to count the feedback frequency of the abnormality feedback message.

[0124] S2099: The accumulated number of abnormal feedback messages is cleared.

[0125] In this embodiment, in response to the cumulative number within the third time period being higher than the preset value, it can be considered that the feedback frequency is higher than the second threshold, and the second threshold represents the frequency of allowing abnormal feedback messages to be fed back, so it is determined to trigger network abnormality processing.

[0126] In an alternative embodiment, the feedback frequency of the abnormal feedback message may also be calculated, and the calculation period may also be the operation period of the current Internet of Vehicles system, etc., which is not limited here.

[0127] It can be seen that in this embodiment, each on-board functional module actively monitors the network confirmation message of the on-board functional module to confirm the network status. When it is found that the periodic broadcast message of other on-board functional modules is interrupted, that is, after obtaining the abnormality of the network node, the specified CAN message can be sent to the problematic on-board functional module to activate the network status. After receiving the abnormal network CAN message, the problematic on-board functional module can confirm the problem end according to a certain algorithm, which is conducive to accurately locating the cause of the network problem and performing subsequent network recovery in a targeted manner. In this way, in this embodiment, the self-checking, self-inspection and self-recovery method of the network status of the on-board functional module in the related technology can be upgraded to a method of mutual inspection of the surrounding nodes, and the CAN bus connection can be fully utilized at the same time to transmit network information through CAN messages, so as to provide more automatic diagnosis and reliable basis for subsequent network reset.

[0128] See also Figure 5 , Figure 5 It is a flowchart of an embodiment of network exception processing of the present application.

[0129] S2101: Control the network detector to select the vehicle-mounted function module to perform network status self-test.

[0130] In this embodiment, in response to determining that the network of the first module is abnormal, the network status of the first module can be confirmed. For example, after the vehicle and / or the Internet of Vehicles system is started, the exception handling program can be automatically started, and the exception handling program detects the abnormal signal fed back by the second module, and the network status can be confirmed using a network detector. For example, the network detector can be an Internet Packet Groper (ping), etc., which can specify an ECU node to perform a network status self-test.

[0131] S2102: Determine whether the network status self-test has passed.

[0132] In this embodiment, when it is determined that the network status self-test has passed, it can be considered that the cause of the network abnormality of the first module has been eliminated, and the process ends, and the first module is instructed to periodically send a network confirmation message to the second module at a first time interval. When it is determined that the network status self-test has not passed, step S2103 is executed to further perform network abnormality processing on the first module.

[0133] Taking ping as an example, when the network status self-test is performed by pinging the designated ECU node, if the self-test is successful, it can be considered that the network status of the first module is normal or has been restored. When the network status is passed, the bus message can be further fed back to synchronize the information that the first module has passed the network status self-test.

[0134] S2103: Obtain the current network configuration items of the first module.

[0135] In this embodiment, in response to the abnormality of the network status self-test, it can be considered that the abnormality of the network status of the first module may be due to the change of the network configuration item, and it is determined that the network configuration item detection can be performed on the first module. Therefore, the current network configuration item of the first module can be obtained to perform the network configuration item detection.

[0136] S2104: Compare the current network configuration item of the first module with the preset configuration item to see whether they match.

[0137] In this embodiment, the preset configuration item represents the default value configured in advance for the network configuration item. Generally, the vehicle-mounted functional module can operate reliably when the network configuration items are all preset configuration items. In this embodiment, it is considered that during the operation of the vehicle-mounted functional module, the preset configuration item of the network configuration item may be modified to form the current network configuration item due to reasons such as interaction requirements and user individual requirements.

[0138] When the current network configuration item of the first module does not match the preset configuration item, it can be considered that the reason for the abnormal network status of the first module is the change of the network configuration item, and step S2105 is executed; when the current network configuration item of the first module matches the preset configuration item, step S2106 is executed.

[0139] S2105: Update the current network configuration item with the preset configuration item.

[0140] In this embodiment, in response to the current network configuration item not matching the preset configuration item, the current network configuration item is updated with the preset configuration item. In this way, the network recovery of the first module can be attempted without resetting the network, and when the network state of the vehicle-mounted function module is abnormal due to the change of the network configuration item, the network recovery of the vehicle-mounted function module is completed, thereby improving the network recovery efficiency and reducing the risk of excessive network reset.

[0141] Optionally, network configuration items that are different from the current network configuration items and the preset configuration items may be updated to improve network recovery efficiency. Alternatively, the current network configuration items may all be updated with the preset configuration items to reduce the amount of calculation for locating the network configuration items.

[0142] S2106: Control and restart the vehicle network.

[0143] In this embodiment, in response to the current network configuration item of the first module matching the preset configuration item, a network reset process may be performed to control the restart of the network module.

[0144] Furthermore, after step S2105 is executed, the network status of the first module may be checked. In response to determining that the network of the first module is abnormal, it may be considered that the updated network configuration item is not effective, so step S2106 is executed to further attempt network recovery.

[0145] In response to the current network configuration item matching the preset configuration item, controlling restarting the vehicle network.

[0146] That is to say, in this embodiment, the network is not directly reset, which is a time-consuming recovery method of restarting. Instead, the network abnormality information is obtained and a certain algorithm is used to eliminate possible problem points one by one to achieve automation of network reset, effectively reduce the long time spent on restarting and resetting, and reduce the occurrence of invalid restarting and resetting due to incorrect positioning of the problem node.

[0147] In summary, the vehicle networking method of the present application has the advantages of a wider scope of application, making full use of the connection method of the vehicle-mounted functional modules to discover and feedback network anomalies, and completing network recovery by combining software and hardware.

[0148] It should be understood that although Figure 1-Figure 5 The steps in the flowchart are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, Figure 1-Figure 5At least part of the steps may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be executed in turn or alternately with other steps or at least part of the sub-steps or stages of other steps.

[0149] Please refer to Figure 6 as well as Figure 7 , Figure 6 is a structural schematic diagram of an embodiment of a vehicle of the present application, Figure 7 It is a structural diagram of an embodiment of the vehicle-mounted functional module of the present application.

[0150] In one embodiment, a vehicle includes a vehicle body 10 and a vehicle networking system 20 .

[0151] The vehicle may be an electric vehicle, an oil-driven vehicle, a hybrid vehicle, a gas vehicle, etc. The vehicle body 10 is a collection of structures required to realize the vehicle's driving function. For example, the vehicle body 10 may include basic structures required for the vehicle form, such as a power structure (generator and / or engine, etc.), an electrical structure, a chassis, a body, etc.

[0152] The vehicle body 10 may also be provided with a controller area network (CAN) bus 11 and a vehicle gateway module 12 .

[0153] In this embodiment, the vehicle body 10 is further provided with an on-board functional module. The vehicle networking system 20 is provided in the vehicle body 10. In combination with the above-described implementation, the first module can send a network confirmation message to the second module through the on-board network formed by the vehicle gateway module 12, and the second module can send an abnormal feedback message to the first module through the controller local area network bus 11.

[0154] like Figure 7 As shown in the example, the vehicle-mounted functional modules may include a transmission control module 13 (TCAM), an in-vehicle infotainment system 14 (In-Vehicle Infotainment, IVI), an autonomous driving controller 15 (Autonomous Driving Control Unit, ADCU), etc.

[0155] That is to say, vehicle-mounted functional modules such as vehicle-mounted communication terminals, vehicle-mounted entertainment system terminals, automatic driving controllers and other in-vehicle controllers can be connected to the vehicle gateway module through the vehicle-mounted Ethernet, and bridged through the gateway module to achieve network connection between the vehicle-mounted functional modules in the vehicle. Each vehicle-mounted functional module can also be regarded as an ECU node. At the same time, each vehicle-mounted functional module as an ECU node can also be connected to the CAN bus, and has the ability to exchange information with the isomorphic CAN bus.

[0156] The working principle of the vehicle networking system 20 is as described in the vehicle networking method above. The specific structure of the vehicle networking system 20 is described below with examples.

[0157] See also Figure 8 , Figure 8 It is a structural diagram of an embodiment of the vehicle networking system of the present application.

[0158] In one embodiment, the Internet of Vehicles system 20 includes a network module 21 and a management module 22 .

[0159] The network module 21 is used to construct the vehicle network. Optionally, the network module 21 may include a vehicle gateway module 12 (such as Figure 7 ), and may further include a controller area network bus 11.

[0160] The management module 22 is connected to the network module 21, and is used to connect the vehicle-mounted functional module to the vehicle-mounted network; wherein the vehicle-mounted functional module includes a first module and a second module; controls the first module to send a network confirmation message to the second module; in response to the second module not receiving the network confirmation message, determines that the first module network is abnormal.

[0161] It can be seen that this embodiment can be applicable to different electronic architecture designs, and can be applicable to the direct connection between the existing known vehicle-mounted communication terminal and the vehicle-mounted entertainment system. It can also be applicable to the hardware layout of the bridge method through the vehicle gateway module to adapt to various network layout changes. When it has network access capability and simple algorithm and data processing capabilities, the network status can be confirmed.

[0162] See also Fig. 9 , Fig. 9 It is a structural diagram of another embodiment of the vehicle networking system of the present application.

[0163] In one embodiment, the Internet of Vehicles system 20 further includes a recovery module 23 .

[0164] The recovery module 23 is connected to the management module 22, and is used to obtain the current network configuration item of the first module; compare the current network configuration item with the preset configuration item of the first module; in response to the current network configuration item not matching the preset configuration item, update the preset configuration item with the current network configuration item.

[0165] Furthermore, after comparing the current network configuration item with the preset configuration item of the first module, the vehicle network can be restarted in response to the current network configuration item matching the preset configuration item. And / or, before obtaining the current network configuration item of the first module, the network detector can be controlled to select the vehicle function module to perform network status self-test; in response to the network status self-test being abnormal, it is determined to perform network configuration item detection on the first module.

[0166] For the specific definition of the Internet of Vehicles system, please refer to the definition of the Internet of Vehicles method above, which will not be repeated here. Each module in the above Internet of Vehicles system can be implemented in whole or in part by software, hardware and a combination thereof. The above modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.

[0167] In one embodiment, a computer program product is provided, including a computer program. When the computer program is executed by a processor, the steps of the vehicle networking system method described above are implemented, which will not be described in detail here.

[0168] See also Fig.10 , Fig.10 It is a structural diagram of an embodiment of a computer device of the present application.

[0169] In one embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as shown in FIG. Fig.10 As shown in the example.

[0170] The computer device includes a processor, a memory, a network interface, a display screen and an input device connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a method for connecting to a vehicle network is implemented. The display screen of the computer device can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covering the display screen, or a key, trackball or touchpad set on the housing of the computer device, or an external keyboard, touchpad or mouse, etc.

[0171] Those skilled in the art will understand that Fig.10 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0172] In one embodiment, a computer device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the following steps when executing the computer program:

[0173] S101: Build the vehicle network.

[0174] S102: Connecting the vehicle-mounted functional module to the vehicle-mounted network; wherein the vehicle-mounted functional module includes a first module and a second module.

[0175] S103: Control the first module to send a network confirmation message to the second module.

[0176] S104: In response to the abnormal signal fed back by the second module, determining that the network of the first module is abnormal.

[0177] In one embodiment, after controlling the first module to send a network confirmation message to the second module, the processor further implements the following steps when executing the computer program: controlling the second module to monitor its preset port; determining whether the preset port obtains the network confirmation message; controlling the second module to feedback an abnormal signal in response to the preset port not receiving the network confirmation message from the first module.

[0178] In one embodiment, when an abnormal signal is fed back, the processor further implements the following steps when executing the computer program: accumulating the cumulative number of times that the network confirmation message of the first module is not obtained; comparing the cumulative number with a first threshold; wherein the first threshold represents the number of times that the network confirmation message of the first module is not obtained; in response to the cumulative number being higher than the first threshold, allowing the abnormal signal to be fed back.

[0179] In one embodiment, the vehicle-mounted functional module is also connected to the controller bus; in response to the preset port not receiving the network confirmation message of the first module, the processor also implements the following steps when executing the computer program: controlling the second module to query the bus address of the first module; instructing the second module to generate an exception feedback message, and sending the exception feedback message to the bus address of the first module through the controller bus.

[0180] In one embodiment, after instructing the second module to generate an exception feedback message, the processor further implements the following steps when executing the computer program: creating an exception attention thread; controlling the exception attention thread to monitor whether the first module sends a network confirmation message, and counting the feedback frequency of the exception feedback message; in response to the feedback frequency being higher than a second threshold, determining to trigger network exception processing; wherein the second threshold represents the frequency at which the exception feedback message is allowed to be fed back.

[0181] In one embodiment, when the first module is controlled to send a network confirmation message to the second module, the processor also implements the following steps when executing the computer program: controlling the first module to periodically broadcast the network confirmation message at a first time interval to enable the second module to monitor the network confirmation message; controlling the second module to periodically determine whether to obtain the network confirmation message at a second time interval; and in response to obtaining the network confirmation message, determining that the network of the first module is normal.

[0182] In one embodiment, after controlling the first module to send a network confirmation message to the second module, the processor also implements the following steps when executing the computer program: controlling the second module to identify the module identifier carried by the network confirmation message; in response to the module identifier existing in the module group of interest of the second module, causing the second module to receive the network confirmation message and identify the network status of the matched vehicle-mounted functional modules in the module group of interest; in response to identifying the network status of each vehicle-mounted functional module in the module group of interest within a preset period, clearing the network status identifier in the module group of interest.

[0183] In one embodiment, after determining that the network of the first module is abnormal, the processor further implements the following steps when executing the computer program: obtaining the current network configuration item of the first module; comparing the current network configuration item with the preset configuration item of the first module; in response to the current network configuration item not matching the preset configuration item, updating the preset configuration item with the current network configuration item.

[0184] In one embodiment, after comparing the current network configuration item with the preset configuration item of the first module, the processor further implements the following steps when executing the computer program: in response to the current network configuration item matching the preset configuration item, controlling the restart of the vehicle network; and / or, before obtaining the current network configuration item of the first module, also includes: controlling the network detector to select the vehicle function module to perform a network status self-test; in response to an abnormality in the network status self-test, determining to perform a network configuration item test on the first module.

[0185] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:

[0186] S101: Build the vehicle network.

[0187] S102: Connecting the vehicle-mounted functional module to the vehicle-mounted network; wherein the vehicle-mounted functional module includes a first module and a second module.

[0188] S103: Control the first module to send a network confirmation message to the second module.

[0189] S104: In response to the abnormal signal fed back by the second module, determining that the network of the first module is abnormal.

[0190] In one embodiment, after controlling the first module to send a network confirmation message to the second module, the computer program further implements the following steps when executed by the processor: controlling the second module to monitor its preset port; determining whether the preset port obtains the network confirmation message; controlling the second module to feedback an abnormal signal in response to the preset port not receiving the network confirmation message from the first module.

[0191] In one embodiment, when an abnormal signal is fed back, the computer program further implements the following steps when executed by the processor: accumulating the cumulative number of times that the network confirmation message of the first module is not obtained; comparing the cumulative number with a first threshold; wherein the first threshold represents the number of times that the network confirmation message of the first module is not obtained; in response to the cumulative number being higher than the first threshold, allowing the abnormal signal to be fed back.

[0192] In one embodiment, the vehicle-mounted functional module is also connected to the controller bus; in response to the preset port not receiving the network confirmation message of the first module, the computer program also implements the following steps when executed by the processor: controlling the second module to query the bus address of the first module; instructing the second module to generate an exception feedback message, and sending the exception feedback message to the bus address of the first module through the controller bus.

[0193] In one embodiment, after instructing the second module to generate an exception feedback message, the computer program further implements the following steps when executed by the processor: creating an exception attention thread; controlling the exception attention thread to monitor whether the first module sends a network confirmation message, and counting the feedback frequency of the exception feedback message; in response to the feedback frequency being higher than a second threshold, determining to trigger network exception processing; wherein the second threshold represents the frequency at which the exception feedback message is allowed to be fed back.

[0194] In one embodiment, when the first module is controlled to send a network confirmation message to the second module, the computer program also implements the following steps when executed by the processor: control the first module to periodically broadcast the network confirmation message at a first time interval to enable the second module to monitor the network confirmation message; control the second module to periodically determine whether to obtain the network confirmation message at a second time interval; in response to obtaining the network confirmation message, determine that the network of the first module is normal.

[0195] In one embodiment, after controlling the first module to send a network confirmation message to the second module, the computer program also implements the following steps when executed by the processor: controlling the second module to identify the module identifier carried by the network confirmation message; in response to the module identifier existing in the focus module group of the second module, enabling the second module to receive the network confirmation message and identify the network status of the matched vehicle-mounted functional modules in the focus module group; in response to identifying the network status of each vehicle-mounted functional module in the focus module group within a preset period, clearing the network status identifier in the focus module group.

[0196] In one embodiment, after determining that the network of the first module is abnormal, the computer program further implements the following steps when executed by the processor: obtaining the current network configuration item of the first module; comparing the current network configuration item with the preset configuration item of the first module; in response to the current network configuration item not matching the preset configuration item, updating the preset configuration item with the current network configuration item.

[0197] In one embodiment, after comparing the current network configuration item with the preset configuration item of the first module, the computer program further implements the following steps when executed by the processor: in response to the current network configuration item matching the preset configuration item, controlling the restart of the vehicle network; and / or, before obtaining the current network configuration item of the first module, also includes: controlling the network detector to select the vehicle function module to perform a network status self-test; in response to an abnormality in the network status self-test, determining to perform a network configuration item test on the first module.

[0198] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).

[0199] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0200] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for ordinary technicians in this field, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application.

Claims

1. A vehicle networking method, characterized in that: The vehicle networking method comprises: Build vehicle networks; Connecting the vehicle-mounted function module to the vehicle-mounted network; wherein the vehicle-mounted function module includes a first module and a second module; Controlling the first module to send a network confirmation message to the second module; In response to the abnormal signal fed back by the second module, it is determined that the network of the first module is abnormal.

2. The vehicle networking method according to claim 1, characterized in that: The controlling the first module to send a network confirmation message to the second module includes: Controlling the second module to monitor its preset port; Determine whether the preset port obtains the network confirmation message; The second module is controlled to feedback the abnormal signal in response to the preset port not receiving the network confirmation message of the first module.

3. The vehicle networking method according to claim 2, characterized in that: The feedback of the abnormal signal includes: The cumulative number of times the network confirmation message of the first module is not obtained; Compare the accumulated number with a first threshold; wherein the first threshold represents the number of times that the network confirmation message of the first module is not obtained; In response to the accumulated number being higher than the first threshold, feeding back the abnormal signal is allowed.

4. The vehicle networking method according to claim 2, characterized in that: The vehicle-mounted functional module is also connected to the controller bus; After the preset port does not receive the network confirmation message of the first module, the method further includes: Controlling the second module to query the bus address of the first module; Instruct the second module to generate an exception feedback message, and send the exception feedback message to the bus address of the first module through the controller bus.

5. The vehicle networking method according to claim 4, characterized in that: After the second module is instructed to generate an abnormal feedback message, the method further includes: Create an exception attention thread; Controlling the abnormality attention thread to monitor whether the first module sends the network confirmation message, and counting the feedback frequency of the abnormality feedback message; In response to the feedback frequency being higher than a second threshold, it is determined that network abnormality processing is triggered; wherein the second threshold represents a frequency at which the abnormal feedback message is allowed to be fed back.

6. The vehicle networking method according to claim 1, characterized in that: The controlling the first module to send a network confirmation message to the second module comprises: Controlling the first module to periodically broadcast the network confirmation message at a first time interval, so as to enable the second module to monitor the network confirmation message; The second module is controlled to periodically determine whether to obtain the network confirmation message at intervals of a second time length; in response to obtaining the network confirmation message, it is determined that the network of the first module is normal.

7. The vehicle networking method according to claim 1, characterized in that: The controlling the first module to send a network confirmation message to the second module includes: Controlling the second module to identify the module identifier carried by the network confirmation message; In response to the module identifier being present in the module group of interest of the second module, causing the second module to receive the network confirmation message to identify the network status of the vehicle-mounted functional module matched in the module group of interest; In response to identifying the network status of each of the vehicle-mounted functional modules in the module group of interest within a preset period, the network status identification in the module group of interest is cleared.

8. The vehicle networking method according to claim 1, characterized in that: After determining that the first module network is abnormal, the method further includes: Obtaining the current network configuration items of the first module; Comparing the current network configuration item with the preset configuration item of the first module; In response to the current network configuration item not matching the preset configuration item, the preset configuration item is updated with the current network configuration item.

9. The vehicle networking method according to claim 8, characterized in that: After comparing the current network configuration item with the preset configuration item of the first module, the method further includes: In response to the current network configuration item matching the preset configuration item, controlling to restart the vehicle network; and / or, Before obtaining the current network configuration item of the first module, the method further includes: Controlling the network detector to select the vehicle-mounted function module to perform network status self-test; In response to a network status self-test being abnormal, it is determined to perform a network configuration item test on the first module.

10. A vehicle networking system, characterized in that: The vehicle networking system includes: Network module, used to build vehicle network; A management module is connected to the network module and is used to connect the vehicle-mounted function module to the vehicle-mounted network; wherein the vehicle-mounted function module includes a first module and a second module; controls the first module to send a network confirmation message to the second module; in response to the second module not receiving the network confirmation message, determines that the network of the first module is abnormal.

11. The vehicle networking system according to claim 10, characterized in that: The vehicle networking system further includes: A recovery module is connected to the management module and is used to obtain a current network configuration item of the first module; compare the current network configuration item with a preset configuration item of the first module; and in response to the current network configuration item not matching the preset configuration item, update the preset configuration item with the current network configuration item.

12. A vehicle, characterized in that: The vehicle comprises: The vehicle body is provided with an on-board functional module; The vehicle networking system as described in any one of claims 10 to 11 is arranged in the vehicle body.

13. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the vehicle networking method described in any one of claims 1 to 9 are implemented.

14. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the vehicle networking method described in any one of claims 1 to 9 are implemented.