Data processing method, device, medium and equipment

By integrating a variety of signal converters into the host computer of the HIL system, the problem that the signals reported by RTPC do not have physical meaning is solved, and the original value is converted into a physical value with physical meaning, which facilitates equipment performance testing and analysis.

CN116112556BActive Publication Date: 2025-01-24KUNYI ELECTRONICS TECHNOLOGY (SHANGHAI) CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202310086042.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-01-18
Publication Date
2025-01-24
Estimated Expiration
2043-01-18

AI Technical Summary

Technical Problem

In the HIL system, some signals reported by the RTPC to the host computer do not have physical meaning, which makes it impossible for technicians to conduct equipment performance testing and analysis based on these signals.

Method used

In the upper machine integrated definition of a variety of types of signal converters, the corresponding signal converter is retrieved according to the original values ​​of the different types received by the receiving different types, and the physical value with physical meaning is obtained.

Benefits of technology

By converting the physical value, technicians can directly read information or send them to other lower aircraft for further data processing, so as to facilitate equipment performance test analysis.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116112556B_ABST
    Figure CN116112556B_ABST
Patent Text Reader

Abstract

The embodiment of the present application provides a data processing method, device, medium and equipment, the method comprising: receiving the original value of the physical information used to characterize the preset target; determining the signal converter calling method corresponding to the original value according to the attribute information carried by the original value; calling the target signal converter used to convert the original value into a physical value according to the signal converter calling method; converting the original value into a physical value through the target signal converter. Using the data processing method provided by the embodiment of the present application, by integrating and defining multiple types of signal converters in the upper computer, the corresponding signal converter can be called for different types of original values ​​received to convert them, and a physical value with physical meaning can be obtained for the technician to directly read the information or send it to other lower computers for further data processing, so as to facilitate the technician to perform equipment performance test and analysis operations.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of electronic communication technology, and in particular to the field of data processing technology, and in particular to a data processing method, device, medium and equipment. Background Art

[0002] HIL (Hardware-in-the-Loop) systems usually include a host computer, RTPC (real-time-PC), I / O boards, etc. The host computer can be used as a software platform, usually including experimental management software and automated testing software to implement functions such as test management, fault injection, test case editing and automated testing. During the equipment performance test and analysis process, the RTPC will report the signals generated during the test to the host computer, and display the signals to the technicians through the host computer. However, some of the signals reported to the host computer by the RTPC do not have physical meanings, and most of them are only used for communication between machines. Through the original values, users cannot intuitively recognize the physical meaning, resulting in the inability to directly perform equipment performance test analysis based on such signals that do not have physical meanings. Summary of the invention

[0003] The embodiments of the present application provide a data processing method, apparatus, medium and equipment. By utilizing the data processing method provided by the embodiments of the present application, by integrating and defining various types of signal converters in a host computer, the corresponding signal converters can be called for different types of original values ​​received to convert them, and physical values ​​with physical meanings can be obtained for technicians to directly read the information or send to other lower computers for further data processing, thereby facilitating technicians to perform equipment performance test and analysis operations.

[0004] On the one hand, an embodiment of the present application provides a data processing method, which is applied to a host computer of a HIL system. The data processing method includes:

[0005] Receiving an original value of physical information used to characterize a preset target, wherein the original value is used by a machine other than the host computer in the HIL system to identify or describe the physical information;

[0006] Determining a signal converter calling method corresponding to the original value according to the attribute information carried by the original value;

[0007] Calling a target signal converter for converting the original value into a physical value according to the signal converter calling method, wherein the physical value is used by a user to recognize the physical information;

[0008] The raw value is converted into a physical value by the target signal converter.

[0009] In the data processing method described in the embodiment of the present application, if the attribute information defines the conversion relationship between the original value and the physical value, the signal converter calling method includes:

[0010] Calculate similarity values ​​of the first text corresponding to the conversion relationship and the second text corresponding to the applicable rules of each signal converter in the database to obtain calculation results corresponding to each second text;

[0011] Determine from the calculation results the target second text corresponding to the one whose similarity value exceeds a preset threshold and has the largest value;

[0012] The signal converter corresponding to the target second text is used as the target signal converter.

[0013] In the data processing method described in the embodiment of the present application, if the attribute information is a signal source defining an original value, the signal converter calling method includes:

[0014] Determining a target signal source corresponding to the original value in the attribute information;

[0015] Determine a target signal converter type corresponding to the target signal source based on a pre-created mapping relationship between signal sources and signal converter types;

[0016] A signal converter corresponding to the target signal converter type is called as the target signal converter.

[0017] In the data processing method described in the embodiment of the present application, the target signal converter is configured as follows:

[0018] The original value is not processed, and a physical value consistent with the original value is directly output.

[0019] In the data processing method described in the embodiment of the present application, the target signal converter is configured as follows:

[0020] The original value is input into a preset model for signal conversion processing, and a physical value is output.

[0021] In the data processing method described in the embodiment of the present application, the target signal converter is configured as follows:

[0022] Determine a first preset array to which the original value belongs;

[0023] Determining a second preset array that matches the first preset array;

[0024] Matching a second target position corresponding to the first target position from the second preset array according to the first target position of the original value in the first preset array;

[0025] The numerical value corresponding to the second target position is used as the physical value.

[0026] In the data processing method described in the embodiment of the present application, after converting the original value into a physical value by the target signal converter, the method further includes:

[0027] Send the physical value to a host computer for display; or

[0028] The physical value is sent to the lower computer for data processing.

[0029] Accordingly, another aspect of the present application embodiment further provides a data processing device, the data processing device comprising:

[0030] A receiving module, used to receive an original value of physical information used to characterize a preset target, wherein the original value is used by a machine other than the host computer in the HIL system to identify or describe the physical information;

