Data processing method and device

By detecting the change of the target signal during signal processing and applying the change formula to update the message, the problem of signal changes in the prior art requires updating documents or databases, and the effect of reducing communication costs is achieved.

CN115529110BActive Publication Date: 2024-11-19WEICHAI POWER CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202211215267.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-09-30
Publication Date
2024-11-19
Estimated Expiration
2042-09-30

AI Technical Summary

Technical Problem

In the prior art During signal processing, signal changes require updating documents or databases, resulting in increased communication costs.

Method used

By detecting the change of the target signal, the target byte and signal parameters in the preset message are determined, the change formula is used to calculate the new signal parameters, the message is updated and sent to the receiver, and the receiver reverses the signal change.

Benefits of technology

No need to update documents or databases, directly learn signal changes through new messages, reducing communication costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115529110B_ABST
    Figure CN115529110B_ABST
Patent Text Reader

Abstract

The present invention provides a data processing method and device, the method comprising: when a change in a target signal is detected, determining a target byte corresponding to the target signal in a preset first message; determining a first signal parameter corresponding to the target signal in the target byte; applying a preset change formula to calculate the first signal parameter corresponding to the target signal to obtain a second signal parameter; based on the second signal parameter, updating the target byte corresponding to the target signal in the first message to obtain a second message; sending the first message and the second message to a preset receiving end, triggering the receiving end to apply the change formula to reversely deduce the target signal that has changed between the first message and the second message and the second signal parameter after the target signal has changed. By applying the method provided by the present invention, the change of the signal can be directly known through the new message without updating the document or database, thereby reducing the communication cost.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of signal processing, and in particular to a data processing method and device. Background Art

[0002] In the process of sending signals through the protocol, it is necessary to determine in advance whether the signal has changed, so that the receiving end can adjust the signal-related parameters in time according to the changed signal when it is determined that the signal has changed.

[0003] In the prior art, the relevant information of the signal is usually transmitted to the receiving end through a document or database, and the receiving end processes the signal accordingly according to the document or database. Similarly, if the signal changes, the document or database needs to be reorganized and the communication with other receiving ends needs to be re-conducted, thereby increasing the communication cost. Summary of the invention

[0004] In view of this, the present invention provides a data processing method, through which signal changes can be directly known through new messages without updating documents or databases, thereby reducing communication costs.

[0005] The present invention also provides a data processing device to ensure the implementation and application of the above method in practice.

[0006] A data processing method, comprising:

[0007] When a change in the target signal is detected, determining a target byte corresponding to the target signal in a preset first message;

[0008] Determine a first signal parameter corresponding to the target signal in the target byte;

[0009] Applying a preset change formula to calculate the first signal parameter corresponding to the target signal to obtain a second signal parameter;

[0010] Based on the second signal parameter, updating the target byte corresponding to the target signal in the first message to obtain a second message;

[0011] The first message and the second message are sent to a preset receiving end, triggering the receiving end to apply the change formula to reversely deduce the target signal that has changed between the first message and the second message and the second signal parameter after the target signal has changed.

[0012] In the above method, optionally, the determining the target byte corresponding to the target signal in the preset first message includes:

[0013] Acquire change information uploaded in advance by a user for changing the target signal;

[0014] Parsing the change information to obtain a signal identifier of the target signal;

[0015] The byte corresponding to the signal identifier in the first message is searched, and the byte corresponding to the signal identifier is determined to be the target byte corresponding to the target signal.

[0016] In the above method, optionally, the applying a preset change formula to calculate the first signal parameter corresponding to the target signal to obtain the second signal parameter includes:

[0017] Determine a first reference byte and a second reference byte associated with the target byte in the first message, wherein the first reference byte is used to represent a scale factor of the target signal, and the second reference byte is used to represent an offset of the target signal;

[0018] Obtaining a first reference value corresponding to a scaling factor currently set in the first reference byte;

[0019] Obtaining a second reference value corresponding to the offset currently set in the first reference byte;

[0020] The first signal parameter, the first reference value and the second reference value are calculated by applying the change formula to obtain the second signal parameter.

