Dynamic adjustment data stream display method and device and storage medium
Through the dynamic adjustment of data flow display method, the combination of static fixed value and dynamic adjustment value is used to optimize the reading and display of data flow, solving the problem of low data flow reading efficiency in the prior art, and improving the user of vehicle detection Experience and system efficiency.
Patent Information
- Application Number
- CN202411304445.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-19
- Publication Date
- 2025-01-07
AI Technical Summary
During vehicle detection, existing methods cause the diagnostic software interface to display only a certain amount of data flow information at a time, and each communication requires a circular transmission of instructions to read all data flows to the ECU, resulting in waste of communication resources and user experience. Good, how to improve the reading efficiency of data streams is an urgent problem.
By obtaining data flow reading instructions, reading data flow information according to data flow identification, it is divided into static fixed value and dynamic adjustment value, displaying static fixed value based on preset display rules, and updating the display interface according to dynamic adjustment value, dynamic adjustment of data Stream identification to improve read efficiency.
By dynamically adjusting the data flow display method, communication costs are saved, data flow read efficiency is improved, user experience is improved, and unnecessary communication load and data flow commands are reduced.
Smart Images

Figure CN119271507A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data processing, and in particular to a method, device and storage medium for dynamically adjusting data stream display. Background Art
[0002] During the vehicle inspection process, it is necessary to read and analyze the data stream of the corresponding subsystem of the vehicle, so as to realize real-time understanding of the working status information of various sensors and actuators of the automotive electronic control system, thereby mastering the operating status of the vehicle and judging the working status of each electronic control system of the vehicle. Most current methods usually display all data streams supported by each subsystem on the interface, and users select data streams to read according to actual needs. The diagnostic software sends instructions to the Electronic Control Unit (ECU) according to each data stream cycle and parses it, obtains the value corresponding to each data stream, and displays these values on the interface of the diagnostic software for users to view in real time.
[0003] However, in actual applications, the diagnostic software interface can only display a certain amount of data stream information each time, but each communication is a loop that sends instructions to the ECU to read all data streams and waits for the ECU to reply. Especially when there are unanswered data streams, the interface refresh time is too long, resulting in a large waste of communication resources and affecting the user experience. Therefore, how to improve the efficiency of data stream reading needs to be solved urgently. Summary of the invention
[0004] The embodiments of the present invention provide a method, device and storage medium for dynamically adjusting data stream display, which can improve the reading efficiency of data stream.
[0005] In a first aspect, an embodiment of the present invention provides a method for dynamically adjusting data stream display, comprising:
[0006] Obtaining a data stream reading instruction, wherein the data stream reading instruction includes a data stream identifier;
[0007] The data stream corresponding to the data stream identifier is read according to the data stream reading instruction to obtain data stream information; the data stream information includes a dynamic adjustment value and a static fixed value, and the static fixed value includes at least one of a data stream name, a value, a unit, and a standard value;
[0008] Displaying the data flow information on a display interface based on a preset display rule, and displaying the static fixed value on the display interface;
[0009] Read the data flow information according to the data flow identifier to obtain a dynamic adjustment value corresponding to the static fixed value;
[0010] The display interface is updated based on the dynamic adjustment value, and the updated static fixed value is displayed on the display interface.
[0011] In a second aspect, an embodiment of the present invention provides a device for dynamically adjusting data stream display, which is applied to an in-vehicle device. The device includes: an acquisition unit, a display unit, and an adjustment unit, wherein:
[0012] The acquisition unit is used to acquire a data stream reading instruction; the data stream reading instruction includes a data stream identifier;
[0013] The acquisition unit is further used to read the data stream corresponding to the data stream identifier according to the data stream reading instruction to obtain data stream information; the data stream information includes a dynamic adjustment value and a static fixed value, and the static fixed value includes at least one of a data stream name, a value, a unit, and a standard value;
[0014] The display unit is used to display the data flow information on a display interface based on a preset display rule, and to display the static fixed value on the display interface;
[0015] The adjustment unit reads the data flow information according to the data flow identifier to obtain a dynamic adjustment value corresponding to the static fixed value;
[0016] The display unit is further used to update the display interface based on the dynamic adjustment value, and display the updated static fixed value on the display interface.
[0017] In a third aspect, the present application provides a vehicle-mounted device, comprising: a processor and a memory, wherein the memory is used to store one or more programs, wherein the one or more programs are stored in the memory and are configured to be executed by the processor, and the program includes instructions for executing the steps in the first aspect of the present application.
[0018] In a fourth aspect, the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program for electronic data exchange, wherein the computer program enables a computer to execute part or all of the steps described in the first aspect of the present application.
[0019] In a fifth aspect, the present application provides a computer program product, wherein the computer program product includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to cause a computer to execute some or all of the steps described in the first aspect of the present application. The computer program product may be a software installation package.
[0020] It can be seen that the method for dynamically adjusting the data stream display described in the embodiment of the present application includes: obtaining a data stream reading instruction, the data stream reading instruction includes a data stream identifier; reading the data stream corresponding to the data stream identifier according to the data stream reading instruction to obtain data stream information; the data stream information includes a dynamic adjustment value and a static fixed value, and the static fixed value includes at least one of a data stream name, a numerical value, a unit, and a standard value; displaying the data stream information on a display interface based on a preset display rule, and displaying the static fixed value on the display interface; reading the data stream information according to the data stream identifier to obtain a dynamic adjustment value corresponding to the static fixed value; updating the display interface based on the dynamic adjustment value, and displaying the updated static fixed value on the display interface, determining the dynamic adjustment value by displaying the data stream information on the display interface, updating the data stream identifier according to the dynamic adjustment value, obtaining the updated dynamic adjustment value and the static fixed value, and displaying the static fixed value on the interface, saving communication costs and improving the efficiency of reading information streams. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the background technology, the drawings required for use in the embodiments of the present invention or the background technology will be described below.
[0022] Figure 1 This is an application scenario diagram for dynamically adjusting data stream display provided by an embodiment of the present application;
[0023] Figure 2 This is a page display diagram of a display interface in a diagnostic software provided in an embodiment of the present application;
[0024] Figure 3 is a flow chart of a method for dynamically adjusting data stream display provided by an embodiment of the present application;
[0025] Figure 4 It is a block diagram of the functional units of a device for dynamically adjusting data stream display provided by an embodiment of the present application;
[0026] Figure 5 It is a structural schematic diagram of a vehicle-mounted device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0027] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described 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, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0028] The terms "first", "second", etc. in the specification and claims of this application and the above-mentioned drawings are used to distinguish different objects, rather than to describe a specific order. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but optionally includes steps or units that are not listed, or optionally includes other steps or units inherent to these processes, methods, products or devices.
[0029] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0030] The vehicle-mounted devices described in the embodiments of the present application may include smart phones (such as Android phones, iOS phones, Windows Phone phones, etc.), tablet computers, PDAs, laptops, video matrices, monitoring platforms, mobile Internet devices (mobile internet devices, MID) or wearable devices, etc. The above are only examples and not exhaustive, including but not limited to the above devices. Of course, the above-mentioned vehicle-mounted devices can also be servers, such as cloud servers.
[0031] Some names involved in the embodiments of the present application are explained below:
[0032] Vehicle diagnostic software: Vehicle diagnostic software is a software tool specifically designed to detect and diagnose vehicle faults. It usually communicates with the vehicle's electronic control unit or on-board diagnostic system to collect and analyze data from various sensors and control modules of the vehicle to monitor and report potential faults or abnormal conditions of the vehicle. Some vehicle diagnostic software can not only provide real-time fault codes, but also generate detailed diagnostic reports to help car drivers or car maintenance engineers more accurately determine the source of the problem and improve the efficiency and accuracy of maintenance. Some vehicle diagnostic software also supports remote diagnosis functions, which can remotely collaborate with professional technicians through the Internet to achieve more convenient troubleshooting.
[0033] Electronic Control Unit: The electronic control unit is also called "driving computer" or "on-board computer". It is responsible for coordinating and controlling various systems of the car, such as the engine, transmission, brake, steering, etc., as well as monitoring and controlling various parameters of the vehicle. It is mainly composed of microprocessors, memory, input and output interfaces, analog-to-digital converters, and large-scale integrated circuits such as shaping and driving. ECU receives signals from vehicle sensors and other input devices, and after processing, it sends instructions to the actuators, thereby achieving precise control of various functions of the car and helping the driver to understand the status of the car in real time more efficiently.
[0034] See also Figure 1 , Figure 1 It is an application scenario diagram of dynamically adjusting the display of data streams provided in an embodiment of the present application, which is applied to an in-vehicle device 100, such as a device for establishing communication between a diagnostic device and a target vehicle to collect the status of the target vehicle;
[0035] Among them, Figure 1 The diagram shows an application scenario of dynamically adjusting the data stream display, which is applied to a vehicle-mounted device 100. It can be seen that a diagnostic software 110 is installed in the vehicle-mounted device. The diagnostic software communicates with the vehicle and sends a data stream reading instruction to the ECU. The diagnostic software obtains the value corresponding to each data stream by parsing the ECU reply data and displays it on the device interface for real-time viewing by the user.
[0036] The diagnostic software 110 is composed of an interface process 111 and a diagnostic process 112. The interface process 111 is responsible for data display and human-computer interaction with the user. The diagnostic process 112 is responsible for communicating with the target vehicle and transmitting data to the interface process 111 in real time. The two processes communicate and interact through message passing. The diagnostic software 110 collects the data stream corresponding to the target vehicle status data. The interface process 111 passes the ECU system name to the diagnostic process 112. The diagnostic process 112 queries all data streams supported by the ECU, assembles the identification (ID) of these data streams into dynamic adjustment values, and composes the name, unit, and standard value of the data stream into fixed static values. Then, the read fixed static values are sent to the interface process 111 for display, and then the real-time read dynamic adjustment values are sent to the diagnostic process 112 to update the display interface. Thus, the diagnostic instructions can be dynamically adjusted according to the maximum display quantity, avoiding the diagnostic software 110 cyclically sending the data stream reading instruction to the ECU and waiting for the ECU's reply during each communication process between the diagnostic software 110 and the ECU, resulting in a large waste of communication resources, improving the reading efficiency and enhancing the user experience. It should be noted that the vehicle-mounted device may only include diagnostic software.
[0037] See also Figure 2 , Figure 2is a display page 200 of a display interface in a diagnostic software provided in an embodiment of the present application; wherein, Figure 2 What is shown is a display page 200 of the display interface in the vehicle diagnostic software. It can be seen that in the display page 200 of the display interface, the user can select different display forms of the interface. The different display forms may include any of the following: maximize, minimize, close command, etc., which are not limited here;
[0038] The display page 200 for ECU to read data streams may also include words or options such as previous page, next page, settings, return, exit, function 1, etc., which are not limited here. The user can click on these options, and then the diagnostic software will update and adjust the dynamic value according to the change in the maximum number of displayed data streams on a single page caused by the adjustment of the display page of the interface process 111. The diagnostic process 112 will increase the data stream information to be displayed or delete the data stream information that does not need to be displayed according to the updated dynamic adjustment value, and then the interface process 111 will display the fixed value of the data stream to be displayed on the display page 200.
[0039] See also Figure 3 , Figure 3 This is a flow chart of a method for dynamically adjusting data stream display provided by an embodiment of the present application, which is applied to an in-vehicle device, and the method includes but is not limited to the following steps:
[0040] S301. Obtain a data stream reading instruction, where the data stream reading instruction includes a data stream identifier.
[0041] In an embodiment of the present application, the user selects the vehicle diagnostic information displayed on the display interface according to actual needs, such as the engine system, transmission system, cooling system, ignition switch status, etc. Each diagnostic information corresponds to at least one data stream, and each data stream includes a data stream identifier and data stream information.
[0042] In a specific embodiment, after the user selects the vehicle diagnostic information, the diagnostic software sends instructions to the ECU according to each data stream data transmission service cycle, and obtains each data stream information by parsing the data replied by the ECU. Then, the diagnostic software selects the corresponding data stream according to the association between the vehicle diagnostic information and the data stream identifier corresponding to the data stream. For example, the user selects the engine system, and the data stream identifier corresponding to the engine system is 0-8, and the diagnostic software display interface displays 9 data stream information.
[0043] Optionally, step S301, before obtaining the data stream reading instruction, may include the following steps:
[0044] A1. Obtaining diagnostic information based on the target vehicle;
[0045] A2. Select according to the association relationship between the target vehicle diagnostic information and the data flow identifier to obtain the data flow identifier corresponding to the target vehicle diagnostic information.
[0046] In an embodiment of the present application, the user selects the system to be diagnosed according to needs, the diagnostic software passes the ECU system name to the diagnostic process in the diagnostic software, and the diagnostic process queries the diagnostic information of all data streams supported by the ECU system. Then, after the user selects the vehicle diagnostic information, the diagnostic software selects the selected data stream based on the association between the vehicle diagnostic information and the data stream identifier, and obtains their corresponding data stream identifiers.
[0047] In a specific embodiment, the user selects the system to be diagnosed, the diagnostic process in the diagnostic software passes the ECU system name to the diagnostic process, the diagnostic process queries all data streams supported by the ECU system name, the diagnostic software obtains all data streams corresponding to the ECU name, and then the diagnostic process in the diagnostic software passes the ID and name of these data streams to the interface process for display. Then, the user selects the data stream to be read according to needs. At this time, the diagnostic software records the identifier of the selected data stream.
[0048] S302. Read the data stream corresponding to the data stream identifier according to the data stream read instruction to obtain data stream information; the data stream information includes a dynamic adjustment value and a static fixed value, and the static fixed value includes at least one of a data stream name, a numerical value, a unit, and a standard value.
[0049] In an embodiment of the present application, the dynamic adjustment value is a character string assembled according to preset rules, including: diagnostic type, maximum number of data streams displayed on the current interface, first data stream identifier displayed on the current interface, effective length of data stream status and data stream status information; the static fixed value is determined based on the data stream status information in the dynamic adjustment value, and it is directly displayed on the display interface, including name, value, unit and standard value.
[0050] In a specific embodiment, the diagnostic software first obtains all the data stream IDs selected above, then obtains the ID of the first data stream of the current interface and the maximum number of data streams displayed on the current interface, and then selects the data stream ID that needs to be displayed currently based on the information obtained, and obtains the corresponding data stream information through the data stream ID that needs to be displayed currently.
[0051] Optionally, step S302, in reading the data stream corresponding to the data stream identifier according to the data stream reading instruction to obtain the data stream information, may include the following steps:
[0052] A3. Obtaining a dynamic adjustment value of the data stream according to the data stream identifier corresponding to the target vehicle diagnostic information;
[0053] A4. Reading according to the dynamic adjustment value of the data stream to obtain a static fixed value displayed on the display interface.
[0054] In the embodiment of the present application, the information obtained by reading the data stream may include at least one of the following: data stream identification, dynamic adjustment value, static fixed value, data stream status, feedback of the diagnostic process, etc., which are not limited here.
[0055] In a specific embodiment, the diagnostic data of the target vehicle can be obtained first, and the corresponding data stream identifier can be identified and confirmed by the vehicle ECU system. Specifically, a mapping relationship between vehicle diagnostic information and data stream identifiers can be pre-set, and the data stream identifier corresponding to the diagnostic information of the target vehicle can be determined based on the mapping relationship. Then, the data stream reading parameter corresponding to the data stream identifier can be determined. Specifically, the diagnostic system of the target vehicle can obtain a dynamic adjustment value as the data stream reading parameter.
[0056] Furthermore, the static fixed values displayed on the interface of the diagnostic software can be obtained as the target reading parameters. Specifically, these static fixed values can also be obtained according to the real-time operating conditions of the vehicle. The target reading parameters can reflect the data flow information displayed on the user interface to ensure that the data reflects the status of the vehicle in real time. Then, the dynamic adjustment value in the diagnostic process can be changed according to the change of the static fixed value displayed on the interface process of the diagnostic software to obtain the fixed data flow information finally used for display.
[0057] It should be explained that the dynamic adjustment value is used to determine the interface process display of the data stream in the diagnostic software to ensure that the diagnostic data can be adjusted and updated in time during the operation of the vehicle. The dynamic adjustment value can change according to the vehicle's operating environment, the status information fed back by the ECU, etc. For example, when the vehicle is driving, the dynamic adjustment value can reflect the real-time engine status or sensor feedback, as well as the data stream content that the user needs to display in the diagnostic software.
[0058] In this way, the data stream identifier is first obtained through the target vehicle diagnostic information, and then the dynamic adjustment value corresponding to the data stream identifier can be determined; further, the static fixed value for display can be obtained and used for vehicle diagnostic interface display, and finally, through the combination of dynamic adjustment value and static fixed value, it is ensured that the data reading in the diagnostic process is accurate and can adapt to the vehicle's operating status in real time.
[0059] Optionally, step S302, in reading the data stream corresponding to the data stream identifier according to the data stream reading instruction to obtain the data stream information, may include the following steps:
[0060] B1. Read all data streams of the display interface according to the data stream reading instruction to obtain the maximum number of display data streams of the display interface and the first data stream identifier of the display interface;
[0061] B2. determining a dynamic adjustment value corresponding to the static fixed value displayed on the display interface based on the maximum number of display data streams and the first data stream identifier;
[0062] B3. Assemble the static fixed value and the dynamic adjustment value according to a preset rule to obtain the data flow information.
[0063] In the embodiment of the present application, the data stream reading step may include at least one of the following: data stream reading instructions, maximum display data stream quantity, static fixed value, dynamic adjustment value and other parameters, which are not limited here.
[0064] In a specific embodiment, all data streams in the display interface of the target vehicle can be first obtained, and all data streams can be scanned and read according to the data stream reading instruction. Specifically, the maximum number of display data streams of the display interface and the first data stream identifier of the current interface can be obtained through the diagnostic process, and the content displayed on the current interface can be determined based on these parameters. Then, the corresponding static fixed value and dynamic adjustment value can be determined according to the maximum number of display data streams and the first data stream identifier of the display interface.
[0065] Furthermore, the data stream can be assembled according to preset rules based on the dynamic adjustment values corresponding to the static fixed values. Specifically, these static fixed values can be combined with the dynamic adjustment values to generate complete data stream information, and ensure that the information can be accurately displayed on the user interface. In this way, the diagnostic process can ensure that the display of the data stream information is always consistent with the real-time status of the vehicle.
[0066] It should be explained that static fixed values are usually used for data streams displayed on the interface, which reflect the status information of the vehicle at a fixed time point, while dynamic adjustment values are assembled into data streams by assembling various bytes to process real-time changing data streams, ensuring that when the vehicle status fluctuates and the user needs to display, the data displayed on the interface can still be adjusted in time and kept dynamically updated. For example, when the vehicle speed changes, the dynamic adjustment value can immediately reflect the change and update the data stream information of the display interface.
[0067] Among them, the dynamic adjustment value can be assembled according to the following rules, with 1 byte of diagnostic type + 2 bytes of the maximum number of data streams displayed on a single page of the current interface + 1 byte of the first data stream ID displayed on the current page + 2 bytes of data stream status effective length + N bytes of data stream status, to form data and send it to the diagnostic process. The diagnostic process parses and obtains the information inside. First, it obtains the IDs of all selected data streams, and then obtains the first data stream ID of the current page, and then combines the maximum number of data streams displayed on a single page of the current interface to select the ID of the data stream that needs to be displayed. The diagnostic process only needs to assemble the data stream commands of these IDs, communicate with the ECU, obtain the correct data stream information, and then display it on the interface program. The following example is used to illustrate. At this time, the interface displays a maximum of 9 data streams, and the assembled data bytes are "0x03 0x00 0x09 0x000x03 0xC10xA4 0x80" Among them, 0x03 is the diagnostic type, indicating that this instruction is a data stream read instruction, 0x00&0x09 indicates that the current interface supports a maximum of 9 data streams, 0x00 indicates the ID of the first data stream in the current display interface, which is used to dynamically adjust the data stream display content, 0x03 indicates the subsequent valid data length, and 0x03 indicates that the following three bytes of data are valid data, that is, 0xC1&0xA4&0x80, which indicates the selected state of the data stream. Each bit of each byte represents the state of a data stream. 1 indicates that it is selected by the user, and 0 indicates that it is not selected. They are arranged in order of ID, where the binary value of 0xC1 is 11000001, which means that the data streams with ID numbers 0, 1, and 7 are selected, and the binary value of 0xA4 is 10100100, which means that the data streams with ID numbers 8, 10, and 13 are all selected. The data stream content is displayed according to the same rule.
[0068] In this way, the data stream information of all display interfaces is read through the data stream reading instruction, and then the maximum number of display data streams and the first data stream identifier of the display interface are obtained, and the static fixed value and the dynamic adjustment value are determined. Furthermore, these static fixed values and dynamic adjustment values are combined and assembled according to the preset rules. Finally, accurate data stream information is obtained and updated and displayed in real time in the display interface. This can effectively improve the accuracy and real-time performance of the diagnosis and ensure that users can obtain more accurate vehicle status information.
[0069] Optionally, step B2, before determining the dynamic adjustment value corresponding to the static fixed value displayed on the display interface based on the maximum number of display data streams and the first data stream identifier, may include the following steps:
[0070] C1. Determine whether the number of the maximum display data streams changes;
[0071] C2. If the number of the maximum display data streams changes, update the dynamic adjustment value according to the number of the maximum display data streams to obtain a dynamic adjustment value for redisplay;
[0072] C3. If the number of the maximum display data streams has not changed, read the dynamic adjustment value corresponding to the static fixed value displayed on the display interface according to the data stream identifier.
[0073] In an embodiment of the present application, the dynamic adjustment value of the data stream can be adjusted in real time according to the changes in the maximum number of displayed data streams and the first data stream identifier. During this process, the diagnostic efficiency can be optimized based on the user interface and ECU communication. The display control parameters of the diagnostic software display interface may include but are not limited to: the maximum number of displayed data streams, data stream identifiers, static fixed values and dynamic adjustment values, etc.
[0074] In a specific embodiment, the interface process may first detect whether the maximum number of display data streams has changed. Specifically, the diagnosis process may be used to determine whether the maximum number of display data streams of the current display interface has changed due to user operations (such as maximize, minimize, or next page operations); if so, the interface process will update the maximum number of display data streams and recalculate the dynamic adjustment value based on the number to ensure that the displayed data stream can timely and accurately reflect the status of the current interface.
[0075] Furthermore, if the maximum number of displayed data streams changes, the dynamic adjustment value can be updated according to the changed number. Specifically, the data stream ID and data stream information to be displayed can be re-determined through the diagnostic process and updated to the display interface to ensure that the interface can display the latest data stream content. For example, the maximum display data volume of the current interface is 9 data streams. When the user executes "Next Page", the assembled data byte changes to "0x03 0x000x09 0xF4 0x03 0xC1 0xA4 0x80", and the changed byte changes from 0x00 to 0xF4, which represents the first data stream ID in the current interface. Due to the dynamic adjustment of the data stream display content, the first 9 data streams are removed. At this time, the first data stream ID of the interface is 0xF4, that is, the ID is 19, and the first data stream ID of the interface is 0+9=9. The diagnostic process in the diagnostic software needs to calculate from the 9th data stream (ID is 19, 0, 1, 7, 8, 10, 13, 16, 17, 18) data streams, and display the static fixed values of data stream 9 and data stream 1 on the display interface.
[0076] Furthermore, if the maximum number of displayed data streams has not changed, the static fixed value of the display interface can be directly read according to the current data stream identifier, and the data stream information can be displayed in combination with the existing dynamic adjustment value. In this way, unnecessary communication load and data stream commands can be effectively reduced, ensuring that the diagnostic process can efficiently process vehicle information while improving the user experience.
[0077] In this way, through steps C1-C3, the diagnostic process can dynamically adjust the communication instructions with the ECU according to the changes in the maximum number of displayed data streams fed back by the interface process, without the need to cyclically send all selected data stream commands, and only need to focus on the content displayed on the current interface. This not only improves diagnostic efficiency, but also optimizes resource usage, reduces system burden, reduces communication load and cost, and ensures the accuracy and real-time nature of vehicle diagnostic information.
[0078] Optionally, step B3, in terms of assembling the static fixed value and the dynamic adjustment value according to a preset rule to obtain the data flow information, may include the following steps:
[0079] D1. Read the dynamic adjustment value corresponding to the static fixed value to obtain the data stream identifier to be displayed and the maximum number of display data streams;
[0080] D2, assembling the data stream identifier to be displayed and the maximum number of display data streams to obtain component data;
[0081] D3. updating the dynamic adjustment value corresponding to the static fixed value according to the composition data to obtain an adjusted dynamic adjustment value;
[0082] D4. Based on the adjusted dynamic adjustment value, the data stream information is obtained by combining it with the static fixed value displayed on the display interface.
[0083] In the embodiment of the present application, the combination of static fixed values and dynamic adjustment values is to ensure that the diagnostic process can accurately obtain and display the data information required by the current interface. In this process, the static fixed value represents the fixed content displayed in the interface, while the dynamic adjustment value is adjusted in real time according to the user operation. This combination ensures the accuracy and effectiveness of the data flow information, and can be dynamically updated according to different scenarios, thereby improving the response speed and accuracy of the system.
[0084] In a specific embodiment, data can be read first according to the dynamic adjustment value corresponding to the static fixed value. Specifically, the data stream identifier displayed in the current interface can be read through the diagnostic process, and compared with the maximum number of displayed data streams in the current interface to determine the data stream information that needs to be displayed. Furthermore, the first data stream identifier displayed in the current interface and the corresponding maximum number of displayed data streams can be automatically calculated and identified through the diagnostic process, thereby effectively reducing the transmission of duplicate data and optimizing data reading efficiency.
[0085] Furthermore, after completing the assembly of the required display data stream identifier and the maximum display data stream quantity, the diagnostic process can generate component data based on these data. Specifically, these identifiers and quantities can be combined according to preset rules to ensure that the generated data can adapt to different page layouts and display requirements. Among them, the data stream identifier assembly rule is 1 byte of diagnostic type + 2 bytes of the maximum number of display data streams on a single page of the current interface + 1 byte of the first data stream ID displayed on the current page + 2 bytes of data stream status valid length + N bytes of data stream status, assembled in ID order. The diagnostic process will verify and process the data to ensure that it meets the system requirements and can be used in conjunction with the static fixed values displayed on the interface.
[0086] Furthermore, the diagnostic process can update the dynamic adjustment values corresponding to the static fixed values according to the component data. Specifically, as the user operation changes (such as page turning, interface adjustment, etc.), the diagnostic process will automatically update these dynamic adjustment values to ensure that the system can display the latest data information in real time and avoid information lag or error display. At the same time, the update process of the dynamic adjustment value will be combined with the static fixed value, so that the diagnostic system can handle various data change scenarios more flexibly and intelligently.
[0087] Optionally, step D2, in assembling the data stream identifier to be displayed and the maximum number of display data streams to obtain the component data, may include the following steps:
[0088] E1. Assemble the data stream identifier to be displayed and the maximum number of display data streams according to a set rule to obtain first component data;
[0089] E2. Obtaining corresponding diagnostic type data from the dynamic adjustment value corresponding to the static fixed value;
[0090] E3. Assemble the diagnosis type data and the first component data in byte length order to obtain the component data.
[0091] In the embodiment of the present application, the assembly of the data stream identifier and the maximum number of displayed data streams is to ensure that the diagnostic process can process data in an orderly manner according to the preset rules and display the results to the user. By setting rules to combine these data, it can be ensured that each type of data can be processed in a fixed format to avoid confusion or data dislocation. At the same time, the diagnostic type data is introduced into the data combination so that the diagnostic process can read the data stream according to different diagnostic types, which can make the diagnostic software no longer need to circulate and send all selected data stream commands to the ECU, and only focus on the content of the current page, which greatly improves the diagnostic efficiency and user experience.
[0092] In a specific embodiment, the data stream identifiers to be displayed and the maximum number of displayed data streams can be assembled according to a set rule to obtain the first component data. Specifically, the data stream identifiers and the maximum number of displayed data streams can be sequentially combined according to a pre-set data assembly rule, for example, according to the ID sequence of all selected data streams.
[0093] Furthermore, matching diagnostic type data can be obtained from the dynamic adjustment value corresponding to the static fixed value. Specifically, the diagnostic process can automatically extract the corresponding diagnostic type data based on the currently diagnosed system and the required data stream type, and compare and verify it with the first component data generated previously. This step can ensure the accuracy of the data and provide basic information support for subsequent data assembly.
[0094] Furthermore, the diagnostic type data and the first component data can be orderly combined according to the preset byte length sequence to obtain the final component data. Specifically, the system can obtain the data stream reading instruction according to the diagnostic type data, obtain the data stream information according to the reading instruction, and assemble it according to the byte length sequence. In this way, it can ensure that the final data can be accurately parsed and processed by the diagnostic system during the transmission process, avoiding diagnostic errors or information loss caused by data format confusion.
[0095] In this way, through steps E1-E3, the diagnostic process can systematically assemble the required data stream identifiers, the maximum number of displayed data streams and the diagnostic type data to obtain component data that meets the requirements. In this process, the application of preset rules and byte order ensures the orderliness and accuracy of data assembly, greatly improving the system's processing efficiency and user experience.
[0096] S303: Display the data flow information on a display interface based on a preset display rule, and display the static fixed value on the display interface.
[0097] In an embodiment of the present application, by displaying static fixed values on the interface, the user can clearly understand the data information read in real time during the diagnosis process, while ensuring that the displayed data meets the stability and consistency requirements of the system. The preset display rules provide a unified standard for data presentation.
[0098] In a specific embodiment, based on a preset display rule, the displayable area on the display interface and its corresponding display format can be first determined. Specifically, the display framework and data display mode pre-set by the system can ensure that the data can be presented in a neat and orderly manner on the interface to avoid data overlap or misalignment. For example, the system can dynamically adjust the displayed data based on the resolution and window size of the user interface to ensure the clarity and readability of each data stream information on the interface, or the data stream information displayed on the current interface can be changed according to the user's operation on the interface.
[0099] Furthermore, the specific content to be displayed can be determined based on the static fixed value. Specifically, the system can extract the data to be displayed from the static fixed value read in the diagnostic process, and format it according to preset rules to ensure that this data information can be accurately presented at the specified location of the display interface. This process can not only ensure the accuracy of the data, but also flexibly adjust the priority and method of data display according to user needs, so that different types of diagnostic data can be presented reasonably.
[0100] Furthermore, based on the dynamic adjustment mechanism of the display interface, the display content can be updated in real time. Specifically, when the user adjusts the window size or switches pages, the system can automatically rearrange or scale the currently displayed data according to the new display area size and layout, so that the data can still maintain the best display effect. This dynamic adjustment mechanism not only improves the flexibility of the system, but also ensures that the data display effect remains consistent in different usage scenarios.
[0101] Optionally, step S303, in terms of displaying the data flow information on the display interface based on a preset display rule, may include the following steps:
[0102] F1, initializing the display interface;
[0103] F2, obtaining an operation instruction of the display interface, wherein the operation instruction of the display interface includes any one of the following: a maximize instruction, a next page instruction, a previous page instruction, and a close instruction;
[0104] F3. updating the dynamic adjustment value corresponding to the static fixed value based on the operation instruction to obtain an updated dynamic adjustment value;
[0105] F4, updating the data stream reading instruction according to the updated dynamic adjustment value to obtain an updated data stream reading instruction;
[0106] F5. Re-read the data stream according to the updated data stream reading instruction, and display the re-read data stream.
[0107] In an embodiment of the present application, the diagnostic software initializes the display interface, displays the corresponding static fixed value, and sends the initial value of the dynamic adjustment value corresponding to the static fixed value to the diagnostic process; the diagnostic process starts reading and displaying the data stream according to these initial values, ensuring that the user can intuitively see the default data stream information when the software starts.
[0108] In a specific embodiment, when the diagnostic software initializes the display interface, it first configures the layout of the display interface. Specifically, the system can automatically adjust the interface layout according to the display size and resolution of the user's device, and preset the data display area corresponding to the static fixed value on the interface. Then, the system will initialize the content of the interface according to the preset value of the static fixed value, such as the initial data display or the default display mode, and then pass the initial value of the dynamic adjustment value corresponding to the static fixed value to the diagnostic process, and generate the initial data stream reading instruction, start communicating with the ECU, read the relevant data and display it on the interface.
[0109] Furthermore, when the user operates the interface, such as maximizing the window, going to the next page, or closing the interface, the system can respond to the user's operation instructions in real time. For example, if the user selects the maximize command, the system will automatically adjust the display range and layout of the static fixed values in the current display interface, and recalculate the dynamic adjustment value according to the maximized interface size, and pass the updated dynamic adjustment value to the diagnostic process. At this time, the diagnostic process will generate a new data stream reading instruction based on the new dynamic adjustment value, re-read the corresponding data stream information from the ECU and display it in the maximized interface.
[0110] Furthermore, when the user performs a page turning operation, such as the next page or previous page command, the system will readjust the data content in the display interface according to the page selected by the user. Specifically, the system will update the first data stream ID of the current page and the maximum number of data streams displayed on the page to the corresponding new values, and update the dynamic adjustment value based on these new values. Then, the diagnostic process will read the corresponding data stream from the ECU according to the updated data stream reading instruction, and display the newly read data on the current page.
[0111] S304: Read the data flow information according to the data flow identifier to obtain a dynamic adjustment value corresponding to the static fixed value.
[0112] In an embodiment of the present application, the diagnostic software communicates with the vehicle ECU through a data stream identifier, obtains real-time data stream information in the vehicle diagnostic system, and calculates the corresponding dynamic adjustment value by reading and parsing this data stream information.
[0113] In a specific embodiment, after receiving the operation instruction input by the user, the diagnostic software first communicates with the ECU through the data stream identifier to obtain the data stream information corresponding to the identifier. Specifically, when the diagnostic process communicates with the ECU, it will first extract the original data information associated with the data stream identifier from the ECU by reading the instruction. The data information includes real-time vehicle operation status, fault codes, sensor feedback data, etc. Then, the diagnostic process will parse these data and extract the part corresponding to the static fixed value according to the pre-set rules. This part of the data may include real-time sensor readings, system status or fault codes, etc., which are displayed on the interface as static display content.
[0114] Furthermore, the diagnostic software will compare these static contents with the real-time status of the vehicle and calculate the corresponding dynamic adjustment values. For example, the system can calculate the optimal parameter adjustment values suitable for the current operating environment based on the real-time data changes of the sensor, or dynamically adjust the diagnostic information and troubleshooting steps according to the fault code information. The diagnostic software then passes these dynamic adjustment values to the interface process to update the display content on the interface to keep it consistent with the actual operating status of the vehicle.
[0115] In addition, when the real-time status of the vehicle changes (such as abnormal sensor data or fault code update), the system will re-read the data stream information corresponding to the data stream identifier and recalculate the dynamic adjustment value based on the new information. This process ensures that the diagnostic software can respond to changes in vehicle status in real time, dynamically adjust the display content, and improve diagnostic accuracy and user experience.
[0116] S305: Update the display interface based on the dynamic adjustment value, and display the updated static fixed value on the display interface.
[0117] In the embodiment of the present application, the system continuously receives and calculates the dynamic adjustment value fed back by the vehicle ECU, and refreshes the currently displayed content in real time, so that the information on the display interface accurately reflects the real-time status of the vehicle.
[0118] In a specific embodiment, the diagnostic software first determines whether the static fixed value on the display interface needs to be updated based on the received dynamic adjustment value. If it is detected that the dynamic adjustment value has changed and the system status has been updated, the system will make corresponding adjustments to the display interface.
[0119] Specifically, the dynamic adjustment value is first obtained. The diagnostic process will calculate the corresponding dynamic adjustment value based on the latest data stream information and pass the adjustment value to the interface process. The dynamic adjustment value may include the latest sensor readings, system status changes, fault code updates and other information; then, determine whether an update is needed. After receiving the dynamic adjustment value, the interface process will first compare it with the currently displayed static fixed value to determine whether the interface needs to be updated. If there is a significant difference between the dynamic adjustment value and the currently displayed content, the system will trigger the interface update mechanism and then update the static fixed value. Based on the comparison results, the interface process will replace the previously displayed static fixed value with the updated static fixed value. The updated static fixed value will be displayed on the display interface, and the user can intuitively see the latest status information of the vehicle on the interface. Finally, when the system updates the display interface, it may also issue a prompt sound, color change or notification box in combination with user settings to remind users to pay attention to the latest diagnostic results or vehicle status changes. These notifications can further enhance the user's perception of the vehicle status through visual or auditory feedback.
[0120] In summary, it can be seen that the method for dynamically adjusting the data stream display described in the embodiment of the present application includes: obtaining a data stream reading instruction, the data stream reading instruction includes a data stream identifier; reading the data stream corresponding to the data stream identifier according to the data stream reading instruction to obtain data stream information; the data stream information includes a dynamic adjustment value and a static fixed value, and the static fixed value includes at least one of a data stream name, a numerical value, a unit, and a standard value; displaying the data stream information on a display interface based on a preset display rule, and displaying the static fixed value on the display interface; reading the data stream information according to the data stream identifier to obtain a dynamic adjustment value corresponding to the static fixed value; updating the display interface based on the dynamic adjustment value, and displaying the updated static fixed value on the display interface, determining the dynamic adjustment value by displaying the data stream information on the display interface, updating the data stream identifier according to the dynamic adjustment value, obtaining the updated dynamic adjustment value and the static fixed value, and displaying the static fixed value on the interface, saving communication costs and improving the efficiency of reading information streams.
[0121] See also Figure 4 , Figure 4 It is a block diagram of the functional units of a device 400 for dynamically adjusting data stream display provided in an embodiment of the present application; Figure 4 The device 400 for dynamically adjusting data stream display shown in the figure is characterized in that it is applied to a vehicle-mounted device, and the device comprises: an acquisition unit 401, an adjustment unit 402, and a display unit 403, wherein:
[0122] The acquisition unit 401 is used to acquire a data stream reading instruction; the data stream reading instruction includes a data stream identifier;
[0123] The acquisition unit 401 is further configured to read the data stream corresponding to the data stream identifier according to the data stream reading instruction to obtain data stream information; the data stream information includes a dynamically adjusted value and a static fixed value, and the static fixed value includes at least one of a data stream name, a value, a unit, and a standard value;
[0124] The display unit 403 is used to display the data flow information on a display interface based on a preset display rule, and display the static fixed value on the display interface;
[0125] The adjustment unit 402 reads the data flow information according to the data flow identifier to obtain a dynamic adjustment value corresponding to the static fixed value;
[0126] The display unit 403 is further configured to update the display interface based on the dynamic adjustment value, and display the updated static fixed value on the display interface.
[0127] Optionally, in reading the data stream corresponding to the data stream identifier according to the data stream reading instruction to obtain the data stream information, the acquiring unit 401 is specifically configured to:
[0128] Reading all data streams of the display interface according to the data stream reading instruction to obtain the maximum number of display data streams of the display interface and the first data stream identifier of the display interface;
[0129] Determine a dynamic adjustment value corresponding to a static fixed value displayed on the display interface based on the maximum number of display data streams and the first data stream identifier;
[0130] The data flow information is obtained by assembling the static fixed value and the dynamic adjustment value according to a preset rule.
[0131] Optionally, before determining the dynamic adjustment value corresponding to the static fixed value displayed on the display interface based on the number of the maximum display data streams and the first data stream identifier, the adjusting unit 402 is specifically configured to:
[0132] Determining whether the number of the maximum display data streams changes;
[0133] If the number of the maximum display data streams changes, updating the dynamic adjustment value according to the number of the maximum display data streams to obtain a dynamic adjustment value for redisplay;
[0134] If the number of the maximum display data streams does not change, the dynamic adjustment value corresponding to the static fixed value displayed on the display interface is read according to the data stream identifier.
[0135] Optionally, in the assembling according to a preset rule according to the static fixed value and the dynamic adjustment value to obtain the data stream information, the adjustment unit 402 is further specifically configured to:
[0136] Reading the dynamic adjustment value corresponding to the static fixed value to obtain the data stream identifier to be displayed and the maximum number of display data streams;
[0137] Assembling the data stream identifier to be displayed and the maximum number of display data streams to obtain component data;
[0138] updating the dynamic adjustment value corresponding to the static fixed value according to the composition data to obtain an adjusted dynamic adjustment value;
[0139] Based on the adjusted dynamic adjustment value, the data stream information is obtained by combining it with the static fixed value displayed on the display interface.
[0140] Optionally, in assembling the data stream identifier to be displayed and the maximum number of display data streams to obtain the composition data, the adjustment unit 402 is further specifically configured to:
[0141] Assembling the data stream identifier to be displayed and the maximum number of display data streams according to a set rule to obtain first component data;
[0142] Acquire corresponding diagnostic type data from the dynamic adjustment value corresponding to the static fixed value;
[0143] The diagnosis type data and the first component data are assembled in byte length order to obtain the component data.
[0144] Optionally, in displaying the data flow information on the display interface based on a preset display rule, the display unit 403 is specifically configured to:
[0145] Initializing the display interface;
[0146] Acquire an operation instruction of the display interface, where the operation instruction of the display interface includes any one of the following: a maximize instruction, a next page instruction, a previous page instruction, and a close instruction;
[0147] Based on the operation instruction, the dynamic adjustment value corresponding to the static fixed value is updated to obtain an updated dynamic adjustment value;
[0148] Update the data stream reading instruction according to the updated dynamic adjustment value to obtain an updated data stream reading instruction;
[0149] The data stream is re-read according to the updated data stream reading instruction, and the re-read data stream is displayed.
[0150] Optionally, before obtaining the data stream reading instruction, the display unit 403 is further specifically configured to:
[0151] Obtain target vehicle diagnostic information;
[0152] Selecting according to the association between the target vehicle diagnostic information and the data flow identifier to obtain the data flow identifier corresponding to the target vehicle diagnostic information;
[0153] Then, the data stream corresponding to the data stream identifier is read according to the data stream reading instruction to obtain data stream information, including:
[0154] Acquire a dynamic adjustment value of the data stream according to the data stream identifier corresponding to the target vehicle diagnostic information;
[0155] The dynamic adjustment value of the data stream is read to obtain a static fixed value displayed on the display interface.
[0156] In a specific implementation, the dynamically adjusted data stream display device 400 described in the embodiment of the present invention may also execute other implementations described in the dynamically adjusted data stream display method provided in the above embodiment of the present invention, which will not be described in detail here.
[0157] See also Figure 5 , Figure 5 : is a structural diagram of a vehicle-mounted device provided in an embodiment of the present application. The vehicle-mounted device may include a processor and a memory. The vehicle-mounted device may also include a communication interface. The processor, the memory and the communication interface may be interconnected through a bus. The one or more programs are stored in the memory and are configured to be executed by the processor. In the embodiment of the present application, the program includes instructions for executing the following steps:
[0158] Obtaining a data stream reading instruction, wherein the data stream reading instruction includes a data stream identifier;
[0159] The data stream corresponding to the data stream identifier is read according to the data stream reading instruction to obtain data stream information; the data stream information includes a dynamic adjustment value and a static fixed value, and the static fixed value includes at least one of a data stream name, a value, a unit, and a standard value;
[0160] Displaying the data flow information on a display interface based on a preset display rule, and displaying the static fixed value on the display interface;
[0161] Read the data flow information according to the data flow identifier to obtain a dynamic adjustment value corresponding to the static fixed value;
[0162] The display interface is updated based on the dynamic adjustment value, and the updated static fixed value is displayed on the display interface.
[0163] Optionally, in the aspect of reading the data stream corresponding to the data stream identifier according to the data stream reading instruction to obtain the data stream information, the program includes instructions for executing the following steps:
[0164] Reading all data streams of the display interface according to the data stream reading instruction to obtain the maximum number of display data streams of the display interface and the first data stream identifier of the display interface;
[0165] Determine a dynamic adjustment value corresponding to a static fixed value displayed on the display interface based on the maximum number of display data streams and the first data stream identifier;
[0166] The data flow information is obtained by assembling the static fixed value and the dynamic adjustment value according to a preset rule.
[0167] Optionally, before determining the dynamic adjustment value corresponding to the static fixed value displayed on the display interface based on the maximum number of display data streams and the first data stream identifier, the program includes instructions for executing the following steps:
[0168] Determining whether the number of the maximum display data streams changes;
[0169] If the number of the maximum display data streams changes, updating the dynamic adjustment value according to the number of the maximum display data streams to obtain a dynamic adjustment value for redisplay;
[0170] If the number of the maximum display data streams does not change, the dynamic adjustment value corresponding to the static fixed value displayed on the display interface is read according to the data stream identifier.
[0171] Optionally, in the aspect of assembling the static fixed value and the dynamic adjustment value according to a preset rule to obtain the data stream information, the program includes instructions for executing the following steps:
[0172] Reading the dynamic adjustment value corresponding to the static fixed value to obtain the data stream identifier to be displayed and the maximum number of display data streams;
[0173] Assembling the data stream identifier to be displayed and the maximum number of display data streams to obtain component data;
[0174] updating the dynamic adjustment value corresponding to the static fixed value according to the composition data to obtain an adjusted dynamic adjustment value;
[0175] Based on the adjusted dynamic adjustment value, the data stream information is obtained by combining it with the static fixed value displayed on the display interface.
[0176] Optionally, in the aspect of assembling the data stream identifier to be displayed and the maximum number of display data streams to obtain the composition data, the program includes instructions for executing the following steps:
[0177] Assembling the data stream identifier to be displayed and the maximum number of display data streams according to a set rule to obtain first component data;
[0178] Acquire corresponding diagnostic type data from the dynamic adjustment value corresponding to the static fixed value;
[0179] The diagnosis type data and the first component data are assembled in byte length order to obtain the component data.
[0180] Optionally, in terms of displaying the data stream information on a display interface based on a preset display rule, the program includes instructions for executing the following steps:
[0181] Initializing the display interface;
[0182] Acquire an operation instruction of the display interface, where the operation instruction of the display interface includes any one of the following: a maximize instruction, a next page instruction, a previous page instruction, and a close instruction;
[0183] Based on the operation instruction, the dynamic adjustment value corresponding to the static fixed value is updated to obtain an updated dynamic adjustment value;
[0184] Update the data stream reading instruction according to the updated dynamic adjustment value to obtain an updated data stream reading instruction;
[0185] The data stream is re-read according to the updated data stream reading instruction, and the re-read data stream is displayed.
[0186] Optionally, before obtaining the data stream reading instruction, the program includes instructions for performing the following steps:
[0187] Obtain target vehicle diagnostic information;
[0188] Selecting according to the association between the target vehicle diagnostic information and the data flow identifier to obtain the data flow identifier corresponding to the target vehicle diagnostic information;
[0189] Then, the data stream corresponding to the data stream identifier is read according to the data stream reading instruction to obtain data stream information, including:
[0190] Acquire a dynamic adjustment value of the data stream according to the data stream identifier corresponding to the target vehicle diagnostic information;
[0191] The dynamic adjustment value of the data stream is read to obtain a static fixed value displayed on the display interface.
[0192] An embodiment of the present application also provides a computer-readable storage medium, wherein the computer storage medium stores a computer program for electronic data exchange, wherein the computer program enables a computer to execute part or all of the steps of any method recorded in the above method embodiment, and the above computer includes a vehicle-mounted device.
[0193] The embodiment of the present application also provides a computer program product, the computer program product includes a non-transitory computer-readable storage medium storing a computer program, the computer program is operable to cause a computer to execute some or all of the steps of any method described in the method embodiment. The computer program product may be a software installation package, and the computer includes a vehicle-mounted device.
[0194] It should be noted that, for the aforementioned method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the described order of actions, because according to the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present application.
[0195] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0196] In the several embodiments provided in the present application, it should be understood that the disclosed device can be implemented in other ways. For example, the device embodiments described above are only schematic, such as the division of the above-mentioned units, which is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, and the indirect coupling or communication connection of devices or units can be electrical or other forms.
[0197] The units described above as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0198] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0199] If the above-mentioned integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable memory. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a memory, including a number of instructions to enable a computer device (which can be a personal computer, server or network device, etc.) to perform all or part of the steps of the above-mentioned methods of each embodiment of the present application. The aforementioned memory includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, disk or CD-ROM and other media that can store program codes.
[0200] The embodiments of the present application are 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 and core idea of the present application. At the same time, for general technical personnel in this field, 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 a limitation on the present application.
Claims
1. A method for dynamically adjusting data stream display, characterized in that: Applied to an in-vehicle device, the method comprises: Obtaining a data stream reading instruction, wherein the data stream reading instruction includes a data stream identifier; The data stream corresponding to the data stream identifier is read according to the data stream reading instruction to obtain data stream information; the data stream information includes a dynamic adjustment value and a static fixed value, and the static fixed value includes at least one of a data stream name, a value, a unit, and a standard value; Displaying the data flow information on a display interface based on a preset display rule, and displaying the static fixed value on the display interface; Read the data flow information according to the data flow identifier to obtain a dynamic adjustment value corresponding to the static fixed value; The display interface is updated based on the dynamic adjustment value, and the updated static fixed value is displayed on the display interface.
2. The method according to claim 1, characterized in that The step of reading the data stream corresponding to the data stream identifier according to the data stream reading instruction to obtain data stream information includes: Reading all data streams of the display interface according to the data stream reading instruction to obtain the maximum number of display data streams of the display interface and the first data stream identifier of the display interface; Determine a dynamic adjustment value corresponding to a static fixed value displayed on the display interface based on the maximum number of display data streams and the first data stream identifier; The data flow information is obtained by assembling the static fixed value and the dynamic adjustment value according to a preset rule.
3. The method according to claim 2, characterized in that Before determining the dynamic adjustment value corresponding to the static fixed value displayed on the display interface based on the maximum number of display data streams and the first data stream identifier, the method includes: Determining whether the number of the maximum display data streams changes; If the number of the maximum display data streams changes, updating the dynamic adjustment value according to the number of the maximum display data streams to obtain a dynamic adjustment value for redisplay; If the number of the maximum display data streams does not change, the dynamic adjustment value corresponding to the static fixed value displayed on the display interface is read according to the data stream identifier.
4. The method according to claim 2, characterized in that The step of assembling the static fixed value and the dynamic adjustment value according to a preset rule to obtain the data stream information includes: Reading the dynamic adjustment value corresponding to the static fixed value to obtain the data stream identifier to be displayed and the maximum number of display data streams; Assembling the data stream identifier to be displayed and the maximum number of display data streams to obtain component data; updating the dynamic adjustment value corresponding to the static fixed value according to the composition data to obtain an adjusted dynamic adjustment value; Based on the adjusted dynamic adjustment value, the data stream information is obtained by combining it with the static fixed value displayed on the display interface.
5. The method according to claim 4, characterized in that The step of assembling the data stream identifier to be displayed and the maximum number of display data streams to obtain component data includes: Assembling the data stream identifier to be displayed and the maximum number of display data streams according to a set rule to obtain first component data; Acquire corresponding diagnostic type data from the dynamic adjustment value corresponding to the static fixed value; The diagnosis type data and the first component data are assembled in byte length order to obtain the component data.
6. The method according to any one of claims 1 to 5, characterized in that: The displaying of the data stream information on the display interface based on the preset display rule includes: Initializing the display interface; Acquire an operation instruction of the display interface, where the operation instruction of the display interface includes any one of the following: a maximize instruction, a next page instruction, a previous page instruction, and a close instruction; Based on the operation instruction, the dynamic adjustment value corresponding to the static fixed value is updated to obtain an updated dynamic adjustment value; Update the data stream reading instruction according to the updated dynamic adjustment value to obtain an updated data stream reading instruction; The data stream is re-read according to the updated data stream reading instruction, and the re-read data stream is displayed.
7. The method according to claim 1, characterized in that Before obtaining the data stream reading instruction, the method further includes: Obtain target vehicle diagnostic information; Selecting according to the association between the target vehicle diagnostic information and the data flow identifier to obtain the data flow identifier corresponding to the target vehicle diagnostic information; Then, the data stream corresponding to the data stream identifier is read according to the data stream reading instruction to obtain data stream information, including: Acquire a dynamic adjustment value of the data stream according to the data stream identifier corresponding to the target vehicle diagnostic information; The dynamic adjustment value of the data stream is read to obtain a static fixed value displayed on the display interface.
8. A device for dynamically adjusting data stream display, characterized in that: Applied to vehicle-mounted equipment, the device comprises: an acquisition unit, a display unit, and an adjustment unit, wherein: The acquisition unit is used to acquire a data stream reading instruction, wherein the data stream reading instruction includes a data stream identifier; The acquisition unit is further used to read the data stream corresponding to the data stream identifier according to the data stream reading instruction to obtain data stream information; the data stream information includes a dynamic adjustment value and a static fixed value, and the static fixed value includes at least one of a data stream name, a value, a unit, and a standard value; The display unit is used to display the data flow information on a display interface based on a preset display rule, and to display the static fixed value on the display interface; The adjustment unit reads the data flow information according to the data flow identifier to obtain a dynamic adjustment value corresponding to the static fixed value; The display unit is further used to update the display interface based on the dynamic adjustment value, and display the updated static fixed value on the display interface.
9. A vehicle-mounted device, characterized in that: The vehicle-mounted device includes: a processor and a memory, wherein the memory is used to store one or more programs and is configured to be executed by the processor, wherein the program includes instructions for executing the steps in the method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: A computer program for electronic data exchange is stored, wherein the computer program enables a computer to execute the method according to any one of claims 1 to 7.