[0031] A determination module, configured to determine a signal converter calling mode corresponding to the original value according to the attribute information carried by the original value;

[0032] A calling module, configured to call a target signal converter for converting the original value into a physical value according to the signal converter calling method, wherein the physical value is used by a user to recognize the physical information;

[0033] A conversion module is used to convert the original value into a physical value through the target signal converter.

[0034] Correspondingly, another aspect of the embodiment of the present application further provides a storage medium, wherein the storage medium stores a plurality of instructions, and the instructions are suitable for loading by a processor to execute the data processing method as described above.

[0035] Correspondingly, on the other hand, an embodiment of the present application further provides a terminal device, including a processor and a memory, wherein the memory stores a plurality of instructions, and the processor loads the instructions to execute the data processing method as described above.

[0036] The embodiment of the present application provides a data processing method, device, medium and equipment, which receives the original value of physical information used to characterize a preset target, wherein the original value is used by machines other than the host computer in the HIL system to identify or describe the physical information; according to the attribute information carried by the original value, determines the signal converter calling method corresponding to the original value; calls the target signal converter used to convert the original value into a physical value according to the signal converter calling method, wherein the physical value is used by the user to recognize the physical information; and converts the original value into a physical value through the target signal converter. Using the data processing method provided by the embodiment of the present application, by integrating and defining multiple types of signal converters in the host computer, the corresponding signal converter can be called for different types of original values ​​received to convert them, and a physical value with physical meaning is obtained for the technician to directly read the information or send it to other lower computers for further data processing, so as to facilitate the technician to perform equipment performance test and analysis operations. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present application, and those skilled in the art can obtain other drawings based on these drawings without creative work.

[0038] Figure 1 A flowchart of a data processing method provided in an embodiment of the present application.

[0039] Figure 2 A schematic diagram of the structure of a data processing device provided in an embodiment of the present application.

[0040] Figure 3 Another structural schematic diagram of the data processing device provided in an embodiment of the present application.

[0041] Figure 4 A schematic diagram of the structure of a terminal device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0042] The technical solutions in the embodiments of the present application will be described clearly and completely below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present application.

[0043] It should be noted that the following is a brief introduction to the background of this program:

[0044] This solution is mainly developed around the technical problem that "in the HIL (Hardware-in-the-Loop) system, during the data exchange between the host computer and the slave computer, some signals reported to the host computer by the RTPC (real-time-PC) as a bridge do not have physical meanings. Most of these signals are only used for communication between machines, and non-professionals cannot directly read the information, resulting in the inability to directly perform equipment performance test analysis based on such signals that do not have physical meanings." It can be understood that the HIL system can usually include a host computer, RTPC, I / O boards, etc., among which the host computer can be used as a software platform, usually including experimental management software and automated testing software, to realize functions such as test management, fault injection, test case editing and automated testing. During the equipment performance test analysis process, the RTPC will report the signals generated during the test to the host computer, and display the signals to the technicians through the host computer. However, some of the signals reported by RTPC to the host computer do not have physical meaning. Most of these signals are only used for communication between machines. Non-professionals cannot directly read the information, which makes it impossible to directly perform equipment performance testing and analysis based on such signals that do not have physical meaning.

[0045] In order to solve the above technical problems, the embodiment of the present application provides a data processing method. Using the data processing method provided by the embodiment of the present application, by integrating and defining multiple types of signal converters in the upper computer, the corresponding signal converters can be called for different types of original values ​​received to convert them, and physical values ​​with physical meanings can be obtained for technicians to directly read the information or send to other lower computers for further data processing, so as to facilitate technicians to perform equipment performance test and analysis operations.

[0046] See also Figure 1 , Figure 1 A flow chart of a data processing method provided in an embodiment of the present application. The data processing method is applied to a terminal device. Optionally, the terminal device is a terminal or a server. Optionally, the server is an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN (Content Delivery Network), and big data and artificial intelligence platforms. Server. Optionally, the terminal is a smart phone, a tablet computer, a laptop computer, a desktop computer, a smart speaker, a smart watch, an intelligent voice interaction device, a smart home appliance, and a car terminal, etc., but is not limited to this.

[0047] In one embodiment, the method may include the following steps:

[0048] Step 101 : receiving an original value of physical information used to characterize a preset target, wherein the original value is used by a machine other than the host computer in the HIL system to identify or describe the physical information.

[0049] It should be noted that the data processing method provided by this solution is mainly applicable to equipment performance test and analysis scenarios, such as obtaining the battery temperature signal of the car and analyzing whether the car main control system can accurately trigger the corresponding operation (such as automatically turning on the alarm light) based on the battery temperature signal. Taking the above scenario as an example, the preset target can be a car battery or a signal simulator that can simulate a temperature signal.

[0050] It should be explained that the original value refers to information that can depict physical information, such as temperature, humidity, pressure, length, current, voltage, etc., but is usually used for communication between machines, and most of the physical information cannot be directly recognized by humans. For example, the original value is "10", which is used to indicate the temperature value of 20°C in communication between machines. Obviously, the physical information contained in this data cannot be directly recognized by humans. The machine referred to here can be any device with data processing capabilities used for HIL.

[0051] In this embodiment, the original value of the physical information used to characterize the preset target can be received by the host computer. The original value is used by a machine other than the host computer in the HIL system to identify or describe the physical information. The original value can reflect part or all of the physical information.

[0052] Step 102: Determine a signal converter calling method corresponding to the original value according to the attribute information carried by the original value.

[0053] Step 103: Calling a target signal converter for converting the original value into a physical value according to the signal converter calling method, wherein the physical value is used for the user to recognize the physical information.

