Data synchronization method and device, electronic equipment and storage medium

By using message propagation flags and cross-domain flags in the detection synchronization message, the sending range of fault detection data is accurately determined, solving the problem of redundant traffic caused by indiscriminate push and achieving accurate synchronization and efficient transmission of fault detection data.

CN120935199APending Publication Date: 2025-11-11CHINA AUTOMOTIVE INNOVATION CORP
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202511412930.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-09-29
Publication Date
2025-11-11

AI Technical Summary

Technical Problem

In existing technologies, the broadcast push method results in the indiscriminate full push of fault detection messages, generating redundant traffic. It is impossible to accurately control the message transmission range, leading to low communication granularity and flexibility, which in turn causes instruction delays and reduces fault detection efficiency.

Method used

By receiving detection synchronization messages, using message propagation flags, cross-domain flags, and the domain identifier of the application to be synchronized, the sending range of fault detection data is accurately determined. Fault detection data is sent only to the collaborative applications that need to be synchronized, and associated operations are performed based on the fault detection data.

Benefits of technology

It achieves precise synchronization of fault detection data, improves the granularity and flexibility of communication, and enhances the efficiency and real-time performance of fault detection.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120935199A_ABST
    Figure CN120935199A_ABST
Patent Text Reader

Abstract

The invention relates to a data synchronization method and device, electronic equipment and a storage medium, and the method comprises the steps: receiving a detection synchronization message for a target application in a multi-application cooperation system, sending a fault detection instruction to the target application, enabling the target application to carry out fault detection, and obtaining fault detection data; the detection synchronization message comprises a message propagation flag bit, a cross-domain flag bit and a to-be-synchronized application domain identifier; based on the message propagation flag bit, the cross-domain flag bit, the target address and / or the to-be-synchronized application domain identifier, determining a target synchronization application corresponding to the fault detection data from a multi-application cooperative system comprising a target detection application domain and a to-be-synchronized application domain; the fault detection data is sent to the target synchronization application, so that the target synchronization application executes the association operation based on the fault detection data, the message transmission range can be precisely controlled, the granularity and flexibility of communication are improved, and the fault detection efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to the field of vehicle diagnostic technology, and in particular to a data synchronization method, apparatus, electronic device and storage medium. Background Technology

[0002] With the rapid development of intelligent driving, fault detection has become a core guarantee for driving safety. How to achieve efficient collaboration among multiple applications has also become the key to improving the real-time performance and accuracy of fault detection.

[0003] In related technologies, broadcast push is often used to push messages to multiple targets in fault detection scenarios. However, in related technologies, the broadcast method uses indiscriminate full push, and fault messages will be sent to irrelevant domains / applications at the same time, generating a large amount of redundant traffic, resulting in high bus load. Furthermore, it is impossible to accurately control the message transmission range and dynamically limit the broadcast boundary, resulting in low granularity and flexibility of communication, which in turn leads to instruction delays and reduced efficiency of fault detection. Summary of the Invention

[0004] This disclosure provides a data synchronization method, apparatus, electronic device, and storage medium to at least solve the problems in related technologies, such as the inability to accurately control the scope of message transmission, low granularity and flexibility of communication, which in turn leads to instruction delays and reduced efficiency of fault detection.

[0005] According to a first aspect of the present disclosure, a data synchronization method is provided, comprising: The system receives a detection synchronization message for a target application in a multi-application collaborative system, sends a fault detection instruction to the target application to enable it to perform fault detection and obtain fault detection data. The multi-application collaborative system includes a target detection application domain and a domain to be synchronized. The target application is an application within the target detection application domain with a target address. The detection synchronization message includes a message propagation flag, a cross-domain flag, and a domain identifier to be synchronized. The message propagation flag indicates whether to direct the fault detection data to the application with the target address. The cross-domain flag indicates whether to send the fault detection data to the domain to be synchronized. The domain to be synchronized includes applications with the target address. Based on the message propagation flag, the cross-domain flag, the target address, and / or the domain identifier of the application to be synchronized, the target synchronization application corresponding to the fault detection data is determined from the multi-application collaboration system. The fault detection data is sent to the target synchronization application so that the target synchronization application performs an association operation based on the fault detection data.

[0006] In an optional embodiment, determining the target synchronization application corresponding to the fault detection data from the multi-application collaboration system based on the message propagation flag, the cross-domain flag, the target address, and / or the domain identifier of the application to be synchronized includes: When the message propagation flag indicates that the fault detection data is directed to the application with the target address, and the cross-domain flag indicates that the fault detection data is sent to the application domain to be synchronized, the application with the target address in the application domain to be synchronized is determined to be the target synchronization application corresponding to the fault detection data based on the target address and the identifier of the application domain to be synchronized.

[0007] In an optional embodiment, determining the target synchronization application corresponding to the fault detection data from the multi-application collaboration system based on the message propagation flag, the cross-domain flag, the target address, and / or the domain identifier of the application to be synchronized includes: When the message propagation flag indicates that the fault detection data should not be sent to the application with the target address, and the cross-domain flag indicates that the fault detection data should not be sent to the application domain to be synchronized, based on the target address, the application other than the target application in the target detection application domain is determined as the target synchronization application corresponding to the fault detection data.

