Bus message display method, device, equipment, storage medium and program product

By comparing the data bytes between bus messages and reference messages and processing the time stamp difference value of the data bytes, adjusting the fading level of data bytes, solving the problem of low flexibility in display of bus messages, realizing the highlighting of active data bytes, and improving the efficiency of user testing and analysis.

CN116185762BActive Publication Date: 2025-07-25BEIJING JINGWEI HIRAIN TECH CO INC
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211718511.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-29
Publication Date
2025-07-25
Estimated Expiration
2042-12-29

AI Technical Summary

Technical Problem

In the prior art, bus messages are displayed with low flexibility, making it difficult to quickly locate key information, which affects the efficiency of user testing and analysis data.

Method used

By obtaining bus messages and the same-identified reference messages for data byte comparison, adjusting the fading level of data bytes, and further adjusting according to the timestamp difference and the preset time length, we realize flexible rendering and display of data bytes.

Benefits of technology

It improves the flexibility of displaying bus messages, facilitates users to quickly locate active data bytes, and improves the efficiency of testing and analysis data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116185762B_ABST
    Figure CN116185762B_ABST
Patent Text Reader

Abstract

The present application discloses a method, apparatus, device, storage medium and program product for displaying bus messages. The method includes: obtaining a first target bus message, comparing each data byte value in the first target bus message with the corresponding data byte value in the target same-identifier reference message corresponding to the target identifier, adjusting the fading levels of N-Q data bytes of the first target bus message to the lowest fading level, determining the fading levels of Q data bytes of the first target bus message according to the second comparison result of comparing the time difference between the timestamp of the first target bus message and the timestamp of the target time reference message corresponding to the target identifier with a preset duration, and the fading levels of Q data bytes in the (i-1)th target bus message, and rendering and displaying the first target bus message on the message monitoring view according to the fading levels of each data byte in the first target bus message. The present application can improve the display flexibility of bus messages.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application belongs to the field of information technology, and particularly relates to a method, device, equipment, storage medium and program product for displaying bus messages. Background Art

[0002] During the testing of electronic control units (ECUs) and the functional testing of real vehicles, test engineers can use bus tools to monitor bus messages.

[0003] The bus tool can display the bus message in the message monitoring view, enabling users to observe and analyze the bus message through the message monitoring view. Currently, the message monitoring view renders and displays the bus message with preset display information, resulting in low flexibility in the display of bus messages. Summary of the Invention

[0004] Embodiments of this application provide a method, device, equipment, storage medium and program product for displaying bus messages, which can solve the problem of low flexibility in the display of bus messages in the prior art.

[0005] In a first aspect, embodiments of this application provide a method for displaying bus messages, the method including:

[0006] Obtain a first target bus message, where the first target bus message is the i-th target bus message obtained, the target bus message is a bus message identified by a target identifier, the target bus message includes N data bytes, i is a positive integer, and N is an integer greater than 1.

[0007] Compare the first target bus message with the values of each data byte in the target same-identifier reference message corresponding to the target identifier respectively to obtain N first comparison results corresponding one-to-one to the N data bytes. Among them, the target same-identifier reference message is the (i - 1)-th target bus message obtained, and among the N data bytes, there are Q data bytes corresponding to the first comparison results with equal values, and N - Q data bytes corresponding to the first comparison results with unequal values. Q is a natural number less than or equal to N.

[0008] Adjust the fading level of the N - Q data bytes of the first target bus message to the lowest fading level.

[0009] Determine the fading level of the Q data bytes of the first target bus message according to the second comparison result of the difference between the timestamp of the first target bus message and the timestamp of the target time reference message corresponding to the target identifier compared with the preset duration, and the fading level of the Q data bytes in the (i - 1)-th target bus message, where the fading level of the Q data bytes of the first target bus message is lower than or equal to the fading level of the Q data bytes in the (i - 1)-th target bus message.

[0010] Render and display the first target bus message on the message monitoring view according to the fading level of each data byte in the first target bus message.

[0011] In a second aspect, an embodiment of the present application provides a bus message display device, which includes:

[0012] A first acquisition module, configured to acquire a first target bus message, where the first target bus message is the i-th target bus message acquired, the target bus message is a bus message identified by a target identifier, the target bus message includes N data bytes, i is a positive integer, and N is an integer greater than 1.

[0013] A first comparison module, configured to respectively compare the first target bus message with the values of each data byte in the target same-identifier reference message corresponding to the target identifier to obtain N first comparison results corresponding one by one to the N data bytes, where the target same-identifier reference message is the (i - 1)-th target bus message acquired, and the first comparison results corresponding to Q data bytes among the N data bytes are equal in value, and the first comparison results corresponding to N - Q data bytes are not equal in value, and Q is a natural number less than or equal to N.

[0014] A first adjustment module, configured to adjust the fading level of the N - Q data bytes of the first target bus message to the lowest fading level.

[0015] A first determination module, configured to determine the fading level of the Q data bytes of the first target bus message according to the second comparison result of the difference between the timestamp of the first target bus message and the timestamp of the target time reference message corresponding to the target identifier compared with the preset duration, and the fading level of the Q data bytes in the (i - 1)-th target bus message, where the fading level of the Q data bytes of the first target bus message is lower than or equal to the fading level of the Q data bytes in the (i - 1)-th target bus message.

[0016] A display module, configured to render and display the first target bus message on a message monitoring view according to the fading levels of the data bytes in the first target bus message.

[0017] In a third aspect, an embodiment of the present application provides a bus message display device, including: a processor and a memory storing computer program instructions, where when the processor executes the computer program instructions, the bus message display method as described in the first aspect is implemented.

[0018] In a fourth aspect, an embodiment of the present application provides a computer storage medium, on which computer program instructions are stored, and when the computer program instructions are executed by a processor, the bus message display method as described in the first aspect is implemented.

[0019] In a fifth aspect, an embodiment of the present application provides a computer program product, and when the instructions in the computer program product are executed by a processor of an electronic device, the electronic device is caused to execute the bus message display method as described in the first aspect.

[0020] In an embodiment of the present application, for the i-th target bus message obtained, it can be compared with the values of the data bytes in the corresponding target reference message with the same identifier respectively to obtain N first comparison results corresponding one by one to N data bytes, where among the N data bytes, there are Q data bytes whose corresponding first comparison results are equal in value, and the first comparison results corresponding to N-Q data bytes are not equal in value.

[0021] For the N-Q data bytes in the i-th target bus message, adjust their fading levels to the lowest fading level.

[0022] For the Q data bytes in the i-th target bus message, determine their fading levels according to the second comparison result of comparing the difference between the timestamp of the i-th target bus message and the timestamp of the corresponding target time reference message with a preset duration, and the fading levels of the Q data bytes in the (i-1)-th target bus message.

[0023] After that, the bus message can be rendered and displayed on a message monitoring view by using the fading levels of the data bytes in the bus message, so that the data bytes in the bus message are displayed according to the corresponding fading levels.

[0024] It can be seen that, in the embodiments of the present application, the data bytes of the i-th target bus message obtained can be rendered and displayed at a fading level determined by the comparison result with the corresponding data bytes of the reference message with the same identifier corresponding to the target bus message, or at a fading level determined by the comparison result between the difference between the timestamp of the i-th target bus message and the timestamp of the time reference message corresponding to the target bus message and a preset duration, and the fading level of the corresponding data bytes of the (i - 1)-th target bus message obtained. Compared with rendering and displaying with preset display information, the display flexibility of the bus message can be improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0025] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required to be used in the embodiments of the present application. For those of ordinary skill in the art, without creative efforts, other drawings can also be obtained based on these drawings.

[0026] Figure 1 is one of the schematic diagrams of the message monitoring view provided by the embodiments of the present application,

[0027] Figure 2 is the schematic diagram of the CAN message provided by the embodiments of the present application,

[0028] Figure 3 is one of the flowcharts of the bus message display method provided by the embodiments of the present application,

[0029] Figure 4 is the second flowchart of the bus message display method provided by the embodiments of the present application,

[0030] Figure 5 is the second schematic diagram of the message monitoring view provided by the embodiments of the present application,

[0031] Figure 6 is the structural diagram of the bus message display device provided by the embodiments of the present application,