[0021] In the above method, optionally, obtaining a first reference value corresponding to a scaling factor currently set in the first reference byte includes:

[0022] Checking whether the first reference byte has calibrated a reference value corresponding to the scale factor of the target signal;

[0023] When the first reference byte has calibrated a reference value corresponding to the scale factor of the target signal, obtaining the reference value corresponding to the scale factor of the target signal calibrated in the first reference byte as a first reference value;

[0024] When the first reference byte does not calibrate a reference value corresponding to the scale factor of the target signal, the scale factor of the target signal is measured, and a measured value of the scale factor of the target signal is obtained as a first reference value.

[0025] In the above method, optionally, obtaining the second reference value corresponding to the offset currently set in the first reference byte includes:

[0026] Checking whether the second reference byte has calibrated a reference value corresponding to the offset of the target signal;

[0027] When the second reference byte has calibrated the reference value corresponding to the offset of the target signal, obtaining the reference value corresponding to the offset of the target signal calibrated in the second reference byte as a second reference value;

[0028] When the second reference byte does not calibrate the reference value corresponding to the offset of the target signal, the offset of the target signal is measured, and a measured value of the offset of the target signal is obtained as a second reference value.

[0029] A data processing device, comprising:

[0030] A first determining unit, configured to determine a target byte corresponding to the target signal in a preset first message when a change in the target signal is detected;

[0031] A second determining unit, configured to determine a first signal parameter corresponding to the target signal in the target byte;

[0032] a calculation unit, configured to calculate the first signal parameter corresponding to the target signal by applying a preset change formula to obtain a second signal parameter;

[0033] An updating unit, configured to update a target byte corresponding to the target signal in the first message based on the second signal parameter to obtain a second message;

[0034] A sending unit is used to send the first message and the second message to a preset receiving end, triggering the receiving end to apply the change formula to reversely deduce the target signal that has changed between the first message and the second message and the second signal parameter after the target signal has changed.

[0035] In the above device, optionally, the first determining unit includes:

[0036] A first acquisition subunit is used to acquire change information uploaded in advance by a user for changing the target signal;

[0037] A parsing subunit, configured to parse the change information to obtain a signal identifier of the target signal;

[0038] The first determination subunit is used to search for the byte corresponding to the signal identifier in the first message, and determine that the byte corresponding to the signal identifier is the target byte corresponding to the target signal.

[0039] In the above device, optionally, the computing unit comprises:

[0040] A second determining subunit, configured to determine a first reference byte and a second reference byte associated with the target byte in the first message, wherein the first reference byte is used to represent a scale factor of the target signal, and the second reference byte is used to represent an offset of the target signal;

[0041] A second acquisition subunit, configured to acquire a first reference value corresponding to a scale factor currently set in the first reference byte;

[0042] A third acquisition subunit, configured to acquire a second reference value corresponding to the offset currently set in the first reference byte;

[0043] The calculation subunit is used to apply the change formula to calculate the first signal parameter, the first reference value and the second reference value to obtain the second signal parameter.

[0044] In the above device, optionally, the second acquisition subunit includes:

[0045] The first checking sub-unit is used to check whether the first reference byte has been calibrated with the reference value corresponding to the scale factor of the target signal; when the first reference byte has been calibrated with the reference value corresponding to the scale factor of the target signal, the reference value corresponding to the scale factor of the target signal calibrated in the first reference byte is obtained as a first reference value; when the first reference byte has not been calibrated with the reference value corresponding to the scale factor of the target signal, the scale factor of the target signal is measured, and the measured value of the scale factor of the target signal is obtained as the first reference value.

[0046] In the above device, optionally, the third acquisition subunit includes:

[0047] A second checking sub-unit is used to check whether the second reference byte has calibrated the reference value corresponding to the offset of the target signal; when the second reference byte has calibrated the reference value corresponding to the offset of the target signal, obtain the reference value corresponding to the offset of the target signal calibrated in the second reference byte as a second reference value; when the second reference byte has not calibrated the reference value corresponding to the offset of the target signal, measure the offset of the target signal, and obtain the measured value of the offset of the target signal as the second reference value.

