Method, device and system for synchronizing information between heterogeneous systems and storage medium
By creating an XCP proxy in the XCP system and creating an APP proxy in non-XCP systems, information synchronization between heterogeneous systems is achieved, and the calibration work is improved. efficiency and convenience.
Patent Information
- Application Number
- CN202310967501.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-08-02
- Publication Date
- 2025-02-14
AI Technical Summary
The existing technology cannot effectively synchronize the multi-system architecture in heterogeneous chips, resulting in calibration engineers needing to switch multiple XCP servers, affecting calibration efficiency and convenience.
By creating an XCP proxy in the XCP system and creating an APP proxy in a non-XCP system with calibration requirements, communication between the XCP proxy and the APP proxy is realized, allowing calibration engineers to calibrate heterogeneous systems through a set of XCP servers and Observation.
The synchronization of information between heterogeneous systems is achieved, the efficiency and convenience of calibration work is improved, and the need to equip XCP servers in XCP systems and non-XCP systems is avoided.
Smart Images

Figure CN119449813A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of automobile calibration, and in particular to a method, device, system and storage medium for synchronizing information between heterogeneous systems. Background Art
[0002] During the automotive software development phase, the initial value of the signal often cannot meet the product's pursuit of economy, power, comfort and regulatory requirements. At this time, calibration engineers need to constantly adjust software parameters, check results, adjust parameters again, and check results again. This cycle continues until a set of software parameters that meet the needs of all parties is obtained. During the calibration process, the XCP (Universal Measurement and Calibration Protocol) protocol is used to calibrate and observe software signals to assist in software parameter tuning.
[0003] Heterogeneous chips refer to chips that combine two or more different types of processors or architectures. Since heterogeneous chips are composed of different processors or architectures, they must run different software. The system composed of different software running on the same heterogeneous chip is a heterogeneous system. Heterogeneous systems include XCP systems and non-XCP systems. XCP systems include XCP clients and XCP servers. The existing XCP server does not support the multi-system architecture of calibrating heterogeneous chips at the same time. Therefore, for a heterogeneous system, it is necessary to equip each non-XCP system and XCP system with a set of XCP servers. However, each non-XCP system and XCP system is equipped with a set of XCP servers. Calibration engineers need to switch between two XCP servers during observation and calibration, which makes it inconvenient for calibration engineers to use and affects the efficiency of observation and calibration.
[0004] Therefore, how to provide a method for information synchronization between heterogeneous systems to improve the efficiency and convenience of calibration work has become a technical problem that needs to be solved urgently. Summary of the invention
[0005] The present application provides a method, device, system and storage medium for synchronizing information between heterogeneous systems, which are used to implement calibration and observation in heterogeneous chips through a set of XCP servers, thereby improving the efficiency and convenience of calibration work.
[0006] The present application provides a method for information synchronization between heterogeneous systems, which is used for an XCP server in an XCP system, including:
[0007] When receiving a calibration request sent by the XCP client, obtaining a calibration address of the calibration request;
[0008] When the calibration address is the address of the target system, the calibration request is sent to the built-in APP agent of the target system through the XCP agent, wherein the target system is a non-XCP system connected to the local area and has a calibration requirement, and the XCP agent is a locally built-in agent for communicating with the APP agent of the target system;
[0009] Receiving, through the XCP agent, response information of the APP agent built into the target system to the calibration request;
[0010] When the response information is a positive response, the calibration signal value corresponding to the calibration request of the local backup is changed.
[0011] The beneficial effects of the present application are: when a calibration request sent by an XCP client is received, an address corresponding to the calibration request is obtained; when the address corresponding to the calibration request is the address of the target system, the calibration request is sent to an APP agent built into the target system through an XCP agent, wherein the target system is a non-XCP system connected to the local area and has a calibration requirement, and the XCP agent is a locally built-in agent for communicating with the APP agent of the target system; response information of the APP agent built into the target system to the calibration request is received through the XCP agent; when the response information is an affirmative response, a calibration signal value corresponding to the calibration request backed up locally is changed, and after the calibration signal value corresponding to the calibration request backed up locally is changed, a notification message of successful calibration change can be sent to the XCP client. Furthermore, by creating an XCP agent in the XCP system and creating an APP agent in a non-XCP system with calibration requirements, the XCP agent can communicate with the APP agent. Calibration engineers can implement calibration and observation of heterogeneous systems through only one set of XCP servers. There is no need to equip the XCP system and non-XCP system with XCP servers respectively and to perform calibration and observation by switching XCP servers, which improves the efficiency and convenience of calibration work.
[0012] In one embodiment, the method further comprises:
[0013] When the address corresponding to the calibration request is a local address, the local calibration signal value is directly changed, backed up and reported.
[0014] In one embodiment, before sending the calibration request to the built-in APP agent of the target system through the XCP agent, the method further includes:
[0015] Receive the version information of the target system signal sent by the built-in APP agent of the target system through the XCP agent;
[0016] Verifying the version information;
[0017] When the version information verification succeeds, the locally backed-up calibration signal value is synchronized with the calibration signal value of the target system.
[0018] The beneficial effect of this embodiment is that: since the same signal value represents different meanings in systems of different versions, before sending the calibration request to the built-in APP agent of the target system through the XCP agent, it is necessary to first verify the version information of the target system, thereby avoiding the inconsistency between the actual changed signal of the non-XCP system and the backup signal of the XCP system due to inconsistent system versions.
[0019] In one embodiment, synchronizing the locally backed-up calibration signal value with the calibration signal value of the target system includes:
[0020] Send a message of successful version information verification to the APP agent through the XCP agent;
[0021] Receiving, through the XCP agent, a check value of a calibration signal in the target system sent by the APP agent;
[0022] Comparing the check value of the locally backed-up calibration signal with the check value of the calibration signal in the target system;
[0023] When the comparison result indicates that the check values are consistent, determining that the calibration signal value of the local backup is in a synchronization state with the calibration signal value of the target system;
[0024] When the comparison result indicates that the check values are inconsistent, the locally backed-up calibration signal value is sent to the built-in APP agent of the target system through the XCP agent, so that the target system synchronizes the signal value according to the locally backed-up calibration signal value.
[0025] The beneficial effect of this embodiment is that since the APP agent is an application on the target system, it may be killed and restarted at an uncertain time, or the application may be restarted due to an error during operation, which may cause the calibration signal of the App agent to be inconsistent with the local backup of the XCP agent. In this embodiment, after the XCP agent sends a message that the version information verification is successful to the APP agent, the XCP agent receives the verification value of the calibration signal in the target system sent by the APP agent, and compares it with the verification value of the calibration signal backed up locally, and when the verification value is inconsistent, the XCP agent sends the calibration signal value of the local backup to the built-in APP agent of the target system, so that the target system synchronizes the signal value according to the calibration signal value of the local backup. Furthermore, it can ensure that the calibration signals of the App agent are consistent with the local backup of the XCP agent.
[0026] In one embodiment, the method further comprises:
[0027] The XCP agent periodically receives the heartbeat message signal sent by the APP agent;
[0028] When the heartbeat message signal sending time interval is less than the preset time interval, it is determined that the connection between the XCP agent and the APP agent is normal.
[0029] The beneficial effects of this embodiment are: the heartbeat message signal sent by the APP agent is periodically received by the XCP agent to monitor the communication status between the XCP agent and the APP agent; when the time interval for sending the heartbeat message signal is less than the preset time interval, it is determined that the connection between the XCP agent and the APP agent is normal, thereby avoiding the situation where calibration failure is caused by abnormal communication status connection between the XCP agent and the APP agent.
[0030] In one embodiment, the method further comprises:
[0031] When receiving an observation request sent by the XCP client, obtaining the address corresponding to the observation request;
[0032] When the address corresponding to the observation request is the address of the target system, the observation request is sent to the built-in APP agent of the target system through the XCP agent;
[0033] When the preset information of the signal to be observed corresponding to the observation request fed back by the APP agent is received through the XCP agent, the preset information of the signal to be observed is backed up locally.
[0034] The beneficial effects of this embodiment are: when receiving an observation request sent by the XCP client, the address corresponding to the observation request is obtained; when the address corresponding to the observation request is the address of the target system, the observation request is sent to the APP agent built into the target system through the XCP agent; when the preset information of the signal to be observed corresponding to the observation request fed back by the APP agent is received through the XCP agent, the preset information of the signal to be observed is backed up locally. Furthermore, during the observation process, it is ensured that the calibration signal of the App agent is consistent with the local backup signal of the XCP agent.
[0035] In one embodiment, the method further comprises:
[0036] Receiving preset information corresponding to each signal to be observed sent by the system where each signal to be observed is located through the XCP agent at a preset frequency;
[0037] Compare the preset information corresponding to each signal to be observed sent by the system where each signal to be observed is located with the preset information of the same signal to be observed backed up locally;
[0038] When the comparison result indicates that there is a change in the number or signal value of the target signal to be observed, the preset information of the same signal to be observed backed up locally is updated according to the changed number or signal value of the target signal to be observed, and the message of updating the preset information of the same signal to be observed backed up locally is reported to the XCP client.
[0039] The present application also provides a method for synchronizing information between heterogeneous systems, which is used for a target system connected to an XCP server, comprising:
[0040] When a calibration request sent by a built-in XCP agent of the XCP server is received through the built-in APP agent, a calibration signal value corresponding to the calibration request is determined;
[0041] Determining whether a calibration signal value corresponding to the calibration request exceeds a calibration interval;
[0042] When the calibration signal value corresponding to the calibration request does not exceed the calibration interval, the calibration signal value corresponding to the calibration request is changed accordingly, and a positive response message is sent to the built-in XCP agent of the XCP server through the built-in APP agent;
[0043] When the calibration signal value corresponding to the calibration request exceeds the calibration interval, a negative response message is sent to the built-in XCP agent of the XCP server through the built-in APP agent.
[0044] The beneficial effects of the present application are: for a non-XCP target system, when a calibration request sent by a built-in XCP agent of an XCP server is received through a built-in APP agent, the calibration signal value corresponding to the calibration request is determined; it is determined whether the calibration signal value corresponding to the calibration request exceeds the calibration interval; when the calibration signal value corresponding to the calibration request does not exceed the calibration interval, the calibration signal value corresponding to the calibration request is changed accordingly, and a positive response message is sent to the built-in XCP agent of the XCP server through the built-in APP agent; when the calibration signal value corresponding to the calibration request exceeds the calibration interval, a negative response message is sent to the built-in XCP agent of the XCP server through the built-in APP agent. Furthermore, for a non-XCP system in a heterogeneous chip, the XCP agent in the XCP system can be communicated through the APP agent, without configuring an XCP client on the non-XCP system, and a set of XCP servers can be used to meet the requirements of multiple heterogeneous multi-systems to support calibration and observation signals, and calibration engineers can not feel the difference between this system and a single-core controller at all, thereby improving the efficiency and convenience of calibration work.
[0045] In one embodiment, the method further comprises:
[0046] When the built-in APP agent is initialized, the version information of the signal corresponding to the local signal is sent to the XCP agent through the APP agent;
[0047] When a message indicating successful version information verification sent by the XCP agent is received through the APP agent, a verification value of a local calibration signal is sent to the XCP agent through the built-in APP agent;
[0048] Comparing the check value of the locally backed-up calibration signal with the check value of the calibration signal in the target system;
[0049] When the APP agent receives information that the check value comparison result sent by the XCP agent is consistent, it is determined that the calibration signal value backed up by the XCP server and the local calibration signal value are in a synchronized state;
[0050] When the comparison result indicates that the check values are inconsistent, the local calibration signal value is synchronized with the calibration signal value backed up by the XCP server and sent by the XCP proxy.
[0051] The present application also provides a device for information synchronization between heterogeneous systems, which is used for an XCP server in an XCP system, including:
[0052] A first acquisition module, configured to acquire a calibration address of a calibration request when receiving a calibration request sent by an XCP client;
[0053] A first sending module, configured to send the calibration request to an APP agent built into the target system through an XCP agent when the calibration address is the address of the target system, wherein the target system is a non-XCP system connected to a local system and having a calibration requirement, and the XCP agent is a locally built-in agent for communicating with the APP agent of the target system;
[0054] A first receiving module is used to receive, through an XCP agent, response information of the built-in APP agent of the target system to the calibration request;
[0055] A changing module is used to change the calibration signal value corresponding to the calibration request of the local backup when the response information is a positive response.
[0056] In one embodiment, the modification module is further used for:
[0057] When the address corresponding to the calibration request is a local address, the local calibration signal value is directly changed, backed up and reported.
[0058] In one embodiment, the apparatus further comprises:
[0059] The second receiving module is used to receive the version information of the target system internal signal sent by the built-in APP agent of the target system through the XCP agent;
[0060] A verification module, used to verify the version information;
[0061] The synchronization module is used to synchronize the calibration signal value of the local backup with the calibration signal value of the target system when the version information verification succeeds.
[0062] In one embodiment, the synchronization module includes:
[0063] A first sending submodule, used to send a message of successful version information verification to the APP agent through the XCP agent;
[0064] A receiving submodule, used for receiving, through an XCP agent, a check value of a calibration signal in the target system sent by the APP agent;
[0065] A comparison submodule, used to compare the check value of the calibration signal backed up locally with the check value of the calibration signal in the target system;
[0066] A determination submodule, for determining that the calibration signal value of the local backup is in a synchronization state with the calibration signal value of the target system when the comparison result indicates that the check values are consistent;
[0067] The second sending submodule is used to send the locally backed-up calibration signal value to the built-in APP agent of the target system through the XCP agent when the comparison result indicates that the check value is inconsistent, so that the target system synchronizes the signal value according to the locally backed-up calibration signal value.
[0068] In one embodiment, the apparatus further comprises:
[0069] A second sending module is used to periodically receive the heartbeat message signal sent by the APP agent through the XCP agent;
[0070] The determination module is used to determine that the connection between the XCP agent and the APP agent is normal when the heartbeat message signal sending time interval is less than a preset time interval.
[0071] In one embodiment, the apparatus further comprises:
[0072] A second acquisition module is used to acquire an address corresponding to the observation request when receiving the observation request sent by the XCP client;
[0073] A third sending submodule is used for sending the observation request to the built-in APP agent of the target system through the XCP agent when the address corresponding to the observation request is the address of the target system;
[0074] The backup module is used to back up the preset information of the signal to be observed locally when the preset information of the signal to be observed corresponding to the observation request fed back by the APP agent is received through the XCP agent.
[0075] In one embodiment, the apparatus further comprises:
[0076] The third receiving module is used to receive preset information corresponding to each signal to be observed sent by the system where each signal to be observed is located through the XCP agent at a preset frequency;
[0077] A comparison module, used for comparing the preset information corresponding to each signal to be observed sent by the system where each signal to be observed is located with the preset information of the same signal to be observed backed up locally;
[0078] The update module is used to update the preset information of the same signal to be observed that is backed up locally when the comparison result indicates that the number or signal value of the target signal to be observed has changed according to the number or signal value of the target signal to be observed that has changed, and report the message of updating the preset information of the same signal to be observed that is backed up locally to the XCP client.
[0079] The present application also provides a device for synchronizing information between heterogeneous systems, which is used for a target system connected to an XCP server, including:
[0080] A receiving module, configured to determine a calibration signal value corresponding to the calibration request when receiving a calibration request sent by a built-in XCP agent of the XCP server through the built-in APP agent;
[0081] A judging module, used to judge whether the calibration signal value corresponding to the calibration request exceeds the calibration interval;
[0082] A first sending module, configured to change the calibration signal value corresponding to the calibration request when the calibration signal value corresponding to the calibration request does not exceed the calibration interval, and send a positive response message to the built-in XCP agent of the XCP server through the built-in APP agent;
[0083] The second sending module is used to send a negative response message to the built-in XCP agent of the XCP server through the built-in APP agent when the calibration signal value corresponding to the calibration request exceeds the calibration interval.
[0084] In one embodiment, the apparatus further comprises:
[0085] A third sending module is used to send version information of a signal corresponding to a local signal to the XCP agent through the APP agent when the built-in APP agent is initialized;
[0086] A fourth sending module, configured to send a verification value of a local calibration signal to the XCP agent through a built-in APP agent when receiving a message indicating successful version information verification sent by the XCP agent through the APP agent;
[0087] A comparison module, used for comparing the check value of the calibration signal backed up locally with the check value of the calibration signal in the target system;
[0088] A determination module, configured to determine that the calibration signal value backed up by the XCP server and the local calibration signal value are in a synchronized state when receiving information that the check value comparison result sent by the XCP agent is consistent through the APP agent;
[0089] The synchronization module is used to synchronize the local calibration signal value with the calibration signal value backed up by the XCP server sent by the XCP agent when the comparison result indicates that the check values are inconsistent.
[0090] The present application also provides a system for synchronizing information between heterogeneous systems, including:
[0091] at least one processor; and,
[0092] a memory communicatively connected to the at least one processor; wherein,
[0093] The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to implement the method for information synchronization between heterogeneous systems recorded in any of the above embodiments.
[0094] The present application also provides a computer-readable storage medium. When the instructions in the storage medium are executed by a processor corresponding to the system for information synchronization between heterogeneous systems, the system for information synchronization between heterogeneous systems can implement the method for information synchronization between heterogeneous systems recorded in any of the above embodiments.
[0095] Other features and advantages of the present application will be described in the following description, and partly become apparent from the description, or be understood by practicing the present application. The purpose and other advantages of the present application can be realized and obtained by the structures specifically pointed out in the written description, claims, and drawings.
[0096] The technical solution of the present application is further described in detail below through the accompanying drawings and embodiments. BRIEF DESCRIPTION OF THE DRAWINGS
[0097] The accompanying drawings are used to provide a further understanding of the present application and constitute a part of the specification. Together with the embodiments of the present application, they are used to explain the present application and do not constitute a limitation of the present application. In the accompanying drawings:
[0098] Figure 1 This is a flow chart of a method for information synchronization between heterogeneous systems in one embodiment of the present application;
[0099] Figure 2 A connection diagram of the XCP system communicating with the non-XCP system in one embodiment of the present application;
[0100] Figure 3 This is a flow chart of a method for information synchronization between heterogeneous systems in one embodiment of the present application;
[0101] Figure 4 This is a schematic diagram of the structure of a device for synchronizing information between heterogeneous systems in one embodiment of the present application;
[0102] Figure 5 This is a structural schematic diagram of a device for synchronizing information between heterogeneous systems in another embodiment of the present application;
[0103] Figure 6 The present invention is a schematic diagram of the hardware structure of a system for synchronizing information between heterogeneous systems in one embodiment of the present application. DETAILED DESCRIPTION
[0104] The preferred embodiments of the present application are described below in conjunction with the accompanying drawings. It should be understood that the preferred embodiments described herein are only used to illustrate and explain the present application and are not used to limit the present application.
[0105] Figure 1 Flow chart of a method for information synchronization between heterogeneous systems in one embodiment of the present application. Figure 1 As shown, the method is used for the XCP server in the XCP system, and can be specifically implemented as the following steps S101-S104:
[0106] In step S101, when a calibration request sent by an XCP client is received, a calibration address of the calibration request is obtained;
[0107] In step S102, when the calibration address is the address of the target system, the calibration request is sent to the built-in APP agent of the target system through the XCP agent, wherein the target system is a non-XCP system connected to the local system and has a calibration requirement, and the XCP agent is a locally built-in agent for communicating with the APP agent of the target system;
[0108] In step S103, the response information of the built-in APP agent of the target system to the calibration request is received through the XCP agent;
[0109] In step S104, when the response information is a positive response, the calibration signal value corresponding to the calibration request of the local backup is changed.
[0110] In order to meet the requirements of calibration and observation in heterogeneous chips through a set of XCP servers, in this application, there is only one XCP server protocol stack in a heterogeneous system, and this protocol stack is deployed in a system, which we call an XCP system. The XCP system includes an XCP client and an XCP server, where the client is an application on a computer used by a calibration engineer; the XCP server is set in the controller to be calibrated and observed, and performs corresponding operations when receiving instructions from the client. The method provided in this embodiment is applied to the XCP server in the XCP system.
[0111] Figure 2 FIG. 1 is a schematic diagram of a connection between an XCP system and a non-XCP system in one embodiment of the present application. Figure 2 As shown, an XCP agent is created in the XCP system, and an APP (Application) agent is created in each of the other systems with calibration and observation requirements. The XCP system establishes a communication connection with the APP agent in the non-XCP system through the XCP agent. When there are multiple non-XCP systems, in order to distinguish each non-XCP system, the XCP system needs to assign a number to other systems, or assign a number to each system during the entire system design stage.
[0112] The XCP agent maintains a backup of the calibration signal values and observation signal values of each non-XCP system in the XCP system. When calibrating the calibration signal value of a non-XCP system, the calibration signal value in the non-XCP system is first changed, and then the XCP server changes the calibration signal value of the local backup.
[0113] Specifically, when a calibration request is received from an XCP client, the address corresponding to the calibration request is obtained. Each system has its own address space. When a calibration request is received from an XCP client, the address corresponding to the change request is obtained to determine whether the signal corresponding to the change request is the address of another non-XCP system backed up locally.
[0114] When the address corresponding to the calibration request is the address of the target system, the calibration request is sent to the built-in APP agent of the target system through the XCP agent, wherein the target system is a non-XCP system connected to the local area and having a calibration requirement, and the XCP agent is a locally built-in agent for communicating with the APP agent of the target system. In this application, a number is compiled for each calibration signal value and observation signal value of each non-XCP system, which is convenient for transmitting signals between the XCP agent and the APP agent. The signal uniform number of the entire heterogeneous system can also be a separate number for the signal of each non-calibration system. When the XCP service end receives a calibration request for a specific signal, it checks whether the corresponding request address is the address of other system signals backed up locally. When it is the signal address of other systems backed up locally, the request address is converted into a signal number, and the relevant signal number and the signal value of the request are sent to the corresponding APP agent of the non-XCP system. In addition, because each system supports separate upgrades, the same number may represent different signals in different versions, and the same signal value may also represent different meanings in different versions of the system. Assume that the current calibration and observation signal version of a non-XCP system SystemA is 0x0001, and the calibration and observation signal version of SystemA backed up in the XCP system is also 0x0001. At this time, the APP agent of SystemA communicates with the XCP agent, and there will be no problem in the interactive signal. When SystemA is upgraded by OTA (Over-the-Air Technology) for some reason, after SystemA is upgraded, the calibration and observation version becomes 0x0002, and the calibration and observation signal in the system has changed. At this time, the signal of SystemA is directly calibrated by the XCP system, and the actual change signal may not be the expected change signal. Therefore, in one embodiment of the present application, before the APP agent communicates with the XCP agent, the version information of the target system signal sent by the built-in APP agent of the target system is received by the XCP agent, so as to verify the version of the non-XCP system and the version information backed up in the XCP system. When the version information verification is successful, it means that the APP agent communicates normally with the XCP agent.In another embodiment of the present application, since the APP agent is an application on the target system, it may be killed and restarted at an uncertain time, or the application may be restarted due to an error during operation, which causes the calibration signal of the APP agent to be inconsistent with the local backup of the XCP agent. Therefore, when the system version verification is successful, the APP agent sends the verification values of all calibration signals of its system to the XCP agent. After the XCP agent receives the verification value of the calibration signal in the target system sent by the APP agent, the verification value of the locally backed up calibration signal is compared with the verification value of the calibration signal in the target system; when the comparison result indicates that the verification values are consistent, it is determined that the calibration signal value of the locally backed up is in a synchronized state with the calibration signal value of the target system; when the comparison result indicates that the verification values are inconsistent, the calibration signal value of the locally backed up is sent to the built-in APP agent of the target system through the XCP agent, so that the target system synchronizes the signal value according to the calibration signal value of the locally backed up calibration signal.
[0115] The response information of the built-in APP agent of the target system to the calibration request is received through the XCP agent; after receiving the calibration request, the APP agent calibrates the signal, updates the calibration value locally, and then notifies the APP and XCP agent that use the calibration signal.
[0116] When the response information is a positive response, the XCP agent changes the calibration signal value corresponding to the calibration request of the local backup, and the XCP agent notifies the XCP service of the change of the local backup signal value.
[0117] Of course, when the address corresponding to the calibration request is a local address, the local calibration signal value is directly changed, backed up and reported to the XCP client.
[0118] The beneficial effects of the present application are: when receiving a calibration request sent by an XCP client, obtaining the address corresponding to the calibration request; when the address corresponding to the calibration request is the address of the target system, sending the calibration request to the built-in APP agent of the target system through the XCP agent, wherein the target system is a non-XCP system connected to the local area and having a calibration requirement, and the XCP agent is a locally built-in agent for communicating with the APP agent of the target system; receiving the response information of the built-in APP agent of the target system to the calibration request through the XCP agent; when the response information is a positive response, changing the calibration signal value corresponding to the calibration request backed up locally. Furthermore, by creating an XCP agent in the XCP system and creating an APP agent in a non-XCP system with a calibration requirement, the XCP agent can communicate with the APP agent, and the calibration engineer can realize the calibration and observation of heterogeneous systems through only one set of XCP servers, without the need to equip the XCP system and the non-XCP system with XCP servers respectively and perform calibration and observation by switching the XCP servers, thereby improving the efficiency and convenience of the calibration work.
[0119] In one embodiment, the method may also be implemented as the following step A1:
[0120] In step A1, when the address corresponding to the calibration request is a local address, the local calibration signal value is directly changed, backed up and reported.
[0121] In one embodiment, before the above step S102, the method may also be implemented as the following steps B1-B3:
[0122] In step B1, the version information of the target system internal signal sent by the built-in APP agent of the target system is received through the XCP agent;
[0123] In step B2, the version information is verified;
[0124] In step B3, when the version information verification succeeds, the calibration signal value of the local backup is synchronized with the calibration signal value of the target system.
[0125] In this embodiment, the version information of the signal in the target system sent by the built-in APP agent of the target system is received through the XCP agent. When there are multiple non-XCP systems, in order to distinguish each non-XCP system, a number is compiled for other systems through the XCP system, or a number is compiled for each system during the entire system design phase. Because each system supports separate upgrades, the same number may represent different signals in different versions, and the same signal value may also represent different meanings in different versions of the system. Assume that the current calibration and observation signal version of a non-XCP system SystemA is 0x0001, and the calibration and observation signal version of SystemA backed up in the XCP system is also 0x0001. At this time, the APP agent of SystemA communicates with the XCP agent, and there will be no problem in the interactive signal. When SystemA is OTA upgraded for some reason, after SystemA is upgraded, the calibration and observation version becomes 0x0002, and the calibration and observation signals in the system have changed. At this time, the signal of SystemA is directly calibrated by the XCP system, and the actual changed signal may not be the expected changed signal. Therefore, before the APP agent communicates with the XCP agent, the version information of the target system signal sent by the built-in APP agent of the target system is received through the XCP agent to verify the version of the non-XCP system with the version information backed up in the XCP system. When the version information verification is successful, the APP agent communicates normally with the XCP agent, and the calibration signal value backed up locally can be synchronized with the calibration signal value of the target system.
[0126] The beneficial effect of this embodiment is that: since the same signal value represents different meanings in systems of different versions, before sending the calibration request to the built-in APP agent of the target system through the XCP agent, it is necessary to first verify the version information of the target system, thereby avoiding the inconsistency between the actual changed signal of the non-XCP system and the backup signal of the XCP system due to inconsistent system versions.
[0127] In one embodiment, the above step B3 may be implemented as the following steps B31-B35:
[0128] In step B31, a message indicating that the version information verification is successful is sent to the APP agent through the XCP agent;
[0129] In step B32, the verification value of the calibration signal in the target system sent by the APP agent is received through the XCP agent;
[0130] In step B33, the check value of the locally backed-up calibration signal is compared with the check value of the calibration signal in the target system;
[0131] In step B34, when the comparison result indicates that the check values are consistent, it is determined that the calibration signal value of the local backup is in a synchronized state with the calibration signal value of the target system;
[0132] In step B35, when the comparison result indicates that the check values are inconsistent, the locally backed-up calibration signal value is sent to the built-in APP agent of the target system through the XCP agent, so that the target system synchronizes the signal value according to the locally backed-up calibration signal value.
[0133] In this embodiment, when the system version is successfully verified, a message of successful version information verification is sent to the APP agent through the XCP agent. Since the APP agent is an application on the target system, it may be killed and restarted at an uncertain time, or the application may be restarted due to an error during operation, which causes the calibration signal of the APP agent to be inconsistent with the local backup of the XCP agent. Therefore, the APP agent sends the verification values of all calibration signals of the system in which it is located to the XCP agent. After the XCP agent receives the verification value of the calibration signal in the target system sent by the APP agent, the verification value of the calibration signal of the local backup is compared with the verification value of the calibration signal in the target system; when the comparison result indicates that the verification value is consistent, it is determined that the calibration signal value of the local backup and the calibration signal value of the target system are in a synchronized state; when the comparison result indicates that the verification value is inconsistent, the calibration signal value of the local backup is sent to the built-in APP agent of the target system through the XCP agent, so that the target system synchronizes the signal value according to the calibration signal value of the local backup.
[0134] The beneficial effect of this embodiment is that since the APP agent is an application on the target system, it may be killed and restarted at an uncertain time, or the application may be restarted due to an error during operation, which may cause the calibration signal of the App agent to be inconsistent with the local backup of the XCP agent. In this embodiment, after the XCP agent sends a message that the version information verification is successful to the APP agent, the XCP agent receives the verification value of the calibration signal in the target system sent by the APP agent, and compares it with the verification value of the calibration signal backed up locally, and when the verification value is inconsistent, the XCP agent sends the calibration signal value of the local backup to the built-in APP agent of the target system, so that the target system synchronizes the signal value according to the calibration signal value of the local backup. Furthermore, it can ensure that the calibration signals of the APP agent are consistent with the local backup of the XCP agent.
[0135] In one embodiment, the method can also be implemented as the following steps C1-C2:
[0136] In step C1, a heartbeat message signal sent by the APP agent is periodically received by the XCP agent;
[0137] In step C2, when the heartbeat message signal sending time interval is less than the preset time interval, it is determined that the connection between the XCP agent and the APP agent is normal.
[0138] Since when there is a problem with the communication status between the APP agent and the XCP agent, the XCP client will not be able to calibrate the calibration signal value of the system where the APP agent is located, therefore, in this embodiment, the communication status between the XCP agent and each APP agent is set to the observation signal value, which is convenient for observation on the computer through the XCP client to know whether the communication status is normal at any time.
[0139] In this embodiment, in order to detect the communication status between the XCP agent and the APP agent, the heartbeat message signal sent by the APP agent is periodically received by the XCP agent. When the heartbeat message signal sending time interval is less than the preset time interval, it is determined that the connection between the XCP agent and the APP agent is normal and the communication status is active.
[0140] Furthermore, the initial communication state between the XCP agent and the APP agent is uninitialized; when the XCP agent receives the version information sent by the APP agent, the communication state changes to pending synchronization; when the XCP agent compares the version information sent by the APP agent and the comparison result is that the versions are inconsistent, the communication state is incompatible version; when the versions are consistent but the check values are inconsistent, the XCP agent sends all the calibration signals backed up by the APP agent in this system to the APP agent, and then changes the communication state to active; when the XCP agent does not receive the heartbeat message of the APP agent within the specified time, it is determined that the communication state between the XCP agent and the APP agent is disconnected.
[0141] The beneficial effects of this embodiment are: the heartbeat message signal sent by the APP agent is periodically received by the XCP agent to monitor the communication status between the XCP agent and the APP agent; when the time interval for sending the heartbeat message signal is less than the preset time interval, it is determined that the connection between the XCP agent and the APP agent is normal, thereby avoiding the situation where calibration failure is caused by abnormal communication status connection between the XCP agent and the APP agent.
[0142] In one embodiment, the method can also be implemented as the following steps D1-D3:
[0143] In step D1, when an observation request sent by the XCP client is received, an address corresponding to the observation request is obtained;
[0144] In step D2, when the address corresponding to the observation request is the address of the target system, the observation request is sent to the APP agent built into the target system through the XCP agent;
[0145] In step D3, when the preset information of the signal to be observed corresponding to the observation request fed back by the APP agent is received through the XCP agent, the preset information of the signal to be observed is backed up locally.
[0146] In this embodiment, when an observation request sent by the XCP client is received, the address corresponding to the observation request is obtained; since a number is assigned to each calibration signal value and observation signal value of each non-XCP system in this application, it is convenient to transmit signals between the XCP agent and the APP agent. When the XCP agent receives the observation request, it checks whether the address corresponding to the observation request is the address of the XCP system and whether it is the address of other system signals backed up locally. When the observation request address is neither the address of the XCP system nor the address of other system signals backed up locally, a negative response is directly replied.
[0147] When the address corresponding to the observation request is the address of the target system, the observation address is converted into a signal number, the communication status between the XCP system and the non-XCP system corresponding to the observation request is monitored, and the version information of the XCP system and the non-XCP system corresponding to the observation request is verified. When the communication status is normal and the version verification is consistent, the XCP agent sends the signal number corresponding to the observation request to the built-in APP agent of the target system.
[0148] When the preset information of the signal to be observed corresponding to the observation request fed back by the APP agent is received through the XCP agent, the XCP server backs up the preset information of the signal to be observed locally.
[0149] The beneficial effects of this embodiment are: when receiving an observation request sent by the XCP client, the address corresponding to the observation request is obtained; when the address corresponding to the observation request is the address of the target system, the observation request is sent to the APP agent built into the target system through the XCP agent; when the preset information of the signal to be observed corresponding to the observation request fed back by the APP agent is received through the XCP agent, the preset information of the signal to be observed is backed up locally, wherein the preset information can be the number and signal value of the signal to be observed. Furthermore, during the observation process, it is ensured that the calibration signal of the App agent is consistent with the local backup signal of the XCP agent.
[0150] In one embodiment, the method can also be implemented as the following steps E1-E3:
[0151] In step E1, preset information corresponding to each signal to be observed sent by the system where each signal to be observed is located is received through the XCP agent at a preset frequency;
[0152] In step E2, the preset information corresponding to each signal to be observed sent by the system where each signal to be observed is located is compared with the preset information of the same signal to be observed backed up locally;
[0153] In step E3, when the comparison result indicates that there is a change in the number or signal value of the target signal to be observed, the preset information of the same signal to be observed that is backed up locally is updated according to the changed number or signal value of the target signal to be observed, and the message of updating the preset information of the same signal to be observed that is backed up locally is reported to the XCP client.
[0154] The beneficial effect of this embodiment is that: in order to ensure the consistency of the observed signals of the XCP system and the non-XCP system, the XCP agent periodically receives the number and signal value corresponding to each signal to be observed, and compares them with the preset information of the same signal to be observed backed up locally, and when the comparison result indicates that there is a change in the number or signal value of the target signal to be observed, the preset information of the same signal to be observed backed up locally is updated to ensure that the local backup signal of the XCP agent is consistent with the corresponding preset information of each signal to be observed in the system where it is located.
[0155] Figure 3 Flow chart of a method for information synchronization between heterogeneous systems in one embodiment of the present application. The method can be used for a target system connected to an XCP server, such as Figure 3 As shown, the method can be implemented as the following steps S301-S304:
[0156] In step S301, when a calibration request sent by a built-in XCP agent of an XCP server is received through a built-in APP agent, a calibration signal value corresponding to the calibration request is determined;
[0157] In step S302, it is determined whether the calibration signal value corresponding to the calibration request exceeds the calibration interval;
[0158] In step S303, when the calibration signal value corresponding to the calibration request does not exceed the calibration interval, the calibration signal value corresponding to the calibration request is changed accordingly, and a positive response message is sent to the built-in XCP agent of the XCP server through the built-in APP agent;
[0159] In step S304, when the calibration signal value corresponding to the calibration request exceeds the calibration interval, a negative response message is sent to the built-in XCP agent of the XCP server through the built-in APP agent.
[0160] The method provided in this embodiment is used for a non-XCP system connected to an XCP server in a heterogeneous system. When a calibration request sent by a built-in XCP agent of an XCP server is received through a built-in APP agent, a calibration signal value corresponding to the calibration request is determined; since the XCP system and the non-XCP system have their own numbers, and the calibration signal value and the observation signal value in each system are also numbered, therefore, when the non-XCP system receives a calibration request through the APP agent, the corresponding request address and calibration signal number as well as the change value of the calibration signal are obtained to determine the calibration signal value that needs to be changed and the corresponding change value.
[0161] Determine whether the calibration signal value corresponding to the calibration request exceeds the calibration interval. Compare the change value of the calibration signal value with the calibration interval of the calibration signal value to determine whether it exceeds the calibration interval. When the calibration signal value corresponding to the calibration request does not exceed the calibration interval, the calibration signal value corresponding to the calibration request is changed accordingly, and an affirmative response message is sent to the built-in XCP agent of the XCP server through the APP agent built into the non-XCP system; when the calibration signal value corresponding to the calibration request exceeds the calibration interval, a negative response message is sent to the built-in XCP agent of the XCP server through the APP agent built into the non-XCP system.
[0162] The beneficial effects of this embodiment are: for a non-XCP target system, when a calibration request sent by a built-in XCP agent of an XCP server is received through a built-in APP agent, the calibration signal value corresponding to the calibration request is determined; it is determined whether the calibration signal value corresponding to the calibration request exceeds the calibration interval; when the calibration signal value corresponding to the calibration request does not exceed the calibration interval, the calibration signal value corresponding to the calibration request is changed accordingly, and a positive response message is sent to the built-in XCP agent of the XCP server through the built-in APP agent; when the calibration signal value corresponding to the calibration request exceeds the calibration interval, a negative response message is sent to the built-in XCP agent of the XCP server through the built-in APP agent. Furthermore, for a non-XCP system in a heterogeneous chip, the XCP agent in the XCP system can be communicated through the APP agent, without configuring an XCP client on the non-XCP system, and a set of XCP servers can be used to meet the support of calibration and observation signals for multiple heterogeneous multi-systems, and calibration engineers can not feel the difference between this system and a single-core controller at all, thereby improving the efficiency and convenience of calibration work.
[0163] In one embodiment, the method can also be implemented as the following steps F1-F5:
[0164] In step F1, when the built-in APP agent is initialized, the version information of the signal corresponding to the local signal is sent to the XCP agent through the APP agent;
[0165] In step F2, when the version information verification success message sent by the XCP agent is received through the APP agent, the verification value of the local calibration signal is sent to the XCP agent through the built-in APP agent;
[0166] In step F3, the check value of the locally backed-up calibration signal is compared with the check value of the calibration signal in the target system;
[0167] In step F4, when the APP agent receives information that the check value comparison result sent by the XCP agent is consistent, it is determined that the calibration signal value backed up by the XCP server and the local calibration signal value are in a synchronized state;
[0168] In step F5, when the comparison result indicates that the check values are inconsistent, the local calibration signal value is synchronized with the calibration signal value backed up by the XCP server and sent by the XCP proxy.
[0169] In this embodiment, when the initialization of the built-in APP agent of the non-XCP system is completed, the version information of the signal corresponding to the local signal is sent to the XCP agent through the APP agent to verify the version information of the non-XCP system and the version information backed up by the XCP system to ensure version consistency. When the version information is inconsistent, the system where the APP agent is located does not perform the calibration operation. When the message that the version information verification is successful is received by the APP agent from the XCP agent, the verification value of the local calibration signal is sent to the XCP agent through the built-in APP agent to compare the signal verification value to ensure that the signal value is consistent. When the information that the verification value comparison result sent by the XCP agent is consistent is received by the APP agent, it is determined that the calibration signal value backed up by the XCP server and the local calibration signal value are in a synchronized state; otherwise, the calibration signal value backed up by the XCP server sent by the XCP agent is synchronized with the local calibration signal value.
[0170] Figure 4 FIG. 1 is a schematic diagram of a device for synchronizing information between heterogeneous systems in an embodiment of the present application. The device is used in an XCP server in an XCP system. Figure 4 As shown, the device comprises:
[0171] The first acquisition module 401 is used to acquire the calibration address of the calibration request when receiving the calibration request sent by the XCP client;
[0172] A first sending module 402 is used for sending the calibration request to an APP agent built into the target system through an XCP agent when the calibration address is the address of the target system, wherein the target system is a non-XCP system connected to the local area and having a calibration requirement, and the XCP agent is a locally built-in agent for communicating with the APP agent of the target system;
[0173] The first receiving module 403 is used to receive the response information of the built-in APP agent of the target system to the calibration request through the XCP agent;
[0174] The changing module 404 is used to change the calibration signal value corresponding to the calibration request of the local backup when the response information is a positive response.
[0175] In one embodiment, the modification module is further used for:
[0176] When the address corresponding to the calibration request is a local address, the local calibration signal is directly changed, backed up and reported.
[0177] In one embodiment, the apparatus further comprises:
[0178] The second receiving module is used to receive the version information of the target system internal signal sent by the built-in APP agent of the target system through the XCP agent;
[0179] A verification module, used to verify the version information;
[0180] The synchronization module is used to synchronize the calibration signal value of the local backup with the calibration signal value of the target system when the version information verification succeeds.
[0181] In one embodiment, the synchronization module includes:
[0182] A first sending submodule, used to send a message of successful version information verification to the APP agent through the XCP agent;
[0183] A receiving submodule, used for receiving, through an XCP agent, a check value of a calibration signal in the target system sent by the APP agent;
[0184] A comparison submodule, used to compare the check value of the calibration signal backed up locally with the check value of the calibration signal in the target system;
[0185] A determination submodule, for determining that the calibration signal value of the local backup is in a synchronization state with the calibration signal value of the target system when the comparison result indicates that the check values are consistent;
[0186] The second sending submodule is used to send the locally backed-up calibration signal value to the built-in APP agent of the target system through the XCP agent when the comparison result indicates that the check value is inconsistent, so that the target system synchronizes the signal value according to the locally backed-up calibration signal value.
[0187] In one embodiment, the apparatus further comprises:
[0188] A second sending module is used to periodically receive the heartbeat message signal sent by the APP agent through the XCP agent;
[0189] The determination module is used to determine that the connection between the XCP agent and the APP agent is normal when the heartbeat message signal sending time interval is less than a preset time interval.
[0190] In one embodiment, the apparatus further comprises:
[0191] A second acquisition module is used to acquire an address corresponding to the observation request when receiving the observation request sent by the XCP client;
[0192] A third sending submodule is used for sending the observation request to the built-in APP agent of the target system through the XCP agent when the address corresponding to the observation request is the address of the target system;
[0193] The backup module is used to back up the preset information of the signal to be observed locally when the preset information of the signal to be observed corresponding to the observation request fed back by the APP agent is received through the XCP agent.
[0194] In one embodiment, the apparatus further comprises:
[0195] The third receiving module is used to receive preset information corresponding to each signal to be observed sent by the system where each signal to be observed is located through the XCP agent at a preset frequency;
[0196] A comparison module, used for comparing the preset information corresponding to each signal to be observed sent by the system where each signal to be observed is located with the preset information of the same signal to be observed backed up locally;
[0197] The update module is used to update the preset information of the same signal to be observed that is backed up locally when the comparison result indicates that the number or signal value of the target signal to be observed has changed according to the number or signal value of the target signal to be observed that has changed, and report the message of updating the preset information of the same signal to be observed that is backed up locally to the XCP client.
[0198] Figure 5FIG. 1 is a schematic diagram of a structure of a device for synchronizing information between heterogeneous systems in another embodiment of the present application, wherein the device is used for a target system connected to an XCP server, such as Figure 5 As shown, the device comprises:
[0199] The receiving module 501 is used to determine the calibration signal value corresponding to the calibration request when receiving the calibration request sent by the built-in XCP agent of the XCP server through the built-in APP agent;
[0200] A determination module 502 is used to determine whether the calibration signal value corresponding to the calibration request exceeds the calibration interval;
[0201] The first sending module 503 is used to change the calibration signal value corresponding to the calibration request when the calibration signal value corresponding to the calibration request does not exceed the calibration interval, and send a positive response message to the built-in XCP agent of the XCP server through the built-in APP agent;
[0202] The second sending module 504 is configured to send a negative response message to the built-in XCP agent of the XCP server through the built-in APP agent when the calibration signal value corresponding to the calibration request exceeds the calibration interval.
[0203] In one embodiment, the apparatus further comprises:
[0204] A third sending module is used to send version information of a signal corresponding to a local signal to the XCP agent through the APP agent when the built-in APP agent is initialized;
[0205] A fourth sending module, configured to send a verification value of a local calibration signal to the XCP agent through a built-in APP agent when receiving a message indicating successful version information verification sent by the XCP agent through the APP agent;
[0206] A comparison module, used for comparing the check value of the calibration signal backed up locally with the check value of the calibration signal in the target system;
[0207] A determination module, configured to determine that the calibration signal value backed up by the XCP server and the local calibration signal value are in a synchronized state when receiving information that the check value comparison result sent by the XCP agent is consistent through the APP agent;
[0208] The synchronization module is used to synchronize the local calibration signal value with the calibration signal value backed up by the XCP server sent by the XCP agent when the comparison result indicates that the check values are inconsistent.
[0209] The present application also provides a system for synchronizing information between heterogeneous systems, including:
[0210] at least one processor; and,
[0211] a memory communicatively connected to the at least one processor; wherein,
[0212] The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to implement the method for information synchronization between heterogeneous systems recorded in any of the above embodiments.
[0213] Figure 6 FIG. 1 is a schematic diagram of the hardware structure of a system for information synchronization between heterogeneous systems in one embodiment of the present application. Figure 6 As shown, the system for synchronizing information between heterogeneous systems includes:
[0214] at least one processor 620; and,
[0215] A memory 604 in communication with the at least one processor 620; wherein,
[0216] The memory 604 stores instructions that can be executed by the at least one processor 620, and the instructions are executed by the at least one processor 620 to implement the method for information synchronization between heterogeneous systems recorded in any of the above embodiments.
[0217] Reference Figure 6 The system 600 for synchronizing information between heterogeneous systems may include one or more of the following components: a processing component 602, a memory 604, a power component 606, a multimedia component 608, an audio component 610, an input / output (I / O) interface 612, a sensor component 614, and a communication component 616.
[0218] The processing component 602 generally controls the overall operation of the system 600 for information synchronization between heterogeneous systems. The processing component 602 may include one or more processors 620 to execute instructions to complete all or part of the steps of the above method. In addition, the processing component 602 may include one or more modules to facilitate the interaction between the processing component 602 and other components. For example, the processing component 602 may include a multimedia module to facilitate the interaction between the multimedia component 608 and the processing component 602.
[0219] The memory 604 is configured to store various types of data to support the operation of the system 600 for information synchronization between heterogeneous systems. Examples of such data include instructions for any application or method operating on the system 600 for information synchronization between heterogeneous systems, such as text, pictures, videos, etc. The memory 604 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.
[0220] The power supply component 606 provides power to various components of the system for synchronizing information between heterogeneous systems 600. The power supply component 606 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the vehicle control system 600.
[0221] The multimedia component 608 includes a screen that provides an output interface between the system 600 for information synchronization between heterogeneous systems and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 608 may also include a front camera and / or a rear camera. When the system 600 for information synchronization between heterogeneous systems is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
[0222] The audio component 610 is configured to output and / or input audio signals. For example, the audio component 610 includes a microphone (MIC), and when the system 600 for information synchronization between heterogeneous systems is in an operation mode, such as an alarm mode, a recording mode, a voice recognition mode, and a voice output mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 604 or sent via the communication component 616. In some embodiments, the audio component 610 also includes a speaker for outputting audio signals.
[0223] I / O interface 612 provides an interface between processing component 602 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: a home button, a volume button, a start button, and a lock button.
[0224] The sensor assembly 614 includes one or more sensors for providing various aspects of status assessment for the system 600 for information synchronization between heterogeneous systems. For example, the sensor assembly 614 may include a sound sensor. In addition, the sensor assembly 614 may detect the open / closed state of the system 600 for information synchronization between heterogeneous systems, the relative positioning of components, such as the display and keypad of the system 600 for information synchronization between heterogeneous systems, and the sensor assembly 614 may also detect the operating state of the system 600 for information synchronization between heterogeneous systems or a component of the system 600 for information synchronization between heterogeneous systems, such as the operating state of the air distribution plate, the structural state, the operating state of the discharge scraper, etc., the orientation or acceleration / deceleration of the system 600 for information synchronization between heterogeneous systems and the temperature change of the system 600 for information synchronization between heterogeneous systems. The sensor assembly 614 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 614 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 614 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, a material stack thickness sensor, or a temperature sensor.
[0225] The communication component 616 is configured to enable the system 600 for information synchronization between heterogeneous systems to provide the ability to communicate with other devices and cloud platforms in a wired or wireless manner. The system 600 for information synchronization between heterogeneous systems can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 616 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 616 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.
[0226] In an exemplary embodiment, the system 600 for information synchronization between heterogeneous systems can be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors or other electronic components to execute the method for information synchronization between heterogeneous systems described in any of the above embodiments.
[0227] The present application also provides a computer-readable storage medium. When the instructions in the storage medium are executed by a processor corresponding to the system for information synchronization between heterogeneous systems, the system for information synchronization between heterogeneous systems can implement the method for information synchronization between heterogeneous systems recorded in any of the above embodiments.
[0228] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) that contain computer-usable program code.
[0229] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0230] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0231] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0232] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.
Claims
1. A method for information synchronization between heterogeneous systems, characterized in that: XCP server for universal measurement and calibration protocol XCP system, including: When receiving a calibration request sent by the XCP client, obtaining a calibration address of the calibration request; When the calibration address is the address of the target system, the calibration request is sent to the built-in APP agent of the target system through the XCP agent, wherein the target system is a non-XCP system connected to the local area and has a calibration requirement, and the XCP agent is a locally built-in agent for communicating with the APP agent of the target system; Receiving, through the XCP agent, response information of the APP agent built into the target system to the calibration request; When the response information is a positive response, the calibration signal value corresponding to the calibration request of the local backup is changed.
2. The method according to claim 1, characterized in that Before sending the calibration request to the built-in APP agent of the target system through the XCP agent, the method further includes: Receive the version information of the target system signal sent by the built-in APP agent of the target system through the XCP agent; Verifying the version information; When the version information verification succeeds, the locally backed-up calibration signal value is synchronized with the calibration signal value of the target system.
3. The method according to claim 2, characterized in that The synchronizing the locally backed-up calibration signal value with the calibration signal value of the target system includes: Send a message of successful version information verification to the APP agent through the XCP agent; Receiving, through the XCP agent, a check value of a calibration signal in the target system sent by the APP agent; Comparing the check value of the locally backed-up calibration signal with the check value of the calibration signal in the target system; When the comparison result indicates that the check values are consistent, determining that the calibration signal value of the local backup is in a synchronization state with the calibration signal value of the target system; When the comparison result indicates that the check values are inconsistent, the locally backed-up calibration signal value is sent to the built-in APP agent of the target system through the XCP agent, so that the target system synchronizes the signal value according to the locally backed-up calibration signal value.
4. The method according to claim 1, characterized in that The method further comprises: When receiving an observation request sent by the XCP client, obtaining the address corresponding to the observation request; When the address corresponding to the observation request is the address of the target system, the observation request is sent to the built-in APP agent of the target system through the XCP agent; When the preset information of the signal to be observed corresponding to the observation request fed back by the APP agent is received through the XCP agent, the preset information of the signal to be observed is backed up locally.
5. The method according to claim 4, characterized in that The method further comprises: Receiving preset information corresponding to each signal to be observed sent by the system where each signal to be observed is located through the XCP agent at a preset frequency; Compare the preset information corresponding to each signal to be observed sent by the system where each signal to be observed is located with the preset information of the same signal to be observed backed up locally; When the comparison result indicates that there is a change in the number or signal value of the target signal to be observed, the preset information of the same signal to be observed backed up locally is updated according to the changed number or signal value of the target signal to be observed, and the message of updating the preset information of the same signal to be observed backed up locally is reported to the XCP client.
6. A method for information synchronization between heterogeneous systems, characterized in that: The target system used to connect to the XCP server includes: When a calibration request sent by a built-in XCP agent of the XCP server is received through the built-in APP agent, a calibration signal value corresponding to the calibration request is determined; Determining whether a calibration signal value corresponding to the calibration request exceeds a calibration interval; When the calibration signal value corresponding to the calibration request does not exceed the calibration interval, the calibration signal value corresponding to the calibration request is changed accordingly, and a positive response message is sent to the built-in XCP agent of the XCP server through the built-in APP agent; When the calibration signal value corresponding to the calibration request exceeds the calibration interval, a negative response message is sent to the built-in XCP agent of the XCP server through the built-in APP agent.
7. The method according to claim 6, characterized in that The method further comprises: When the built-in APP agent is initialized, the version information of the signal corresponding to the local signal is sent to the XCP agent through the APP agent; When a message indicating successful version information verification sent by the XCP agent is received through the APP agent, a verification value of a local calibration signal is sent to the XCP agent through the built-in APP agent; Comparing the check value of the locally backed-up calibration signal with the check value of the calibration signal in the target system; When the APP agent receives information that the check value comparison result sent by the XCP agent is consistent, it is determined that the calibration signal value backed up by the XCP server and the local calibration signal value are in a synchronized state; When the comparison result indicates that the check values are inconsistent, the local calibration signal value is synchronized with the calibration signal value backed up by the XCP server and sent by the XCP proxy.
8. A device for information synchronization between heterogeneous systems, characterized in that: XCP server used in the XCP system, including: A first acquisition module, configured to acquire a calibration address of a calibration request when receiving a calibration request sent by an XCP client; A first sending module, configured to send the calibration request to an APP agent built into the target system through an XCP agent when the calibration address is the address of the target system, wherein the target system is a non-XCP system connected to a local system and having a calibration requirement, and the XCP agent is a locally built-in agent for communicating with the APP agent of the target system; A first receiving module is used to receive, through an XCP agent, response information of the built-in APP agent of the target system to the calibration request; A modification module is used to modify the calibration signal value corresponding to the calibration request of the local backup when the response information is a positive response.
9. A device for synchronizing information between heterogeneous systems, characterized in that: The target system used to connect to the XCP server includes: A receiving module, configured to determine a calibration signal value corresponding to the calibration request when receiving a calibration request sent by a built-in XCP agent of the XCP server through the built-in APP agent; A judging module, used to judge whether the calibration signal value corresponding to the calibration request exceeds the calibration interval; A first sending module, configured to change the calibration signal value corresponding to the calibration request when the calibration signal value corresponding to the calibration request does not exceed the calibration interval, and send a positive response message to the built-in XCP agent of the XCP server through the built-in APP agent; The second sending module is used to send a negative response message to the built-in XCP agent of the XCP server through the built-in APP agent when the calibration signal value corresponding to the calibration request exceeds the calibration interval.
10. A system for information synchronization between heterogeneous systems, characterized in that: include: at least one processor; as well as, a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to implement the method for information synchronization between heterogeneous systems as described in any one of claims 1-7.
11. A computer-readable storage medium, characterized in that: When the instructions in the storage medium are executed by a processor corresponding to the system for information synchronization between heterogeneous systems, the system for information synchronization between heterogeneous systems can implement the method for information synchronization between heterogeneous systems as described in any one of claims 1 to 7.