[0032] Figure 7 is the structural diagram of the bus message display device provided by the embodiments of the present application. DETAILED DESCRIPTION OF THE EMBODIMENTS

[0033] The following will describe in detail the features and exemplary embodiments of various aspects of the present application. In order to make the purpose, technical solutions and advantages of the present application more clear, the following further describes the present application in detail with reference to the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described herein are only intended to explain the present application, rather than limiting the present application. For those skilled in the art, the present application can be implemented without some of these specific details. The following description of the embodiments is only intended to provide a better understanding of the present application by showing examples of the present application.

[0034] It should be noted that, in this document, relational terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations. Moreover, the terms "comprising", "including" or any other variant thereof are intended to cover non-exclusive inclusion, such that a process, method, article or device comprising a series of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such process, method, article or device. Without further limitation, an element defined by the statement "comprising..." does not exclude the presence of additional identical elements in the process, method, article or device comprising the said element.

[0035] For ease of understanding, the following describes some content related to the embodiments of the present application:

[0036] As Figure 1 shown, the message monitoring view can display the following information of the bus message:

[0037] Time 10, which is used to indicate the acquisition time of the bus message,

[0038] Channel 11, which is used to indicate the acquisition channel of the bus message, that is, which bus the bus message comes from, such as: Controller Area Network (CAN) bus, Controller Area Network with Flexible Data rate (CANFD) bus, Local Interconnect Network (LIN) bus or Ethernet bus, etc. That is to say, the bus message can be a CAN message, a CANFD message, a LIN message or an Ethernet message, etc.

[0039] Identifier (ID) 12, which is used to uniquely identify a class of bus messages, that is, the identifiers of the same class of bus messages are the same,

[0040] Length 13, and the unit can be data bytes,

[0041] Data 14, which can also be called Data Field, and is used to carry the communication content between ECUs,

[0042] Name 15, which is used to indicate the sending node of the bus message,

[0043] A direction 16 for indicating whether a bus message is a transmit (Tx) message or a receive (Rx) message.

[0044] A counter 17

[0045] An event type 18 for indicating a bus frame

[0046] A frame type 19 for indicating the frame format of a bus message. The frame format of a bus message is divided into two formats: a standard frame and an extended frame. The standard frame consists of 11 bit positions, and the extended frame consists of 29 bit positions. The frame format of a CAN message can be as Figure 2 shown.

[0047] The data field of a bus message may include at least two data bytes, and each data byte represents a different meaning and is used to carry different communication contents. For example, one data byte is used to carry the communication content of a vehicle window (open or closed), and another data byte is used to carry the communication content of a vehicle door. The data byte can represent the communication content it carries through a numerical value.

[0048] It should be noted that the data field of the same type of bus message carries the communication content between the same ECUs, that is, the data bytes included in the data field of the same type of bus message are the same, but the specific communication contents carried by the data fields of different bus messages of the same type of bus message may be different or the same, manifested as the numerical values of the same data byte of different bus messages of the same type of bus message may be different or the same.

[0049] In Figure 1 the data of different bus messages are all displayed in the same bold font.

[0050] Due to the increasing complexity of in-vehicle network topologies and the growing volume of bus communication data, when bus data is frequently and quickly refreshed on a message monitoring view (in a real vehicle scenario, thousands of messages may need to be refreshed per second), based on Figure 1 the message monitoring view shown, it is very difficult for users to quickly locate the key information presented on the message monitoring view. For example, when a user conducts data monitoring and analysis in a real vehicle and operates the vehicle window to open, and wants to observe whether the data bytes of the corresponding message on the bus change on the message monitoring view, in this scenario, it is very difficult to quickly locate where the changed data bytes are in Figure 1 the view shown, which has a great impact on the efficiency of users' test and analysis of data.

[0051] Based on this, an embodiment of the present application provides a method for displaying bus messages, which can highlight key information in the message monitoring view to facilitate users to quickly locate the key information, thereby improving the efficiency of users' test and analysis of data.

[0052] It should be noted that the embodiment of the present application is not only applicable to in-vehicle buses, but also applicable to other device buses. That is to say, the bus messages in the embodiment of the present application can be bus messages of in-vehicle buses or bus messages of other device buses. The bus messages can be CAN messages, CANFD messages, LIN messages, or Ethernet messages, etc.

[0053] Next, in conjunction with the accompanying drawings, the method for displaying bus messages provided by the embodiment of the present application will be described in detail through some embodiments and their application scenarios.

[0054] See Figure 3 , Figure 3 is one of the flowcharts of the method for displaying bus messages provided by the embodiment of the present application. As Figure 3 shown, the method for displaying bus messages may include the following steps:

[0055] Step 301, obtain a first target bus message, where the first target bus message is the i-th target bus message obtained, the target bus message is a bus message identified by a target identifier, the target bus message includes N data bytes, i is a positive integer, and N is an integer greater than 1.

[0056] The first target bus message may be: a controller area network message, a controller area network with flexible data rate message, a local internet network message, or an Ethernet message.

[0057] The target bus message is a type of bus message, uniquely identified by the target identifier. The first target bus message is the i-th target bus message obtained, and i is a positive integer. If i is 1, it means the first target bus message is the first target bus message obtained. If i is greater than or equal to 1, it means that before obtaining the first target bus message, the bus tool has obtained other target bus messages. It can be understood that the identifier of any target bus message obtained by the bus tool is the target identifier.

[0058] Step 302, compare the first target bus message with the values of each data byte in the target same-identifier reference message corresponding to the target identifier respectively, to obtain N first comparison results corresponding one-to-one to the N data bytes, where the target same-identifier reference message is the (i - 1)-th target bus message obtained, and among the N data bytes, there are Q data bytes corresponding to the first comparison results being equal in value, and N - Q data bytes corresponding to the first comparison results being unequal in value, and Q is a natural number less than or equal to N.

[0059] As can be seen from the foregoing, different data bytes in the bus message represent different meanings. Based on this, in order to enable users to quickly locate the communication content of different components, in the embodiments of the present application, the display information can be determined in units of data bytes to support the differentiated display of each data byte of the bus message.

[0060] Specifically, the display information of the data byte can be determined according to the characteristic information of the data byte.

[0061] The characteristic information of the data byte can include at least one of the following: the value of the data byte, the timestamp of the data byte, the timestamp of a data byte of a certain bus message, that is, the timestamp of the bus message, and the timestamp of the bus message is used to indicate the acquisition time of the bus message, the duration during which the value of the data byte has not changed, and the number of times the value of the data byte has not changed.

[0062] In some embodiments, for a data byte in the first target bus message, its characteristic information, such as value, timestamp, duration during which the value has not changed, number of times the value has not changed, etc., can be used to determine whether it is an active data byte, and then its fading level can be determined.

[0063] As an example, if the value of the data byte changes, it can be determined as an active data byte. If the value of the data byte does not change, it can be determined as an inactive data byte, or further obtain the duration and / or number of times during which the value has not changed. If the duration during which the value has not changed is less than the preset duration, and / or the number of times the value has not changed is less than the preset number of times, it can be determined as an active data byte, otherwise, it can be determined as an inactive data byte.

[0064] If a certain data byte is an active data byte, it can indicate that the component corresponding to the data byte is in an active state and the communication content of the component has changed. If a certain data byte is an inactive data byte, it can indicate that the component corresponding to the data byte is not in an active state and the communication content of the component has not changed. It can be understood that active data bytes are variable.

[0065] In these embodiments, for active data bytes and inactive data bytes, their display information is different, and active data bytes can be highlighted. The display information can include at least one of the following: fading level, display color, display size, etc., which can be specifically set according to actual needs, and the embodiments of the present application do not limit this.

[0066] In some optional implementations, active data bytes can be highlighted, colored, italicized, underlined, bolded, or circled to achieve prominent display of active data bytes. In other optional implementations, prominent display of active data bytes can be achieved by fading the display of inactive data bytes, which can be specifically set according to actual requirements and is not limited in the embodiments of this application. In this way, it is convenient for users to quickly locate active data bytes, thereby improving the efficiency of users' testing and analyzing data. In some cases, the display information of data bytes can specifically be manifested as the fading level of data bytes.