[0054] It should be explained that the physical value is data obtained by a signal converter that can be directly recognized by a person as physical information, which can be digital, text or other forms. The physical value is used by the user to recognize the physical information, which can reflect part or all of the physical information, for example, it can be used to recognize the physical information, or the range of the physical information.

[0055] In this embodiment, if the attribute information is to define the conversion relationship between the original value and the physical value, the signal converter calling method includes:

[0056] The first text corresponding to the conversion relationship is respectively calculated with the second text corresponding to the applicable rule of each signal converter in the database to obtain the calculation results corresponding to each second text; the target second text corresponding to the similarity value exceeding the preset threshold and the largest value is determined from the calculation results; the signal converter corresponding to the target second text is used as the target signal converter. It should be noted that the above similarity value calculation can be obtained by a conventional similarity value calculation algorithm, such as a cosine similarity finger calculation algorithm.

[0057] In some other embodiments, if the attribute information is a signal source defining an original value, the signal converter calling method includes:

[0058] Determine the target signal source corresponding to the original value in the attribute information; determine the target signal converter type corresponding to the target signal source based on the pre-created mapping relationship between the signal source and the signal converter type; call the signal converter corresponding to the target signal converter type as the target signal converter.

[0059] In this solution, the signal converter includes multiple types, and each type of signal converter has a specified signal conversion method.

[0060] In one exemplary embodiment, the target signal converter is configured as:

[0061] The original value is not processed and the physical value consistent with the original value is directly output.

[0062] This type of target signal converter can be called a non-converting converter. When the converter corresponding to the raw value belongs to this type, the raw value is the same as the physical value. For example, if the raw value of a signal representing the output voltage (in volts) is 1, then the physical value corresponding to the raw value is 1V. The reason why a non-converting converter is needed is because engineers want to see the unconverted result.

[0063] In another example, the target signal converter is configured as:

[0064] The original value is input into the preset model for signal conversion processing and the physical value is output.

[0065] Specifically, the signal converter for this type may be a custom formula converter. When the signal converter corresponding to the original value is of this type, the original value and the physical value satisfy the relationship y=f(x). This function relationship formula is defined by the user.

[0066] For this type of signal converter, it can also be a linear value converter. When the signal converter corresponding to the original value is of this type, the original value and the physical value satisfy the relationship y=ax+b (a: slope, b: offset).

[0067] For this type of signal converter, a nonlinear value converter can also be used. When the signal converter corresponding to the original value is of this type, the physical value of the original value satisfies the original value y=(ax 2 +bx+c) / (dx 2 +ex+f)a.

[0068] In another example, the target signal converter is configured as:

[0069] Determine a first preset array to which the original value belongs; determine a second preset array that matches the first preset array; match a second target position corresponding to the first target position from the second preset array according to the first target position of the original value in the first preset array; and use the numerical value corresponding to the second target position as the physical value.

[0070] For this type of signal converter, it can be a discontinuous interpolation converter. When the signal converter corresponding to the original value is of this type, the original value and the physical value form isolated discrete points in the Cartesian coordinates, and these points are exhaustive. For example, the array corresponding to x is {2, 5, 10}, and the array corresponding to y is {1.8, 2.6, 3.6}. When the original value is 5, the corresponding physical value is 2.6.

[0071] For this type of signal converter, it can also be a simulated string single value lookup table converter. When the signal converter corresponding to the raw value is of this type, the conversion between the raw value and the physical value satisfies the relationship of the key-value table. The raw value is the index, and the physical value is the string value corresponding to the index. For example, the raw value corresponding to the switch state is raw value:{0,1}physicalvalue:{open,closed}, then when the signal value corresponding to the relay switch is 1, the corresponding physical value is the closed state.

[0072] For this type of signal converter, an interval lookup table converter can also be used. When the converter corresponding to the signal is of this type, when the signal converter corresponding to the original value is of this type, the relationship between the original value and the physical value is similar to that of a piecewise function, except that the y value of the piecewise function is a constant when the independent variable x is in a certain interval. For example, if the original value x is {{0, 10}, {11, 20}, {21, 30}}, and the physical value is {35, 46.2, 56.6}, then when the original value is between 11 and 20, the corresponding physical value is 46.2.

[0073] In some examples, the target signal converter can also be configured as a continuous interpolation converter. When the signal converter corresponding to the original value is of this type, linear fitting calculation needs to be performed through two adjacent points. For example, in the Cartesian coordinate system, if the original value x to be calculated is between two points (x1, y1) and (x2, y2) (and x1 < x2), then the corresponding y coordinate (physical value) of this point = ((y2 - y1) / (x2 - x1))x.

[0074] In some examples, the target signal converter can also be configured as a hybrid look-up table converter. This type of signal converter is a combination of a linear converter and a string single-value look-up table converter, that is, the original value and the physical value satisfy a linear transformation within a certain range, and satisfy a key-value pair look-up table relationship when certain values are obtained. A typical application is the conversion relationship of Lin signals in the automotive Lin bus.

[0075] Step 104, convert the original value into a physical value through the target signal converter.

[0076] After converting the original value into a physical value through the target signal converter, the physical value can be sent to the host computer for display; or the physical value can be sent to the lower computer for further data processing.

[0077] In addition, the converter can be used not only to convert the original value into a physical value, but also to convert the physical value into an original value.

[0078] The original values representing the same physical information may be different, but the physical values representing the same physical information are usually the same. For example, the original value used by a certain machine (such as a battery temperature simulator) to represent the physical information of an ambient temperature of 20 degrees may be different from the original value used by another machine (such as an environmental chamber) to represent the physical information of an ambient temperature of 20 degrees, but the physical value of 20 degrees obtained after their conversion is usually the same;

[0079] In some embodiments, since all converters are integrated in the host computer in the HIL system, the host computer can obtain the physical values of multiple physical information. At this time, the simulation process can be adjusted based on this;