[0048] A storage medium includes stored instructions, wherein when the instructions are executed, the device where the storage medium is located is controlled to execute the above-mentioned data processing method.

[0049] An electronic device includes a memory and one or more instructions, wherein the one or more instructions are stored in the memory and are configured to be executed by one or more processors to perform the above data processing method.

[0050] Compared with the prior art, the present invention has the following advantages:

[0051] The present invention provides a data processing method, including: when a change in a target signal is detected, determining a target byte corresponding to the target signal in a preset first message; determining a first signal parameter corresponding to the target signal in the target byte; applying a preset change formula to calculate the first signal parameter corresponding to the target signal to obtain a second signal parameter; based on the second signal parameter, updating the target byte corresponding to the target signal in the first message to obtain a second message; sending the first message and the second message to a preset receiving end, triggering the receiving end to apply the change formula to reversely deduce the target signal that has changed between the first message and the second message and the second signal parameter after the target signal has changed. By applying the method provided by the present invention, there is no need to update documents or databases, and the change of the signal can be directly known through new messages, thereby reducing communication costs. BRIEF DESCRIPTION OF THE DRAWINGS

[0052] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.

[0053] Figure 1 A method flow chart of a data processing method provided by an embodiment of the present invention;

[0054] Figure 2 A flowchart of another method of a data processing method provided by an embodiment of the present invention;

[0055] Figure 3 A flowchart of another method of a data processing method provided by an embodiment of the present invention;

[0056] Figure 4 An example diagram of a CANFD message structure provided in an embodiment of the present invention;

[0057] Figure 5 A device structure diagram of a data processing device provided by an embodiment of the present invention;

[0058] Figure 6 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0059] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0060] In this application, relational terms such as first and second, etc. are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. The terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of more restrictions, the elements defined by the sentence "comprise one..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.

[0061] The present invention can be used in many general or special computing device environments or configurations, such as personal computers, server computers, handheld or portable devices, tablet devices, multi-processor devices, distributed computing environments including any of the above devices or devices, etc.

[0062] The embodiment of the present invention provides a data processing method, which can be applied to various system platforms, and the execution subject can be a processor of a computer terminal or various mobile devices. The method flow chart of the method is as follows: Figure 1 As shown, specifically including:

[0063] S101: When a change in a target signal is detected, a target byte corresponding to the target signal in a preset first message is determined.

[0064] It can be understood that the bytes in the first message are used to represent the signals that the message needs to transmit.

[0065] S102: Determine a first signal parameter corresponding to the target signal in the target byte.

[0066] It can be understood that the target byte records the specific data to be transmitted by the target signal, wherein the data to be transmitted is the first signal parameter.

[0067] S103: Apply a preset change formula to calculate the first signal parameter corresponding to the target signal to obtain a second signal parameter.

[0068] It is understandable that when the target signal changes, the data representing the target signal to be transmitted needs to change, and the first signal parameter is changed to the second signal parameter through the change formula.

[0069] In the present invention, the first signal parameter is the original parameter before the change, and the change formula is:

[0070] Second signal parameter=(first signal parameter+offset)*scaling factor.

[0071] The offset and the scale factor are specific reference values ​​of the offset and the scale factor related to the target signal recorded in the reference byte associated with the target byte.

[0072] S104: Based on the second signal parameter, update the target byte corresponding to the target signal in the first message to obtain a second message.

[0073] Specifically, the first signal parameter in the first message is replaced with the second signal parameter to obtain the second message.

[0074] S105: Send the first message and the second message to a preset receiving end, triggering the receiving end to apply the change formula to reversely deduce the target signal that has changed between the first message and the second message and the second signal parameter after the target signal has changed.

[0075] It should be noted that the messages before and after the change (the first message and the second message) are sent to the receiving end, and the receiving end calculates the physical value of the signal according to the change formula.

[0076] In the method provided by the embodiment of the present invention, when the target signal changes, the target byte corresponding to the target signal in the first message is determined; the first signal parameter corresponding to the target signal recorded in the target byte is determined, and the second signal parameter in the target byte after the target signal is changed is calculated by the change formula. And the second message is generated according to the second signal parameter. The first message and the second message are sent to the receiving end at the same time, and the receiving end can infer the changed target signal based on the two messages according to the change formula.