[0067] The degree of attraction of data bytes to users is negatively correlated with the fading level of data bytes, that is, the lower the fading degree of data bytes, the higher the degree of attraction to users, and the more likely users are to pay attention to the data bytes. On the contrary, the higher the fading degree of data bytes, the lower the degree of attraction to users, and the less likely users are to pay attention to the data bytes.

[0068] The following specifically describes the method for determining the fading level of data bytes in this case.

[0069] For each type of bus message, a same-ID reference message can be defined, which is the previous frame bus message of the current frame bus message of this type of bus message obtained by the bus tool and is used to determine whether the value of the data bytes of the new bus message of this type of bus message obtained has changed. It corresponds to the ID of this type of bus message. Therefore, for the same-ID reference message corresponding to a certain type of bus message, it can be found through the ID of this type of bus message. The target same-ID reference message, that is, the same-ID reference message of the target reference message.

[0070] As can be seen from the foregoing content, a bus message at least includes an ID and a data field (composed of data bytes). After the bus tool obtains the first target bus message, it can read its ID, that is, the target identifier, and then use the target identifier to attempt to obtain the target same-ID reference message.

[0071] It can be understood that if i is 1, since the first target bus message is the first target bus message obtained, there is no same-ID reference message for the target bus message. In this case, the target same-ID reference message cannot be obtained. If i is greater than or equal to 1, there is a same-ID reference message for the target message. In this case, the target same-ID reference message can be obtained, and the obtained target same-ID reference message is the (i - 1)th target bus message obtained.

[0072] For the case where the target same-ID reference message is obtained, for each data byte of the first target bus message, its fading level can be determined using its value.

[0073] In specific implementation, the values of the data bytes of the first target bus message can be respectively compared with the values of the corresponding data bytes of the target reference message with the same ID to obtain N first comparison results corresponding one by one to the N data bytes, so as to determine the fading levels of the data bytes of the first target bus message.

[0074] In step 302, assume that among the N data bytes, there are Q data bytes for which the first comparison results are equal in value, and N - Q data bytes for which the first comparison results are not equal in value, where Q is a natural number less than or equal to N. The actual situation may include the following:

[0075] Situation 1: Q is equal to 0. In this case, the values of all data bytes of the first target bus message have changed compared with the target reference message with the same ID. The fading levels of all data bytes of the first target bus message can be determined through step 303.

[0076] Situation 2: Q is a positive integer less than N. In this case, the values of some data bytes of the first target bus message have changed compared with the target reference message with the same ID, and the values of some data bytes have not changed compared with the target reference message with the same ID. For the part of the data bytes of the first target bus message whose values have changed, their fading levels can be determined through step 303, and for the part of the data bytes of the first target bus message whose values have not changed, their fading levels can be determined through step 304.

[0077] Situation 3: Q is equal to N. In this case, the values of all data bytes of the first target bus message have not changed compared with the target reference message with the same ID. The fading levels of all data bytes of the first target bus message can be determined through step 304.

[0078] It should be noted that the embodiments of the present application do not limit the execution timing between step 303 and step 304.

[0079] Step 303: Adjust the fading levels of the N - Q data bytes of the first target bus message to the lowest fading level.

[0080] For the convenience of understanding and description, the following takes the jth data byte as an example for illustration. It can be understood that the jth data byte can be any data byte of the first target bus message.

[0081] In the case where the value of the j-th data byte of the first target bus message is not equal to the value of the j-th data byte of the target reference message with the same identifier, it indicates that the communication content of the component corresponding to the j-th data byte of the target bus message has changed. The j-th data byte of the target bus message is an active data byte and requires the user's key attention. Therefore, the fading level of the j-th data byte of the first target bus message can be set to the lowest to achieve the highlighting of the j-th data byte of the first target bus message.

[0082] Through the above method, the values of the data bytes in the first target bus message can be compared with the corresponding data bytes of the reference message with the same ID. In the case where the value of a certain data byte of the first target bus message changes relative to the target reference message with the same ID, the fading level of this data byte can be set to the lowest. In this way, the highlighting of the active data byte can be achieved, and in this way, it is convenient for the user to quickly locate the active data byte, thereby improving the efficiency of the user's test and analysis of data.

[0083] Step 304: Determine the fading levels of the Q data bytes of the first target bus message according to the second comparison result of the difference between the timestamp of the first target bus message and the timestamp of the target time reference message corresponding to the target identifier compared with the preset duration, and the fading levels of the Q data bytes in the (i - 1)-th target bus message, where the fading levels of the Q data bytes of the first target bus message are lower than or equal to the fading levels of the Q data bytes in the (i - 1)-th target bus message.

[0084] For each type of bus message, a time reference message can be defined, which is the previous n frame bus messages of the current frame bus message of this type of bus message obtained by the bus tool, where n is a positive integer, and is used to determine the duration during which the values of the data bytes of the new bus message obtained for this type of bus message have not changed, and corresponds to the ID of this type of bus message. Therefore, for the time reference message corresponding to a certain type of bus message, it can be found through the ID of this type of bus message. The target time reference message, that is, the time reference message of the target reference message.

[0085] It should be noted that in the case where there is a corresponding reference message with the same ID for a certain type of bus message, there must be a corresponding time reference message. The reference message with the same ID and the time reference message corresponding to a type of bus message may be the same bus message or different bus messages. It can be understood that in the case where the first target bus message is the second target bus message obtained by the bus tool, the reference message with the same ID and the time reference message corresponding to the target identifier, that is, the target reference message with the same ID and the target time reference message, are both the first time reference message obtained.

[0086] When the values of the Q data bytes of the first target bus message are equal to the values of the Q data bytes of the target reference message with the same identifier, it indicates that the communication content of the component corresponding to the Q data bytes of the target bus message has not changed. The target time reference message can be further obtained using the target identifier to determine the duration during which the values of the Q data bytes of the target bus message have not changed, and then determine whether to increase the fading level of the Q data bytes of the target bus message based on the fading level of the Q data bytes in the (i - 1)-th target bus message.

[0087] Through the above method, when the value of a certain data byte in the target bus message has not changed, the difference between the timestamp of the first target bus message and the timestamp of its corresponding time reference message can be compared with a preset duration to obtain a second comparison result. Then, based on the second comparison result and the fading level of the Q data bytes in the (i - 1)-th target bus message, the fading level of the Q data bytes of the first target bus message can be determined. In this way, the flexibility of data byte display can be improved.

[0088] Step 305: Render and display the first target bus message on the message monitoring view according to the fading levels of the data bytes in the first target bus message.

[0089] After determining the fading levels of the data bytes in the first target bus message, for each data byte, technologies such as Hyper Text Markup Language (HTML) can be used to package and render the fading level of the data byte, so as to display the first target bus message on the message monitoring view.

[0090] In the embodiments of the present application, the data bytes of the i-th target bus message obtained can be rendered and displayed at a fading level determined by the comparison result of its corresponding data byte value with the corresponding data byte value of the target reference message of the target bus message, or at a fading level determined by the comparison result of the difference between the timestamp of the i-th target bus message and the timestamp of the time reference message corresponding to the target bus message and a preset duration, and the fading level of the corresponding data byte of the (i - 1)-th target bus message obtained. Compared with rendering and displaying with preset display information, the display flexibility of the bus message can be improved.

[0091] In some embodiments, adjusting the fading level of the N - Q data bytes of the first target bus message to the lowest fading level includes:

[0092] Determine the first fading level as the fading level of the N-Q data bytes of the first target bus message, where the first fading level is the lowest fading level among the preset P fading levels, and P is an integer greater than 1.

[0093] In this embodiment, P fading levels can be predefined, where P is an integer greater than 1, and the first fading level is the lowest fading level among the preset P fading levels.

[0094] In the case where the value of a certain data byte in the first target bus message changes relative to the target same-ID reference message, the fading level of this data byte can be set to the lowest, that is, the first fading level.

[0095] In this way, the highlighting of active data bytes can be achieved. In this way, it is convenient for users to quickly locate active data bytes, thereby improving the efficiency of users' test and analysis of data.

[0096] Further, the Q data bytes include the jth data byte, where j is a positive integer less than or equal to N.