[0080] For example: the vehicle's HIL system may be provided with a simulation board, which can be used to simulate the sensor signal. Specifically, the simulation board may include a battery temperature simulator, which can simulate the simulated temperature signal of the vehicle battery. The simulated temperature signal can be output to the DUT (device under test) for simulation testing. At the same time, the simulated temperature signal can also be reported to the host computer via RTPC. The simulated temperature signal includes the original value of the battery simulation temperature simulated by the battery temperature simulator, which can be used as the original value in step S101. Furthermore, in the processing of steps S102 and S103, the first converter can be used to convert the original value of the battery simulation temperature of the simulation temperature signal to obtain the corresponding physical value T1, that is, what the simulated battery temperature is.

[0081] At the same time, the HIL system can also be provided with an environmental chamber for simulating the ambient temperature of the DUT. The DUT can be placed in the environmental chamber, and the environmental chamber can output a signal representing the ambient temperature, i.e., an ambient temperature signal. The ambient temperature signal can be reported to the host computer directly or via RTPC. The ambient temperature signal contains the original value of the ambient temperature simulated by the environmental chamber, which can be used as the original value in step S101. Then, in the processing of steps S102 and S103, the original value of the ambient temperature can be converted by a second converter to obtain the corresponding physical value T2, i.e., what the simulated ambient temperature is. During the test, the ambient temperature will change according to the demand; for example, the environmental chamber can simulate an ambient temperature of 0 degrees in the first period, an ambient temperature of 10 degrees in the second period, an ambient temperature of 20 degrees in the third period, and an ambient temperature of 30 degrees in the fourth period. Correspondingly, T2 will also change accordingly.

[0082] The algorithm for the battery temperature simulator to simulate the battery simulation temperature can be implemented using any algorithm in the prior art.

[0083] In some embodiments, the battery temperature simulator can simulate the battery simulation temperature according to the specified ambient temperature (for example, under the specified ambient temperature, the change of the battery simulation temperature is simulated by simulating the heat generation and heat dissipation process of battery charging and discharging), and then output the original value of the battery simulation temperature. The simulation process can be understood with reference to the prior art. At this time, the ambient temperature simulated by the environmental chamber can be used as the specified ambient temperature here. In the host computer, after obtaining the physical value T2, the physical value T2 can be converted into the original value A using the first converter. This is a temperature signal suitable for being recognized by the battery temperature simulator. In the battery temperature simulator, for physical information such as temperature, no matter what the temperature is, the ambient temperature Or the battery temperature, the conversion relationship between the original value and the physical value is usually the same. Of course, for the two physical information of ambient temperature and battery temperature, the conversion relationship between the original value and the physical value may also be different. At this time, another third converter (used to realize the conversion between the physical value and the original value of the ambient temperature for the battery temperature simulator) can also be used to convert the physical value T2 into the original value A, and then the original value A can be returned to the battery temperature simulator as the input of the battery temperature simulator. The battery temperature simulator can output the original value of the battery simulation temperature based on the original value A (the temperature can be recognized by the battery temperature simulator and then used as the specified ambient temperature), which can be accurately adapted to the simulated environment.

[0084] In other embodiments, the battery temperature simulator may not require the ambient temperature as input, that is, it does not simulate the battery temperature based on the variable ambient temperature. For example, it only simulates the battery simulation temperature based on the preset initial battery temperature by simulating the heat generation and heat dissipation process of battery charging and discharging. The simulation process can be understood with reference to the prior art. At this time, if the difference between the ambient temperature and the battery simulation temperature is too large, the battery simulation temperature will obviously be unable to adapt to the ambient temperature simulated by the environmental chamber, which will eventually cause inaccurate simulation results. Therefore, in an example, in the host computer, after obtaining T1 and T2 through the first converter and the second converter, the difference between T1 and T2 can be calculated. If the difference is greater than the preset threshold value Tth, it means that the battery temperature simulated by the battery temperature simulator obviously does not conform to the actual environment of the DUT. At this time, battery temperature correction information can be generated and sent to the battery temperature simulator, so that the battery temperature simulator can adjust the simulated temperature signal according to the temperature correction information to make the difference less than the threshold value Tth; for example, if T1-T2 is greater than Tth, the temperature correction information can be used to trigger the battery temperature simulator to lower the simulated battery temperature until T1-T2 is not greater than Tth; if T2-T1 is greater than Tth, the temperature correction information can be used to trigger the battery temperature simulator to increase the simulated battery temperature until T2-T1 is not greater than Tth;

[0085] In addition, because the battery temperature is usually not too low from the ambient temperature, the threshold value Tth involved above can be diverse, for example, it can include a first threshold value Tth1 and a second threshold value Tth2. Furthermore, if T1-T2 is greater than Tth1, the temperature correction information can be used to trigger the battery temperature simulator to lower the simulated battery temperature. If T2-T1 is greater than Tth2, the temperature correction information can be used to trigger the battery temperature simulator to increase the simulated battery temperature. Tth1 is greater than Tth2.

[0086] In some other embodiments, when simulating the heat generation and heat dissipation process of battery charging and discharging, the battery temperature simulator usually performs simulation based on the simulated capacity of each single cell to obtain the battery simulation temperature. Since the ambient temperature will affect the battery capacity, if the simulated capacity can change with the ambient temperature, the accuracy of the simulation can be effectively improved. Therefore, in the host computer, after obtaining T1 and T2, the battery capacity correction information can also be generated based on T2. ​​The battery capacity correction information is used to instruct the battery temperature simulator to increase or decrease the simulated capacity of the single cell by the required amplitude, thereby causing T1 to change accordingly. In one example, a mapping relationship between multiple battery capacities and multiple ranges of ambient temperature can be preset, and then, based on T2 and the mapping relationship, the battery capacity mapped by the range in which T2 is located is determined as the target battery capacity, and then the battery capacity correction information is generated based on the target battery capacity. For example, the battery capacity correction information can characterize the target battery capacity, or the difference between the target battery capacity and the standard battery capacity, so that when the battery temperature simulator simulates the heating and heat dissipation process of battery charging and discharging, the target battery capacity can be used as the simulation capacity of each single battery, and simulation is performed based on the simulation capacity of each single battery, thereby obtaining the battery simulation temperature.