[0008] In an optional embodiment, determining the target synchronization application corresponding to the fault detection data from the multi-application collaboration system based on the message propagation flag, the cross-domain flag, the target address, and / or the domain identifier of the application to be synchronized includes: When the message propagation flag indicates that the fault detection data should not be sent to the application with the target address, and the cross-domain flag indicates that the fault detection data should be sent to the application domain to be synchronized, the application in the application domain to be synchronized is determined to be the target synchronization application corresponding to the fault detection data based on the application domain identifier.

[0009] In an optional embodiment, applications in the target detection application domain have a first association relationship, and the target application and applications in the application domain to be synchronized have a second association relationship. Sending the fault detection data to the target synchronization application so that the target synchronization application performs an association operation based on the fault detection data includes: In the case where the target synchronization application is an application in the target detection application domain, the fault detection data is sent to the application in the target detection application domain so that the application in the target detection application domain performs a first association operation based on the first association relationship and the fault detection data; When the target synchronization application is an application in the application domain to be synchronized, the fault detection data is sent to the application in the application domain to be synchronized, so that the application in the application domain to be synchronized performs a second association operation based on the second association relationship and the fault detection data.

[0010] In an optional embodiment, the detection synchronization message further includes an encryption flag, which indicates whether the detection synchronization message has been encrypted. The step of receiving the detection synchronization message for a target application in the multi-application collaboration system, sending a fault detection instruction to the target application to enable the target application to perform fault detection, and obtaining fault detection data includes: Receive detection synchronization messages for target applications in a multi-application collaborative system and obtain a preset key; Based on the preset key, the detection synchronization message is decrypted to obtain the decrypted detection synchronization message; Based on the decrypted detection synchronization message, a fault detection command is sent to the target application to enable the target application to perform fault detection and obtain fault detection data.

[0011] In an optional embodiment, after receiving the detection synchronization message for the target application in the multi-application collaboration system, sending a fault detection instruction to the target application to enable the target application to perform fault detection, and obtaining fault detection data, the method further includes: The fault detection data is sent to the fault detection device so that the fault detection device can obtain the updated message propagation flag, the updated cross-domain flag, and the updated application domain identifier to be synchronized based on the fault detection data and the detection synchronization message update instruction triggered by the target account, and update the detection synchronization message.

[0012] According to a second aspect of the present disclosure, a data synchronization apparatus is provided, comprising: A fault detection instruction sending module is used to receive a detection synchronization message for a target application in a multi-application collaborative system, and send a fault detection instruction to the target application to enable the target application to perform fault detection and obtain fault detection data. The multi-application collaborative system includes a target detection application domain and a domain to be synchronized. The target application is an application in the target detection application domain with a target address. The detection synchronization message includes a message propagation flag, a cross-domain flag, and a domain identifier to be synchronized. The message propagation flag indicates whether to direct the fault detection data to the application with the target address. The cross-domain flag indicates whether to send the fault detection data to the domain to be synchronized. The domain to be synchronized includes applications with the target address. The target synchronization application determination module is used to determine the target synchronization application corresponding to the fault detection data from the multi-application collaboration system based on the message propagation flag, the cross-domain flag, the target address and / or the domain identifier of the application to be synchronized. The fault detection data sending module is used to send the fault detection data to the target synchronization application so that the target synchronization application can perform association operations based on the fault detection data.

[0013] In an optional embodiment, the target synchronization application determination module includes: The first application determination unit is configured to, when the message propagation flag indicates that the fault detection data is directed to the application with the target address, and the cross-domain flag indicates that the fault detection data is sent to the application domain to be synchronized, determine, based on the target address and the identifier of the application domain to be synchronized, that the application with the target address in the application domain to be synchronized is the target synchronization application corresponding to the fault detection data.

[0014] In an optional embodiment, the target synchronization application determination module includes: The second application determination unit is configured to, based on the target address, determine the application other than the target application in the target detection application domain as the target synchronization application corresponding to the fault detection data, when the message propagation flag indicates that the fault detection data should not be sent to the application with the target address, and the cross-domain flag indicates that the fault detection data should not be sent to the application domain to be synchronized.

[0015] In an optional embodiment, the target synchronization application determination module includes: The third application determination unit is used to determine, based on the identifier of the application domain to be synchronized, that the application in the application domain to be synchronized is the target synchronization application corresponding to the fault detection data when the message propagation flag indicates that the fault detection data should not be sent to the application with the target address and the cross-domain flag indicates that the fault detection data should be sent to the application domain to be synchronized.

[0016] In an optional embodiment, applications in the target detection application domain have a first association relationship, and the target application and applications in the application domain to be synchronized have a second association relationship. The fault detection data sending module includes: The first data sending unit is configured to send the fault detection data to the application in the target detection application domain when the target synchronization application is an application in the target detection application domain, so that the application in the target detection application domain performs a first association operation based on the first association relationship and the fault detection data; The second data sending unit is configured to send the fault detection data to the application in the application domain to be synchronized when the target synchronization application is an application in the application domain to be synchronized, so that the application in the application domain to be synchronized performs a second association operation based on the second association relationship and the fault detection data.