[0097] The method for determining the fading level of the Q data bytes of the first target bus message according to the second comparison result of the difference between the timestamp of the first target bus message and the timestamp of the target time reference message corresponding to the target identifier and a preset duration, and the fading levels of the Q data bytes in the (i-1)th target bus message, includes:

[0098] Compare the difference between the timestamp of the first target bus message and the timestamp of the target time reference message with a preset duration to obtain a second comparison result.

[0099] In the case where the second comparison result is that the difference is less than the preset duration, determine the fading level of the jth data byte in the (i-1)th target bus message as the fading level of the jth data byte of the first target bus message.

[0100] In this embodiment, in the case where the value of the jth data byte of the first target bus message is equal to the value of the jth data byte of the target same-ID reference message, it indicates that the communication content of the component corresponding to the jth data byte of the target bus message has not changed. The target time reference message can be further obtained by using the target identifier to determine the duration during which the value of the jth data byte of the target bus message has not changed, and then determine whether to increase the fading level of the jth data byte of the target bus message.

[0101] When specifically implemented, the timestamp of the first target bus message can be compared with the timestamp of the target time reference message to obtain the difference between the two timestamps, and the difference between the two timestamps can be compared with a preset duration to obtain a second comparison result, and based on this second comparison result, the fading level of the j-th data byte of the first target bus message can be determined. The preset duration can be set according to actual requirements, such as 1 second, etc.

[0102] In the case where the second comparison result is that the difference between the two timestamps is less than the preset duration, it indicates that the duration during which the value of the j-th data byte of the target bus message has not changed is short, and the fading level of the j-th data byte of the target bus message can be kept unchanged, so that the fading level of the j-th data byte of the first target bus message is consistent with the fading level of the j-th data byte in the obtained (i - 1)-th target bus message.

[0103] In some optional implementation manners, for each bus message, a fading mark array, which can also be called a flags field, can be defined to store the fading levels of the data bytes in the bus message. In this implementation manner, the fading levels of the data bytes in the (i - 1)-th target bus message can be obtained from the fading mark array corresponding to the (i - 1)-th target bus message, that is, the first fading mark array. However, it can be understood that the storage manner of the fading levels of the data bytes in the bus message is not limited. For example, in some implementation manners, the storage manners of the fading levels of the data bytes in each bus message can be uniformly stored in a storage unit.

[0104] Through the above method, in the case where the value of a certain data byte of the target bus message has not changed, the timestamp of the first target bus message can be compared with the timestamp of its corresponding time reference message. In the case where the difference between the two timestamps is less than the preset duration, the fading level of the j-th data byte of the target bus message can be kept unchanged. In this way, the flexibility of data byte display can be improved.

[0105] Further, after comparing the difference between the timestamp of the first target bus message and the timestamp of the target time reference message with the preset duration to obtain a second comparison result, the method further includes:

[0106] In the case where the second comparison result is that the difference is greater than or equal to the preset duration, compare the fading level of the j-th data byte in the (i - 1)-th target bus message with the P-level to obtain a third comparison result, where the P fading level is the highest fading level among P fading levels.

[0107] According to the third comparison result, determine the fading level of the j-th data byte of the first target bus message.

[0108] In this embodiment, the difference between the timestamp of the first target bus message and the timestamp of the target time reference message is greater than or equal to a preset duration, indicating that the duration during which the value of the j-th data byte of the target bus message has not changed is relatively long. The j-th data byte of the target bus message is an inactive data byte and does not require the user's key attention. Therefore, the fading level of the j-th data byte of the target bus message can be further increased to achieve prominent display of the active data bytes.

[0109] However, considering that the fading level of the j-th data byte of the target bus message may already be at the highest fading level before increasing its fading level. Therefore, the fading level of the j-th data byte in the (i - 1)-th target bus message can be compared with the P-th fading level first, and then, based on the comparison result, the fading level of the j-th data byte of the first target bus message can be determined.

[0110] Optionally, the determining the fading level of the j-th data byte of the first target bus message according to the third comparison result includes:

[0111] In the case where the third comparison result is that the fading level of the j-th data byte stored in the target fading mark array is less than the P-th level, adding 1 to the fading level of the j-th data byte stored in the first fading mark array and determining it as the fading level of the j-th data byte of the first target bus message,

[0112] In the case where the third comparison result is that the fading level of the j-th data byte stored in the target fading mark array is equal to the P-th level, determining the P-th fading level as the fading level of the j-th data byte of the first target bus message.

[0113] In this optional implementation manner, before increasing the fading level of the j-th data byte of the target bus message, if the fading level of the j-th data byte of the target bus message is not the highest fading level, the fading level of the j-th data byte of the target bus message can be incremented by 1. If the fading level of the j-th data byte of the target bus message is the highest fading level, the highest fading level can remain unchanged.

[0114] That is to say, each time the duration during which the value of the j-th data byte of the target bus message has not changed is greater than or equal to the preset duration, the fading level of the j-th data byte of the target bus message can be increased once until its fading level reaches the maximum value.

[0115] In the above - mentioned manner, when the value of a certain data byte in the target bus message remains unchanged and the difference between the timestamp of the first target bus message and the timestamp of the target time - reference message is greater than or equal to a preset duration, the fading level of this data byte in the target bus message can be further increased, or the fading level of this data byte in the target bus message can be set to the highest fading level. In this way, the highlighting of active data bytes can be achieved, facilitating the user to quickly locate the active data bytes and thus improving the efficiency of the user's test and data analysis.

[0116] As can be seen from the foregoing, the first target bus message may be the first target bus message obtained by the bus tool. In this case, since there is no target same - ID reference message and time - reference message for the target bus message, the target same - ID reference message cannot be obtained. For this situation, in some embodiments, after obtaining the first target bus message and before comparing the values of each data byte in the first target bus message with the values of each data byte in the target same - ID reference message corresponding to the target ID to obtain N first comparison results corresponding to the N data bytes one by one, the method further includes:

[0117] Obtaining the target same - ID reference message,

[0118] In the case where the target same - ID reference message is not obtained, the fading levels of all data bytes of the first target bus message are determined to be the first fading level.

[0119] In this embodiment, the first target bus message may be the first target bus message obtained by the bus tool. Therefore, the fading levels of the data bytes of the first target bus message can be set to the lowest fading level, enabling the user to quickly pay attention to the new type of bus message obtained by the bus tool and improving the efficiency of the user's test and data analysis.

[0120] In some embodiments, after determining the fading levels of the Q data bytes of the first target bus message according to the second comparison result of comparing the difference between the timestamp of the first target bus message and the timestamp of the target time - reference message corresponding to the target ID with the preset duration and the fading levels of the Q data bytes in the (i - 1)th target bus message, and before rendering and displaying the first target bus message on the message monitoring view according to the fading levels of each data byte in the first target bus message, the method further includes:

[0121] Storing the fading levels of each data byte in the first target bus message into the first fading - mark array corresponding to the first target bus message,

[0122] Rendering and displaying the first target bus message on the message monitoring view according to the fading levels of the data bytes in the first target bus message includes:

[0123] Reading the first fading flag array, and rendering and displaying the first target bus message on the message monitoring view according to the fading levels of the data bytes in the target bus message stored in the first fading flag array.

[0124] In this embodiment, a fading flag array, which can also be referred to as a flags field, can be defined to store the fading levels of the data bytes in the bus message.

[0125] After determining the fading levels of the data bytes in the first target bus message, the fading levels of the data bytes in the first target bus message can be stored in their corresponding fading flag array, that is, the first fading flag array.

[0126] After that, when updating the interface of the message monitoring view for a batch of bus messages (including the first target bus message), the first fading flag array can be read, and the corresponding bytes can be color-rendered according to the fading levels corresponding to different data bytes in the first fading flag array, improving the display flexibility of the bus message.

[0127] In addition, after the bus tool obtains a new target bus message, at this time, the new target bus message becomes the new i-th target bus message, and the first target bus message becomes the new (i - 1)-th target bus message. In the case where the fading levels of the data bytes of the new target bus message need to be determined using the fading levels of the data bytes of the first target bus message, the fading levels of the data bytes of the first target bus message can be obtained from the first fading flag data.

[0128] By the above method, storing the fading levels of the data bytes of the bus message in the corresponding marked fading array of the bus message can improve the reliability of obtaining the fading levels of the data bytes of the bus message.