[0087] Furthermore, through the above implementations, it is possible to ensure that T1 follows T2 to a certain extent, thereby ensuring the accuracy of the test.

[0088] All the above optional technical solutions can be arbitrarily combined to form optional embodiments of the present application, which will not be described one by one here.

[0089] In specific implementation, the present application is not limited by the execution order of the various steps described. If no conflict occurs, some steps can be performed in other orders or simultaneously.

[0090] As can be seen from the above, the data processing method provided in the embodiment of the present application receives the original value of the physical information used to characterize the preset target; determines the signal converter calling method corresponding to the original value according to the attribute information carried by the original value; calls the target signal converter used to convert the original value into a physical value according to the signal converter calling method; and converts the original value into a physical value through the target signal converter. Utilizing the data processing method provided in the embodiment of the present application, by integrating and defining multiple types of signal converters in the upper computer, the corresponding signal converters can be called for different types of original values ​​received to convert them, and physical values ​​with physical meanings can be obtained for technicians to directly read the information or send to other lower computers for further data processing, so as to facilitate technicians to perform equipment performance test and analysis operations.

[0091] An embodiment of the present application also provides a data processing device, which can be integrated in a terminal device.

[0092] See also Figure 2 , Figure 2 A schematic diagram of the structure of a data processing device provided in an embodiment of the present application. The data processing device 30 may include:

[0093] A receiving module 31, used to receive an original value of physical information used to characterize a preset target;

[0094] A determination module 32, configured to determine a signal converter calling mode corresponding to the original value according to the attribute information carried by the original value;

[0095] A calling module 33, configured to call a target signal converter for converting the original value into a physical value according to the signal converter calling method, wherein the physical value is used by the user to recognize the physical information;

[0096] The conversion module 34 is used to convert the original value into a physical value through the target signal converter.

[0097] In some embodiments, if the attribute information defines a conversion relationship between an original value and a physical value, the signal converter calling method includes:

[0098] Calculate similarity values ​​of the first text corresponding to the conversion relationship and the second text corresponding to the applicable rules of each signal converter in the database to obtain calculation results corresponding to each second text;

[0099] Determine from the calculation results the target second text corresponding to the one whose similarity value exceeds a preset threshold and has the largest value;

[0100] The signal converter corresponding to the target second text is used as the target signal converter.

[0101] In some embodiments, if the attribute information is a signal source defining an original value, the signal converter calling method includes:

[0102] Determining a target signal source corresponding to the original value in the attribute information;

[0103] Determine a target signal converter type corresponding to the target signal source based on a pre-created mapping relationship between signal sources and signal converter types;

[0104] A signal converter corresponding to the target signal converter type is called as the target signal converter.

[0105] In some embodiments, the target signal converter is configured to:

[0106] The original value is not processed, and a physical value consistent with the original value is directly output.

[0107] In some embodiments, the target signal converter is configured to:

[0108] The original value is input into a preset model for signal conversion processing, and a physical value is output.

[0109] In some embodiments, the target signal converter is configured to:

[0110] Determine a first preset array to which the original value belongs;

[0111] Determining a second preset array that matches the first preset array;

[0112] Matching a second target position corresponding to the first target position from the second preset array according to the first target position of the original value in the first preset array;

[0113] The numerical value corresponding to the second target position is used as the physical value.

[0114] In some embodiments, the device further includes a processing module for sending the physical value to a host computer for display; or sending the physical value to a slave computer for data processing.

[0115] In specific implementation, the above modules can be implemented as independent entities, or can be arbitrarily combined to be implemented as the same entity or several entities.

[0116] As can be seen from the above, the data processing device 30 provided in the embodiment of the present application, wherein the receiving module 31 is used to receive the original value of the physical information used to characterize the preset target; the determining module 32 is used to determine the signal converter calling method corresponding to the original value according to the attribute information carried by the original value; the calling module 33 is used to call the target signal converter used to convert the original value into a physical value according to the signal converter calling method; the conversion module 34 is used to convert the original value into a physical value through the target signal converter.

[0117] See also Figure 3 , Figure 3 Another structural diagram of a data processing device provided in an embodiment of the present application, the data processing device 30 includes a memory 120, one or more processors 180, and one or more applications, wherein the one or more applications are stored in the memory 120 and configured to be executed by the processor 180; the processor 180 may include a receiving module 31, a determining module 32, a calling module 33, and a conversion module 33. For example, the structure and connection relationship of the above components may be as follows:

[0118] The memory 120 can be used to store applications and data. The applications stored in the memory 120 include executable codes. The applications can be composed of various functional modules. The processor 180 executes various functional applications and data processing by running the applications stored in the memory 120. In addition, the memory 120 may include a high-speed random access memory and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices. Accordingly, the memory 120 may also include a memory controller to provide the processor 180 with access to the memory 120.

[0119] The processor 180 is the control center of the device, and uses various interfaces and lines to connect various parts of the entire terminal, and executes various functions of the device and processes data by running or executing applications stored in the memory 120, and calling data stored in the memory 120, so as to monitor the device as a whole. Optionally, the processor 180 may include one or more processing cores; preferably, the processor 180 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs.

[0120] Specifically in this embodiment, the processor 180 will load the executable code corresponding to the process of one or more applications into the memory 120 according to the following instructions, and the processor 180 will run the application stored in the memory 120 to implement various functions:

[0121] A receiving instruction is used to receive an original value of physical information used to characterize a preset target, wherein the original value is used by a machine other than the host computer in the HIL system to identify or describe the physical information;

[0122] A determination instruction, used to determine a signal converter calling mode corresponding to the original value according to the attribute information carried by the original value;

[0123] A calling instruction, used to call a target signal converter for converting the original value into a physical value according to the signal converter calling method, wherein the physical value is used by a user to recognize the physical information;

[0124] A conversion instruction is used to convert the original value into a physical value through the target signal converter.

[0125] In some embodiments, if the attribute information defines a conversion relationship between an original value and a physical value, the signal converter calling method includes:

[0126] Calculate similarity values ​​of the first text corresponding to the conversion relationship and the second text corresponding to the applicable rules of each signal converter in the database to obtain calculation results corresponding to each second text;

[0127] Determine from the calculation results the target second text corresponding to the one whose similarity value exceeds a preset threshold and has the largest value;

[0128] The signal converter corresponding to the target second text is used as the target signal converter.

[0129] In some embodiments, if the attribute information is a signal source defining an original value, the signal converter calling method includes:

[0130] Determining a target signal source corresponding to the original value in the attribute information;

[0131] Determine a target signal converter type corresponding to the target signal source based on a pre-created mapping relationship between signal sources and signal converter types;

[0132] A signal converter corresponding to the target signal converter type is called as the target signal converter.

[0133] In some embodiments, the target signal converter is configured to:

[0134] The original value is not processed, and a physical value consistent with the original value is directly output.

[0135] In some embodiments, the target signal converter is configured to:

[0136] The original value is input into a preset model for signal conversion processing, and a physical value is output.

[0137] In some embodiments, the target signal converter is configured to:

[0138] Determine a first preset array to which the original value belongs;

[0139] Determining a second preset array that matches the first preset array;

[0140] Matching a second target position corresponding to the first target position from the second preset array according to the first target position of the original value in the first preset array;

[0141] The numerical value corresponding to the second target position is used as the physical value.

[0142] In some embodiments, the program further includes processing instructions for sending the physical value to a host computer for display; or sending the physical value to a slave computer for data processing.

[0143] The embodiment of the present application also provides a terminal device, which can be a server, a smart phone, a computer, a tablet computer, or other device.

[0144] See also Figure 4 , Figure 4 The schematic diagram of the structure of the terminal device provided in the embodiment of the present application is shown, and the terminal device can be used to implement the data processing method provided in the above embodiment. The terminal device 1200 can be a TV, a smart phone, or a tablet computer.

[0145] like Figure 4 As shown, the terminal device 1200 may include an RF (Radio Frequency) circuit 110, a memory 120 including one or more (only one is shown in the figure) computer-readable storage media, an input unit 130, a display unit 140, a sensor 150, an audio circuit 160, a transmission module 170, a processor 180 including one or more (only one is shown in the figure) processing cores, and a power supply 190. Those skilled in the art will understand that Figure 4 The structure of the terminal device 1200 shown in the figure does not constitute a limitation on the terminal device 1200, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.

[0146] The RF circuit 110 is used to receive and send electromagnetic waves, realize the mutual conversion between electromagnetic waves and electrical signals, and thus communicate with a communication network or other devices. The RF circuit 110 may include various existing circuit elements for performing these functions, such as an antenna, a radio frequency transceiver, a physical value processor, an encryption / decryption chip, a user identity module (SIM) card, a memory, etc. The RF circuit 110 can communicate with various networks such as the Internet, an intranet, a wireless network, or communicate with other devices through a wireless network.

[0147] The memory 120 can be used to store software programs and modules, such as the program instructions / modules corresponding to the data processing method in the above embodiment. The processor 180 executes various functional applications and data processing by running the software programs and modules stored in the memory 120. The vibration reminder mode can be automatically selected for data processing according to the current scene of the terminal device, which can not only ensure that scenes such as meetings are not disturbed, but also ensure that users can perceive incoming calls, thereby improving the intelligence of the terminal device. The memory 120 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 120 may further include a memory remotely arranged relative to the processor 180, and these remote memories may be connected to the terminal device 1200 via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and a combination thereof.

[0148] The input unit 130 can be used to receive input digital or character information, and generate keyboard, mouse, joystick, optical or trackball signal input related to user settings and function control. Specifically, the input unit 130 may include a touch-sensitive surface 131 and other input devices 132. The touch-sensitive surface 131, also known as a touch display screen or a touch pad, can collect the user's touch operations on or near it (such as the user's operation on or near the touch-sensitive surface 131 using any suitable object or accessory such as a finger, stylus, etc.), and drive the corresponding connection device according to a pre-set program. Optionally, the touch-sensitive surface 131 may include two parts: a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into touch point coordinates, and then sends it to the processor 180, and can receive and execute commands sent by the processor 180. In addition, the touch-sensitive surface 131 may be implemented in various types such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch-sensitive surface 131, the input unit 130 may further include other input devices 132. Specifically, the other input devices 132 may include, but are not limited to, one or more of a physical keyboard, a function key (such as a volume control key, a switch key, etc.), a trackball, a mouse, a joystick, and the like.

[0149] The display unit 140 can be used to display information input by the user or information provided to the user and various graphical user interfaces of the terminal device 1200, which can be composed of graphics, text, icons, videos and any combination thereof. The display unit 140 may include a display panel 141. Optionally, the display panel 141 may be configured in the form of LCD (Liquid Crystal Display), OLED (Organic Light-Emitting Diode), etc. Further, the touch-sensitive surface 131 may cover the display panel 141. When the touch-sensitive surface 131 detects a touch operation on or near it, it is transmitted to the processor 180 to determine the type of touch event. Subsequently, the processor 180 provides corresponding visual output on the display panel 141 according to the type of touch event. Although in Figure 4 In the embodiment, the touch-sensitive surface 131 and the display panel 141 are implemented as two independent components to realize the input and output functions. However, in some embodiments, the touch-sensitive surface 131 and the display panel 141 can be integrated to realize the input and output functions.