[0017] In an optional embodiment, the detection synchronization message further includes an encryption flag, which indicates whether the detection synchronization message has been encrypted, and the fault detection instruction sending module includes: The key acquisition unit is used to receive the detection synchronization message for the target application in the multi-application collaborative system and acquire the preset key; The decryption unit is used to decrypt the detection synchronization message based on the preset key to obtain the decrypted detection synchronization message; The fault detection instruction sending unit is used to send a fault detection instruction to the target application based on the decrypted detection synchronization message, so that the target application can perform fault detection and obtain fault detection data.

[0018] In an optional embodiment, after the fault detection command sending module, the device further includes: The third data sending unit is used to send the fault detection data to the fault detection device, so that the fault detection device can obtain the updated message propagation flag, the updated cross-domain flag, and the updated application domain identifier to be synchronized based on the fault detection data and the detection synchronization message update instruction triggered by the target account, and update the detection synchronization message.

[0019] According to a third aspect of the present disclosure, an electronic device is provided, comprising: a processor; and a memory for storing processor-executable instructions; wherein the processor is configured to execute the instructions to implement the method as described in any one of the first aspects above.

[0020] According to a fourth aspect of the present disclosure, a computer-readable storage medium is provided such that, when instructions in the storage medium are executed by a processor of an electronic device, the electronic device is enabled to perform the method described in any of the first aspects of the present disclosure.

[0021] The technical solutions provided by the embodiments of this disclosure have at least the following beneficial effects: The system receives a detection synchronization message for a target application in a multi-application collaborative system, sends a fault detection command to the target application to enable it to perform fault detection and obtain fault detection data. The target application is the application with the target address within the target detection application domain. The detection synchronization message includes a message propagation flag indicating whether to direct the fault detection data to the application with the target address, a cross-domain flag indicating whether to send the fault detection data to the application domain to be synchronized, and an identifier for the application domain to be synchronized. Based on the message propagation flag, cross-domain flag, target address, and / or the identifier for the application domain to be synchronized, the system determines the target synchronization application corresponding to the fault detection data from the multi-application collaborative system, which includes the target detection application domain and the application domain to be synchronized. The system can accurately determine the sending range of the fault detection data based on the flags and the identifier for the application domain to be synchronized in the detection synchronization message, sending the fault detection data only to the collaborative applications that need to be synchronized, improving the granularity and flexibility of communication. Sending the fault detection data to the target synchronization application enables the target synchronization application to perform association operations based on the fault detection data. Sending the fault detection data to the collaborative applications that need to be synchronized enables the collaborative applications to perform association operations, thus improving the efficiency of fault detection.

[0022] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and are not intended to limit this disclosure. Attached Figure Description

[0023] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this disclosure and, together with the description, serve to explain the principles of this disclosure, and are not intended to unduly limit this disclosure.

[0024] Figure 1 This is a schematic diagram illustrating an application environment according to an exemplary embodiment; Figure 2 This is a flowchart illustrating a data synchronization method according to an exemplary embodiment; Figure 3 This is a schematic diagram of a frame structure corresponding to a detection synchronization message, according to an exemplary embodiment. Figure 4 This is a schematic diagram illustrating a data synchronization according to an exemplary embodiment; Figure 5 This is a block diagram illustrating a data synchronization device according to an exemplary embodiment; Figure 6 This is a block diagram illustrating an electronic device for data synchronization according to an exemplary embodiment; Figure 7 This is a block diagram illustrating an electronic device for data synchronization according to an exemplary embodiment. Detailed Implementation

[0025] To enable those skilled in the art to better understand the technical solutions of this disclosure, the technical solutions in the embodiments of this disclosure will be clearly and completely described below with reference to the accompanying drawings.

[0026] It should be noted that the terms "first," "second," etc., used in the specification, claims, and accompanying drawings of this disclosure are used to distinguish similar different contents and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of this disclosure described herein can be implemented in orders other than those illustrated or described herein. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this disclosure. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this disclosure as detailed in the appended claims.

[0027] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for display, data used for analysis, etc.) involved in this disclosure are all information and data authorized by the user or fully authorized by all parties.

[0028] Please see Figure 1 , Figure 1 This is a schematic diagram illustrating an application environment according to an exemplary embodiment, such as... Figure 1 As shown, the application environment may include terminal 100 and server 200.

[0029] In an optional embodiment, terminal 100 can be used to provide fault detection services. Specifically, terminal 100 can be, but is not limited to, electronic devices such as smartphones, desktop computers, tablets, and laptops, or software running on the aforementioned electronic devices, such as applications. Optionally, the operating system running on the electronic device can be, but is not limited to, Android, iOS, Linux, Windows, etc.

[0030] In an optional embodiment, server 200 can provide background services and perform data synchronization processing for terminal 100. Optionally, server 200 can receive detection synchronization messages sent by terminal 100. Accordingly, data synchronization processing can be performed in conjunction with detection synchronization messages. Specifically, server 200 can be an independent physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, CDN (Content Delivery Network), and big data and artificial intelligence platforms.

[0031] In addition, it should be noted that, Figure 1 The example shown is merely one application environment provided by this disclosure. In practical applications, other application environments may also be included.

[0032] In the embodiments described in this specification, the terminal 100 and the server 200 can be directly or indirectly connected through wired or wireless communication, and this disclosure does not impose any restrictions.

