Online data stream display method and device, equipment and storage medium
By using preset data transmission and server-side database algorithms in the diagnostic software, the problem of easy cracking and piracy of data flow configuration files of the diagnostic software is solved, and the security guarantee of data flow information is achieved.
Patent Information
- Application Number
- CN202411306038.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-14
- Publication Date
- 2024-12-24
AI Technical Summary
The data flow configuration files of existing diagnostic software are easily cracked and pirated, resulting in the leakage of configuration information of ECU data flow and lack of effective anti-pirated reverse measures.
The key information of the target vehicle model is sent to the target server side through preset data transmission. The server side obtains data flow information from the database and uses the preset data flow algorithm to calculate the data flow value information. The client performs command execution and reply information processing. Implement online data flow display to ensure the security of data flow information.
It effectively prevents reverse cracking and piracy of data flow of diagnostic software, ensures the security of data flow information, and avoids configuration information leakage.
Smart Images

Figure CN119179286A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of automobile diagnosis, and in particular to an online data stream display method, device, equipment and storage medium. Background Art
[0002] Some diagnostic software will place the configuration file on the server, download it when needed, and call it to display it when running the data flow. However, the downloaded file is essentially an offline file. Offline content is extremely easy to be cracked and taken over by other companies. The downloaded configuration file contains all the configuration information of the entire ECU (Electronic Control Unit) data flow. Once downloaded by others, all the configuration information will be leaked.
[0003] From the above, it can be seen that how to prevent the algorithm configuration of data flow from being pirated and reversed is a problem that needs to be solved urgently. Summary of the invention
[0004] In view of this, the purpose of the present invention is to provide an online data flow display method, device, equipment and storage medium, which can effectively realize the diagnostic software data flow that cannot be reverse cracked, prevent the occurrence of piracy and reverse cracking, and thus ensure the security of data flow information. The specific scheme is as follows:
[0005] In a first aspect, the present application provides an online data stream display method, comprising:
[0006] Sending the key information of the target vehicle model to a target server end with which a communication connection has been established in advance through a preset data transmission method, so that the target server end obtains corresponding data stream information from a database based on the received key information;
[0007] After receiving the data flow information sent by the target server, executing a command based on the data flow command information in the data flow information to obtain corresponding command reply information;
[0008] Sending the command reply information to the target server end based on a preset data upload method, so that the target server end determines corresponding data flow value information based on the command reply information and through a preset data flow algorithm in the database;
[0009] After receiving the data stream value information sent by the target server, the online data stream display operation corresponding to the target vehicle model is completed using the data stream value information and the data stream information.
[0010] Optionally, before sending the key information of the target vehicle model to the target server end with which the communication connection has been established in advance by using a preset data transmission method, the method further includes:
[0011] After entering the data stream corresponding to the target vehicle model through the installed preset diagnostic tool, a connection request is initiated to the target server based on the data stream and the preset full-duplex communication protocol, so that the target server can establish a communication connection with the client side with the installed preset diagnostic tool based on the connection request.
[0012] Optionally, the sending of the key information of the target vehicle model to a target server end with which a communication connection has been established in advance by a preset data transmission method includes:
[0013] Through the preset data transmission method, the preset full-duplex communication protocol and the first preset information transmission format, key information including the identity information, software version information, configuration information and electronic system configuration information of the target vehicle model is sent to the target server end with which a communication connection has been established in advance.
[0014] Optionally, after receiving the data flow information sent by the target server, executing a command based on data flow command information in the data flow information to obtain corresponding command reply information includes:
[0015] Acquire data flow information including data flow command information sent by the target server, and execute commands on the data flow command information;
[0016] During the command execution process, for a first data stream command that has been normally responded to, first command reply information corresponding to the first data stream command is determined based on the corresponding response result; wherein the first command reply information includes corresponding character string information that satisfies a preset data system;
[0017] For a second data stream command that has been negatively responded to and does not have response information, determining second command reply information representing an empty set corresponding to the second data stream command;
[0018] Corresponding command reply information is determined based on the first command reply information, the second command reply information, and a second preset information transmission format.
[0019] Optionally, after receiving the data stream value information sent by the target server, using the data stream value information and the data stream information to complete an online data stream display operation corresponding to the target vehicle model includes:
[0020] After receiving the data stream value information sent by the target server based on the third preset transmission format, the online data stream display operation corresponding to the target vehicle model is completed based on the data stream value information and the data stream name information and data stream unit information in the data stream information and through the preset display interface.
[0021] In a second aspect, the present application provides an online data stream display method, which is applied to a target server, wherein the target server has pre-established a communication connection with a corresponding client that has installed a preset diagnostic tool; the method comprises:
[0022] Receiving key information of the target vehicle model sent by the client through a preset data transmission method, and acquiring corresponding data stream information from a database based on the key information;
[0023] Sending the data flow information to the client so that the client executes a command based on the data flow command information in the data flow information to obtain corresponding command reply information;
[0024] After receiving the command reply information sent by the client based on the preset data upload method, determining corresponding data flow value information based on the command reply information and using a preset data flow algorithm in the database;
[0025] The data stream value information is sent to the client so that the client can use the data stream value information and the data stream information to complete the online data stream display operation corresponding to the target vehicle model.
[0026] In a third aspect, the present application provides an online data stream display device, which is applied to a client having installed a preset diagnostic tool, comprising:
[0027] A key information sending module, used to send the key information of the target vehicle model to a target server end with which a communication connection has been established in advance through a preset data transmission method, so that the target server end obtains corresponding data stream information from a database based on the received key information;
[0028] A command execution module, configured to execute a command based on the data flow command information in the data flow information after receiving the data flow information sent by the target server, so as to obtain corresponding command reply information;
[0029] A reply information sending module, used to send the command reply information to the target server end based on a preset data upload method, so that the target server end determines the corresponding data flow value information based on the command reply information and through a preset data flow algorithm in the database;
[0030] The data stream display module is used to complete the online data stream display operation corresponding to the target vehicle model by using the data stream value information and the data stream information after receiving the data stream value information sent by the target server.
[0031] In a fourth aspect, the present application provides an online data stream display device, which is applied to a target server, wherein the target server has pre-established a communication connection with a corresponding client that has installed a preset diagnostic tool; the device comprises:
[0032] A key information receiving module, used to receive the key information of the target vehicle model sent by the client through a preset data transmission method, and obtain corresponding data stream information from the database based on the key information;
[0033] A data flow information sending module, used for sending the data flow information to the client, so that the client can execute a command based on the data flow command information in the data flow information to obtain corresponding command reply information;
[0034] A value information determination module, configured to determine corresponding data flow value information based on the command reply information and through a preset data flow algorithm in the database after receiving the command reply information sent by the client in a preset data upload mode;
[0035] The value information sending module is used to send the data stream value information to the client so that the client can use the data stream value information and the data stream information to complete the online data stream display operation corresponding to the target vehicle model.
[0036] In a fifth aspect, the present application provides an electronic device, including:
[0037] Memory, used to store computer programs;
[0038] The processor is used to execute the computer program to implement the above-mentioned online data stream display method.
[0039] In a sixth aspect, the present application provides a computer-readable storage medium for storing a computer program, wherein the computer program implements the aforementioned online data stream display method when executed by a processor.
[0040] The present application sends key information of a target vehicle model to a target server end with which a communication connection has been established in advance through a preset data transmission method, so that the target server end obtains corresponding data flow information from a database based on the received key information; after receiving the data flow information sent by the target server end, a command is executed based on the data flow command information in the data flow information to obtain corresponding command reply information; the command reply information is sent to the target server end based on a preset data upload method, so that the target server end determines the corresponding data flow value information based on the command reply information and through a preset data flow algorithm in the database; after receiving the data flow value information sent by the target server end, the data flow value information and the data flow information are used to complete the online data flow display operation corresponding to the target vehicle model. It can be seen from the above that before sending the key information of the target vehicle model to the target server end with which a communication connection has been established in advance through a preset data transmission method, the client and the target server end first establish a communication connection so that data flow information can be transmitted between the client and the target server end. The client determines the corresponding command reply information based on the data flow command information in the data flow information sent by the target server end, so that the target server end completes the calculation of the data flow value based on the command reply information and using the preset data flow algorithm in the database. In this way, it is possible to effectively realize a diagnostic software data flow that cannot be reverse cracked, prevent the occurrence of piracy and reverse engineering, and thus ensure the security of the data flow information. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] 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.
[0042] Figure 1 A flow chart of an online data stream display method disclosed in this application;
[0043] Figure 2 A flowchart of a specific online data stream display method disclosed in this application;
[0044] Figure 3 This is a structural flow chart of an online data stream display device disclosed in this application;
[0045] Figure 4 A structural flow chart of a specific online data stream display device disclosed in this application;
[0046] Figure 5This is a structural diagram of an electronic device disclosed in this application. DETAILED DESCRIPTION
[0047] 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.
[0048] At present, some diagnostic software usually puts the configuration file on the server, downloads it when needed, and calls it to display the corresponding data stream when the data stream is running. However, the downloaded file is essentially an offline file, which is easy to be cracked and occupied by other companies. The downloaded file contains a lot of information. Once downloaded by others, all the configuration information of the entire ECU data stream will be leaked. To this end, the present application provides an online data stream display method. The target server side calculates the value of the data stream based on the command reply information corresponding to the data stream command and uses the preset data stream algorithm in the database. It can effectively realize the diagnostic software data stream that cannot be reverse cracked, prevent the occurrence of piracy and reverse engineering, and thus ensure the security of data stream information.
[0049] See also Figure 1 As shown, an embodiment of the present invention discloses an online data stream display method, including:
[0050] Step S11: sending the key information of the target vehicle model to the target server end with which a communication connection has been established in advance through a preset data transmission method, so that the target server end obtains corresponding data stream information from a database based on the received key information.
[0051] In this embodiment, before sending the key information of the target vehicle model to the target server end with which the communication connection has been pre-established through the preset data transmission method, the target server and the client end need to pre-establish a communication connection. Specifically, before sending the key information of the target vehicle model to the target server end with which the communication connection has been pre-established through the preset data transmission method, it also includes: after entering the data stream corresponding to the target vehicle model through the installed preset diagnostic tool, a connection request is initiated to the target server end based on the data stream and the preset full-duplex communication protocol, so that the target server end establishes a communication connection with the client end with the installed preset diagnostic tool based on the connection request.
[0052] It is understandable that after the target server establishes a communication connection with the client, the client sends the key information of the target vehicle model to the target server. Specifically, the key information of the target vehicle model is sent to the target server with which the communication connection has been established in advance through the preset data transmission method, including: sending the key information including the identity information, software version information, configuration information and electronic system configuration information of the target vehicle model to the target server with which the communication connection has been established in advance through the preset data transmission method, the preset full-duplex communication protocol and the first preset information transmission format.
[0053] In a specific implementation, the client and the target server are connected via WebSocket (a full-duplex communication protocol) for bidirectional data transmission. The client can send data to communicate with the target server via the WebSocket object. Similarly, when the target server sends a message to the client, the client triggers a preset data transmission event of the WebSocket object, thereby obtaining the data sent by the target server. When you want to close the connection, you can close the connection by calling the close() method of the WebSocket object.
[0054] In another specific implementation, after entering the data stream corresponding to the target vehicle model through the installed preset diagnostic tool, the client can initiate an HTTP request including additional HTTP (Hypertext Transfer Protocol) header information to the target server, wherein the additional HTTP header information can be a connection request for applying to upgrade the current HTTP protocol to the WebSocket protocol. If the target server can correctly interpret the additional HTTP header information, it indicates that the target server can understand and accept the upgrade of the current HTTP protocol to the WebSocket protocol. After the client obtains the upgrade response returned by the target server and confirms that the handshake information of the target server is correct, a WebSocket communication connection is established. During the handshake process, the target server returns an HTTP-based response message to the client. After receiving the response message, if the client verifies that the response message information is correct, the client and the target server can communicate through the WebSocket protocol. It should be pointed out that the client and the target server can establish a communication connection based on a protocol that meets actual needs, which is not specifically limited here.
[0055] In this embodiment, the first preset information transmission format can be serial transmission, and the identity identification information, software version information, configuration information and electronic system configuration information of the target vehicle model are transmitted in bit order, that is, they are sent one bit after another; the first preset information transmission format can also be parallel transmission, that is, multiple bits of data are sent at the same time, and the identity identification information, software version information, configuration information and electronic system configuration information of the target vehicle model are transmitted through multiple data lines. The preset information transmission format can be selected according to actual needs and is not specifically limited here.
[0056] It is understandable that the key information of the target vehicle model may need to be converted into a specific vehicle model data format, so that after the target server receives the key information in the specific vehicle model data format, it can obtain data stream information corresponding to the key information from the database based on the key information. In a specific implementation, the key information code of the target vehicle model is as follows:
[0057] {
[0058] "sn": "911111",
[0059] "version": "V34.20",
[0060] "vin": "11111111111111111",
[0061] "ecuId": "51224235"
[0062] }
[0063] Among them, the key information of the target vehicle model includes but is not limited to the device information sn (serial number), version, vehicle model vin (vehicle identification number) code of the target vehicle model and the ECU number corresponding to the target vehicle model (that is, "ecuId" in the aforementioned code). The key information of the corresponding target vehicle model can be determined according to actual needs and is not specifically limited here.
[0064] It can be understood that after the target server obtains the key information of the target vehicle model sent by the client, it obtains the data stream information corresponding to the key information from the database based on the key information. In a specific implementation, the code of the data stream information is as follows:
[0065] {
[0066] "data": {
[0067] "01": {
[0068] "group": "TYPE1",
[0069] "name": "vehicle speed",
[0070] "unit": "km / h",
[0071] "cmd": "03 22 F1 36"
[0072] },
[0073] "02": {
[0074] "group": "TYPE2",
[0075] "name": "Oil Temperature",
[0076] "unit": "Celsius",
[0077] "cmd": "03 22 F1 37"
[0078] }
[0079] }
[0080] }
[0081] The data field contains the data stream numbers 01 and 02, the group field is used to display the data stream group, name is the data stream command, unit is the unit of the data stream, and cmd is the data of the command sent. It should be pointed out that any information that can represent the current data of the target vehicle model can be used as data stream information, and will not be repeated here.
[0082] Step S12: After receiving the data flow information sent by the target server, execute a command based on the data flow command information in the data flow information to obtain corresponding command reply information.
[0083] In this embodiment, after receiving the data stream information sent by the target server, the data stream command information in the data stream information is executed to obtain different command reply information corresponding to the data stream command information. Specifically, after receiving the data stream information sent by the target server, the data stream command information in the data stream information is executed to obtain the corresponding command reply information, including: obtaining the data stream information including the data stream command information sent by the target server, and executing the data stream command information; in the process of executing the command, for the first data stream command that has been responded to normally, determining the first command reply information corresponding to the first data stream command based on the corresponding response result; wherein the first command reply information includes the corresponding character string information that satisfies the preset data system; for the second data stream command that has been negatively responded and does not have response information, determining the second command reply information corresponding to the second data stream command that represents the empty set; determining the corresponding command reply information based on the first command reply information, the second command reply information and the second preset information transmission format.
[0084] It can be understood that if there is corresponding command reply information after the data stream command is executed, in a specific implementation, for the 01 data stream, if the data stream command responds normally after execution, the corresponding command reply information is obtained, and the command reply information can be a hexadecimal string or other strings that can represent the data stream command information; and for the 02 data stream, if the data stream command has no reply or a 7F negative response (Negative Response), then its value is empty at this time, and the relevant code is as follows:
[0085] {
[0086] "data": [
[0087] "01": "62 F1 36 01 02 03",
[0088] "02": "-" ]
[0090] }
[0091] In a specific implementation, the negative response code (NRC) is a code used to indicate the specific reason for the negative response. For example, when NRC is 0x22, the negative response message should be accompanied by a specific cause code (i.e., Specific Cause Code). 0x00 is usually used to implement the negative response code judgment logic to indicate that a positive response is to be given, while 0x01 to 0x7F are negative response codes related to diagnostic communication, and 0x80 to 0xFF are negative response codes given due to certain conditions not meeting the requirements.
[0092] Step S13: sending the command reply information to the target server based on a preset data upload method, so that the target server determines corresponding data flow value information based on the command reply information and through a preset data flow algorithm in the database.
[0093] In this embodiment, after the target server receives the command reply information uploaded by the client based on the preset data upload method, the command reply information is calculated by the preset data flow algorithm configured in the database of the target server to obtain the data flow value information corresponding to the command reply information. Wherein, the preset data upload method can be OBS Browser+ (Object Storage Service, i.e., access and management of object storage services). If the size of the command reply information is less than 500GB, OBS Browser+ can be used to send the command reply information to the target server; if the size of the command reply information is greater than 500GB, the command line tool OBSUtil (Object Storage Service Utility, i.e., object storage service tool) can be used. The command line tool obsutil can not only upload file information with a large data volume (file size exceeds 500GB), but also perform batch processing and automation tasks as needed, and supports the use of the three major platforms of Windows, Linux, and macOS; if the command reply information needs to be transmitted in time, data express can be used to send the command reply information to the server. Data express provides a fast and efficient data upload method that can ensure the timeliness of data transmission. It should be pointed out that the data upload method should be selected according to the specific situation and actual needs, and is not limited here.
[0094] In this embodiment, the preset data flow algorithms in the database of the target server side include but are not limited to data-driven methods and demand-driven methods, wherein the data-driven method triggers the calculation operation based on the command reply information received by the target server side, while the demand-driven method is based on obtaining the corresponding data flow value information, thereby triggering the calculation operation of the command reply information through the preset data flow algorithm in the database. These two methods are suitable for different data processing needs. Which algorithm to choose depends on the specific situation and is not specifically limited here.
[0095] Step S14: after receiving the data stream value information sent by the target server, use the data stream value information and the data stream information to complete the online data stream display operation corresponding to the target vehicle model.
[0096] In this embodiment, the data flow value information and the data flow information are displayed, so that the working status information of various electronic systems and actuators in the target vehicle model can be understood in real time. In a specific implementation manner, the client receives the data flow value information code sent by the target server as follows:
[0097] {
[0098] "data": [
[0099] "01": "value": "25.6",
[0100] "02": "value": "-" ]
[0102] }
[0103] Among them, 01 and 02 correspond to the numbers of the data flow command information in the data flow information. The data flow value information obtained at this time is a specific numerical value. Since the command reply information of the data flow command information corresponding to 02 is an empty set, the 02 data flow value information finally calculated based on the command reply information is also an empty set.
[0104] It can be understood that after receiving the data stream value information sent by the target server, the data stream value information and the data stream information are used to complete the online data stream display operation corresponding to the target vehicle model, including: after receiving the data stream value information sent by the target server based on the third preset transmission format, based on the data stream value information and the data stream name information and data stream unit information in the data stream information and through a preset display interface, the online data stream display operation corresponding to the target vehicle model is completed.
[0105] Furthermore, after receiving the data flow value information sent by the target server based on the third preset transmission format, the data flow value information can be parsed using the corresponding preset parsing library or preset parsing tool. If the data of the data flow value information exceeds the preset data range, it may indicate the existence of a fault; preset rules can be used to verify the correctness of the data flow value information to ensure that the received data flow value information complies with the predetermined standards and format, thereby ensuring data consistency.
[0106] It should be pointed out that if the data obtained first is data flow information, the data flow name information and data flow unit information in the data flow information can be displayed on the data flow display interface based on the preset display interface, until the data flow value information is obtained, and then the data flow value information can be displayed on the data flow display interface based on the preset display interface, wherein the data flow group information can be selected and displayed as needed, and no specific limitation is made here.
[0107] It can be seen from the above that before sending the key information of the target vehicle model to the target server end with which a communication connection has been established in advance through a preset data transmission method, the client and the target server end first establish a communication connection so that data flow information can be transmitted between the client and the target server end. The client determines the corresponding command reply information based on the data flow command information in the data flow information sent by the target server end, so that the target server end completes the calculation of the data flow value based on the command reply information and using the preset data flow algorithm in the database. In this way, it is possible to effectively realize a diagnostic software data flow that cannot be reverse cracked, prevent the occurrence of piracy and reverse engineering, and thus ensure the security of the data flow information.
[0108] See also Figure 2 As shown, the present invention discloses a specific online data stream display method, which is applied to a target server, wherein the target server has pre-established a communication connection with a corresponding client that has installed a preset diagnostic tool; the method comprises:
[0109] Step S21: receiving key information of the target vehicle model sent by the client through a preset data transmission method, and acquiring corresponding data stream information from a database based on the key information.
[0110] Step S22: Send the data flow information to the client so that the client can execute commands based on the data flow command information in the data flow information to obtain corresponding command reply information.
[0111] Step S23: after receiving the command reply information sent by the client based on the preset data upload method, determine the corresponding data flow value information based on the command reply information and through the preset data flow algorithm in the database.
[0112] Step S24: Send the data stream value information to the client so that the client can use the data stream value information and the data stream information to complete the online data stream display operation corresponding to the target vehicle model.
[0113] Among them, for more specific working processes of the above steps, reference can be made to the corresponding contents disclosed in the aforementioned embodiments, which will not be repeated here.
[0114] As can be seen from the above, the target server side obtains the data flow information corresponding to the key information from the database by receiving the key information of the target vehicle model sent by the client, so that the client can execute the command based on the data flow command information in the data flow information sent by the target server to obtain the command reply information corresponding to the data flow command information. After the target server side receives the command reply information uploaded by the client, it uses the preset data flow algorithm in the database to calculate the command reply information to obtain the data flow value information corresponding to the command reply information. In this way, placing the data flow algorithm on the target server side can avoid the leakage of the data flow algorithm and effectively improve the data protection of the software data flow.
[0115] Accordingly, see Figure 3 As shown, the present application also provides an online data stream display device, which is applied to a client that has installed a preset diagnostic tool, including:
[0116] The key information sending module 11 is used to send the key information of the target vehicle model to the target server end with which the communication connection has been established in advance through a preset data transmission method, so that the target server end obtains the corresponding data stream information from the database based on the received key information;
[0117] A command execution module 12 is used to execute a command based on the data flow command information in the data flow information after receiving the data flow information sent by the target server, so as to obtain corresponding command reply information;
[0118] A reply information sending module 13 is used to send the command reply information to the target server end based on a preset data upload method, so that the target server end determines the corresponding data flow value information based on the command reply information and through a preset data flow algorithm in the database;
[0119] The data stream display module 14 is used to complete the online data stream display operation corresponding to the target vehicle model by using the data stream value information and the data stream information after receiving the data stream value information sent by the target server.
[0120] It can be seen from the above that before sending the key information of the target vehicle model to the target server end with which a communication connection has been established in advance through a preset data transmission method, the client and the target server end first establish a communication connection so that data flow information can be transmitted between the client and the target server end. The client determines the corresponding command reply information based on the data flow command information in the data flow information sent by the target server end, so that the target server end completes the calculation of the data flow value based on the command reply information and using the preset data flow algorithm in the database. In this way, it is possible to effectively realize a diagnostic software data flow that cannot be reverse cracked, prevent the occurrence of piracy and reverse engineering, and thus ensure the security of the data flow information.
[0121] In some specific implementations, the online data stream display device may further include:
[0122] A connection request sending unit is used to initiate a connection request to the target server based on the data stream and a preset full-duplex communication protocol after entering the data stream corresponding to the target vehicle model through the installed preset diagnostic tool, so that the target server can establish a communication connection with the client of the installed preset diagnostic tool based on the connection request.
[0123] In some specific implementations, the key information sending module 11 may specifically include:
[0124] The key information sending completion unit is used to send key information including the identity identification information, software version information, configuration information and electronic system configuration information of the target vehicle model to the target server end with which a communication connection has been established in advance through a preset data transmission method, the preset full-duplex communication protocol and the first preset information transmission format.
[0125] In some specific implementations, the command execution module 12 may specifically include:
[0126] A data flow information acquisition unit, used to acquire the data flow information including the data flow command information sent by the target server, and execute the data flow command information;
[0127] A first reply information determining unit, configured to determine, during the process of executing a command, for a first data stream command that has been normally responded to, first command reply information corresponding to the first data stream command based on a corresponding response result;
[0128] A second reply information determining unit, configured to determine, for a second data stream command to which a negative response has been given and to which no response information exists, second command reply information representing an empty set corresponding to the second data stream command;
[0129] A command reply information determining unit is used to determine corresponding command reply information based on the first command reply information, the second command reply information and a second preset information transmission format.
[0130] In some specific implementations, the data stream display module 14 may specifically include:
[0131] A data stream display completion unit is used to complete the online data stream display operation corresponding to the target vehicle model based on the data stream value information and the data stream name information and data stream unit information in the data stream information and through a preset display interface after receiving the data stream value information sent by the target server based on the third preset transmission format.
[0132] Accordingly, see Figure 4 As shown, the present application also provides an online data stream display device, which is applied to a target server, wherein the target server has pre-established a communication connection with a corresponding client that has installed a preset diagnostic tool; the device includes:
[0133] The key information receiving module 21 is used to receive the key information of the target vehicle model sent by the client through a preset data transmission method, and obtain corresponding data stream information from the database based on the key information;
[0134] A data flow information sending module 22, used for sending the data flow information to the client, so that the client executes a command based on the data flow command information in the data flow information to obtain corresponding command reply information;
[0135] A value information determination module 23, configured to determine corresponding data flow value information based on the command reply information and using a preset data flow algorithm in the database after receiving the command reply information sent by the client in a preset data upload mode;
[0136] The value information sending module 24 is used to send the data stream value information to the client, so that the client can use the data stream value information and the data stream information to complete the online data stream display operation corresponding to the target vehicle model.
[0137] As can be seen from the above, in the embodiment of the present application, before receiving the key information of the target vehicle model sent by the client through a preset data transmission method, the target server and the client first establish a communication connection so that data flow information is transmitted between the target server and the client. The target server sends the data flow information to the client so that the client executes commands based on the data flow command information in the data flow information and obtains corresponding command reply information. The target server completes the calculation of the data flow value based on the command reply information and using the preset data flow algorithm in the database. In this way, it is possible to effectively realize a diagnostic software data flow that cannot be reverse cracked, prevent the occurrence of piracy and reverse engineering, and thus ensure the security of the data flow information.
[0138] Furthermore, the present application also discloses an electronic device. Figure 5 It is a structural diagram of an electronic device 30 according to an exemplary embodiment, and the content in the figure cannot be regarded as any limitation on the scope of use of this application. The electronic device 30 may specifically include: at least one processor 31, at least one memory 32, a power supply 33, a communication interface 34, an input and output interface 35 and a communication bus 36. Among them, the memory 32 is used to store a computer program, and the computer program is loaded and executed by the processor 31 to implement the relevant steps in the online data stream display method disclosed in any of the aforementioned embodiments. In addition, the electronic device 30 in this embodiment may specifically be an electronic computer.
[0139] In this embodiment, the power supply 33 is used to provide working voltage for each hardware device on the electronic device 30; the communication interface 34 can create a data transmission channel between the electronic device 30 and the external device, and the communication protocol it follows is any communication protocol that can be applied to the technical solution of the present application, and is not specifically limited here; the input and output interface 35 is used to obtain external input data or output data to the outside world, and its specific interface type can be selected according to specific application needs and is not specifically limited here.
[0140] In addition, the memory 32 as a carrier for resource storage may be a read-only memory, a random access memory, a disk or an optical disk, etc. The resources stored thereon may include an operating system 321, a computer program 322, etc., and the storage method may be temporary storage or permanent storage.
[0141] The operating system 321 is used to manage and control the hardware devices and computer programs 322 on the electronic device 30, and can be Windows Server, Netware, Unix, Linux, etc. In addition to the computer program that can be used to complete the online data stream display method performed by the electronic device 30 disclosed in any of the aforementioned embodiments, the computer program 322 can further include computer programs that can be used to complete other specific tasks.
[0142] Furthermore, the present application also discloses a computer-readable storage medium for storing a computer program; wherein the computer program, when executed by a processor, implements the online data stream display method disclosed above. For the specific steps of the method, reference may be made to the corresponding contents disclosed in the above embodiments, and no further description will be given here.
[0143] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.
[0144] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0145] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented directly using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
[0146] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used 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. Moreover, 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 further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.
[0147] The technical solution provided by the present application is introduced in detail above. Specific examples are used in this article 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 of the present application and its core idea. At the same time, for general technicians in this field, according to the idea of the present application, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.
Claims
1. An online data stream display method, characterized in that: Applies to clients that have installed pre-defined diagnostic tools, including: Sending the key information of the target vehicle model to a target server end with which a communication connection has been established in advance through a preset data transmission method, so that the target server end obtains corresponding data stream information from a database based on the received key information; After receiving the data flow information sent by the target server, executing a command based on the data flow command information in the data flow information to obtain corresponding command reply information; Sending the command reply information to the target server end based on a preset data upload method, so that the target server end determines corresponding data flow value information based on the command reply information and through a preset data flow algorithm in the database; After receiving the data stream value information sent by the target server, the online data stream display operation corresponding to the target vehicle model is completed using the data stream value information and the data stream information.
2. The online data stream display method according to claim 1, characterized in that: Before sending the key information of the target vehicle model to the target server end with which the communication connection has been established in advance by the preset data transmission method, the method further includes: After entering the data stream corresponding to the target vehicle model through the installed preset diagnostic tool, a connection request is initiated to the target server based on the data stream and the preset full-duplex communication protocol, so that the target server can establish a communication connection with the client side with the installed preset diagnostic tool based on the connection request.
3. The online data stream display method according to claim 2, characterized in that: The method of sending the key information of the target vehicle model to the target server end with which the communication connection has been established in advance by means of a preset data transmission method includes: Through the preset data transmission method, the preset full-duplex communication protocol and the first preset information transmission format, key information including the identity information, software version information, configuration information and electronic system configuration information of the target vehicle model is sent to the target server end with which a communication connection has been established in advance.
4. The online data stream display method according to claim 1, characterized in that: After receiving the data flow information sent by the target server, executing a command based on the data flow command information in the data flow information to obtain corresponding command reply information includes: Acquire data flow information including data flow command information sent by the target server, and execute commands on the data flow command information; During the command execution process, for a first data stream command that has been normally responded to, first command reply information corresponding to the first data stream command is determined based on the corresponding response result; wherein the first command reply information includes corresponding character string information that satisfies a preset data system; For a second data stream command that has been negatively responded to and does not have response information, determining second command reply information representing an empty set corresponding to the second data stream command; Corresponding command reply information is determined based on the first command reply information, the second command reply information, and a second preset information transmission format.
5. The online data stream display method according to any one of claims 1 to 4, characterized in that: After receiving the data stream value information sent by the target server, using the data stream value information and the data stream information to complete the online data stream display operation corresponding to the target vehicle model, including: After receiving the data stream value information sent by the target server based on the third preset transmission format, the online data stream display operation corresponding to the target vehicle model is completed based on the data stream value information and the data stream name information and data stream unit information in the data stream information and through the preset display interface.
6. An online data stream display method, characterized in that: Applied to a target server, wherein the target server has pre-established a communication connection with a corresponding client that has installed a preset diagnostic tool; the method comprises: Receiving key information of the target vehicle model sent by the client through a preset data transmission method, and acquiring corresponding data stream information from a database based on the key information; Sending the data flow information to the client so that the client executes a command based on the data flow command information in the data flow information to obtain corresponding command reply information; After receiving the command reply information sent by the client based on the preset data upload method, determining corresponding data flow value information based on the command reply information and using a preset data flow algorithm in the database; The data stream value information is sent to the client so that the client can use the data stream value information and the data stream information to complete the online data stream display operation corresponding to the target vehicle model.
7. An online data stream display device, characterized in that: Applies to clients that have installed pre-defined diagnostic tools, including: A key information sending module, used to send the key information of the target vehicle model to a target server end with which a communication connection has been established in advance through a preset data transmission method, so that the target server end obtains corresponding data stream information from a database based on the received key information; A command execution module, configured to execute a command based on the data flow command information in the data flow information after receiving the data flow information sent by the target server, so as to obtain corresponding command reply information; A reply information sending module, used to send the command reply information to the target server end based on a preset data upload method, so that the target server end determines the corresponding data flow value information based on the command reply information and through a preset data flow algorithm in the database; The data stream display module is used to complete the online data stream display operation corresponding to the target vehicle model by using the data stream value information and the data stream information after receiving the data stream value information sent by the target server.
8. An online data stream display device, characterized in that: Applied to a target server, wherein the target server has pre-established a communication connection with a corresponding client that has installed a preset diagnostic tool; the device comprises: A key information receiving module, used to receive the key information of the target vehicle model sent by the client through a preset data transmission method, and obtain corresponding data stream information from the database based on the key information; A data flow information sending module, used for sending the data flow information to the client, so that the client can execute a command based on the data flow command information in the data flow information to obtain corresponding command reply information; A value information determination module, configured to determine corresponding data flow value information based on the command reply information and using a preset data flow algorithm in the database after receiving the command reply information sent by the client in a preset data upload mode; The value information sending module is used to send the data stream value information to the client so that the client can use the data stream value information and the data stream information to complete the online data stream display operation corresponding to the target vehicle model.
9. An electronic device, characterized in that: include: Memory, used to store computer programs; A processor, configured to execute the computer program to implement the online data stream display method according to any one of claims 1 to 5.
10. A computer-readable storage medium, characterized in that: Used to store a computer program, wherein when the computer program is executed by a processor, the online data stream display method according to any one of claims 1 to 5 is implemented.