[0150] The terminal device 1200 may also include at least one sensor 150, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel 141 according to the brightness of the ambient light, and the proximity sensor may turn off the display panel 141 and / or the backlight when the terminal device 1200 is moved to the ear. As a type of motion sensor, the gravity acceleration sensor can detect the magnitude of acceleration in each direction (generally three axes), and can detect the magnitude and direction of gravity when stationary, which can be used for applications that identify the posture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer, tapping), etc.; as for other sensors such as gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc. that can also be configured in the terminal device 1200, they will not be repeated here.

[0151] The audio circuit 160, the speaker 161, and the microphone 162 can provide an audio interface between the user and the terminal device 1200. The audio circuit 160 can transmit the received audio data to the speaker 161 after converting the received audio data into an electrical signal, which is converted into a sound signal for output by the speaker 161; on the other hand, the microphone 162 converts the collected sound signal into an electrical signal, which is received by the audio circuit 160 and converted into audio data, and then the audio data is output to the processor 180 for processing, and then sent to another terminal through the RF circuit 110, or the audio data is output to the memory 120 for further processing. The audio circuit 160 may also include an earplug jack to provide communication between an external headset and the terminal device 1200.

[0152] The terminal device 1200 can help users send and receive emails, browse web pages, and access streaming media through the transmission module 170 (such as a Wi-Fi module), which provides users with wireless broadband Internet access. Figure 4 The transmission module 170 is shown, but it is understandable that it is not a necessary component of the terminal device 1200 and can be omitted as needed without changing the essence of the invention.

[0153] The processor 180 is the control center of the terminal device 1200. It uses various interfaces and lines to connect various parts of the entire mobile phone. By running or executing software programs and / or modules stored in the memory 120, and calling data stored in the memory 120, it executes various functions of the terminal device 1200 and processes data, thereby monitoring the mobile phone as a whole. Optionally, the processor 180 may include one or more processing cores; in some embodiments, the processor 180 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, and the modem processor mainly processes wireless communications. It is understandable that the above-mentioned modem processor may not be integrated into the processor 180.

[0154] The terminal device 1200 also includes a power supply 190 for supplying power to various components. In some embodiments, the power supply can be logically connected to the processor 180 through a power management system, so that the power management system can realize functions such as managing discharge and power consumption. The power supply 190 can also include any components such as one or more DC or AC power supplies, recharging systems, power failure detection circuits, power converters or inverters, and power status indicators.

[0155] Although not shown, the terminal device 1200 may also include a camera (such as a front camera, a rear camera), a Bluetooth module, etc., which will not be described in detail here. Specifically in this embodiment, the display unit 140 of the terminal device 1200 is a touch screen display, and the terminal device 1200 also includes a memory 120, and one or more programs, wherein one or more programs are stored in the memory 120, and are configured to be executed by one or more processors 180. One or more programs include instructions for performing the following operations:

[0156] A receiving instruction is used to receive an original value of physical information used to characterize a preset target, wherein the original value is used by a machine other than the host computer in the HIL system to identify or describe the physical information;

[0157] A determination instruction, used to determine a signal converter calling mode corresponding to the original value according to the attribute information carried by the original value;

[0158] A calling instruction, used to call a target signal converter for converting the original value into a physical value according to the signal converter calling method, wherein the physical value is used by a user to recognize the physical information;

[0159] A conversion instruction is used to convert the original value into a physical value through the target signal converter.

[0160] In some embodiments, if the attribute information defines a conversion relationship between an original value and a physical value, the signal converter calling method includes:

[0161] Calculate similarity values ​​of the first text corresponding to the conversion relationship and the second text corresponding to the applicable rules of each signal converter in the database to obtain calculation results corresponding to each second text;

[0162] Determine from the calculation results the target second text corresponding to the one whose similarity value exceeds a preset threshold and has the largest value;

[0163] The signal converter corresponding to the target second text is used as the target signal converter.

[0164] In some embodiments, if the attribute information is a signal source defining an original value, the signal converter calling method includes:

[0165] Determining a target signal source corresponding to the original value in the attribute information;

[0166] Determine a target signal converter type corresponding to the target signal source based on a pre-created mapping relationship between signal sources and signal converter types;

[0167] A signal converter corresponding to the target signal converter type is called as the target signal converter.

[0168] In some embodiments, the target signal converter is configured to:

[0169] The original value is not processed, and a physical value consistent with the original value is directly output.

[0170] In some embodiments, the target signal converter is configured to:

[0171] The original value is input into a preset model for signal conversion processing, and a physical value is output.

[0172] In some embodiments, the target signal converter is configured to:

[0173] Determine a first preset array to which the original value belongs;

[0174] Determining a second preset array that matches the first preset array;

[0175] Matching a second target position corresponding to the first target position from the second preset array according to the first target position of the original value in the first preset array;

[0176] The numerical value corresponding to the second target position is used as the physical value.

[0177] In some embodiments, the program further includes processing instructions for sending the physical value to a host computer for display; or sending the physical value to a slave computer for data processing.

[0178] The embodiment of the present application also provides a terminal device, which can be a smart phone, a computer, or other device.

[0179] As can be seen from the above, the embodiment of the present application provides a terminal device 1200, and the terminal device 1200 performs the following steps:

[0180] Receiving an original value of physical information used to characterize a preset target, wherein the original value is used by a machine other than the host computer in the HIL system to identify or describe the physical information;

