Communication anomaly cause determination method, system, apparatus, device, and storage medium
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- WEICHAI POWER CO LTD
- Filing Date
- 2023-05-06
- Publication Date
- 2026-07-10
AI Technical Summary
When T-BOX encounters an abnormality in its internet server connection, manual troubleshooting is time-consuming and labor-intensive, and current technology is inefficient.
By acquiring the communication commands between the vehicle network intelligent terminal and the gateway, matching the commands and response commands, the cause of the communication anomaly between the vehicle network terminal and the gateway is automatically determined, and the cause of the anomaly is recorded using differential message records.
It enables automated troubleshooting of communication anomalies between vehicle network terminals and gateways, improving efficiency and reducing labor costs.
Smart Images

Figure CN116684252B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of vehicle networking, and in particular to a method, system, device and storage medium for determining the cause of communication anomalies. Background Technology
[0002] With the continuous development of information technology, automobiles are becoming increasingly intelligent, giving rise to T-BOX (Telematics BOX, intelligent terminal for vehicle networking). T-BOX interacts with internet servers through a gateway, enabling functions such as remotely starting the vehicle, turning on the air conditioning, adjusting the seat to a comfortable position, and communicating with other communication devices.
[0003] Before interacting with the Internet server, T-BOX needs to connect to the Internet server through a gateway. If an abnormality occurs during the connection, it often requires engineers from T-BOX, the gateway, and the Internet server to manually troubleshoot step by step, which is time-consuming and labor-intensive. Summary of the Invention
[0004] This application provides a method, system, device, and storage medium for determining the cause of communication anomalies, in order to solve the problem of time-consuming and labor-intensive manual troubleshooting when T-BOX accesses the Internet server abnormally.
[0005] Firstly, a method for determining the cause of communication anomalies is provided, including:
[0006] Obtain communication commands between the vehicle-to-everything (V2X) intelligent terminal and the gateway;
[0007] If it is determined that there is no instruction in the communication instructions that matches the first instruction, the response instruction in the receiving object of the first instruction is obtained, wherein the receiving object is the vehicle network intelligent terminal or the gateway; the first instruction is any instruction in the communication instructions.
[0008] By matching the first instruction with the response instruction, the cause of the communication anomaly between the vehicle network terminal and the gateway is determined.
[0009] Optionally, matching the first instruction with the response instruction to determine the reason for the communication anomaly between the vehicle network terminal and the gateway includes:
[0010] Determine whether there is an instruction in the response instruction that matches the first instruction;
[0011] If an instruction matching the first instruction exists, a second instruction is obtained from the object that generated the first instruction. The second instruction is the original instruction of the first instruction, and the object that generated the first instruction is the vehicle-to-everything (V2X) intelligent terminal or the gateway. The difference between the first instruction and the second instruction is determined to obtain a difference message. The difference message is determined to be the reason for the communication abnormality between the V2X terminal and the gateway.
[0012] If no instruction matches the first instruction, the reason for the communication abnormality between the vehicle network terminal and the gateway is determined based on the matching result; the matching result indicates that there is no instruction in the response instruction that matches the first instruction.
[0013] Optionally, determining that there is no instruction in the communication instructions that matches the first instruction includes:
[0014] Obtain the instruction identifier of the first instruction and the sending time of the first instruction;
[0015] If it is determined that there is no third instruction in the communication instructions, it is determined that there is no instruction in the communication instructions that matches the first instruction; the instruction identifier of the third instruction corresponds uniquely to the instruction identifier of the first instruction, and the time difference between the sending time of the third instruction and the sending time of the first instruction is less than a preset time threshold.
[0016] Optionally, the differences between the first instruction and the second instruction are determined to obtain a difference message, including:
[0017] Obtain the first binary representation of the first instruction and the second binary representation of the second instruction;
[0018] The difference message is obtained by comparing the first binary representation and the second binary representation bit by bit.
[0019] Optionally, after determining the cause of the communication anomaly between the vehicle network terminal and the gateway based on the matching results, the method further includes:
[0020] A marking instruction is forwarded to the vehicle-to-everything (V2X) intelligent terminal and / or the gateway, the marking instruction indicating that the first instruction is abnormal.
[0021] Optionally, after determining that the difference message is the cause of the communication abnormality between the vehicle network terminal and the gateway, the method further includes:
[0022] The difference message is forwarded to the vehicle-to-everything (V2X) intelligent terminal and / or the gateway.
[0023] Secondly, a system for determining the cause of communication anomalies is provided, including:
[0024] On-site diagnostic equipment, vehicle-to-everything (V2X) intelligent terminals and gateways;
[0025] The on-site diagnostic device is used to acquire communication instructions between the vehicle-to-everything (V2X) intelligent terminal and the gateway; if it is determined that there is no instruction in the communication instructions that matches the first instruction, the device acquires the response instruction from the recipient of the first instruction, wherein the recipient is the V2X intelligent terminal or the gateway; the first instruction is any instruction in the communication instructions; the device matches the first instruction with the response instruction to determine the cause of the communication abnormality between the V2X terminal and the gateway.
[0026] Thirdly, a device for determining the cause of a communication anomaly is provided, comprising:
[0027] The first acquisition module is used to acquire communication instructions between the vehicle network intelligent terminal and the gateway;
[0028] The second acquisition module is used to acquire a response instruction from the recipient of the first instruction if it is determined that there is no instruction in the communication instructions that matches the first instruction. The recipient is the vehicle-to-everything (V2X) intelligent terminal or the gateway. The first instruction is any instruction in the communication instructions.
[0029] The matching module is used to match the first instruction with the response instruction to determine the reason for the communication abnormality between the vehicle network terminal and the gateway.
[0030] Fourthly, an electronic device is provided, comprising: a processor, a memory, and a communication bus, wherein the processor and the memory communicate with each other via the communication bus;
[0031] The memory is used to store computer programs;
[0032] The processor is configured to execute the program stored in the memory to implement the method for determining the cause of communication anomalies as described in the first aspect.
[0033] Fifthly, a computer-readable storage medium is provided, storing a computer program that, when executed by a processor, implements the method for determining the cause of communication anomalies described in the first aspect.
[0034] Compared with the prior art, the above-mentioned technical solution provided in this application embodiment has the following advantages: The method provided in this application embodiment realizes the automatic determination of the cause of communication abnormalities between vehicle network terminals and gateways through mutual matching between messages. Compared with manual elimination one by one, it is not only more efficient, but also reduces costs. Attached Figure Description
[0035] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.
[0036] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, for those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0037] Figure 1 This is a flowchart illustrating the method for determining the cause of communication anomalies in an embodiment of this application;
[0038] Figure 2 This is a schematic diagram illustrating the communication between the on-site diagnostic equipment, the vehicle-to-everything (V2X) intelligent terminal, and the gateway in an embodiment of this application.
[0039] Figure 3 This is a flowchart illustrating the method for determining the cause of communication anomalies in an embodiment of this application;
[0040] Figure 4 A schematic diagram of the system for determining the cause of communication anomalies in this application embodiment;
[0041] Figure 5 This is a schematic diagram of the device for determining the cause of communication anomalies in the embodiments of this application;
[0042] Figure 6 This is a schematic diagram of the structure of the electronic device in the embodiments of this application. Detailed Implementation
[0043] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0044] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of this application described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.
[0045] This application provides a method for determining the cause of communication anomalies. This method can be applied to electronic devices, which may include terminal devices or servers, and this application does not limit the scope of the application. The terminal device may be a mobile terminal such as a field diagnostic device, mobile phone, tablet computer, laptop computer, PDA (Personal Digital Assistant), etc., or a fixed terminal such as a digital TV, desktop computer, etc.
[0046] like Figure 1 As shown, the method may include the following steps:
[0047] Step 101: Obtain the communication instructions between the vehicle network intelligent terminal and the gateway.
[0048] In this embodiment, the communication commands include two types: upload commands and download commands. Upload commands are sent from the vehicle-to-everything (V2X) intelligent terminal to the gateway, while download commands are sent from the gateway to the V2X intelligent terminal.
[0049] In this embodiment, during the command interaction between the vehicle-to-everything (V2X) intelligent terminal and the gateway, the V2X intelligent terminal uploads a command to the gateway. After receiving the command, the gateway sends a general response or a specific response back to the V2X intelligent terminal according to the command protocol. Similarly, the gateway can also send commands to the V2X intelligent terminal, and after receiving the command, the V2X intelligent terminal can also send a general response or a specific response back to the gateway according to the command protocol.
[0050] In this embodiment, the communication command can be used to enable the vehicle-to-everything (V2X) intelligent terminal to access the Internet server through the gateway. Of course, it can also be used to enable the V2X intelligent terminal to access the Internet server through the gateway and then perform business interactions with the Internet server through the gateway. This embodiment does not make specific limitations on this.
[0051] In this embodiment, the communication command can be obtained from either the vehicle network intelligent terminal or the gateway; this embodiment does not impose any specific limitations on this.
[0052] For example, see Figure 2 , Figure 2 The diagram illustrates the communication between the vehicle-to-everything (V2X) diagnostic device, the V2X intelligent terminal, and the gateway when the method is executed by the on-site diagnostic device and the communication commands are obtained from the V2X intelligent terminal.
[0053] Step 102: If it is determined that there is no instruction in the communication instructions that matches the first instruction, obtain the response instruction from the recipient of the first instruction. The recipient is a vehicle-to-everything (V2X) intelligent terminal or gateway. The first instruction is any instruction in the communication instructions.
[0054] It should be understood that when the first instruction is sent by the vehicle-to-everything (V2X) intelligent terminal, the recipient of the first instruction is the gateway; when the first instruction is sent by the gateway, the recipient of the first instruction is the V2X intelligent terminal.
[0055] In this embodiment, the instruction matching the first instruction refers to the response instruction. For example, if the first instruction is sent by the vehicle-to-everything (V2X) intelligent terminal and received by the gateway, then the instruction matching the first instruction refers to the response instruction fed back by the gateway in response to the first instruction.
[0056] It should be understood that two situations may arise where a communication instruction does not contain an instruction matching the first instruction: First, the recipient of the first instruction does not receive it; second, the recipient receives an incorrect first instruction. In the first situation, poor communication network quality or a problem with the port used by the sender of the first instruction to transmit it can cause the recipient to fail to receive the instruction. In the second situation, differences between the original instruction generated internally by the recipient and the actual first instruction, or data loss during transmission, can lead to the recipient receiving an incorrect first instruction.
[0057] It should be understood that the response instruction obtained here refers to the response instruction related to the vehicle-to-everything (V2X) intelligent terminal and the gateway. Therefore, the response instruction in the recipient of the first instruction can be obtained based on the identifier of the V2X intelligent terminal and the identifier of the gateway.
[0058] In this embodiment, each communication command has a unique command identifier, and the matching relationship between upload and download commands is pre-defined through the command identifier. Therefore, this matching relationship can be used to determine whether there is a command among the communication commands that matches the first command.
[0059] For example, please refer to Table 1, which is a matching table of upload and download commands during the process of a vehicle-to-everything (V2X) intelligent terminal accessing an internet server through a gateway. Taking "the upload command identifier is 0x0100, and the download command identifier is x8001" in Table 1 as an example, when the V2X intelligent terminal uploads a command with the identifier 0x0100, the gateway can only download a command with the identifier x8001.
[0060] Table 1
[0061] Upload command Issue instructions 0x0100 0x8001 0x0001 0x8101 0x0102 0x8102 0x0103 0x8103
[0062] It should also be understood that during the interaction between the vehicle-to-everything (V2X) intelligent terminal and the gateway, the same command may be sent repeatedly multiple times. Correspondingly, there will be multiple duplicate response pairs, i.e., multiple command-response pairs. Although the commands and responses in different pairs have the same command identifier, the sending interval between commands and responses within the same pair will be relatively short, while the sending interval between commands and responses in different pairs will be relatively long. Therefore, to improve the accuracy of the judgment, in determining whether there is a command in the communication commands that matches the first command, in addition to referring to the matching relationship, the sending interval can also be considered.
[0063] In a specific implementation, in one optional embodiment, the instruction identifier of the first instruction and the sending time of the first instruction are obtained; if it is determined that there is no third instruction in the communication instructions, it is determined that there is no instruction in the communication instructions that matches the first instruction; the instruction identifier of the third instruction corresponds uniquely to the instruction identifier of the first instruction, and the time difference between the sending time of the third instruction and the sending time of the first instruction is less than a preset time threshold.
[0064] The time difference between the sending time of the third instruction and the sending time of the first instruction represents the duration of the sending interval between the third instruction and the first instruction.
[0065] In practice, the preset time threshold can be set manually based on experience or according to actual needs. This embodiment does not impose any specific limitations on this.
[0066] Step 103: Match the first instruction with the response instruction to determine the cause of the communication anomaly between the vehicle network terminal and the gateway.
[0067] In this embodiment, if a response command matching the first command exists in the response command, it can be preliminarily determined that the cause of the communication anomaly between the vehicle network terminal and the gateway is that the recipient of the first command received an incorrect first command. In this case, to clarify whether the preliminarily determined cause is accurate, the first command can be compared with the original command. If no response command matching the first command exists in the response command, it can be preliminarily determined that the cause of the communication anomaly between the vehicle network terminal and the gateway is that the recipient of the first command did not receive the first command.
[0068] In a specific implementation, in one optional embodiment, it is determined whether there is an instruction in the response instruction that matches the first instruction; if there is an instruction that matches the first instruction, a second instruction is obtained from the generation object of the first instruction, the second instruction being the original instruction of the first instruction, and the generation object being a vehicle-to-everything (V2X) intelligent terminal or gateway; the difference between the first instruction and the second instruction is determined to obtain a difference message; the difference message is determined to be the reason for the communication abnormality between the V2X terminal and the gateway; if there is no instruction that matches the first instruction, the reason for the communication abnormality between the V2X terminal and the gateway is determined based on the matching result; the matching result indicates that there is no instruction in the response instruction that matches the first instruction.
[0069] It should be understood that, since there is no instruction matching the first instruction in the communication instructions, even if there is an instruction matching the first instruction in the response instructions of the receiving object, the receiving object does not actually send this instruction to the sending object of the first instruction in the subsequent process.
[0070] In this embodiment, when determining whether there is an instruction matching the first instruction in the response instruction, the aforementioned matching relationship between instructions can still be referred to. It should be noted that since the receiving object does not send the instruction matching the first instruction in the response instruction to the sending object, the sending interval is no longer used as the basis for judgment. Here, the time difference between the sending time of the first instruction and the generation time of the instruction matching the first instruction in the response instruction can be used instead of the aforementioned sending interval for judgment.
[0071] In this embodiment, the difference between the first instruction and the second instruction can be determined by bitwise comparison.
[0072] In a specific implementation, in one optional embodiment, the first binary representation of the first instruction and the second binary representation of the second instruction are obtained; the first binary representation and the second binary representation are compared bit by bit to obtain the difference message.
[0073] In this embodiment, after determining the cause of the communication anomaly between the vehicle network smart terminal and the gateway, the cause can be forwarded to the vehicle network terminal and / or gateway for recording.
[0074] In a specific implementation, in one optional embodiment, after determining that the difference message is the cause of the communication anomaly between the vehicle-to-everything (V2X) terminal and the gateway, the difference message is forwarded to the V2X terminal and / or the gateway. After determining the cause of the communication anomaly between the V2X terminal and the gateway based on the matching results, the original message is forwarded to the gateway through the V2X intelligent terminal.
[0075] In applications, since a gateway may communicate with multiple connected vehicle intelligent terminals, in order to enable the gateway to clearly identify the connected vehicle intelligent terminal corresponding to the difference message and the original message, the identifier of the connected vehicle intelligent terminal can be forwarded together when forwarding the difference message or the original message to the connected vehicle intelligent terminal.
[0076] In the technical solution provided in this embodiment, the cause of communication anomalies between vehicle network terminals and gateways is automatically determined by matching messages. Compared with manual troubleshooting, this method is not only more efficient but also reduces costs.
[0077] For ease of understanding, the following describes the scheme of this application embodiment using a field diagnostic device as the executing entity of the communication anomaly cause determination method as an example. Please refer to [link to relevant documentation]. Figure 3 This may include the following steps:
[0078] The on-site diagnostic equipment stores the communication instructions obtained from the T-BOX for communication between the T-BOX and the gateway;
[0079] The on-site diagnostic equipment obtains a first instruction from the communication instructions, where the first instruction is any instruction in the communication instructions;
[0080] The on-site diagnostic equipment determines whether there is a command in the communication command that matches the first command;
[0081] If a matching instruction exists, the process ends; if no matching instruction exists, the response instruction from the gateway is obtained via the T-BOX.
[0082] Determine if the response command contains a command that matches the first command;
[0083] If the response instruction contains an instruction that matches the first instruction, retrieve the original instruction of the first instruction from the T-BOX;
[0084] By comparing the first instruction with the original instruction bit by bit, the comparison result is obtained;
[0085] When the comparison results show that there is a difference between the first instruction and the original instruction, an error message is displayed and forwarded to the T-BOX, gateway and platform.
[0086] If the response instruction does not contain an instruction that matches the first instruction, the original message is forwarded to the gateway and platform via the T-BOX.
[0087] Based on the same concept, this application provides a system for determining the cause of communication anomalies. The specific implementation of this system can be found in the description of the method embodiments section; repeated details will not be repeated here. Figure 4 As shown, the system mainly includes:
[0088] The on-site diagnostic equipment 401, the vehicle networking intelligent terminal 402, and the gateway 403;
[0089] The on-site diagnostic device 401 is used to acquire the communication instructions between the vehicle network intelligent terminal 402 and the gateway 403; if it is determined that there is no instruction in the communication instructions that matches the first instruction, the device acquires the response instruction from the recipient of the first instruction, the recipient being either the vehicle network intelligent terminal 402 or the gateway 403; the first instruction is any instruction in the communication instructions; the device matches the first instruction with the response instruction to determine the cause of the communication abnormality of the vehicle network intelligent terminal 402 or the gateway 403.
[0090] Based on the same concept, this application provides a device for determining the cause of communication anomalies. The specific implementation of this device can be found in the description of the method embodiments section; repeated details will not be repeated here. Figure 5 As shown, the device mainly includes:
[0091] The first acquisition module 501 is used to acquire communication instructions between the vehicle network intelligent terminal and the gateway.
[0092] The second acquisition module 502 is used to acquire a response instruction from the recipient of the first instruction if it is determined that there is no instruction in the communication instructions that matches the first instruction. The recipient is a vehicle-to-everything (V2X) intelligent terminal or gateway. The first instruction is any instruction in the communication instructions.
[0093] The matching module 503 is used to match the first instruction with the response instruction to determine the cause of the communication abnormality between the vehicle network terminal and the gateway.
[0094] Matching module 503 is used for:
[0095] Determine if there is an instruction in the response command that matches the first instruction;
[0096] If an instruction matching the first instruction exists, the second instruction is obtained from the object that generated the first instruction. The second instruction is the original instruction of the first instruction, and the object that generated the second instruction is the vehicle-to-everything (V2X) intelligent terminal or gateway. The difference between the first instruction and the second instruction is determined, and a difference message is obtained. The difference message is determined to be the reason for the communication abnormality between the V2X terminal and the gateway.
[0097] If no instruction matches the first instruction, the cause of the communication anomaly between the vehicle network terminal and the gateway is determined based on the matching result; the matching result indicates that no instruction matches the first instruction in the response instructions.
[0098] The second acquisition module 502 is used for:
[0099] Obtain the instruction identifier and the sending time of the first instruction;
[0100] If it is determined that there is no third instruction in the communication instructions, it is determined that there is no instruction in the communication instructions that matches the first instruction; the instruction identifier of the third instruction corresponds uniquely to the instruction identifier of the first instruction, and the time difference between the sending time of the third instruction and the sending time of the first instruction is less than a preset time threshold.
[0101] Matching module 503 is used for:
[0102] Obtain the first binary representation of the first instruction and the second binary representation of the second instruction;
[0103] By comparing the first binary representation with the second binary representation bit by bit, the difference message is obtained.
[0104] This device is also used for:
[0105] After determining the cause of the communication anomaly between the vehicle network terminal and the gateway based on the matching results, the original message is forwarded to the gateway through the vehicle network intelligent terminal.
[0106] This device is also used for:
[0107] After determining that the discrepancy message is the cause of the communication abnormality between the vehicle network terminal and the gateway, the discrepancy message is forwarded to the vehicle network intelligent terminal and / or the gateway.
[0108] Based on the same concept, this application also provides an electronic device, such as... Figure 6 As shown, the electronic device mainly includes a processor 601, a memory 602, and a communication bus 603. The processor 601 and the memory 602 communicate with each other via the communication bus 603. The memory 602 stores programs that can be executed by the processor 601. The processor 601 executes the programs stored in the memory 602 to achieve the following steps:
[0109] Obtain communication commands between the vehicle-to-everything (V2X) intelligent terminal and the gateway;
[0110] If it is determined that there is no instruction in the communication instructions that matches the first instruction, obtain the response instruction from the recipient of the first instruction, where the recipient is a vehicle-to-everything (V2X) intelligent terminal or gateway; the first instruction is any instruction in the communication instructions.
[0111] Match the first command with the response command to determine the cause of the communication anomaly between the vehicle network terminal and the gateway.
[0112] The communication bus 603 mentioned in the above electronic device can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. This communication bus 603 can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 6 The bus is represented by a single thick line, but this does not mean that there is only one bus or one type of bus.
[0113] The memory 602 may include random access memory (RAM) or non-volatile memory, such as at least one disk storage device. Optionally, the memory may also be at least one storage device located remotely from the aforementioned processor 601.
[0114] The processor 601 mentioned above can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc., or a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components.
[0115] In another embodiment of this application, a computer-readable storage medium is provided, which stores a computer program that, when run on a computer, causes the computer to execute the communication anomaly determination method described in the above embodiments.
[0116] In the above embodiments, implementation can be achieved, in whole or in part, through software, hardware, firmware, or any combination thereof. When implemented in software, it can be implemented, in whole or in part, as a computer program product. This computer program product includes one or more computer instructions. When these computer instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of this application are generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another, for example, computer instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, digital subscriber line (DSL)) or wireless (e.g., infrared, microwave, etc.) means. The computer-readable storage medium can be any available medium accessible to a computer or a data storage device such as a server or data center that integrates one or more available media. The available medium can be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape, etc.), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid-state drive), etc.
[0117] It should be noted that, in this document, relational terms such as "first" and "second" are used merely to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.
[0118] The above description is merely a specific embodiment of the present invention, enabling those skilled in the art to understand or implement the invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the invention. Therefore, the present invention is not to be limited to the embodiments shown herein, but is to be accorded the widest scope consistent with the principles and novel features claimed herein.
Claims
1. A method for determining the cause of communication anomalies, characterized in that, include: Obtain communication commands between the vehicle-to-everything (V2X) intelligent terminal and the gateway; If it is determined that there is no instruction in the communication instructions that matches the first instruction, the response instruction in the receiving object of the first instruction is obtained, wherein the receiving object is the vehicle network intelligent terminal or the gateway; the first instruction is any instruction in the communication instructions. Match the first instruction with the response instruction to determine the reason for the communication abnormality between the vehicle network terminal and the gateway; The step of matching the first instruction with the response instruction to determine the reason for the communication anomaly between the vehicle network terminal and the gateway includes: Determine whether there is an instruction in the response instruction that matches the first instruction; If an instruction matching the first instruction exists, a second instruction is obtained from the object that generated the first instruction. The second instruction is the original instruction of the first instruction, and the object that generated the first instruction is the vehicle-to-everything (V2X) intelligent terminal or the gateway. The difference between the first instruction and the second instruction is determined to obtain a difference message. The difference message is determined to be the reason for the communication abnormality between the V2X terminal and the gateway. If no instruction matches the first instruction, the reason for the communication abnormality between the vehicle network terminal and the gateway is determined based on the matching result; the matching result indicates that there is no instruction in the response instruction that matches the first instruction.
2. The method according to claim 1, characterized in that, Determining that there is no instruction in the communication instructions that matches the first instruction includes: Obtain the instruction identifier of the first instruction and the sending time of the first instruction; If it is determined that there is no third instruction in the communication instructions, it is determined that there is no instruction in the communication instructions that matches the first instruction; the instruction identifier of the third instruction corresponds uniquely to the instruction identifier of the first instruction, and the time difference between the sending time of the third instruction and the sending time of the first instruction is less than a preset time threshold.
3. The method according to claim 1, characterized in that, Determine the differences between the first instruction and the second instruction to obtain a difference message, including: Obtain the first binary representation of the first instruction and the second binary representation of the second instruction; The difference message is obtained by comparing the first binary representation and the second binary representation bit by bit.
4. The method according to claim 1, characterized in that, After determining the cause of the communication anomaly between the vehicle network terminal and the gateway based on the matching results, the following steps are also included: The vehicle-to-everything (V2X) intelligent terminal forwards the original message to the gateway.
5. The method according to claim 1, characterized in that, After determining that the difference message is the cause of the communication abnormality between the vehicle network terminal and the gateway, the method further includes: The difference message is forwarded to the vehicle-to-everything (V2X) intelligent terminal and / or the gateway.
6. A system for determining the cause of communication anomalies, characterized in that, include: On-site diagnostic equipment, vehicle-to-everything (V2X) intelligent terminals and gateways; The on-site diagnostic equipment is used to acquire communication instructions between the vehicle network intelligent terminal and the gateway; If it is determined that there is no instruction in the communication instructions that matches the first instruction, obtain the response instruction from the recipient of the first instruction, wherein the recipient is the vehicle-to-everything (V2X) intelligent terminal or the gateway; the first instruction is any instruction in the communication instructions; match the first instruction with the response instruction to determine the reason for the communication abnormality between the V2X terminal and the gateway; The step of matching the first instruction with the response instruction to determine the reason for the communication anomaly between the vehicle network terminal and the gateway includes: Determine whether there is an instruction in the response instruction that matches the first instruction; If an instruction matching the first instruction exists, a second instruction is obtained from the object that generated the first instruction. The second instruction is the original instruction of the first instruction, and the object that generated the first instruction is the vehicle-to-everything (V2X) intelligent terminal or the gateway. The difference between the first instruction and the second instruction is determined to obtain a difference message. The difference message is determined to be the reason for the communication abnormality between the V2X terminal and the gateway. If no instruction matches the first instruction, the reason for the communication abnormality between the vehicle network terminal and the gateway is determined based on the matching result; the matching result indicates that there is no instruction in the response instruction that matches the first instruction.
7. A device for determining the cause of a communication anomaly, characterized in that, include: The first acquisition module is used to acquire communication instructions between the vehicle network intelligent terminal and the gateway; The second acquisition module is used to acquire a response instruction from the recipient of the first instruction if it is determined that there is no instruction in the communication instructions that matches the first instruction. The recipient is the vehicle-to-everything (V2X) intelligent terminal or the gateway. The first instruction is any instruction in the communication instructions. The matching module is used to match the first instruction with the response instruction to determine the reason for the communication abnormality between the vehicle network terminal and the gateway; The matching module is specifically used for: Determine whether there is an instruction in the response instruction that matches the first instruction; If an instruction matching the first instruction exists, a second instruction is obtained from the object that generated the first instruction. The second instruction is the original instruction of the first instruction, and the object that generated the first instruction is the vehicle-to-everything (V2X) intelligent terminal or the gateway. The difference between the first instruction and the second instruction is determined, and a difference message is obtained. The discrepancy message was determined to be the cause of the communication anomaly between the vehicle network terminal and the gateway; If no instruction matches the first instruction, the reason for the communication abnormality between the vehicle network terminal and the gateway is determined based on the matching result; the matching result indicates that there is no instruction in the response instruction that matches the first instruction.
8. An electronic device, characterized in that, include: The processor, memory, and communication bus are used to communicate with each other. The memory is used to store computer programs; The processor is configured to execute the program stored in the memory to implement the method for determining the cause of communication anomalies as described in any one of claims 1-5.
9. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by the processor, it implements the method for determining the cause of communication anomalies as described in any one of claims 1-5.