[0077] By applying the method provided in the embodiment of the present invention, when a signal changes, there is no need to update the document or database, and the change of the signal can be directly known through a new message, thereby reducing communication costs.

[0078] In the method provided by the embodiment of the present invention, the process of determining the target byte corresponding to the target signal in the preset first message is as follows: Figure 2As shown, including:

[0079] S201: Acquire change information uploaded in advance by a user for changing the target signal.

[0080] It should be noted that the change information may include the signal identifier of the target signal, the position in the first message, and the changed parameters.

[0081] S202: Analyze the change information to obtain a signal identifier of the target signal.

[0082] S203: Searching for the byte corresponding to the signal identifier in the first message, and determining that the byte corresponding to the signal identifier is the target byte corresponding to the target signal.

[0083] It can be understood that each byte in the first message can correspond to a different signal identifier, and the target byte used to represent the target signal can be found through the signal identifier of the target signal.

[0084] In the method provided in the embodiment of the present invention, the process of applying the preset change formula to calculate the first signal parameter corresponding to the target signal to obtain the second signal parameter is as follows: Figure 3 As shown, including:

[0085] S301: Determine a first reference byte and a second reference byte associated with the target byte in the first message.

[0086] The first reference byte is used to represent the scale factor of the target signal, and the second reference byte is used to represent the offset of the target signal.

[0087] S302: Obtain a first reference value corresponding to the scaling factor currently set in the first reference byte.

[0088] The obtaining of a first reference value corresponding to a scaling factor currently set in the first reference byte includes:

[0089] Checking whether the first reference byte has calibrated a reference value corresponding to the scale factor of the target signal;

[0090] When the first reference byte has calibrated a reference value corresponding to the scale factor of the target signal, obtaining the reference value corresponding to the scale factor of the target signal calibrated in the first reference byte as a first reference value;

[0091] When the first reference byte does not calibrate a reference value corresponding to the scale factor of the target signal, the scale factor of the target signal is measured, and a measured value of the scale factor of the target signal is obtained as a first reference value.

[0092] It can be understood that the proportional factor used to represent the signal accuracy in the first reference byte associated with the target byte can be a calibration quantity (a specific parameter value that has been fixed) or a measurement quantity (a quantity that can only be determined through measurement), and the measurement quantity can change at any time.

[0093] S303: Obtain a second reference value corresponding to the offset currently set in the first reference byte.

[0094] The obtaining of a second reference value corresponding to the offset currently set in the first reference byte includes:

[0095] Checking whether the second reference byte has calibrated a reference value corresponding to the offset of the target signal;

[0096] When the second reference byte has calibrated the reference value corresponding to the offset of the target signal, obtaining the reference value corresponding to the offset of the target signal calibrated in the second reference byte as a second reference value;

[0097] When the second reference byte does not calibrate the reference value corresponding to the offset of the target signal, the offset of the target signal is measured, and a measured value of the offset of the target signal is obtained as a second reference value.

[0098] It can be understood that the offset used to represent the signal accuracy in the second reference byte associated with the target byte can be a calibration quantity (a specific parameter value that has been fixed) or a measurement quantity (a quantity that can only be determined through measurement), and the measurement quantity can change at any time.

[0099] S304: Apply the change formula to calculate the first signal parameter, the first reference value and the second reference value to obtain the second signal parameter.

[0100] The second signal parameter=(the first signal parameter+the second reference value)*the first reference value.

[0101] Based on the method provided in the above embodiment, Figure 4 Taking the CANFD message structure as an example, the data processing process provided by the present invention has the following specific implementation methods:

[0102] For the sender:

[0103] In the CANFD message, Byte3 is used to represent the speed signal, where the calibrated signal parameter is the speed value of the speed signal, Byte1 represents the scale factor of the speed signal, that is, the first reference value, Byte2 represents the offset of the speed signal, that is, the second reference value, and Byte4 to Byte64 respectively represent the signal value of other signals that need to be transmitted in the message or the scale factor or offset of a certain signal; when the speed value in the CANFD message changes, the change formula of the signal value corresponding to the changed Byte3 is as follows:

[0104] Byte3 = (speed (rpm) + Byte2) * Byte1;

[0105] Among them, Byte1 can be a calibration quantity or a measurement quantity, Byte2 can be a calibration quantity or a measurement quantity; Byte3 represents the second signal parameter after the original signal is changed, and the speed (rpm) represents the speed value before the change, that is, the first signal parameter.

[0106] For the receiving end:

[0107] According to the following formula, calculate the signal speed value:

[0108] Rotation speed (rpm) = Byte3 / Byte1-Byte2.

[0109] It should be noted that if the signal length is 2 bytes or 4 bytes, the corresponding inputs in the calculation formula are also 2 bytes or 4 bytes. The state variable does not need to be converted for precision, and the proportional factor and offset do not need to be transmitted synchronously. Byte1 and Byte2 can correspond to two calibration quantities on the sender, and the corresponding data can be calibrated to achieve adjustment; it can also be adjusted in real time according to the working conditions.

[0110] The specific implementation processes and derivative methods of the above-mentioned embodiments are all within the protection scope of the present invention.

[0111] and Figure 1 Corresponding to the method described above, the embodiment of the present invention further provides a data processing device for Figure 1 In order to implement the method in the embodiment of the present invention, the data processing device provided in the embodiment of the present invention can be applied to a computer terminal or various mobile devices, and its structural diagram is as follows: Figure 5 As shown, specifically including:

[0112] A first determining unit 501 is configured to determine a target byte corresponding to the target signal in a preset first message when a change in the target signal is detected;

[0113] A second determining unit 502 is used to determine a first signal parameter corresponding to the target signal in the target byte;

[0114] A calculation unit 503 is used to calculate the first signal parameter corresponding to the target signal by applying a preset change formula to obtain a second signal parameter;

[0115] An updating unit 504, configured to update a target byte corresponding to the target signal in the first message based on the second signal parameter to obtain a second message;

[0116] The sending unit 505 is used to send the first message and the second message to a preset receiving end, triggering the receiving end to apply the change formula to reversely deduce the target signal that has changed between the first message and the second message and the second signal parameter after the target signal has changed.

[0117] In the device provided by the embodiment of the present invention, when the target signal changes, the target byte corresponding to the target signal in the first message is determined; the first signal parameter corresponding to the target signal recorded in the target byte is determined, and the second signal parameter in the target byte after the target signal is changed is calculated by the change formula. And the second message is generated according to the second signal parameter. The first message and the second message are sent to the receiving end at the same time, and the receiving end can infer the changed target signal based on the two messages according to the change formula.

[0118] By using the device provided by the embodiment of the present invention, when a signal changes, there is no need to update the document or database, and the change of the signal can be directly known through a new message, thereby reducing communication costs.

[0119] In the device provided by the embodiment of the present invention, the first determining unit 501 includes:

[0120] A first acquisition subunit is used to acquire change information uploaded in advance by a user for changing the target signal;

[0121] A parsing subunit, configured to parse the change information to obtain a signal identifier of the target signal;

[0122] The first determination subunit is used to search for the byte corresponding to the signal identifier in the first message, and determine that the byte corresponding to the signal identifier is the target byte corresponding to the target signal.

[0123] In the device provided by the embodiment of the present invention, the calculation unit 503 includes:

[0124] A second determining subunit, configured to determine a first reference byte and a second reference byte associated with the target byte in the first message, wherein the first reference byte is used to represent a scale factor of the target signal, and the second reference byte is used to represent an offset of the target signal;

[0125] A second acquisition subunit, configured to acquire a first reference value corresponding to a scale factor currently set in the first reference byte;

[0126] A third acquisition subunit, configured to acquire a second reference value corresponding to the offset currently set in the first reference byte;

[0127] The calculation subunit is used to apply the change formula to calculate the first signal parameter, the first reference value and the second reference value to obtain the second signal parameter.

[0128] In the device provided by the embodiment of the present invention, the second obtaining subunit includes:

