Multi-machine hot standby vehicle-mounted communication equipment communication method, system, equipment and medium
By adopting a multi-machine hot standby communication method in vehicle communication equipment, using backup machines to process data and write it to a remote database, the problem of data loss caused by failure of vehicle communication equipment is solved, and data security and system reliability are improved.
Patent Information
- Application Number
- CN202510350907.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-24
- Publication Date
- 2025-06-10
AI Technical Summary
When existing vehicle-mounted communication equipment fails or hardware damage, the stored data is easily lost, reducing the security of the data.
Using a multi-machine hot standby communication method, by identifying the standby machine in the on-board communication device network, establishing a session with it and maintaining a heartbeat, the pending service data is written into the remote dictionary service database.
It effectively improves the security and reliability of data, avoids data loss caused by host failure, and reduces the risk of complete system paralysis.
Smart Images

Figure CN120128898A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the technical field of vehicles, and particularly to a communication method, system, device and medium for a multi-machine hot standby vehicle-mounted communication device. Background Art
[0002] V2X (Vehicle-to-Everything) is a technical concept for information interaction between vehicles and the outside world, including communication between vehicles and vehicles (V2V), vehicles and infrastructure (V2I), vehicles and people (V2P), and vehicles and networks (V2N). The vehicle-mounted communication device (Telematics Box, TBOX) is a key component in the vehicle networking system, which can enable the vehicle to access the Internet and interact with other devices.
[0003] Currently, vehicle-mounted communication devices are all in a single-machine environment. In the case of a failure or hardware damage of the vehicle-mounted communication device, the data stored in the vehicle-mounted communication device will be lost, reducing the security of the data. Summary of the Invention
[0004] This application provides a communication method, system, device and medium for a multi-machine hot standby vehicle-mounted communication device, which can improve the security of data.
[0005] To achieve the above object, this application adopts the following technical solutions: In a first aspect, this application provides a communication method for a multi-machine hot standby vehicle-mounted communication device, which is applicable to the host of the vehicle-mounted communication device and includes: When starting, configure the role as the host; identify the vehicle-mounted communication device network; When the vehicle-mounted communication device network includes a standby machine of the vehicle-mounted communication device, establish a session with the standby machine of the vehicle-mounted communication device; When a session is established with the standby machine of the vehicle-mounted communication device, keep a heartbeat with the standby machine of the vehicle-mounted communication device; Obtain the service data to be processed; Process the service data to be processed; Write the service data to be processed into the remote dictionary service database.
[0006] Optionally, the step of identifying whether the vehicle-mounted communication device network includes a standby machine of the vehicle-mounted communication device includes: Send an initial communication signal to the standby machine of the vehicle-mounted communication device; When an initial communication response signal is received, determine that the vehicle-mounted communication device network includes a standby machine of the vehicle-mounted communication device.
[0007] Optionally, establishing a session with the standby machine of the vehicle-mounted communication device specifically includes: Send a session establishment request to the standby device of the vehicle-mounted communication device, where the session establishment request includes the ID of the host of the vehicle-mounted communication device; Receive a session establishment response signal; the session establishment response signal includes the ID of the standby device of the vehicle-mounted communication device; When the ID of the standby device of the vehicle-mounted communication device is legal, establish a session with the standby device of the vehicle-mounted communication device.
[0008] Optionally, in the case of startup, it further includes: Obtain the configuration information of the host of the vehicle-mounted communication device; Write the configuration information into the database so that the standby device of the vehicle-mounted communication device subscribes to the configuration information in the database and completes the configuration.
[0009] In a second aspect, the present application provides a communication method for a multi-machine hot standby vehicle-mounted communication device, which is applicable to the standby device of the vehicle-mounted communication device and includes: In the case of startup, configure the role as the standby device and identify the vehicle-mounted communication device network; When the vehicle-mounted communication device network includes the host of the vehicle-mounted communication device, establish a session with the host of the vehicle-mounted communication device; When a session is established with the host of the vehicle-mounted communication device, keep a heartbeat with the host of the vehicle-mounted communication device; Read the service data to be processed from the remote dictionary service database.
[0010] Optionally, the step of identifying whether the vehicle-mounted communication device network includes the host of the vehicle-mounted communication device includes: When receiving the initial communication signal sent by the host of the vehicle-mounted communication device, determine that the vehicle-mounted communication device network includes the host of the vehicle-mounted communication device.
[0011] Optionally, establishing a session with the host of the vehicle-mounted communication device specifically includes: Receive the session establishment request sent by the host of the vehicle-mounted communication device, where the session establishment request includes the ID of the host of the vehicle-mounted communication device; When the ID of the host of the vehicle-mounted communication device is legal, send a session establishment response signal to the host of the vehicle-mounted communication device and establish a session with the host of the vehicle-mounted communication device.
[0012] Optionally, the method further includes: When it is recognized that the original host of the vehicle-mounted communication device in the vehicle-mounted communication device network fails, modify the role to the host; Process the service data to be processed; When it is recognized that the original host of the vehicle-mounted communication device in the vehicle-mounted communication device network is freed from the fault, modify the role to the standby device.
[0013] Optionally, The recognized faults of the original vehicle-mounted communication device host in the vehicle-mounted communication device network include: In the case of disconnecting the heartbeat from the vehicle-mounted communication device host, it is determined that the original vehicle-mounted communication device host has a fault.
[0014] Thirdly, the present application provides a multi-machine hot standby vehicle-mounted communication device communication system, including a vehicle-mounted communication device host and a vehicle-mounted communication device standby; The vehicle-mounted communication device host is configured to execute the method described in any one of the first aspect; The vehicle-mounted communication device standby is configured to execute the method described in any one of the second aspect; The remote dictionary service database is used to receive the service data to be processed written by the vehicle-mounted communication device host and provide the service data to be processed to the vehicle-mounted communication device standby.
[0015] Fourthly, the present application provides a computing device, including a memory and a processor; Wherein, one or more computer programs are stored in the memory, and the one or more computer programs include instructions; when the instructions are executed by the processor, the computing device is enabled to execute the method described in any one of the first aspect or the second aspect.
[0016] Fifthly, the present application provides a computer-readable storage medium, and the computer-readable storage medium is used to store a computer program, and the computer program is used to execute the method described in any one of the first aspect or the second aspect.
[0017] From the above technical solutions, it can be seen that the present application has at least the following beneficial effects: The present application provides a vehicle-mounted communication device communication method based on multi-machine hot standby. This method can be applied to the vehicle-mounted communication device host. By identifying the vehicle-mounted communication device standby in the vehicle-mounted communication device network, establishing a session with it and maintaining a heartbeat, when the vehicle-mounted communication device host fails or the hardware is damaged, due to the participation of the standby and writing the service data to be processed into the remote dictionary service database, the data will not be lost due to the problem of the vehicle-mounted communication device host, effectively improving the security and reliability of the data and changing the situation where data is easily lost in the previous single-machine environment.
[0018] Furthermore, the vehicle-mounted communication device host establishes a session and a heartbeat mechanism with the vehicle-mounted communication device standby, enabling the system to have a certain fault tolerance. When the vehicle-mounted communication device host fails, the vehicle-mounted communication device standby can perceive the abnormality of the vehicle-mounted communication device host based on the session and heartbeat status, and then can take corresponding measures, such as taking over some functions of the vehicle-mounted communication device host, etc., to ensure that the system can continue to run to a certain extent and reduce the risk of the system being completely paralyzed due to the host failure.
[0019] It should be understood that the description of technical features, technical solutions, beneficial effects or similar language in this application does not imply that all features and advantages can be achieved in any single embodiment. On the contrary, it can be understood that the description of features or beneficial effects means that specific technical features, technical solutions or beneficial effects are included in at least one embodiment. Therefore, the description of technical features, technical solutions or beneficial effects in this specification does not necessarily refer to the same embodiment. Furthermore, the technical features, technical solutions and beneficial effects described in this embodiment can be combined in any appropriate manner. Those skilled in the art will understand that an embodiment can be implemented without one or more specific technical features, technical solutions or beneficial effects of a specific embodiment. In other embodiments, additional technical features and beneficial effects can also be identified in specific embodiments that do not embody all embodiments. Brief Description of the Drawings
[0020] Figure 1 A schematic diagram of an application scenario provided by an embodiment of this application; Figure 2 A flowchart of a communication method for a multi-machine hot standby vehicle-mounted communication device provided by an embodiment of this application; Figure 3 An architecture diagram of a multi-machine hot standby vehicle-mounted communication device provided by an embodiment of this application; Figure 4 A flowchart of another communication method for a multi-machine hot standby vehicle-mounted communication device provided by an embodiment of this application; Figure 5 A flowchart of yet another communication method for a multi-machine hot standby vehicle-mounted communication device provided by an embodiment of this application; Figure 6 A schematic diagram of a computing device provided by an embodiment of this application. Detailed Embodiments
[0021] The terms "first", "second", "third", etc. in the specification and drawings of this application are used to distinguish different objects, rather than to limit a specific order.
[0022] In the embodiments of this application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design solution described as "exemplary" or "for example" in the embodiments of this application should not be construed as being more preferred or having more advantages than other embodiments or design solutions. Rather, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific manner.
[0023] Such as Figure 1As shown in the figure, this is a schematic diagram of an application scenario provided by an embodiment of the present application. In this application scenario, it includes a first vehicle 101 and a second vehicle 102. Both the first vehicle 101 and the second vehicle 102 are equipped with on-vehicle communication devices, and data communication can be carried out between the on-vehicle communication device of the first vehicle 101 and the on-vehicle communication device of the second vehicle 102.
[0024] In some examples, the first vehicle 101 turns on the autonomous driving function and travels on the road. At this time, it encounters extreme weather (such as heavy rain, heavy snow or sandstorms). In this case, the autonomous driving function of the first vehicle 101 cannot operate normally and needs to rely on the over-the-horizon message provided by the second vehicle 102 ahead to ensure driving safety.
[0025] The basis for the first vehicle 101 to obtain the over-the-horizon message transmitted by the second vehicle 102 is that the on-vehicle communication device of the first vehicle 101 operates normally (without failure). Assume that in the above scenario, the on-vehicle communication device of the first vehicle 101 fails and cannot operate normally. The first vehicle 101 will not be able to obtain the over-the-horizon message transmitted by the second vehicle 102 in a timely manner, and thus will not be able to give an early warning based on this over-the-horizon message, which may lead to traffic accidents and increase the probability of traffic accidents. Moreover, current on-vehicle communication devices are all in a single-machine environment. In the case of a failure or hardware damage of the on-vehicle communication device, the data stored in the on-vehicle communication device will be lost, reducing the security of the data.
[0026] In view of this, an embodiment of the present application provides a multi-machine hot standby on-vehicle communication device communication method. This method can be executed by the on-vehicle communication device host, or by the on-vehicle communication device standby, or by the on-vehicle communication device host and the on-vehicle communication device standby in cooperation. The method includes: when the on-vehicle communication device host starts, identifying the on-vehicle communication device network. When the on-vehicle communication device network includes the on-vehicle communication device standby, establishing a session with the on-vehicle communication device standby. When a session is established with the on-vehicle communication device standby, maintaining a heartbeat with the on-vehicle communication device standby, obtaining the service data to be processed, and writing the service data to be processed into the remote dictionary server database. When the on-vehicle communication device host fails or the hardware is damaged, due to the participation of the standby and writing the service data to be processed into the remote dictionary service database, the data will not be lost due to the problem of the on-vehicle communication device host, effectively improving the security and reliability of the data and changing the situation where data is easily lost in the previous single-machine environment.
[0027] Furthermore, the host of the vehicle-mounted communication device establishes a session and a heartbeat mechanism with the standby of the vehicle-mounted communication device, enabling the system to have a certain fault tolerance. When the host of the vehicle-mounted communication device fails, the standby of the vehicle-mounted communication device can sense the abnormality of the host of the vehicle-mounted communication device based on the session and heartbeat status, and then can take corresponding measures, such as taking over some functions of the host of the vehicle-mounted communication device, etc., to ensure that the system can continue to run to a certain extent, reducing the risk of the system being completely paralyzed due to the host failure. That is, when the host of the vehicle-mounted communication device fails, the standby of the vehicle-mounted communication device processes the data transmitted to the server, and can thus timely learn about the road conditions ahead, and then make a response in advance, reducing the probability of traffic accidents.
[0028] To make the technical solution of the present application clearer and easier to understand, the following introduces a communication method for a multi-machine hot standby vehicle-mounted communication device provided in an embodiment of the present application with reference to the accompanying drawings.
[0029] As Figure 2 shown, the figure is a flowchart of a communication method for a multi-machine hot standby vehicle-mounted communication device provided in an embodiment of the present application. The method includes: S201. When the host of the vehicle-mounted communication device is started, configure the role as the host and identify the vehicle-mounted communication device network.
[0030] As Figure 3 shown, the figure is an architecture diagram of a multi-machine hot standby vehicle-mounted communication device provided in an embodiment of the present application. The multi-machine hot standby vehicle-mounted communication device includes a host 221 of the vehicle-mounted communication device and a standby 222 of the vehicle-mounted communication device. The host 221 of the vehicle-mounted communication device and the standby 222 of the vehicle-mounted communication device can communicate through Ethernet or through an in-vehicle network (CAN bus).
[0031] Taking the host 221 of the vehicle-mounted communication device as an example, the host 221 of the vehicle-mounted communication device 221 includes an operating system module 201, a communication protocol module 202, a far control module 203, a diagnosis and fault detection module 204, a data acquisition and processing module 205, an encryption and security module 206, a positioning module 207, a software upgrade module 208, an external network 209, and an in-vehicle network 210.
[0032] Among them, the operating system module 201: provides a running environment for other software modules, such as Linux, Android, etc. The communication protocol module 202: supports communication protocols with the external network 209 and the in-vehicle network 210. The external network 209 can be a 4G or 5G network, and the in-vehicle network 210 can be a CAN bus network. The communication protocol can be TCP / IP, MQTT, etc. The data acquisition and processing module 205: is responsible for obtaining data from vehicle sensors and controllers, and performing preprocessing and encoding. The encryption and security module 206: ensures the security and confidentiality of data transmission, and performs operations such as data encryption and identity authentication. The remote control module 203: parses instructions from a remote control platform (such as a TSP (Telematics Service Provider) platform) and converts them into control signals executable by the vehicle. The diagnosis and fault monitoring module 204: continuously monitors the working status of the in-vehicle communication device itself and the vehicle system, and promptly discovers and reports faults. The positioning module 207: obtains the position information of the vehicle, usually based on satellite positioning systems such as GPS and Beidou. The software upgrade module 208: supports online software upgrade of the in-vehicle communication device through the network to repair vulnerabilities or add new functions.
[0033] Among them, the standby in-vehicle communication device is similar to the main in-vehicle communication device and will not be elaborated in detail. The number of in-vehicle communication devices can also be more, not limited to 2. This application is only introduced by taking 2 in-vehicle communication devices as an example.
[0034] After the main in-vehicle communication device is started, the main in-vehicle communication device will judge its own role. If it is the main device, it will identify the in-vehicle communication device network. If it is the standby device, it will continuously listen and wait for the main device to send an initial communication signal. In some examples, the role can be configured as the main device in the following way: the main in-vehicle communication device sets the field ROLE=MASTER, and the hot standby module of the main in-vehicle communication device sends an instruction to the cellular network communication module to enable the data packet receiving function, so as to be able to receive service packets transmitted by the server, such as service packets carrying beyond visual range messages.
[0035] S202. When the in-vehicle communication device network includes a standby in-vehicle communication device, the main in-vehicle communication device establishes a session with the standby in-vehicle communication device.
[0036] When the in-vehicle communication device network includes a standby in-vehicle communication device, it indicates that the current is a dual-device environment. In this case, the main in-vehicle communication device can establish a session with the standby in-vehicle communication device, so as to realize data transmission and message passing between the main in-vehicle communication device and the standby in-vehicle communication device. Among them, the established session can refer to sessions for transmitting messages such as network sessions and message sessions.
[0037] S203. When establishing a session with the standby vehicle-mounted communication device, the host vehicle-mounted communication device and the standby vehicle-mounted communication device maintain a heartbeat.
[0038] When the host vehicle-mounted communication device establishes a session with the standby vehicle-mounted communication device, the host vehicle-mounted communication device may send the first keep-alive heartbeat message interval parameter to the standby vehicle-mounted communication device, so that the host vehicle-mounted communication device and the standby vehicle-mounted communication device send heartbeat messages according to the first keep-alive heartbeat message interval parameter.
[0039] When the host vehicle-mounted communication device and the standby vehicle-mounted communication device maintain a heartbeat, it can be determined that the host vehicle-mounted communication device and the standby vehicle-mounted communication device have not failed. Otherwise, it is considered that the host vehicle-mounted communication device or the standby vehicle-mounted communication device has failed.
[0040] Taking the standby vehicle-mounted communication device as an example, for example, the first keep-alive heartbeat message interval parameter is 20 milliseconds. The host vehicle-mounted communication device sends the first heartbeat message to the standby vehicle-mounted communication device once every 20 milliseconds. Therefore, the standby vehicle-mounted communication device can monitor the first heartbeat message. If the first heartbeat message sent by the host vehicle-mounted communication device is not received within 20 milliseconds, it indicates that the host vehicle-mounted communication device may have failed. Among them, setting the first keep-alive heartbeat message interval parameter to the millisecond level can improve the response efficiency of the standby device in the event of a host failure. The standby device can take over the business of the host at the millisecond level and become the new host, thereby reducing the risk of traffic accidents.
[0041] S204. The host vehicle-mounted communication device obtains the service data to be processed.
[0042] The host vehicle-mounted communication device obtains the service data to be processed. Among them, the service data to be processed may be a V2X service message. Among them, the V2X service message may refer to the payload in the V2X message. The host vehicle-mounted communication device may receive the V2X message transmitted by the server, and then extract the payload from the V2X message and encapsulate it into a V2X service message for internal use of the vehicle-mounted communication device.
[0043] The configuration information of the vehicle-mounted communication device includes power status, update protocol stack configuration, remote vehicle control configuration, diagnostic strategy, fault monitoring strategy, CAN data acquisition strategy, CAN data processing strategy, encryption algorithm configuration, positioning function strategy, software version upgrade strategy, and cellular network dialing configuration.
[0044] S205. The host vehicle-mounted communication device writes the service data to be processed into the remote dictionary service database.
[0045] After determining the service data to be processed, the host of the vehicle-mounted communication device can write the service data to be processed into the remote dictionary service database. In this remote dictionary service database, the key can be V2X_msg (message), and the value can be the payload of the message.
[0046] The host of the vehicle-mounted communication device can transmit the payload in the above V2X message to the in-vehicle terminal through in-vehicle Ethernet, so that the in-vehicle terminal can obtain the payload in the V2X message and provide it for use by the vehicle's driver assistance system, autonomous driving system, etc. For example, based on the payload in the received V2X message, the position and driving state of surrounding vehicles are judged, and operations such as collision warning and cooperative driving are performed.
[0047] In some embodiments, when the host of the vehicle-mounted communication device is not faulty, the standby of the vehicle-mounted communication device cannot process the first V2X message sent by the server. When the host of the vehicle-mounted communication device is faulty, the host of the vehicle-mounted communication device cannot process the first V2X message sent by the server. At this time, the standby of the vehicle-mounted communication device processes the first V2X message sent by the server. At this time, the role of the standby of the vehicle-mounted communication device will change, that is, the role of the standby of the vehicle-mounted communication device changes from standby to a new host. Exemplarily, after the standby of the vehicle-mounted communication device becomes the new host, it can broadcast a role update message, which is used to prompt other standby vehicle-mounted communication devices who the vehicle-mounted communication device host is currently, so as to facilitate the new host to establish a session with other standby vehicle-mounted communication devices and perform data transmission and backup.
[0048] In some embodiments, the first V2X message may carry warning information, such as a warning of road congestion ahead, a warning of a vehicle accident ahead, etc. When the host of the vehicle-mounted communication device is faulty, the standby of the vehicle-mounted communication device can process the warning information and send the warning information to the vehicle's driver assistance system, autonomous driving system, etc., so that these systems can perform collision warning, cooperative driving, etc. based on the above warning information.
[0049] In the embodiments of the present application, the host of the vehicle-mounted communication device identifies the standby device of the vehicle-mounted communication device in the vehicle-mounted communication device network, establishes a session with it and maintains a heartbeat. When the host of the vehicle-mounted communication device fails or the hardware is damaged, due to the participation of the standby device and the writing of the service data to be processed into the remote dictionary service database, the data will not be lost due to the problem of the host of the vehicle-mounted communication device, effectively improving the security and reliability of the data and changing the situation that data was easily lost in the previous single-machine environment. At the same time, the original standby device becomes the new host, and thus can continue to process the V2X service messages transmitted by the server, so as to be able to give an early warning of the accident ahead, and then reduce the probability of the accident occurring.
[0050] In some embodiments, the steps for the host of the vehicle-mounted communication device to identify whether the vehicle-mounted communication device network includes the standby device of the vehicle-mounted communication device include: the host of the vehicle-mounted communication device sends an initial communication signal to the standby device of the vehicle-mounted communication device, and determines that the vehicle-mounted communication device network includes the standby device of the vehicle-mounted communication device when receiving the initial communication response signal.
[0051] Among them, the initial communication signal can be a hello message or other handshake messages. The form of the host of the vehicle-mounted communication device sending the initial communication signal can be broadcast or other forms. After the host of the vehicle-mounted communication device sends the initial communication signal, during the process of waiting for the response of the standby device of the vehicle-mounted communication device, it will wait for a first preset duration, such as 3 minutes. Similarly, the standby device of the vehicle-mounted communication device will also wait for a first preset duration, such as 3 minutes, during the process of waiting for the initial communication signal sent by the host of the vehicle-mounted communication device.
[0052] After the standby device of the vehicle-mounted communication device receives the initial communication signal sent by the host of the vehicle-mounted communication device, the standby device of the vehicle-mounted communication device can determine that the current mode is the dual-machine mode. At this time, the standby device of the vehicle-mounted communication device can feedback an initial communication response signal to the host of the vehicle-mounted communication device to inform the host of the vehicle-mounted communication device that the standby device of the vehicle-mounted communication device has received the initial communication signal sent by the host of the vehicle-mounted communication device. In this way, the host of the vehicle-mounted communication device can also determine that the current mode is the dual-machine mode. Before this, the host of the vehicle-mounted communication device and the standby device of the vehicle-mounted communication device determine that the current mode is the single-machine mode. In the single-machine mode, if the vehicle-mounted communication device fails, the data security will be reduced and the risk of traffic accidents will increase. When the host of the vehicle-mounted communication device does not receive the initial communication response signal after sending the initial communication signal to the standby device of the vehicle-mounted communication device, it is determined that the current is a single-machine environment and the hot standby function cannot be used.
[0053] In some embodiments, the host of the vehicle-mounted communication device establishing a session with the standby vehicle-mounted communication device specifically includes: the host of the vehicle-mounted communication device sending a session establishment request to the standby vehicle-mounted communication device, where the session establishment request includes the ID of the host of the vehicle-mounted communication device. In some embodiments, this session establishment request may be a first negotiation message, and this first negotiation message carries the ID of the host of the vehicle-mounted communication device. After receiving the session establishment request sent by the host of the vehicle-mounted communication device, the standby vehicle-mounted communication device may determine whether the ID of the host of the vehicle-mounted communication device carried in the session establishment request is legal. When the ID of the host of the vehicle-mounted communication device is legal, the standby vehicle-mounted communication device feeds back a session establishment response signal to the host of the vehicle-mounted communication device, and this session establishment response signal includes the ID of the standby vehicle-mounted communication device.
[0054] Among them, the session establishment response signal may be a first negotiation response message, and this first negotiation response message carries the ID of the standby vehicle-mounted communication device. After receiving the session establishment response signal, the host of the vehicle-mounted communication device determines whether the ID of the standby vehicle-mounted communication device in this session establishment response signal is legal. When the ID of the standby vehicle-mounted communication device is legal, a session with the standby vehicle-mounted communication device is established.
[0055] Among them, the process by which the host of the vehicle-mounted communication device determines whether the ID of the standby vehicle-mounted communication device is legal may be: the host of the vehicle-mounted communication device pre-stores legal IDs. After receiving the ID of the standby vehicle-mounted communication device, the host of the vehicle-mounted communication device compares the ID of the standby vehicle-mounted communication device with these legal IDs. If a hit is found among the legal IDs, it indicates that the ID of the standby vehicle-mounted communication device is legal. If no hit is found among the legal IDs, it indicates that the ID of the standby vehicle-mounted communication device is illegal.
[0056] Of course, after receiving the session establishment response signal fed back by the standby vehicle-mounted communication device, the host of the vehicle-mounted communication device may also decide whether to continue to establish a session with the standby vehicle-mounted communication device. If the response signal fed back by the standby vehicle-mounted communication device indicates an affirmative response, the host of the vehicle-mounted communication device continues to establish a session with the standby vehicle-mounted communication device. If the response signal fed back by the standby vehicle-mounted communication device indicates a negative response, the host of the vehicle-mounted communication device records the situation of the standby vehicle-mounted communication device's negative response in the log and reports it to the vehicle cloud platform to prevent safety problems in case the accessories are stolen and replaced.
[0057] In some embodiments, the host of the vehicle-mounted communication device may also obtain the configuration information of the host of the vehicle-mounted communication device, write this configuration information into the database, so that the standby vehicle-mounted communication device subscribes to the configuration information in the database and completes the configuration.
[0058] Among them, when there is a standby vehicle-mounted communication device in the vehicle-mounted communication device network, the standby vehicle-mounted communication device needs to pair with the remote dictionary service database for subscription. When there is no standby vehicle-mounted communication device in the vehicle-mounted communication device network, the standby vehicle-mounted communication device does not need to pair with the remote dictionary service database for subscription.
[0059] When the standby vehicle-mounted communication device subscribes to the configuration information sent by the vehicle-mounted communication device host to the database, the standby vehicle-mounted communication device can obtain the configuration information from the database. Then, the standby vehicle-mounted communication device can configure itself based on the configuration information. In this way, the standby vehicle-mounted communication device can obtain the configuration information of the vehicle-mounted communication device host, so that when the vehicle-mounted communication device host fails, it can take over the work of the vehicle-mounted communication device host more accurately and error-free.
[0060] The embodiment of the present application also provides a multi-machine hot standby vehicle-mounted communication device communication method, and the difference between this method and the Figure 2 scheme shown is that this embodiment is introduced from the perspective of the standby vehicle-mounted communication device. As Figure 4 shown, this figure is a flowchart of another multi-machine hot standby vehicle-mounted communication device communication method provided by the embodiment of the present application, and this method includes: S401. When the standby vehicle-mounted communication device starts, configure the role as the standby device and identify the vehicle-mounted communication device network.
[0061] After the standby vehicle-mounted communication device starts, the standby vehicle-mounted communication device will judge its own role. If it is the standby device, it will continuously listen and wait for the host to send the initial communication signal. In some examples, the role can be configured as the standby device in the following way: the standby vehicle-mounted communication device sets the field ROLE=SLAVE, and the hot standby module of the standby vehicle-mounted communication device sends an instruction to the cellular network communication module to turn off the data packet receiving function.
[0062] S402. When the vehicle-mounted communication device network includes the vehicle-mounted communication device host, the standby vehicle-mounted communication device establishes a session with the vehicle-mounted communication device host.
[0063] The standby vehicle-mounted communication device can first determine whether its role is the host. If it is not the host, it continuously listens for messages, waits for the hello message sent by the host vehicle-mounted communication device for a preset duration, for example, the preset duration can be 3 minutes. If the standby vehicle-mounted communication device does not receive the hello message sent by the host vehicle-mounted communication device within this preset duration, it is determined that the current is a single-machine environment and the hot standby function cannot be used. If the vehicle-mounted communication device receives the message sent by the host vehicle-mounted communication device within this preset duration, it is determined that the current is a dual-machine environment. In the current dual-machine environment, the standby vehicle-mounted communication device can establish a session with the host vehicle-mounted communication device, facilitating data transmission and message passing between the host vehicle-mounted communication device and the standby vehicle-mounted communication device.
[0064] S403. When establishing a session with the host vehicle-mounted communication device, the standby vehicle-mounted communication device and the host vehicle-mounted communication device keep a heartbeat.
[0065] When the standby vehicle-mounted communication device establishes a session with the host vehicle-mounted communication device, the host vehicle-mounted communication device can send the first keep-alive heartbeat message interval parameter to the standby vehicle-mounted communication device. In this way, the standby vehicle-mounted communication device can determine whether it has received the heartbeat message sent by the host vehicle-mounted communication device according to this first keep-alive heartbeat message interval parameter, and then determine whether the host vehicle-mounted communication device has failed.
[0066] S404. The standby vehicle-mounted communication device reads the service data to be processed from the remote dictionary service database.
[0067] In some examples, the standby vehicle-mounted communication device can subscribe to the data with the key of V2X_msg in the remote dictionary service database. In this way, after the host vehicle-mounted communication device publishes new V2X_msg data to the remote dictionary service database, the standby vehicle-mounted communication device can read the service data to be processed from the remote dictionary service database, that is, the value corresponding to the key. This value can be the payload in the V2X message, and then these data are parsed and converted into V2X service messages for internal use by the vehicle-mounted communication device, and then business processing is performed.
[0068] Before the standby vehicle-mounted communication device performs business processing, the V2X communication module of the standby vehicle-mounted communication device parses the V2X service message, encapsulates it into a format that can communicate between processes, and prepares to send it to the in-vehicle terminal. However, since it is detected that the single signature is for the standby vehicle-mounted communication device, this sending is intercepted, that is, it is not sent to the in-vehicle terminal.
[0069] In some embodiments, when the vehicle communication equipment standby machine disconnects the heartbeat with the vehicle communication equipment host machine, the role of the vehicle communication equipment standby machine is changed to the host machine (ie, ROLE is changed to MASTER), and the service data transmitted by the server is processed.
[0070] Specifically, the hot standby module of the standby machine of the vehicle communication equipment broadcasts the "upgrade host" instruction through the inter-process communication middleware ZMQ (ZeroMQ, also known as ØMQ or 0MQ) inside the vehicle communication equipment. Among them, ZMQ is a high-performance, asynchronous messaging library used to implement inter-process communication (IPC) and network communication in distributed systems.
[0071] After the standby vehicle communication equipment becomes the new host, it is necessary to adjust the business application work strategy to enable the data receiving and sending function. Among them, the cellular network communication module of the standby vehicle communication equipment receives the above-mentioned "upgrade host" instruction and turns on the 4G / 5G data message receiving and sending function; the network management module of the standby vehicle communication equipment receives the above-mentioned "upgrade host" instruction and turns on the vehicle Ethernet data receiving and sending function; the CAN message management module of the standby vehicle communication equipment receives the "upgrade host" instruction and turns on the vehicle CAN network data receiving and sending function; the V2X communication module of the standby vehicle communication equipment receives the "upgrade host" instruction and lifts the sending restriction, and then the V2X service message pre-encapsulated in the format that can be used for inter-process communication can be transmitted to the vehicle terminal.
[0072] In some embodiments, when the heartbeat is disconnected from the vehicle-mounted communication device host, the vehicle-mounted communication device standby determines that the original vehicle-mounted communication device host is faulty. When the vehicle-mounted communication device host fails, the vehicle-mounted communication device standby can perceive the abnormality of the vehicle-mounted communication device host based on the session and heartbeat status, and then take corresponding measures, and then modify its own role to the host, such as taking over some functions of the vehicle-mounted communication device host, etc., to process the pending business data, and ensure that the system can continue to operate to a certain extent, reducing the risk of complete paralysis of the system due to host failure, that is, when the vehicle-mounted communication device host fails, the vehicle-mounted communication device standby processes the data transmitted by the service end, and then can timely know the road conditions ahead, so as to respond in advance and reduce the probability of traffic accidents. After the vehicle-mounted communication device standby recognizes that the original vehicle-mounted communication device host in the vehicle-mounted communication device network has been freed from the fault, it modifies its own role to a standby. In some examples, when the vehicle-mounted communication device standby receives a hello signal sent by the original vehicle-mounted communication device host, it is considered that the original vehicle-mounted communication device host has been freed from the fault.
[0073] The following is an introduction based on application scenarios.
[0074] In this application scenario, a vehicle receives a V2X service message (carrying a vehicle collision warning message) during driving. However, during the process of receiving the message, the host of the in-vehicle communication device fails, and the standby of the in-vehicle communication device needs to relay the processing of the V2X service message, send the collision warning message carried by the V2X service message to the in-vehicle terminal in time to remind the vehicle owner to take evasive action in time, or provide it to the autonomous driving program to complete the evasion.
[0075] The following introduces the processing process of the host of the in-vehicle communication device in combination with different situations.
[0076] Situation 1: During the above service processing process, the host of the in-vehicle communication device, as a client through the cellular network communication module, receives the V2X service message sent by the server. If the host of the in-vehicle communication device fails at this time, it cannot respond to the V2X service message, and the server continues to retry sending the V2X service message. The next time the V2X service message will be processed by the standby of the in-vehicle communication device.
[0077] Situation 2: The V2X communication module of the host of the in-vehicle communication device writes the V2X service message to the standby of the in-vehicle communication device through real-time synchronization means. If the host of the in-vehicle communication device fails at this time and the standby of the in-vehicle communication device has synchronized to the message, the standby of the in-vehicle communication device relays the processing of the V2X service message.
[0078] Situation 3: If the host of the in-vehicle communication device fails during the process of processing the V2X service message and the standby of the in-vehicle communication device has synchronized to the message, the standby of the in-vehicle communication device relays the processing of the V2X service message.
[0079] Situation 4: During the process of the in-vehicle communication device sending the payload of the V2X service message to the in-vehicle terminal, if the host of the in-vehicle communication device fails at this time and the standby of the in-vehicle communication device has synchronized to the V2X service message, the standby of the in-vehicle communication device relays the processing of the V2X service message.
[0080] Situation 5: If the host of the in-vehicle communication device restarts after a failure, if the restart is successful, it becomes the "new standby", and if the restart is not successful, it continues to restart.
[0081] The following introduces the processing process of the standby of the in-vehicle communication device.
[0082] If the standby of the in-vehicle communication device does not receive the heartbeat packet sent by the host of the in-vehicle communication device within a preset duration, such as within 3 seconds, it is considered that the host of the in-vehicle communication device has failed.
[0083] Next, the standby machine of the on-board communication equipment changes its role and upgrades itself to the host (hereinafter referred to as the "new host"). The standby hot standby management module of the new host modifies its ROLE to MASTER. The standby hot standby module of the new host broadcasts and sends the "upgrade host" command through the internal inter-process communication middleware ZMQ of the on-board communication equipment. The new host adjusts the business application working strategy and enables the data sending and receiving function. The cellular network communication module of the new host receives the "upgrade host" command and turns on the 4G / 5G data message receiving and sending function. The network management module of the new host receives the "upgrade host" command and turns on the on-board Ethernet data receiving and sending function. The CAN message management module of the new host receives the "upgrade host" command and turns on the on-board CAN network data receiving and sending function. The V2X communication module of the new host receives the "upgrade host" command and lifts the sending restriction.
[0084] Then, the new host relays the V2X service message. The V2X communication module of the new host has subscribed to the data with the key v2x_msg. The new host can directly receive the payload of the V2X service message in the remote dictionary service database, that is, the value corresponding to the aforementioned key. The new host encapsulates the payload of the V2X service message into a format that can be used for inter-process communication and prepares to send it to the vehicle terminal. The new host confirms that the current ROLE is MASTER, and sends the payload of the V2X service message to the vehicle terminal through the vehicle Ethernet. The vehicle terminal parses the payload of the V2X service message and provides it to the vehicle's driver assistance system, automatic driving system, etc. For example, the location and driving status of surrounding vehicles are judged based on the received V2X service message, and collision warning, cooperative driving and other operations are performed.
[0085] The new host waits for the old host to start again. If the old host can start successfully, its role becomes the new standby after startup, and a hot standby relationship is established with the new host again. If the old host fails to start, the new host runs alone.
[0086] In some examples, specifically, the step of the vehicle-mounted communication equipment standby machine identifying whether the vehicle-mounted communication equipment network includes the vehicle-mounted communication equipment host includes: the vehicle-mounted communication equipment standby machine identifies the initial communication signal sent by the vehicle-mounted communication equipment host, and when it is determined that the initial communication signal sent by the vehicle-mounted communication equipment host is received, determines that the vehicle-mounted communication equipment network includes the vehicle-mounted communication equipment host.
[0087] Among them, the initial communication signal can be a hello message or other handshake messages. The form in which the in-vehicle communication device host sends the initial communication signal can be broadcast or other forms. The in-vehicle communication device standby can wait for the initial communication signal sent by the in-vehicle communication device host. During the waiting process for the in-vehicle communication device host to send, it will wait for a first preset duration, such as 3 minutes. After the in-vehicle communication device standby receives the initial communication signal sent by the in-vehicle communication device host, it feeds back an initial communication response signal to the in-vehicle communication device host.
[0088] After the in-vehicle communication device standby receives the initial communication signal sent by the in-vehicle communication device host, the in-vehicle communication device standby can determine that the current mode is the dual-machine mode. At this time, the in-vehicle communication device standby can feed back an initial communication response signal to the in-vehicle communication device host to inform the in-vehicle communication device host that the in-vehicle communication device standby has received the initial communication signal sent by the in-vehicle communication device host. In this way, the in-vehicle communication device host can also determine that the current mode is the dual-machine mode. Before this, the in-vehicle communication device host and the in-vehicle communication device standby determine that the current mode is the single-machine mode. In the single-machine mode, if the in-vehicle communication device fails, it will reduce data security and increase the risk of traffic accidents. After the in-vehicle communication device host sends the initial communication signal to the in-vehicle communication device standby and does not receive the initial communication response signal, it is determined that the current is a single-machine environment and the hot standby function cannot be used.
[0089] In some examples, the in-vehicle communication device standby establishing a session with the in-vehicle communication device host specifically includes: the in-vehicle communication device standby receiving a session establishment request sent by the in-vehicle communication device host, where the session establishment request includes the in-vehicle communication device host ID; when the in-vehicle communication device host ID is legal, sending a session establishment response signal to the in-vehicle communication device host and establishing a session with the in-vehicle communication device host.
[0090] The session establishment request can be a first negotiation message, and the first negotiation message carries the in-vehicle communication device host ID. After the in-vehicle communication device standby receives the session establishment request sent by the in-vehicle communication device host, it can determine whether it is legal based on the in-vehicle communication device host ID carried in the session establishment request. When the in-vehicle communication device host ID is legal, it feeds back a session establishment response signal to the in-vehicle communication device host, and the session establishment response signal includes the in-vehicle communication device standby ID. Among them, the session establishment response signal can be a first negotiation response message, and the first negotiation response message carries the in-vehicle communication device standby ID.
[0091] The process of the in-vehicle communication device standby determining whether the in-vehicle communication device host ID is legal can be: The standby of the vehicle-mounted communication device pre-stores legal IDs. After receiving the ID of the host of the vehicle-mounted communication device, it compares the ID of the host of the vehicle-mounted communication device with these legal IDs. If a hit is found among the legal IDs, it indicates that the ID of the host of the vehicle-mounted communication device is legal; if no hit is found among the legal IDs, it indicates that the ID of the host of the vehicle-mounted communication device is illegal.
[0092] Of course, after the standby of the vehicle-mounted communication device receives the session establishment request sent by the host of the vehicle-mounted communication device, it can also decide whether to continue to establish a session with the host of the vehicle-mounted communication device. If the standby of the vehicle-mounted communication device decides to reject the response, it can feedback a response signal indicating rejection of the response to the host of the vehicle-mounted communication device, and then the standby of the vehicle-mounted communication device does not establish a session with the host of the vehicle-mounted communication device. If the standby of the vehicle-mounted communication device feedbacks a decision to confirm the response, it can feedback a response signal indicating confirmation of the response to the host of the vehicle-mounted communication device, and then the standby of the vehicle-mounted communication device will establish a session with the host of the vehicle-mounted communication device.
[0093] To make the technical solution of this application clearer and easier to understand, the technical solution of this application will be further introduced below in conjunction with the accompanying drawings, as Figure 5 shown. This figure is a flowchart of another multi-machine hot standby vehicle-mounted communication device communication method provided by an embodiment of this application.
[0094] This method is a continuation of the above embodiment. The host of the vehicle-mounted communication device restarts due to a fault and then becomes the standby, and the standby of the vehicle-mounted communication device becomes the new host. For the sake of easy distinction, the new host is denoted as the first vehicle-mounted communication device, and the new standby is denoted as the second vehicle-mounted communication device. Among them, the new standby is a temporary state of the original vehicle-mounted communication device. After the host of the original vehicle-mounted communication device eliminates the fault, it can switch the role from the standby to the host. This method includes: S501. The first vehicle-mounted communication device sends an initial communication signal to the second vehicle-mounted communication device.
[0095] S502. The second vehicle-mounted communication device sends an initial communication response signal to the first vehicle-mounted communication device according to the initial communication signal.
[0096] S503. The first vehicle-mounted communication device sends a session establishment request to the second vehicle-mounted communication device.
[0097] The session establishment request carries the first device identifier of the first vehicle-mounted communication device.
[0098] After receiving the session establishment request, the second vehicle-mounted communication device can parse the session establishment request and perform a legality judgment. If it is legal, the second vehicle-mounted communication device sends a session establishment response signal to the first vehicle-mounted communication device. The session establishment response signal carries the second device identifier of the second vehicle-mounted communication device. If it is not legal, it rejects the response.
[0099] S504. The first vehicle-mounted communication device determines whether it has received the session establishment response signal fed back by the second vehicle-mounted communication device.
[0100] In some embodiments, the first vehicle-mounted communication device determines whether it has received the session establishment response signal fed back by the second vehicle-mounted communication device within a second preset duration (e.g., 3 minutes). If it has received, S505 is executed. If it has not received, S508 is executed.
[0101] S505. The first vehicle-mounted communication device determines whether the second vehicle-mounted communication device is legal.
[0102] If the first vehicle-mounted communication device has received the session establishment response signal fed back by the second vehicle-mounted communication device according to the first device identifier, the first vehicle-mounted communication device determines whether the second vehicle-mounted communication device is legal. If it is legal, S506 is executed. If it is not legal, S507 is executed. For the method of legality determination, refer to the foregoing embodiments and will not be elaborated here.
[0103] S506. The first vehicle-mounted communication device sends a second heartbeat message to the second vehicle-mounted communication device.
[0104] In the case of determining legal, the first vehicle-mounted communication device sends a second heartbeat message to the second vehicle-mounted communication device according to the second keep-alive heartbeat message interval parameter. The second keep-alive heartbeat message interval parameter is similar to the first keep-alive heartbeat message interval parameter and will not be elaborated here.
[0105] In some embodiments, after the first vehicle-mounted communication device has received the second V2X message sent by the server, it can extract the second payload in the second V2X message, perform internal encapsulation on the second payload to obtain a second service message. The purpose of internal encapsulation is to perform data transmission between different vehicle-mounted communication devices. Then, the first vehicle-mounted communication device transmits the second service message obtained after encapsulation to the second vehicle-mounted communication device. The first V2X message and the second V2X message are both a type of V2X service message. In the embodiments of the present application, only in different scenarios, different descriptions are used for the sake of clarity.
[0106] S507. The first vehicle-mounted communication device returns to the stand-alone mode.
[0107] If the first vehicle-mounted communication device determines that the second vehicle-mounted communication device is not legal, it returns to the stand-alone mode.
[0108] S508. The first vehicle-mounted communication device issues an exception prompt message.
[0109] The exception prompt message is used to prompt that there may be an exception in the second vehicle-mounted communication device. If the first vehicle-mounted communication device does not receive the session establishment response signal fed back by the second vehicle-mounted communication device according to the first device identifier, the first vehicle-mounted communication device issues an exception prompt message.
[0110] Among them, for the same or similar content between different embodiments, if it has been described in detail in the foregoing or subsequent text, it will not be described in detail again when mentioned again.
[0111] As described above in conjunction with Figure 2 - 5 The vehicle-mounted communication device communication method based on multi-machine hot standby provided by the embodiments of the present application has been introduced in detail. Next, the systems and devices provided by the embodiments of the present application will be introduced in conjunction with the accompanying drawings.
[0112] Continue to refer to Figure 3 , the vehicle-mounted communication device communication method system based on multi-machine hot standby provided by the embodiments of the present application includes a vehicle-mounted communication device host 221 and a vehicle-mounted communication device standby 222.
[0113] The vehicle-mounted communication device host 221 is used to identify the vehicle-mounted communication device network when starting. The vehicle-mounted communication device standby 222 is used to identify the vehicle-mounted communication device network when starting. The vehicle-mounted communication device host 221 is used to establish a session with the vehicle-mounted communication device standby 222 when it is recognized that the vehicle-mounted communication device network includes the vehicle-mounted communication device standby 222. The vehicle-mounted communication device standby 222 is used to establish a session with the vehicle-mounted communication device host 221 when it is recognized that the vehicle-mounted communication device network includes the vehicle-mounted communication device host 221. The vehicle-mounted communication device host 221 is used to write the service data to be processed into the remote dictionary service database. The vehicle-mounted communication device standby 222 is used to read the service data to be processed from the remote field service database.
[0114] The vehicle-mounted communication device communication system based on multi-machine hot standby according to the embodiments of the present application can correspond to execute the methods described in the embodiments of the present application, and the above-mentioned other operations and / or functions of each module / unit of the vehicle-mounted communication device communication system based on multi-machine hot standby are respectively for realizing Figure 2 - Figure 5 the corresponding processes of the respective methods in the illustrated embodiments. For the sake of brevity, they will not be described in detail here.
[0115] The embodiments of the present application also provide a computing device. As Figure 6As shown in the figure, this is a schematic diagram of a computing device provided by an embodiment of the present application. The computing device 600 includes a bus 601, a processor 602, a communication interface 603, and a memory 604. The processor 602, the memory 604, and the communication interface 603 communicate with each other through the bus 601.
[0116] The bus 601 can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The bus can be divided into an address bus, a data bus, a control bus, etc. For the sake of simplicity of representation, Figure 6 only a thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.
[0117] The processor 602 can be any one or more of a central processing unit (CPU), a graphics processing unit (GPU), a microprocessor (MP), or a digital signal processor (DSP), etc.
[0118] The communication interface 603 is used for external communication.
[0119] The memory 604 can include volatile memory, such as random access memory (RAM). The memory 604 can also include non-volatile memory, such as read-only memory (ROM), flash memory, a hard disk drive (HDD), or a solid state drive (SSD).
[0120] The memory 604 stores executable code, and the processor 602 executes the executable code to perform the aforementioned vehicle-mounted communication device communication method based on multi-machine hot standby.
[0121] The embodiments of the present application also provide a computer-readable storage medium. The computer-readable storage medium can be any available medium that a computing device can store or a data storage device such as a data center that contains one or more available media. The available medium can be a magnetic medium (such as a floppy disk, a hard disk, a magnetic tape), an optical medium (such as a DVD), or a semiconductor medium (such as a solid-state drive), etc. The computer-readable storage medium includes instructions that direct the computing device to execute the above-mentioned communication method for in-vehicle communication devices based on multi-machine hot standby.
[0122] The embodiments of the present application also provide a computer program product, which includes one or more computer instructions. When the computer instructions are loaded and executed on a computing device, they wholly or partially generate the processes or functions described in the embodiments of the present application.
[0123] The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions can be transmitted from a website, a computer, or a data center to another website, a computer, or a data center in a wired manner (such as coaxial cable, optical fiber, digital subscriber line) or a wireless manner (such as infrared, wireless, microwave, etc.).
[0124] When the computer program product is executed by a computer, the computer executes any of the above-mentioned communication methods for in-vehicle communication devices based on multi-machine hot standby. The computer program product can be a software installation package. In the case where any of the above-mentioned communication methods for in-vehicle communication devices based on multi-machine hot standby is needed, the computer program product can be downloaded and executed on the computer.
[0125] The descriptions of the processes or structures corresponding to the above-mentioned various drawings have their own emphases. For parts not detailed in a certain process or structure, reference can be made to the relevant descriptions of other processes or structures.
[0126] The above is only the specific implementation manner of the present application, but the protection scope of the present application is not limited thereto. Any change or replacement within the technical scope disclosed in the present application should be covered by the protection scope of the present application.
Claims
1. A communication method for multi-machine hot standby vehicle-mounted communication equipment, characterized in that: Applicable to vehicle communication equipment host, including: When started, configure the role as host; identify the vehicle communication device network; In the case where the vehicle communication device network includes the vehicle communication device standby device, establishing a session with the vehicle communication device standby device; When a session is established with the standby vehicle communication device, a heartbeat is maintained with the standby vehicle communication device; Obtaining business data to be processed; Processing the business data to be processed; The service data to be processed is written into the remote dictionary service database.
2. The method according to claim 1, characterized in that The steps of identifying whether the vehicle communication device network includes a vehicle communication device backup device include: Sending an initial communication signal to the on-board communication equipment standby device; When the initial communication response signal is received, it is determined that the vehicle-mounted communication device network includes the vehicle-mounted communication device standby device.
3. The method according to claim 1, characterized in that Establishing a session with the vehicle communication device backup device specifically includes: Sending a session establishment request to the standby vehicle communication device, wherein the session establishment request includes a host ID of the vehicle communication device; receiving a session establishment response signal; the session establishment response signal includes a standby ID of the vehicle-mounted communication device; When the standby ID of the vehicle-mounted communication device is legal, a session with the standby device of the vehicle-mounted communication device is established.
4. The method according to claim 1, characterized in that In the case of startup, it also includes: Obtain configuration information of the vehicle communication device host; The configuration information is written into a database, so that the vehicle-mounted communication device standby subscribes to the configuration information in the database and completes the configuration.
5. A communication method for multi-machine hot standby vehicle-mounted communication equipment, characterized in that: Applicable to vehicle communication equipment preparation, including: When started, configure the role as standby and identify the vehicle communication equipment network; In the case where the vehicle communication device network includes a vehicle communication device host, establishing a session with the vehicle communication device host; When a session is established with the vehicle communication device host, a heartbeat is maintained with the vehicle communication device host; Read the business data to be processed from the remote dictionary service database.
6. The method according to claim 5, characterized in that The steps of identifying whether the vehicle communication device network includes the vehicle communication device host include: In case of receiving the initial communication signal sent by the vehicle-mounted communication device host, it is determined that the vehicle-mounted communication device network includes the vehicle-mounted communication device host.
7. The method according to claim 5, characterized in that Establishing a session with the vehicle communication device host specifically includes: Receiving a session establishment request sent by a vehicle-mounted communication device host, wherein the session establishment request includes an vehicle-mounted communication device host ID; When the vehicle-mounted communication device host ID is legal, a session establishment response signal is sent to the vehicle-mounted communication device host, and a session with the vehicle-mounted communication device host is established.
8. The method according to any one of claims 5 to 7, characterized in that: The method further comprises: When a fault is detected in the original on-board communication device host in the on-board communication device network, the role is changed to the host; Processing the business data to be processed; After identifying that the original vehicle communication equipment host in the vehicle communication equipment network has resolved the fault, the role is changed to a standby machine.
9. The method according to claim 8, characterized in that The original vehicle communication equipment host failures in the vehicle communication equipment network are identified as follows: In the case where the heartbeat with the vehicle-mounted communication device host is disconnected, it is determined that the original vehicle-mounted communication device host is faulty.
10. A multi-machine hot standby vehicle-mounted communication equipment communication system, characterized in that: Including a vehicle-mounted communication equipment host and a vehicle-mounted communication equipment standby machine; The vehicle-mounted communication device host is configured to execute the method according to any one of claims 1 to 4; The vehicle-mounted communication equipment standby machine is configured to execute the method according to any one of claims 5 to 9; The remote dictionary service database is used to receive the service data to be processed written by the vehicle-mounted communication device host, and provide the service data to be processed to the vehicle-mounted communication device standby device.