[0129] In the embodiments of the present application, the bus messages with the same ID corresponding to the same type of bus messages (hereinafter simply referred to as M1 messages) and the time reference messages (hereinafter simply referred to as M2 messages) are variable and need to be updated. The update of the M1 messages and M2 messages is described below.

[0130] For the update of the M1 message corresponding to the target bus message, in some embodiments, after comparing the values of the data bytes in the first target bus message and the target same-identifier reference message corresponding to the target identifier respectively to obtain N first comparison results corresponding one by one to the N data bytes, the method may further include:

[0131] Update the target same - identification reference message to the first target bus message.

[0132] In this embodiment, regardless of whether the first target bus message is the first bus message obtained or not, it can be used as the M1 message corresponding to the new target bus message.

[0133] In this way, it can be ensured that the M1 message corresponding to a certain type of bus message is: the previous - frame bus message of the current - frame bus message received by this type of bus message. In this way, it can ensure the accurate determination of whether the numerical values of the data bytes of the same - type bus messages change, thereby ensuring the reliability of determining the fading level of the data bytes, and further improving the reliability of user - tested and analyzed data.

[0134] Regarding the update of the M2 message corresponding to the target bus message.

[0135] In some embodiments, after determining the fading level of the Q data bytes of the first target bus message according to the second comparison result of the difference between the timestamp of the first target bus message and the timestamp of the target time - reference message corresponding to the target identification compared with the preset duration, and the fading level of the Q data bytes in the (i - 1) - th target bus message, the method further includes:

[0136] Under the condition of satisfying the first condition, update the target time - reference message to the first target bus message.

[0137] Wherein, the first condition includes any one of the following:

[0138] There is a change in the numerical value of the data byte in the first target bus message compared with the target same - identification reference message.

[0139] According to the target time - reference message before update, it is determined that there is a change in the fading level of the data byte in the first target bus message compared with the first fading - mark array.

[0140] In this embodiment, the first target bus message is not the first target bus message obtained, and the M2 message corresponding to the target bus message exists. When the first target bus message satisfies the first condition, the first target bus message can be used as the M1 message corresponding to the new target bus message; otherwise, the M1 message corresponding to the target bus message can remain unchanged.

[0141] In other embodiments, after determining the fading level of all data bytes of the first target bus message as the first fading level, the method may further include:

[0142] Update the target time reference message to the first target bus message.

[0143] In this embodiment, the first target bus message is the first obtained target bus message, and the M2 message corresponding to the target bus message does not exist. Therefore, after determining the fading levels of the data bytes in the first target bus message, the first target bus message can be directly used as the M2 message corresponding to the new target bus message.

[0144] It can be seen that for the time reference message, the first frame of the bus message obtained for each ID will be used as the time reference message. Subsequently, the time reference message will be updated in two cases: one is that the data field of the bus message changes compared with M1, and the other is that the fading level of any data byte of the bus message is determined to have changed based on the time reference message. In this way, the reliability of determining the fading level of the data byte can be improved, and further the reliability of the user's test analysis data can be improved.

[0145] The embodiments of the present application do not limit the storage methods of the M1 message and the M2 message corresponding to various bus messages. In some embodiments, the M1 message and the M2 message corresponding to various bus messages can be uniformly stored in a storage unit.

[0146] In some other embodiments, before comparing the values of the data bytes in the first target bus message and the target same-identifier reference message corresponding to the target identifier one by one to obtain N first comparison results corresponding to the N data bytes one by one, the method further includes:

[0147] Generate a first global variable dictionary, where the first global variable dictionary is used to store the same-identifier reference messages corresponding to each identifier.

[0148] Search for the target same-identifier reference message corresponding to the target identifier in the first global variable dictionary.

[0149] Before determining the fading levels of the Q data bytes in the first target bus message according to the second comparison result of comparing the difference between the timestamp of the first target bus message and the timestamp of the target time reference message corresponding to the target identifier with a preset duration, and the fading levels of the Q data bytes in the (i - 1)th target bus message, the method further includes:

[0150] Generate a second global variable dictionary, where the second global variable dictionary is used to store the time reference messages corresponding to each identifier.

[0151] Search for the target time reference message corresponding to the target identifier in the second global variable dictionary.

[0152] When the target time reference message is found, obtain the timestamp of the target time reference message.

[0153] In these embodiments, for the M1 message, a global variable dictionary can be defined, namely the first global variable dictionary, hereinafter simply referred to as D1. Through D1, store the same ID reference messages corresponding to each identifier, that is, the same ID reference messages corresponding to various bus messages.

[0154] For the M2 message, a global variable dictionary can be defined, namely the second global variable dictionary, hereinafter simply referred to as D2. Through D2, store the time reference messages corresponding to each identifier, that is, the time reference messages corresponding to various bus messages.

[0155] The key of D1 is the message ID, and the value is the message object. The message object can include the ID of the message, the data field of the message, the desalination mark array of the message, the timestamp of the message, etc.

[0156] Through the above method, the M1 message corresponding to various bus messages can be queried from D1, and the M2 message corresponding to various bus messages can be queried from D2, which can improve the acquisition efficiency of the M1 message and the M2 message.

[0157] In some embodiments, before obtaining the first target bus message, the method further includes:

[0158] Set the desalination level rule, and the desalination level rule includes the P desalination levels.

[0159] Among them, the first desalination level is used to perform 0-level desalination processing on the first data byte, and the first data byte is the data byte whose value changes, or the data byte whose value does not change for a duration less than the preset duration.

[0160] The t-th desalination level is used to perform t - 1 level desalination processing on the t-th data byte, and the t-th data byte is the data byte whose value has not changed for more than the continuous preset duration for t consecutive times, where t is an integer greater than 1 and less than or equal to P.

[0161] For easy understanding, the following is an example illustration using Table 1. In Table 1, P is 6, the first desalination level is desalination level 0, and the P-th desalination level is desalination level 6, but this does not show the number of desalination levels.

[0162] Table 1: Desalination level rule

[0163]

[0164]

[0165] In this embodiment, the fading level rule can be satisfied as follows: for each data byte, if the value of the data byte changes, or the duration during which its value does not change is less than a preset duration, its fading level can be set to the highest. In addition, each time the duration during which the value of the j-th data byte of the target bus message does not change is greater than or equal to the preset duration, the fading level of the j-th data byte of the target bus message can be increased by one level until its fading level reaches the maximum value. In this way, the fading level of the data byte can be matched with the activity level of the data byte, that is, the more active the data byte is, the higher its fading level, and vice versa, thus facilitating the user to locate the active data byte and improving the efficiency of the user's test and analysis of data.

[0166] It should be noted that the various optional implementation manners described in the embodiments of the present application can be combined with each other or implemented separately without conflict, and the embodiments of the present application do not make any limitation thereto.

[0167] For easy understanding, the examples are described as follows:

[0168] The embodiment of this scenario can perform marking and rendering on the bus active message. Before elaborating on this mechanism, the bus message information and format are elaborated first, taking the traditional CAN message as an example.

[0169] The frame format of the CAN message data link layer is defined as Figure 2 shown. What the user is most concerned about during the test are the two fields of ID and Data Filed. The ID is used to uniquely identify a certain type of message data, and the Data Filed is the data field, which is mainly used to carry the communication content between ECUs. It usually consists of 8 data bytes (Bytes), and each byte represents a different meaning.

[0170] The embodiment of this scenario uses a hierarchical fading method to screen and mark the bus active data. Through this method, it can quickly assist the user to identify which information on the bus is changing, thereby improving the data analysis efficiency of the tester during the test. The overall implementation of the solution is mainly divided into three stages: defining the hierarchical fading rule, marking the activity level of the data byte, and presenting the monitoring view data.

[0171] 1. Define the hierarchical fading rule

[0172] Combined with the actual user requirements, the message data of the same ID on the bus at different times is gradually weakened and displayed in descending order of activity level, so as to highlight the high-activity messages on the bus.

[0173] In the embodiment of this scenario, data is gradually faded in units of data bytes. For example, the DataField of a certain frame of message consists of 8 data bytes "FF 01 05AB EE 02 03 00". In the program, the 8 bytes will be traversed one by one, and each byte will be marked for fading in units of data bytes. The fading level rules for data bytes are defined as shown in Table 1 below.