[0129] The first checking sub-unit is used to check whether the first reference byte has been calibrated with the reference value corresponding to the scale factor of the target signal; when the first reference byte has been calibrated with the reference value corresponding to the scale factor of the target signal, the reference value corresponding to the scale factor of the target signal calibrated in the first reference byte is obtained as a first reference value; when the first reference byte has not been calibrated with the reference value corresponding to the scale factor of the target signal, the scale factor of the target signal is measured, and the measured value of the scale factor of the target signal is obtained as the first reference value.

[0130] In the device provided by the embodiment of the present invention, the third acquisition subunit includes:

[0131] A second checking sub-unit is used to check whether the second reference byte has calibrated the reference value corresponding to the offset of the target signal; when the second reference byte has calibrated the reference value corresponding to the offset of the target signal, obtain the reference value corresponding to the offset of the target signal calibrated in the second reference byte as a second reference value; when the second reference byte has not calibrated the reference value corresponding to the offset of the target signal, measure the offset of the target signal, and obtain the measured value of the offset of the target signal as the second reference value.

[0132] For the specific working process of each unit and sub-unit in the data processing device disclosed in the above embodiment of the present invention, reference can be made to the corresponding content in the data processing method disclosed in the above embodiment of the present invention, and will not be repeated here.

[0133] An embodiment of the present invention further provides a storage medium, which includes stored instructions, wherein when the instructions are executed, the device where the storage medium is located is controlled to execute the above-mentioned data processing method.

[0134] The embodiment of the present invention further provides an electronic device, the structural diagram of which is shown in FIG. Figure 6As shown, it specifically includes a memory 601 and one or more instructions 602, wherein the one or more instructions 602 are stored in the memory 601 and are configured to be executed by one or more processors 603 to perform the following operations:

[0135] When a change in the target signal is detected, determining a target byte corresponding to the target signal in a preset first message;

[0136] Determine a first signal parameter corresponding to the target signal in the target byte;

[0137] Applying a preset change formula to calculate the first signal parameter corresponding to the target signal to obtain a second signal parameter;

[0138] Based on the second signal parameter, updating the target byte corresponding to the target signal in the first message to obtain a second message;

[0139] The first message and the second message are sent to a preset receiving end, triggering the receiving end to apply the change formula to reversely deduce the target signal that has changed between the first message and the second message and the second signal parameter after the target signal has changed.

[0140] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can refer to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system or system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can refer to the partial description of the method embodiment. The system and system embodiments described above are merely schematic, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without creative work.

[0141] Those skilled in the art may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein may be implemented by electronic hardware, computer software, or a combination of both.

[0142] In order to clearly illustrate the interchangeability of hardware and software, the above description has generally described the components and steps of each example according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of the present invention.

[0143] The above description of the disclosed embodiments enables one skilled in the art to implement or use the present invention. Various modifications to these embodiments will be apparent to one skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A data processing method, characterized in that: include: When a change in the target signal is detected, determining a target byte corresponding to the target signal in a preset first message; Determine a first signal parameter corresponding to the target signal in the target byte; Applying a preset change formula to calculate the first signal parameter corresponding to the target signal to obtain a second signal parameter; Based on the second signal parameter, updating the target byte corresponding to the target signal in the first message to obtain a second message; The first message and the second message are sent to a preset receiving end, triggering the receiving end to apply the change formula to reversely deduce the target signal that has changed between the first message and the second message and the second signal parameter after the target signal has changed.

2. The method according to claim 1, characterized in that: The determining a target byte corresponding to the target signal in the preset first message includes: Acquire change information uploaded in advance by a user for changing the target signal; Parsing the change information to obtain a signal identifier of the target signal; The byte corresponding to the signal identifier in the first message is searched, and the byte corresponding to the signal identifier is determined to be the target byte corresponding to the target signal.

3. The method according to claim 1, characterized in that: The applying a preset change formula to calculate the first signal parameter corresponding to the target signal to obtain the second signal parameter includes: Determine a first reference byte and a second reference byte associated with the target byte in the first message, wherein the first reference byte is used to represent a scale factor of the target signal, and the second reference byte is used to represent an offset of the target signal; Obtaining a first reference value corresponding to a scaling factor currently set in the first reference byte; Obtaining a second reference value corresponding to the offset currently set in the first reference byte; The first signal parameter, the first reference value and the second reference value are calculated by applying the change formula to obtain the second signal parameter.