[0033] Figure 2 This is a flowchart illustrating a data synchronization method according to an exemplary embodiment, which is used in a server such as Figure 2 As shown, it includes the following steps.

[0034] In step S201, a detection synchronization message for the target application in the multi-application collaborative system is received, and a fault detection instruction is sent to the target application to enable the target application to perform fault detection and obtain fault detection data. In one specific embodiment, the multi-application collaborative system can be a system composed of multiple applications with collaborative relationships. The detection synchronization message can be used to indicate the synchronization of fault detection data. The multi-application collaborative system can include a target detection application domain and an application domain to be synchronized. The target detection application domain can be the application domain that needs to be detected for faults, as indicated by the detection synchronization message. Correspondingly, the application domain to be synchronized can be a domain that has a collaborative relationship with the target detection application domain.

[0035] In a specific embodiment, the target application can be the application that needs to perform fault detection as indicated by the detection synchronization message. The target application can be the application with the target address in the target detection application domain. The target address can be the application address carried by the detection synchronization message. Specifically, the target address can be the logical address of the application, such as 0x1233, 0x1234, 0x1235, etc.

[0036] In one specific embodiment, the detection synchronization message may include a message propagation flag, a cross-domain flag, and an application domain identifier to be synchronized. The message propagation flag can be used to indicate whether to direct the fault detection data to the application with the target address. The cross-domain flag can be used to indicate whether to send the fault detection data to the application domain to be synchronized. The application domain identifier to be synchronized may be a domain identifier carried in the detection synchronization message. The application domain identifier to be synchronized may be the representation information of the application domain to be synchronized. The application domain to be synchronized may include the application with the target address.

[0037] In a specific embodiment, the detection synchronization message can be 5A (frame header) 00 00 00 0E (data field length) F0 20 (control field) 02 (domain ID) 12 34 (destination address) 56 78 (source address) 00 00 00 01 (serial number) 01 23 45 (fault detection data) A1 B2 C3 D4 (CRC), such as... Figure 3 The frame structure diagram shown can be a VDCP (Video Disk Communications Protocol) frame structure. Accordingly, the message propagation flag can be Bit 15, the cross-domain flag can be Bit 13, the application domain identifier to be synchronized can be the domain ID, and the control field can be F0 20. Converting the control field to binary 1111 0000 0010 0000, the message propagation flag is 1, the cross-domain flag is 1, and the application domain identifier to be synchronized is 02. Accordingly, the detection synchronization message can instruct the fault detection data to be sent across domains to the application in application domain 02 to be synchronized.

[0038] In an optional embodiment, the detection synchronization message may further include an encryption flag, which can be used to indicate whether the detection synchronization message has been encrypted. The above-described receiving of the detection synchronization message for a target application in the multi-application collaborative system, sending a fault detection instruction to the target application to enable the target application to perform fault detection, and obtaining fault detection data includes: Receive detection synchronization messages for target applications in a multi-application collaborative system and obtain a preset key; Based on the preset key, the detection synchronization message is decrypted to obtain the decrypted detection synchronization message. Based on the decrypted detection synchronization message, a fault detection command is sent to the target application to enable the target application to perform fault detection and obtain fault detection data.

[0039] In one specific embodiment, a preset key can be used to decrypt the detection synchronization message. The preset key can be a key predetermined by the sender of the detection synchronization message, specifically, such as... Figure 4As shown, the encryption flag can be Bit 11. When Bit 11 is 1, the preset key is obtained to decrypt the detection synchronization message and obtain the decrypted detection synchronization message.

[0040] In the above embodiments, by encrypting the detection synchronization message and decrypting it based on a key predetermined by the sender of the detection synchronization message, the security of fault detection can be improved.

[0041] In an optional embodiment, after receiving the detection synchronization message for the target application in the multi-application collaborative system, sending a fault detection instruction to the target application to enable the target application to perform fault detection, and obtaining fault detection data, the above method may further include: The fault detection data is sent to the fault detection device so that the fault detection device can obtain the updated message propagation flag, the updated cross-domain flag, and the updated application domain identifier to be synchronized based on the fault detection data and the detection synchronization message update instruction triggered by the target account, and update the detection synchronization message.

[0042] In a specific embodiment, the fault detection device can be a terminal providing fault detection services. The detection synchronization message update instruction can be used to instruct the updating of the detection synchronization message. For example, the detection synchronization message can be 5A (frame header) 00 00 00 0E (data field length) F0 20 (control field) 02 (domain ID) 12 34 (destination address) 56 78 (source address) 00 00 00 01 (serial number) 01 23 45 (fault detection data) A1 B2 C3 D4 (CRC). Correspondingly, the message propagation flag (Bit 15) is 1, the cross-domain flag (Bit 13) is 1, and the domain identifier to be synchronized (domain ID) is 02. The detection synchronization message update instruction can be used to instruct the updating of the detection synchronization message by changing the message propagation flag (Bit 15) from 1 to 0 and the domain identifier to be synchronized (domain ID) from 02 to 03. Correspondingly, the updated detection synchronization message is 5A (frame header) 00 00 00 0E (Data Field Length) 7020 (Control Field) 03 (Domain ID) 12 34 (Destination Address) 56 78 (Source Address) 00 00 00 01 (Serial Number) 01 23 45 (Fault Detection Data) A1 B2 C3 D4 (CRC).