[0174] 2. Activity marking of data bytes

[0175] In the embodiment of this scenario, two types of messages need to be defined to implement message activity marking. One is the reference message with the same ID, and the other is the time reference message. Now, the two types of messages will be described.

[0176] Reference message with the same ID: When a new message is received, it is necessary to compare each byte of data with the data of the previous frame of the message with the same ID one by one. If the values of the data bytes are not equal, it proves that the data byte of this message on the bus has changed compared with the previous frame of the message with the same ID. Then, the data byte should be highlighted in the presentation view, that is, the fading level of the data byte is set to 0. If the values of the data bytes are equal, the fading level of the data byte is further determined according to the time reference message. The data of the previous frame of the message with the same ID is the reference message with the same ID, hereinafter referred to as M1.

[0177] Time reference message: The first frame of message received for each ID will be used as the time reference message. The time reference message will be updated in the following two cases. One is that the data field of the message has changed compared with M1, and this message will be automatically updated to the new time reference message of this ID. The other is that when it is determined according to the time reference message that the fading level of any data byte of the new message has changed (the determination rule is described in the next paragraph), the new message will be automatically updated to the time reference message of this ID. The time reference message is hereinafter referred to as M2.

[0178] In the embodiment of this scenario, M1 and M2 messages need to be stored and updated in real time in the message monitoring view. In the solution, global variable dictionaries D1 and D2 are defined to store M1 and M2 messages respectively. The Key of the dictionary is the message ID, and the Value is the message object.

[0179] In the embodiment of this scenario, there are three key attributes for the message object. One is the message ID, which is used to uniquely identify a certain type of message data. The second is the message data field, which is used to carry the valid information of this frame of message and is a Byte array with a length of 0-8 and a variable length, hereinafter referred to as data. The third is the fading mark array, which has the same length as the data length, and its default value is 0, hereinafter referred to as flags.

[0180] The determination process of the fading level of message data bytes refers to Figure 4 . Such asFigure 4 As shown below:

[0181] When a new bus message needs to be updated in the monitoring view, search for M1 in D1 according to the new message ID.

[0182] If it does not exist, it means the message with this ID is received for the first time. Store this message in both D1 and D2 as M1 and M2 respectively. This message will not be faded, and the flags value can remain 0.

[0183] If it exists, compare each of the 8 Byte bytes in the data field data1 of the currently received message with the data field data0 of M1 one by one.

[0184] When the Byte byte value is not equal to the corresponding Byte byte value of the M1 message, set the fading level of the corresponding byte to 0 in the flags, indicating that the data byte value has been updated and needs to be highlighted.

[0185] When the Byte byte value is equal to the corresponding Byte byte value of the M1 message, further retrieve the timestamp t0 of M2 from D2 and compare it with the timestamp t1 of the currently received message. If the difference is greater than or equal to 1000ms, read the fading level of this data byte from the flags. If the fading level is less than 6, increment the fading level by 1. If the fading level is equal to 6, keep the fading level unchanged at 6. If the time difference between t1 and t0 is less than 1000ms, the fading level remains unchanged.

[0186] After all data bytes have been compared, store this message in D1 to update M1. At the same time, if any data byte fading level of the newly received message changes, store this message in D2 to update M2. According to the above steps, the fading level of each received message frame can be marked and stored in the flags field.

[0187] 3. Presentation of Monitoring View Data

[0188] When updating the interface presentation for a batch of messages, read the flags field of each message frame, and perform color rendering on the corresponding data bytes according to the fading levels corresponding to different data bytes in the flags field. This part mainly uses HTML-related technologies to package and render different data bytes, so as to display in different colors on the monitoring view. The effect is as Figure 5 shown below.

[0189] This embodiment of the scenario proposes an effective active message marking mechanism for the in-vehicle bus data monitoring and analysis view. Using this mechanism can help testers quickly locate active messages during in-vehicle network communication testing, significantly improving the test work efficiency.

[0190] It should be noted that this embodiment is the implementation manner of the network - side device corresponding to the above - mentioned method embodiment. Therefore, relevant descriptions in the above - mentioned method embodiment can be referred to, and the same beneficial effects can be achieved. To avoid repeated description, it will not be elaborated here.

[0191] Based on the bus message display method provided in the above - mentioned embodiment, correspondingly, the present application also provides a specific implementation manner of a bus message display device. Please refer to the following embodiments.

[0192] See Figure 6 , the bus message display device provided in the embodiment of the present application may include:

[0193] A first acquisition module 601, configured to acquire a first target bus message, where the first target bus message is the i - th target bus message acquired, the target bus message is a bus message marked with a target identifier, the target bus message includes N data bytes, i is a positive integer, and N is an integer greater than 1.

[0194] A first comparison module 602, configured to respectively compare the values of each data byte in the first target bus message with the values of each data byte in the target same - identifier reference message corresponding to the target identifier, to obtain N first comparison results corresponding one - to - one to the N data bytes. Among them, the target same - identifier reference message is the (i - 1) - th target bus message acquired, and among the N data bytes, there are Q data bytes corresponding to the first comparison result of equal values, and N - Q data bytes corresponding to the first comparison result of unequal values, and Q is a natural number less than or equal to N.

[0195] A first adjustment module 603, configured to adjust the fading level of the N - Q data bytes of the first target bus message to the lowest fading level.

[0196] A first determination module 604, configured to determine the fading level of the Q data bytes of the first target bus message according to the second comparison result of comparing the difference between the timestamp of the first target bus message and the timestamp of the target time reference message corresponding to the target identifier with a preset duration, and the fading level of the Q data bytes in the (i - 1) - th target bus message. Among them, the fading level of the Q data bytes of the first target bus message is lower than or equal to the fading level of the Q data bytes in the (i - 1) - th target bus message.

[0197] A display module 605, configured to render and display the first target bus message on a message monitoring view according to the fading level of each data byte in the first target bus message.

[0198] In some embodiments, the first adjustment module is specifically configured to:

[0199] Determine the first dilution level as the dilution level of the N-Q data bytes of the first target bus message, where the first dilution level is the lowest dilution level among the preset P dilution levels, and P is an integer greater than 1.

[0200] In some embodiments, the Q data bytes include the jth data byte, where j is a positive integer less than or equal to N.

[0201] The first determination module includes:

[0202] A first comparison sub-module, configured to compare the difference between the timestamp of the first target bus message and the timestamp of the target time reference message with a preset duration to obtain a second comparison result.

[0203] A first determination sub-module, configured to, when the second comparison result indicates that the difference is less than the preset duration, determine the dilution level of the jth data byte in the (i-1)th target bus message as the dilution level of the jth data byte of the first target bus message.

[0204] In some embodiments, the first determination module further includes:

[0205] A second comparison sub-module, configured to, when the second comparison result indicates that the difference is greater than or equal to the preset duration, compare the dilution level of the jth data byte in the (i-1)th target bus message with the Pth level to obtain a third comparison result, where the Pth dilution level is the highest dilution level among the P dilution levels.

[0206] A second determination sub-module, configured to determine the dilution level of the jth data byte of the first target bus message according to the third comparison result.

[0207] In some embodiments, the second determination sub-module includes:

[0208] A first determination unit, configured to, when the third comparison result indicates that the dilution level of the jth data byte stored in the target dilution mark array is less than the Pth level, increment the dilution level of the jth data byte stored in the first dilution mark array by 1 and determine it as the dilution level of the jth data byte of the first target bus message.

[0209] A second determination unit, configured to, when the third comparison result indicates that the dilution level of the jth data byte stored in the target dilution mark array is equal to the Pth level, determine the Pth dilution level as the dilution level of the jth data byte of the first target bus message.

[0210] In some embodiments, the apparatus further comprises:

[0211] a second obtaining module, configured to obtain the target reference message with the same identifier;

[0212] a second determining module, configured to, when the target reference message with the same identifier is not obtained, determine the fading level of all data bytes of the first target bus message as the first fading level.

[0213] In some embodiments, the apparatus further comprises:

[0214] a first updating module, configured to update the target reference message with the same identifier as the first target bus message.