4. The method according to claim 3, characterized in that The obtaining a first reference value corresponding to the scale factor currently set in the first reference byte includes: Checking whether the first reference byte has calibrated a reference value corresponding to the scale factor of the target signal; When the first reference byte has calibrated a reference value corresponding to the scale factor of the target signal, obtaining the reference value corresponding to the scale factor of the target signal calibrated in the first reference byte as a first reference value; When the first reference byte does not calibrate a reference value corresponding to the scale factor of the target signal, the scale factor of the target signal is measured, and a measured value of the scale factor of the target signal is obtained as a first reference value.

5. The method according to claim 3, characterized in that: The obtaining a second reference value corresponding to the offset currently set in the first reference byte includes: Checking whether the second reference byte has calibrated a reference value corresponding to the offset of the target signal; When the second reference byte has calibrated the reference value corresponding to the offset of the target signal, obtaining the reference value corresponding to the offset of the target signal calibrated in the second reference byte as the second reference value; When the second reference byte does not calibrate the reference value corresponding to the offset of the target signal, the offset of the target signal is measured, and a measured value of the offset of the target signal is obtained as a second reference value.

6. A data processing device, characterized in that: include: A first determining unit, configured to determine a target byte corresponding to the target signal in a preset first message when a change in the target signal is detected; A second determining unit, configured to determine a first signal parameter corresponding to the target signal in the target byte; a calculation unit, configured to calculate the first signal parameter corresponding to the target signal by applying a preset change formula to obtain a second signal parameter; An updating unit, configured to update a target byte corresponding to the target signal in the first message based on the second signal parameter to obtain a second message; A sending unit is used to send the first message and the second message to a preset receiving end, triggering the receiving end to apply the change formula to reversely deduce the target signal that has changed between the first message and the second message and the second signal parameter after the target signal has changed.

7. The device according to claim 6, characterized in that The first determining unit includes: A first acquisition subunit is used to acquire change information uploaded in advance by a user for changing the target signal; A parsing subunit, configured to parse the change information to obtain a signal identifier of the target signal; The first determination subunit is used to search for the byte corresponding to the signal identifier in the first message, and determine that the byte corresponding to the signal identifier is the target byte corresponding to the target signal.

8. The device according to claim 6, characterized in that The computing unit comprises: A second determining subunit, configured to determine a first reference byte and a second reference byte associated with the target byte in the first message, wherein the first reference byte is used to represent a scale factor of the target signal, and the second reference byte is used to represent an offset of the target signal; A second acquisition subunit, configured to acquire a first reference value corresponding to a scale factor currently set in the first reference byte; A third acquisition subunit, configured to acquire a second reference value corresponding to the offset currently set in the first reference byte; The calculation subunit is used to apply the change formula to calculate the first signal parameter, the first reference value and the second reference value to obtain the second signal parameter.

9. The device according to claim 8, characterized in that The second acquisition subunit includes: The first checking sub-unit is used to check whether the first reference byte has been calibrated with the reference value corresponding to the scale factor of the target signal; when the first reference byte has been calibrated with the reference value corresponding to the scale factor of the target signal, the reference value corresponding to the scale factor of the target signal calibrated in the first reference byte is obtained as a first reference value; when the first reference byte has not been calibrated with the reference value corresponding to the scale factor of the target signal, the scale factor of the target signal is measured, and the measured value of the scale factor of the target signal is obtained as the first reference value.

10. The device according to claim 8, characterized in that The third acquisition subunit includes: The second checking sub-unit is used to check whether the second reference byte has calibrated the reference value corresponding to the offset of the target signal; when the second reference byte has calibrated the reference value corresponding to the offset of the target signal, obtain the reference value corresponding to the offset of the target signal calibrated in the second reference byte as a second reference value; when the second reference byte has not calibrated the reference value corresponding to the offset of the target signal, measure the offset of the target signal, and obtain the measured value of the offset of the target signal as the second reference value.