[0043] In the above embodiments, by updating the detection synchronization message through the update instruction triggered by the target account on the fault detection device, the user can flexibly configure the message transmission range and improve the granularity and flexibility of communication.

[0044] In step S203, the target synchronization application corresponding to the fault detection data is determined from the multi-application collaboration system based on the message propagation flag, cross-domain flag, target address and / or the domain identifier of the application to be synchronized. In one specific embodiment, the target synchronization application can be a collaborative application corresponding to the target application. Specifically, the fault detection data corresponding to the target application can be synchronized to the target synchronization application.

[0045] In an optional embodiment, the method of determining the target synchronization application corresponding to the fault detection data from the multi-application collaboration system based on the message propagation flag, cross-domain flag, target address, and / or the domain identifier of the application to be synchronized includes: When the message propagation flag indicates that the fault detection data is directed to the application with the target address, and the cross-domain flag indicates that the fault detection data is sent to the application domain to be synchronized, the application with the target address in the application domain to be synchronized is determined as the target synchronization application corresponding to the fault detection data based on the target address and the identifier of the application domain to be synchronized.

[0046] In a specific embodiment, taking the target detection application domain as 01 as an example, the detection synchronization message can be 5A (frame header) 00 00 00 0E (data field length) 38 00 (control field) 03 (domain ID) 12 34 (target address) 56 78 (source address) 00 00 00 01 (serial number) 01 23 45 (fault detection data) A1 B2 C3 D4 (CRC), such as... Figure 3 The frame structure diagram shown indicates that the control field can be 38 00. Converting the control field to binary 0011 10000000 0000, the message propagation flag is 0 and the cross-domain flag is 1. Accordingly, the detection synchronization message can instruct the fault detection data to be sent across domains to the application with address 0x1234 in application domain 03 to be synchronized.

[0047] In the above embodiments, by detecting the message propagation flag, cross-domain flag, and target address in the synchronization message, fault detection data can be synchronized to a specified application in a specified domain, thereby achieving accurate synchronization of fault detection data and reducing bus load.

[0048] In an optional embodiment, the method of determining the target synchronization application corresponding to the fault detection data from the multi-application collaboration system based on the message propagation flag, cross-domain flag, target address, and / or the domain identifier of the application to be synchronized includes: When the message propagation flag indicates that fault detection data should not be sent to the application with the target address, and the cross-domain flag indicates that fault detection data should not be sent to the application domain to be synchronized, the application other than the target application in the target detection application domain is determined as the target synchronization application corresponding to the fault detection data based on the target address.

[0049] In a specific embodiment, taking the target detection application domain as 01 as an example, the detection synchronization message can be 5A (frame header) 00 00 00 0E (data field length) 38 00 (control field) 03 (domain ID) 12 34 (target address) 56 78 (source address) 00 00 00 01 (serial number) 01 23 45 (fault detection data) A1 B2 C3 D4 (CRC), such as... Figure 3 The frame structure diagram shown indicates that the control field can be 38 00. Converting the control field to binary 1000 00000000 0000, the message propagation flag is 1, the cross-domain flag is 0, and the target address is 0x1234. Accordingly, the target application can be an application with address 0x1234 in the 01 domain.

[0050] In a specific embodiment, taking the target detection application domain as 01 as an example, the target detection application domain includes application addresses that can be 0x1233, 0x1234, 0x1235, and 0x1236. Specifically, 0x1233 can be the master, used to receive detection synchronization messages and send them to the target application 0x1234. 0x1234, 0x1235, and 0x1236 can be slaves. Correspondingly, as... Figure 4 As shown, the detection synchronization message can instruct fault detection data to be sent to applications in the 01 domain except for those with addresses 0x1235 and 0x1236.

[0051] In the above embodiments, by detecting the message propagation flag, cross-domain flag, and target address in the synchronization message, fault detection data can be synchronized to all applications in the target detection application domain, thereby improving the efficiency of fault detection data synchronization and reducing synchronization latency.

[0052] In an optional embodiment, the method of determining the target synchronization application corresponding to the fault detection data from the multi-application collaboration system based on the message propagation flag, cross-domain flag, target address, and / or the domain identifier of the application to be synchronized includes: When the message propagation flag indicates that the fault detection data should not be sent to the application with the target address, and the cross-domain flag indicates that the fault detection data should be sent to the application domain to be synchronized, the application in the application domain to be synchronized is determined as the target synchronization application corresponding to the fault detection data based on the application domain identifier.

[0053] In a specific embodiment, taking the target detection application domain as 01 as an example, the detection synchronization message can be 5A (frame header) 00 00 00 0E (data field length) 38 00 (control field) 04 (domain ID) 12 34 (target address) E8 00 (source address) 00 00 00 01 (serial number) 01 23 45 (fault detection data) A1 B2 C3 D4 (CRC), such as... Figure 3 The frame structure diagram shown indicates that the control field can be E8 00. Converting the control field to binary 1110 10000000 0000, the message propagation flag is 1, the cross-domain flag is 1, and the domain ID is 04. Correspondingly, the application domain to be synchronized can be domain 04. Optionally, the application to be synchronized includes the application's address. 0x1233 can be the master, used to receive fault detection data and send it to the application in domain 04. 0x1234 and 0x1235 can be slaves. Specifically, as shown... Figure 4 As shown, the detection synchronization message can instruct fault detection data to be sent to applications in the 04 domain with addresses 0x1233, 0x1234, and 0x1235.