[0215] In some embodiments, the apparatus further comprises:

[0216] a second updating module, configured to, when a first condition is satisfied, update the target time reference message as the first target bus message,

[0217] wherein the first condition includes any one of the following:

[0218] the value of a data byte in the first target bus message changes as compared with the target reference message with the same identifier;

[0219] it is determined, according to the target time reference message before update, that the fading level of a data byte in the first target bus message changes as compared with the first fading mark array.

[0220] In some embodiments, the apparatus further comprises:

[0221] a third updating module, configured to update the target time reference message as the first target bus message.

[0222] In some embodiments, the apparatus further comprises:

[0223] a first generating module, configured to generate a first global variable dictionary, where the first global variable dictionary is used to store the reference messages with the same identifier corresponding to each identifier;

[0224] a first searching module, configured to search, in the first global variable dictionary, for the target reference message with the same identifier corresponding to the target identifier.

[0225] In some embodiments, the apparatus further comprises:

[0226] a second generating module, configured to generate a second global variable dictionary, where the second global variable dictionary is used to store the time reference messages corresponding to each identifier;

[0227] A second search module, configured to search for a target time reference message corresponding to the target identifier in the second global variable dictionary.

[0228] A third acquisition module, configured to acquire a time stamp of the target time reference message when the target time reference message is found.

[0229] In some embodiments, the apparatus further includes:

[0230] A setting module, configured to set a fading level rule, where the fading level rule includes the P fading levels.

[0231] Wherein, the first fading level is used to perform 0-level fading processing on a first data byte, where the first data byte is a data byte whose value changes, or a data byte whose unchanged duration is less than a preset duration.

[0232] The t-th fading level is used to perform (t - 1)-level fading processing on the t-th data byte, where the t-th data byte is a data byte whose value continuously does not change for more than the preset duration for t consecutive times, and t is an integer greater than 1 and less than or equal to P.

[0233] The bus message display device provided in the embodiments of the present application can implement each process implemented by the bus message display device in the method embodiments. To avoid repetition, details are not described herein again.

[0234] Figure 7 The hardware structure diagram of the bus message display provided in the embodiments of the present application is shown.

[0235] The bus message display device may include a processor 701 and a memory 702 storing computer program instructions.

[0236] Specifically, the processor 701 may include a central processing unit (CPU), or an application specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present application.

[0237] The memory 702 may include a mass storage for data or instructions. By way of example and not limitation, the memory 702 may include a hard disk drive (HDD), a floppy disk drive, flash memory, an optical disc, a magneto-optical disc, a magnetic tape, or a universal serial bus (USB) drive, or a combination of two or more of these. Where appropriate, the memory 702 may include removable or non-removable (or fixed) media. Where appropriate, the memory 702 may be internal or external to the integrated gateway disaster recovery device. In a particular embodiment, the memory 702 is a non-volatile solid-state memory.

[0238] The memory may include a read-only memory (ROM), a random access memory (RAM), a magnetic disk storage media device, an optical storage media device, a flash memory device, an electrical, optical, or other physical / tangible memory storage device. Thus, in general, the memory includes one or more tangible (non-transitory) computer-readable storage media (e.g., memory devices) encoded with software including computer-executable instructions, and when the software is executed (e.g., by one or more processors), it is operable to perform the operations described with reference to the method according to one aspect of the present disclosure.

[0239] The processor 701 reads and executes the computer program instructions stored in the memory 702 to implement any of the bus message display methods in the above embodiments.

[0240] In one example, the bus message display device may further include a communication interface 707 and a bus 710. Among them, as Figure 7 shown, the processor 701, the memory 702, and the communication interface 707 are connected through the bus 710 to complete communication with each other.

[0241] The communication interface 707 is mainly used to implement communication between the various modules, devices, units, and / or devices in the embodiments of the present application.

[0242] The bus 710 includes hardware, software, or both, and couples the components of the bus message display device to each other. By way of example and not limitation, the bus may include an Accelerated Graphics Port (AGP) or other graphics bus, an Enhanced Industry Standard Architecture (EISA) bus, a Front Side Bus (FSB), a HyperTransport (HT) interconnect, an Industry Standard Architecture (ISA) bus, an InfiniBand interconnect, a Low Pin Count (LPC) bus, a memory bus, a MicroChannel Architecture (MCA) bus, a Peripheral Component Interconnect (PCI) bus, a PCI-Express (PCI-X) bus, a Serial Advanced Technology Attachment (SATA) bus, a Video Electronics Standards Association Local (VLB) bus, or other suitable buses or a combination of two or more of these. Where appropriate, the bus 710 may include one or more buses. Although the embodiments of the present application describe and illustrate specific buses, the present application contemplates any suitable bus or interconnect.

[0243] In addition, in combination with the bus message display method in the above embodiments, the embodiments of the present application can be implemented by providing a computer storage medium. Computer program instructions are stored on the computer storage medium, and when the computer program instructions are executed by a processor, any one of the bus message display methods in the above embodiments is implemented.

[0244] It should be clear that the present application is not limited to the specific configurations and processes described above and illustrated in the figures. For the sake of brevity, detailed descriptions of known methods are omitted here. In the above embodiments, several specific steps are described and illustrated as examples. However, the method process of the present application is not limited to the specific steps described and illustrated, and those skilled in the art can make various changes, modifications, and additions, or change the order between steps after understanding the spirit of the present application.

[0245] The functional blocks shown in the above-described block diagrams can be implemented as hardware, software, firmware, or a combination thereof. When implemented in hardware, it can be, for example, an electronic circuit, an Application Specific Integrated Circuit (ASIC), appropriate firmware, a plug-in, a functional card, and so on. When implemented in software, the elements of the present application are programs or code segments used to perform the required tasks. The program or code segment can be stored in a machine-readable medium or transmitted via a data signal carried in a carrier wave on a transmission medium or a communication link. A "machine-readable medium" can include any medium capable of storing or transmitting information. Examples of machine-readable media include electronic circuits, semiconductor memory devices, ROMs, flash memories, Erasable ROMs (EROMs), floppy disks, CD-ROMs, optical disks, hard disks, fiber optic media, Radio Frequency (RF) links, and so on. The code segment can be downloaded via a computer network such as the Internet, an intranet, and so on.

[0246] It should also be noted that the exemplary embodiments mentioned in this application describe some methods or systems based on a series of steps or devices. However, this application is not limited to the order of the above steps. That is to say, the steps can be executed in the order mentioned in the embodiments, or different from the order in the embodiments, or several steps can be executed simultaneously.

[0247] As described above with reference to the flowcharts and / or block diagrams of methods, apparatuses (systems) and computer program products according to embodiments of the present disclosure. It should be understood that each block in the flowchart and / or block diagram, and the combination of blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device to produce a machine, such that the instructions executed by the processor of the computer or other programmable data processing device enable the implementation of the functions / actions specified in one or more blocks of the flowchart and / or block diagram. Such a processor can be, but is not limited to, a general-purpose processor, a special-purpose processor, a special application processor, or a field programmable logic circuit. It should also be understood that each block in the block diagram and / or flowchart, and the combination of blocks in the block diagram and / or flowchart, can also be implemented by dedicated hardware that performs the specified functions or actions, or can be implemented by a combination of dedicated hardware and computer instructions.

[0248] As mentioned above, the above are only specific embodiments of this application. Those skilled in the art can clearly understand that for the convenience and brevity of description, the specific working processes of the systems, modules, and units described above can refer to the corresponding processes in the foregoing method embodiments and will not be repeated here. It should be understood that the protection scope of this application is not limited thereto. Any person skilled in the art within the technical scope disclosed in this application can easily think of various equivalent modifications or substitutions, and these modifications or substitutions should all be covered within the protection scope of this application.

Claims