[0181] Determining a signal converter calling method corresponding to the original value according to the attribute information carried by the original value;

[0182] Calling a target signal converter for converting the original value into a physical value according to the signal converter calling method, wherein the physical value is used by a user to recognize the physical information;

[0183] The raw value is converted into a physical value by the target signal converter.

[0184] An embodiment of the present application further provides a storage medium, in which a computer program is stored. When the computer program runs on a computer, the computer executes the data processing method described in any of the above embodiments.

[0185] It should be noted that, for the data processing method described in the present application, ordinary testers in the field can understand that all or part of the process of implementing the data processing method described in the embodiment of the present application can be completed by controlling the relevant hardware through a computer program, and the computer program can be stored in a computer-readable storage medium, such as stored in the memory of a terminal device, and executed by at least one processor in the terminal device, and the execution process may include the process of the embodiment of the data processing method. Among them, the storage medium can be a disk, an optical disk, a read-only memory (ROM, ReadOnly Memory), a random access memory (RAM, Random Access Memory), etc.

[0186] For the data processing device of the embodiment of the present application, each functional module can be integrated into a processing chip, or each module can exist physically separately, or two or more modules can be integrated into one module. The above-mentioned integrated module can be implemented in the form of hardware or in the form of a software functional module. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it can also be stored in a computer-readable storage medium, such as a read-only memory, a disk or an optical disk.

[0187] The data processing method, device, medium and equipment provided by the embodiments of the present application are described in detail above. Specific examples are used herein to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method and core idea of ​​the present application. At the same time, for those skilled in the art, according to the idea of ​​the present application, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as limiting the present application.

Claims

1. A data processing method, applied to a host computer of a HIL system, wherein the HIL system further comprises an RTPC, characterized in that: include: Receive an original value sent by RTPC that is used to characterize physical information of a preset target and corresponds to a unique physical value, wherein the original value is used by a machine other than the host computer in the HIL system to identify or describe the physical information, the original value cannot be directly recognized by humans to obtain the physical information, and the physical value is used by users to recognize the physical information; The unique physical value corresponding to the original value is determined by the following steps: determining a signal converter calling method corresponding to the original value according to the attribute information carried by the original value; calling a target signal converter for converting the original value into a physical value according to the signal converter calling method; converting the original value into a physical value by the target signal converter; Sending the physical value to a host computer for display, or sending the physical value to a slave computer for data processing; The physical information includes at least one of temperature, humidity, pressure, length, current and voltage, a first original value used by the first machine to represent the first physical information is different from a second original value used by the second machine to represent the first physical information, and a first physical value converted from the first original value is the same as a second physical value converted from the second original value.

2. The data processing method according to claim 1, characterized in that: If the attribute information is to define the conversion relationship between the original value and the physical value, the signal converter calling method includes: Calculate similarity values ​​of the first text corresponding to the conversion relationship and the second text corresponding to the applicable rules of each signal converter in the database to obtain calculation results corresponding to each second text; Determine from the calculation results the target second text corresponding to the one whose similarity value exceeds a preset threshold and has the largest value; The signal converter corresponding to the target second text is used as the target signal converter.

3. The data processing method according to claim 1, characterized in that: If the attribute information is a signal source defining an original value, the signal converter calling method includes: Determining a target signal source corresponding to the original value in the attribute information; Determine a target signal converter type corresponding to the target signal source based on a pre-created mapping relationship between signal sources and signal converter types; A signal converter corresponding to the target signal converter type is called as the target signal converter.

4. The data processing method according to claim 1, characterized in that: The target signal converter is configured as: The original value is not processed, and a physical value consistent with the original value is directly output.

5. The data processing method according to claim 1, characterized in that: The target signal converter is configured as: The original value is input into a preset model for signal conversion processing, and a physical value is output.

6. The data processing method according to claim 1, characterized in that: The target signal converter is configured as: Determine a first preset array to which the original value belongs; Determining a second preset array that matches the first preset array; Matching a second target position corresponding to the first target position from the second preset array according to the first target position of the original value in the first preset array; The numerical value corresponding to the second target position is used as the physical value.

7. The data processing method according to claim 1, characterized in that: After converting the original value into a physical value by the target signal converter, the method further includes: Send the physical value to a host computer for display; or The physical value is sent to the lower computer for data processing.

8. A data processing device, applied to a host computer of a HIL system, wherein the HIL system further comprises an RTPC, characterized in that: include: A receiving module, used for receiving an original value sent by RTPC for representing physical information of a preset target and corresponding to a unique physical value, wherein the original value is used by a machine other than the host computer in the HIL system to identify or describe the physical information, the original value cannot be directly recognized by humans to obtain the physical information, and the physical value is used by the user to recognize the physical information, and the unique physical value corresponding to the original value is determined by a determination module, a calling module and a conversion module; A determination module, configured to determine a signal converter calling mode corresponding to the original value according to the attribute information carried by the original value; A calling module, used for calling a target signal converter for converting the original value into a physical value according to the signal converter calling mode; A conversion module, configured to convert the original value into a physical value through the target signal converter; A processing module, used for sending the physical value to a host computer for display, or sending the physical value to a slave computer for data processing; The physical information includes at least one of temperature, humidity, pressure, length, current and voltage, a first original value used by the first machine to represent the first physical information is different from a second original value used by the second machine to represent the first physical information, and a first physical value converted from the first original value is the same as a second physical value converted from the second original value.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a plurality of instructions, and the instructions are suitable for being loaded by a processor to execute the data processing method according to any one of claims 1 to 7.

10. A terminal device, characterized in that: It comprises a processor and a memory, wherein the memory stores a plurality of instructions, and the processor loads the instructions to execute the data processing method according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Automatic test display method and device

    CN115562988A