[0054] In the above embodiments, by detecting the message propagation flag, cross-domain flag, and application domain identifier to be synchronized in the synchronization message, fault detection data can be synchronized across domains to all applications in the application domain to be synchronized, thereby improving the accuracy and efficiency of fault detection data and reducing bus load.

[0055] In step S205, fault detection data is sent to the target synchronization application so that the target synchronization application can perform association operations based on the fault detection data.

[0056] In one specific embodiment, the association operation can be an operation performed by the target synchronization application on fault detection data.

[0057] In an optional embodiment, applications in the target detection application domain have a first association relationship, and applications in the target application and the application domain to be synchronized have a second association relationship. Sending fault detection data to the target synchronization application so that the target synchronization application performs an association operation based on the fault detection data includes: When the target synchronization application is an application in the target detection application domain, fault detection data is sent to the application in the target detection application domain so that the application in the target detection application domain performs a first association operation based on the first association relationship and the fault detection data; When the target application to be synchronized is an application in the application domain to be synchronized, fault detection data is sent to the application in the application domain to be synchronized, so that the application in the application domain to be synchronized performs a second association operation based on the second association relationship and the fault detection data.

[0058] In a specific embodiment, the first association relationship can be the intra-domain relationship between applications in the target detection application domain. For example, the target detection application domain can be the power domain, and correspondingly, the target detection application domain can include power system units (internal combustion engine, electric motor, battery, transmission, etc.), and the association relationship between the power system units can be the first association relationship.

[0059] In a specific embodiment, the second association relationship can be the domain relationship between the target application and the application domain to be synchronized. For example, the target detection application domain can be the power domain, and the application domain to be synchronized can be the chassis domain, cockpit domain, body domain, etc. Correspondingly, the association relationship between the power domain and the chassis domain, cockpit domain, body domain, etc. can be the second association relationship.

[0060] In the above embodiments, by sending fault detection data to applications in the same domain or across domains associated with the target application, the applications in the same domain or across domains can perform corresponding operations based on their association with the target application, thereby improving the real-time performance and reliability of fault detection.

[0061] As can be seen from the technical solutions provided in the embodiments of this specification above, this specification receives a detection synchronization message for a target application in a multi-application collaborative system, sends a fault detection instruction to the target application to enable the target application to perform fault detection and obtain fault detection data; wherein, the target application is the application with the target address in the target detection application domain; the detection synchronization message includes a message propagation flag indicating whether to send the fault detection data to the application with the target address, a cross-domain flag indicating whether to send the fault detection data to the application domain to be synchronized, and an application domain identifier to be synchronized; based on the message propagation flag, the cross-domain flag, the target address, and / or the application domain identifier to be synchronized, the target synchronization application corresponding to the fault detection data is determined from the multi-application collaborative system including the target detection application domain and the application domain to be synchronized; the sending range of the fault detection data can be accurately determined based on the flags and the application domain identifier to be synchronized in the detection synchronization message, and the fault detection data is only sent to the collaborative application that needs to be synchronized, improving the granularity and flexibility of communication; sending the fault detection data to the target synchronization application enables the target synchronization application to perform association operations based on the fault detection data; and the efficiency of fault detection can be improved by sending the fault detection data to the collaborative application that needs to be synchronized to enable the collaborative application to perform association operations.

[0062] Figure 5 This is a block diagram illustrating a data synchronization device according to an exemplary embodiment. (Refer to...) Figure 5 The device includes: The fault detection instruction sending module 510 is used to receive a detection synchronization message for a target application in a multi-application collaborative system, and send a fault detection instruction to the target application to enable the target application to perform fault detection and obtain fault detection data. The multi-application collaborative system includes a target detection application domain and a domain to be synchronized. The target application is the application with the target address in the target detection application domain. The detection synchronization message includes a message propagation flag, a cross-domain flag, and an identifier of the domain to be synchronized. The message propagation flag is used to indicate whether to direct the fault detection data to the application with the target address. The cross-domain flag is used to indicate whether to send the fault detection data to the application domain to be synchronized. The application domain to be synchronized includes the application with the target address. The target synchronization application determination module 530 is used to determine the target synchronization application corresponding to the fault detection data from the multi-application collaboration system based on the message propagation flag, cross-domain flag, target address and / or the domain identifier of the application to be synchronized. The fault detection data sending module 550 is used to send fault detection data to the target synchronization application so that the target synchronization application can perform associated operations based on the fault detection data.

[0063] In an optional embodiment, the target synchronization application determination module 530 includes: The first application determination unit is used to determine, based on the target address and the identifier of the application domain to be synchronized, the application with the target address in the application domain to be synchronized as the target synchronization application when the message propagation flag indicates that the fault detection data is directed to the application with the target address and the cross-domain flag indicates that the fault detection data is sent to the application domain to be synchronized.