1. A bus message display method, characterized in that, Including: Obtain a first target bus message, where the first target bus message is the i-th target bus message obtained, the target bus message is a bus message identified by a target identifier, the target bus message includes N data bytes, i is a positive integer, and N is an integer greater than 1. Compare each data byte value in the first target bus message with the corresponding data byte value in the target same-identifier reference message corresponding to the target identifier to obtain N first comparison results corresponding one-to-one to the N data bytes. Among them, the target same-identifier reference message is the (i - 1)-th target bus message obtained. Among the N data bytes, there are Q data bytes for which the corresponding first comparison result is equal in value, and the first comparison results corresponding to N - Q data bytes are not equal in value. Q is a natural number less than or equal to N. Adjust the fading level of the N - Q data bytes of the first target bus message to the lowest fading level. Determine the fading level of the Q data bytes of the first target bus message according to the second comparison result of comparing the difference between the timestamp of the first target bus message and the timestamp of the target time reference message corresponding to the target identifier with a preset duration, and the fading level of the Q data bytes in the (i - 1)-th target bus message. Among them, the fading level of the Q data bytes of the first target bus message is lower than or equal to the fading level of the Q data bytes in the (i - 1)-th target bus message. Render and display the first target bus message on the message monitoring view according to the fading level of each data byte in the first target bus message.

2. The method according to claim 1, wherein The adjusting the fading level of the N - Q data bytes of the first target bus message to the lowest fading level includes: Determine the first fading level as the fading level of the N - Q data bytes of the first target bus message, where the first fading level is the lowest fading level among the preset P fading levels, and P is an integer greater than 1.

3. The method according to claim 1, wherein The Q data bytes include the j-th data byte, and j is a positive integer less than or equal to N. The determining the fading level of the Q data bytes of the first target bus message according to the second comparison result of comparing the difference between the timestamp of the first target bus message and the timestamp of the target time reference message corresponding to the target identifier with a preset duration, and the fading level of the Q data bytes in the (i - 1)-th target bus message includes: Compare the difference between the timestamp of the first target bus message and the timestamp of the target time reference message with the preset duration to obtain a second comparison result. In the case where the second comparison result is that the difference is less than the preset duration, determine the fading level of the j-th data byte in the (i - 1)-th target bus message as the fading level of the j-th data byte of the first target bus message.

4. The method according to claim 3, wherein After comparing the difference between the timestamp of the first target bus message and the timestamp of the target time reference message with a preset duration to obtain a second comparison result, the method further includes: When the second comparison result indicates that the difference is greater than or equal to the preset duration, comparing the fading level of the j-th data byte in the (i - 1)-th target bus message with the P-th level to obtain a third comparison result, where the P-th level is the highest fading level among P fading levels. Determine the fading level of the j-th data byte of the first target bus message according to the third comparison result.

5. The method according to claim 4, wherein The determining the fading level of the j-th data byte of the first target bus message according to the third comparison result includes: When the third comparison result indicates that the fading level of the j-th data byte stored in the first fading mark array corresponding to the target bus message is less than the P-th level, adding 1 to the fading level of the j-th data byte stored in the first fading mark array and determining it as the fading level of the j-th data byte of the first target bus message. When the third comparison result indicates that the fading level of the j-th data byte stored in the first fading mark array corresponding to the target bus message is equal to the P-th level, determining the P-th level as the fading level of the j-th data byte of the first target bus message.

6. The method according to claim 1, characterized in that, After obtaining the first target bus message and before comparing the values of each data byte in the first target bus message with the values of each data byte in the target same-identifier reference message corresponding to the target identifier to obtain N first comparison results corresponding one by one to the N data bytes, the method further includes: Obtain the target same-identifier reference message. When the target same-identifier reference message is not obtained, determine the fading levels of all data bytes of the first target bus message as the first fading level.

7. The method according to any one of claims 1 to 6, characterized in that, After comparing the values of each data byte in the first target bus message with the values of each data byte in the target same-identifier reference message corresponding to the target identifier to obtain N first comparison results corresponding one by one to the N data bytes, the method further includes: Update the target same-identifier reference message to the first target bus message.

8. The method according to any one of claims 1 to 5, characterized in that, After determining the fading levels of the Q data bytes of the first target bus message according to the second comparison result of comparing the difference between the timestamp of the first target bus message and the timestamp of the target time reference message corresponding to the target identifier with the preset duration, and the fading levels of the Q data bytes in the (i - 1)-th target bus message, the method further includes: When a first condition is satisfied, update the target time reference message to the first target bus message. Wherein, the first condition includes any one of the following: There is a change in the value of a data byte in the first target bus message compared with the target same-identifier reference message. Based on the target time reference message before the update, it is determined that the fading level of the data bytes in the first target bus message has changed compared to the fading mark array corresponding to the first target bus message.

9. The method according to claim 6, wherein After determining that the fading levels of all data bytes of the first target bus message are all the first fading level, the method further includes: Updating the target time reference message to the first target bus message.

10. The method according to claim 1, characterized in that Before comparing the values of the data bytes in the first target bus message with the values of the data bytes in the target same-identifier reference message corresponding to the target identifier respectively to obtain N first comparison results corresponding one by one to the N data bytes, the method further includes: Generating a first global variable dictionary, where the first global variable dictionary is used to store the same-identifier reference messages corresponding to each identifier. Searching in the first global variable dictionary for the target same-identifier reference message corresponding to the target identifier. Before determining the fading levels of the Q data bytes of the first target bus message according to the second comparison result of comparing the difference between the timestamp of the first target bus message and the timestamp of the target time reference message corresponding to the target identifier with a preset duration, and the fading levels of the Q data bytes in the (i - 1)-th target bus message, the method further includes: Generating a second global variable dictionary, where the second global variable dictionary is used to store the time reference messages corresponding to each identifier. Searching in the second global variable dictionary for the target time reference message corresponding to the target identifier. When the target time reference message is found, obtaining the timestamp of the target time reference message.

11. The method according to claim 2, wherein Before obtaining the first target bus message, the method further includes: Setting a fading level rule, where the fading level rule includes the P fading levels. Among them, the first fading level is used for performing 0-level fading processing on the first data byte, and the first data byte is a data byte whose value has changed, or a data byte whose unchanged duration is less than the preset duration. The t-th fading level is used for performing (t - 1)-level fading processing on the t-th data byte, and the t-th data byte is a data byte whose value has not changed continuously for t times over the continuous preset duration, where t is an integer greater than 1 and less than or equal to P.

12. A bus message display device, characterized in that, The device includes: A first acquisition module, configured to acquire a first target bus message, where the first target bus message is the i-th target bus message acquired, the target bus message is a bus message with an identifier of a target identifier, the target bus message includes N data bytes, i is a positive integer, and N is an integer greater than 1. A first comparison module, configured to respectively compare the values of each data byte in the first target bus message with the values of each data byte in the target same-identifier reference message corresponding to the target identifier, so as to obtain N first comparison results corresponding one by one to the N data bytes, where the target same-identifier reference message is the (i - 1)-th obtained target bus message, among the N data bytes, there are Q data bytes whose corresponding first comparison results are equal in value, and the first comparison results corresponding to the N - Q data bytes are not equal in value, and Q is a natural number less than or equal to N. A first adjustment module, configured to adjust the fading levels of the N - Q data bytes of the first target bus message to the lowest fading level. A first determination module, configured to determine the fading levels of the Q data bytes of the first target bus message according to the second comparison result of comparing the difference between the timestamp of the first target bus message and the timestamp of the target time reference message corresponding to the target identifier with a preset duration, and the fading levels of the Q data bytes in the (i - 1)-th target bus message, where the fading levels of the Q data bytes of the first target bus message are lower than or equal to the fading levels of the Q data bytes in the (i - 1)-th target bus message. A display module, configured to render and display the first target bus message on a message monitoring view according to the fading levels of each data byte in the first target bus message.

13. A bus message display device, characterized in that, The device includes: a processor and a memory storing computer program instructions, and when the processor executes the computer program instructions, the bus message display method according to any one of claims 1 to 11 is implemented.

14. A computer-readable storage medium, characterized in that, Computer program instructions are stored on a computer-readable storage medium, and when the computer program instructions are executed by a processor, the bus message display method according to any one of claims 1 to 11 is implemented.

15. A computer program product, characterized in that, When the instructions in the computer program product are executed by a processor of an electronic device, the electronic device is caused to execute the bus message display method according to any one of claims 1 to 11.

Citation Information

Patent Citations

  • Information stream generation and analysis method for whole station joint debugging of intelligent substation

    CN108632239A

  • Message information generation method and device, electronic equipment and storage medium

    CN114201166A