[0064] In an optional embodiment, the target synchronization application determination module 530 includes: The second application determination unit is used to determine, based on the target address, the application other than the target application in the target detection application domain as the target synchronization application corresponding to the fault detection data, when the message propagation flag indicates that the fault detection data should not be sent to the application with the target address and the cross-domain flag indicates that the fault detection data should not be sent to the application domain to be synchronized.

[0065] In an optional embodiment, the target synchronization application determination module 530 includes: The third application determination unit is used to determine, based on the identifier of the application domain to be synchronized, the application in the application domain to be synchronized as the target synchronization application when the message propagation flag indicates that the fault detection data should not be sent to the application with the target address and the cross-domain flag indicates that the fault detection data should be sent to the application domain to be synchronized.

[0066] In an optional embodiment, applications in the target detection application domain have a first association relationship, and the target application and applications in the application domain to be synchronized have a second association relationship. The fault detection data sending module 550 includes: The first data sending unit is configured to send fault detection data to the application in the target detection application domain when the target synchronization application is an application in the target detection application domain, so that the application in the target detection application domain performs a first association operation based on the first association relationship and the fault detection data. The second data sending unit is used to send fault detection data to the application in the application domain to be synchronized when the target synchronization application is an application in the application domain to be synchronized, so that the application in the application domain to be synchronized can perform a second association operation based on the second association relationship and the fault detection data.

[0067] In an optional embodiment, the detection synchronization message further includes an encryption flag, which indicates whether the detection synchronization message has been encrypted. The fault detection command sending module 510 includes: The key acquisition unit is used to receive the detection synchronization message for the target application in the multi-application collaborative system and acquire the preset key; The decryption unit is used to decrypt the detection synchronization message based on a preset key to obtain the decrypted detection synchronization message. The fault detection instruction sending unit is used to send fault detection instructions to the target application based on the decrypted detection synchronization message, so that the target application can perform fault detection and obtain fault detection data.

[0068] In an optional embodiment, after the fault detection command sending module 510, the above-mentioned apparatus further includes: The third data sending unit is used to send fault detection data to the fault detection device, so that the fault detection device can obtain the updated message propagation flag, the updated cross-domain flag, and the updated application domain identifier to be synchronized based on the fault detection data and the detection synchronization message update instruction triggered by the target account, and update the detection synchronization message.

[0069] Regarding the apparatus in the above embodiments, the specific manner in which each module performs its operation has been described in detail in the embodiments related to the method, and will not be elaborated upon here.

[0070] Figure 6 This is a block diagram illustrating an electronic device for data synchronization according to an exemplary embodiment. The electronic device may be a terminal, and its internal structure diagram may be as follows: Figure 6As shown, the electronic device includes a processor, memory, network interface, display screen, and input devices connected via a system bus. The processor provides computing and control capabilities. The memory includes a non-volatile storage medium and internal memory. The non-volatile storage medium stores the operating system and computer programs. The internal memory provides an environment for the operation of the operating system and computer programs stored in the non-volatile storage medium. The network interface is used to communicate with external terminals via a network connection. When the computer program is executed by the processor, it implements a data synchronization method. The display screen can be a liquid crystal display (LCD) or an e-ink display. The input devices can be a touch layer covering the display screen, buttons, a trackball, or a touchpad mounted on the device's casing, or an external keyboard, touchpad, or mouse. Figure 7 This is a block diagram illustrating an electronic device for data synchronization according to an exemplary embodiment. The electronic device may be a server, and its internal structure diagram may be as follows: Figure 7 As shown, this electronic device includes a processor, memory, and a network interface connected via a system bus. The processor provides computing and control capabilities. The memory includes a non-volatile storage medium and internal memory. The non-volatile storage medium stores the operating system and computer programs. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage medium. The network interface is used to communicate with external terminals via a network connection. When the computer program is executed by the processor, it implements a data synchronization method. Those skilled in the art will understand that Figure 6 or Figure 7 The structure shown is merely a block diagram of a portion of the structure related to the present disclosure and does not constitute a limitation on the electronic device to which the present disclosure is applied. A specific electronic device may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements. In an exemplary embodiment, an electronic device is also provided, including: a processor; and a memory for storing processor-executable instructions; wherein the processor is configured to execute the instructions to implement a data synchronization method as described in the embodiments of this disclosure.

[0071] In an exemplary embodiment, a computer-readable storage medium is also provided, wherein when instructions in the storage medium are executed by a processor of an electronic device, the electronic device is enabled to perform the data synchronization method of the present disclosure embodiments.

[0072] Other embodiments of this disclosure will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of this disclosure that follow the general principles of this disclosure and include common knowledge or customary techniques in the art not disclosed herein. The specification and examples are to be considered exemplary only, and the true scope and spirit of this disclosure are indicated by the following claims.

[0073] It should be understood that this disclosure is not limited to the precise structures described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of this disclosure is limited only by the appended claims.

Claims

1. A data synchronization method, characterized in that, include: The system receives a detection synchronization message for a target application in a multi-application collaborative system, sends a fault detection instruction to the target application to enable it to perform fault detection and obtain fault detection data. The multi-application collaborative system includes a target detection application domain and a domain to be synchronized. The target application is an application within the target detection application domain with a target address. The detection synchronization message includes a message propagation flag, a cross-domain flag, and a domain identifier to be synchronized. The message propagation flag indicates whether to direct the fault detection data to the application with the target address. The cross-domain flag indicates whether to send the fault detection data to the domain to be synchronized. The domain to be synchronized includes applications with the target address. Based on the message propagation flag, the cross-domain flag, the target address, and / or the domain identifier of the application to be synchronized, the target synchronization application corresponding to the fault detection data is determined from the multi-application collaboration system. The fault detection data is sent to the target synchronization application so that the target synchronization application performs an association operation based on the fault detection data.

2. The data synchronization method according to claim 1, characterized in that, The step of determining the target synchronization application corresponding to the fault detection data from the multi-application collaboration system based on the message propagation flag, the cross-domain flag, the target address, and / or the domain identifier of the application to be synchronized includes: When the message propagation flag indicates that the fault detection data is directed to the application with the target address, and the cross-domain flag indicates that the fault detection data is sent to the application domain to be synchronized, the application with the target address in the application domain to be synchronized is determined to be the target synchronization application corresponding to the fault detection data based on the target address and the identifier of the application domain to be synchronized.

3. The data synchronization method according to claim 1, characterized in that, The step of determining the target synchronization application corresponding to the fault detection data from the multi-application collaboration system based on the message propagation flag, the cross-domain flag, the target address, and / or the domain identifier of the application to be synchronized includes: When the message propagation flag indicates that the fault detection data should not be sent to the application with the target address, and the cross-domain flag indicates that the fault detection data should not be sent to the application domain to be synchronized, based on the target address, the application other than the target application in the target detection application domain is determined as the target synchronization application corresponding to the fault detection data.

4. The data synchronization method according to claim 1, characterized in that, The step of determining the target synchronization application corresponding to the fault detection data from the multi-application collaboration system based on the message propagation flag, the cross-domain flag, the target address, and / or the domain identifier of the application to be synchronized includes: When the message propagation flag indicates that the fault detection data should not be sent to the application with the target address, and the cross-domain flag indicates that the fault detection data should be sent to the application domain to be synchronized, the application in the application domain to be synchronized is determined to be the target synchronization application corresponding to the fault detection data based on the application domain identifier.

5. The data synchronization method according to claim 1, characterized in that, The applications in the target detection application domain have a first association relationship, and the target application and the applications in the application domain to be synchronized have a second association relationship. Sending the fault detection data to the target synchronization application so that the target synchronization application performs an association operation based on the fault detection data includes: In the case where the target synchronization application is an application in the target detection application domain, the fault detection data is sent to the application in the target detection application domain so that the application in the target detection application domain performs a first association operation based on the first association relationship and the fault detection data; When the target synchronization application is an application in the application domain to be synchronized, the fault detection data is sent to the application in the application domain to be synchronized, so that the application in the application domain to be synchronized performs a second association operation based on the second association relationship and the fault detection data.

6. The data synchronization method according to claim 1, characterized in that, The detection synchronization message also includes an encryption flag, which indicates whether the detection synchronization message has been encrypted. Receiving the detection synchronization message for a target application in the multi-application collaboration system, sending a fault detection command to the target application to enable it to perform fault detection, and obtaining fault detection data includes: Receive detection synchronization messages for target applications in a multi-application collaborative system and obtain a preset key; Based on the preset key, the detection synchronization message is decrypted to obtain the decrypted detection synchronization message; Based on the decrypted detection synchronization message, a fault detection command is sent to the target application to enable the target application to perform fault detection and obtain fault detection data.

7. The data synchronization method according to claim 1, characterized in that, After receiving a detection synchronization message for a target application in a multi-application collaborative system, sending a fault detection command to the target application to enable the target application to perform fault detection, and obtaining fault detection data, the method further includes: The fault detection data is sent to the fault detection device so that the fault detection device can obtain the updated message propagation flag, the updated cross-domain flag, and the updated application domain identifier to be synchronized based on the fault detection data and the detection synchronization message update instruction triggered by the target account, and update the detection synchronization message.

8. A data synchronization device, characterized in that, include: A fault detection instruction sending module is used to receive a detection synchronization message for a target application in a multi-application collaborative system, and send a fault detection instruction to the target application to enable the target application to perform fault detection and obtain fault detection data. The multi-application collaborative system includes a target detection application domain and a domain to be synchronized. The target application is an application in the target detection application domain with a target address. The detection synchronization message includes a message propagation flag, a cross-domain flag, and a domain identifier to be synchronized. The message propagation flag indicates whether to direct the fault detection data to the application with the target address. The cross-domain flag indicates whether to send the fault detection data to the domain to be synchronized. The domain to be synchronized includes applications with the target address. The target synchronization application determination module is used to determine the target synchronization application corresponding to the fault detection data from the multi-application collaboration system based on the message propagation flag, the cross-domain flag, the target address and / or the domain identifier of the application to be synchronized. The fault detection data sending module is used to send the fault detection data to the target synchronization application so that the target synchronization application can perform association operations based on the fault detection data.

9. An electronic device, characterized in that, include: processor; Memory used to store the processor's executable instructions; The processor is configured to execute the instructions to implement the data synchronization method as described in any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that, When the instructions in the storage medium are executed by the processor of the electronic device, the electronic device is able to perform the data synchronization method as described in any one of claims 1 to 7.