Method and device for transmitting fault information of carrying tool
By defining the word structure of different state values in the fault transmission protocol, selecting and filling the target words, the problem of inflexible transmission of fault information of the vehicle is solved, and the flexible and customized transmission of fault information is realized. It is suitable for aircraft, high-speed rail and other applications. Scene.
Patent Information
- Application Number
- CN202411269339.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-11
- Publication Date
- 2024-11-26
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
It is difficult for the prior art to achieve flexible and customizable transmission of vehicle fault information, especially in application scenarios such as aircraft and high-speed rail, the fault information transmission method is not flexible and customized enough.
By defining word structures with different state values in the fault transmission protocol, selecting and filling appropriate target words, and generating and sending fault data blocks, it supports the flexibility and customization of filling fault information types, including start commands, end commands, and transmission Auxiliary information and user-defined information.
It realizes flexible and customizable transmission of vehicle fault information, which is suitable for different application scenarios, and improves the flexibility and adaptability of fault information transmission.
Smart Images

Figure CN119030667A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of information transmission, and in particular to a method and device for transmitting vehicle fault information. Background Art
[0002] For the application scenario of vehicles, such as airplanes, high-speed railways, medical-related vehicles, etc., how to implement a transmission method that supports flexible and customizable fault information is currently an issue that needs to be addressed. Summary of the invention
[0003] In view of the problems existing in the prior art, the present invention provides a method and device for transmitting vehicle fault information.
[0004] The present invention provides a method for transmitting vehicle fault information, comprising: In at least one word of a fault data block defined by a fault transmission protocol, based on a status value of first indication information corresponding to each of the words, selecting at least one target word that supports filling with fault information to be transmitted, wherein the status value of the first indication information is used to indicate a type of information that the word supports filling, and the first indication information is defined by the fault transmission protocol; Filling the to-be-transmitted fault information into the at least one target word; Based on the at least one filled target word, a faulty data block is generated and sent, wherein the faulty data block includes the at least one filled target word.
[0005] According to a method for transmitting vehicle fault information provided by the present invention, in the fault transmission protocol, the first indication information satisfies at least one of the following: The first indication information is a first state value, which is used to indicate that the word corresponding to the first indication information corresponds to a start instruction for transmitting and parsing the fault data block; The first indication information is a second state value, which is used to indicate that the word corresponding to the first indication information supports filling the fault information to be transmitted; The first indication information is a third state value, which is used to indicate that the word corresponding to the first indication information supports filling the fault information to be transmitted, and corresponds to an end instruction of transmitting and parsing the fault data block; The first indication information is a fourth state value, which is used to indicate that the word corresponding to the first indication information supports filling control bit information that is customized and used by a user.
[0006] According to a method for transmitting vehicle fault information provided by the present invention, when the first indication information is the first state value, the word corresponding to the first indication information supports filling in any one of the following items: Total number of words transmitted and transmission auxiliary information; The total number of transmitted words and the fault information to be transmitted; The total number of transmitted words is used to represent the number of words included in the faulty data block.
[0007] According to a method for transmitting vehicle fault information provided by the present invention, the total number of transmitted words is determined according to the size and type of the fault information to be transmitted.
[0008] According to a method for transmitting vehicle fault information provided by the present invention, when the first indication information is the first state value, the data structure of the word corresponding to the first indication information is as follows: 1 to 8 bits are used to represent the label number, 9 to 20 bits are used to represent the total number of transmitted words, 21 to 29 bits support filling at least one of the transmission auxiliary information and the fault information to be transmitted, 30 to 31 bits are used to represent the first indication information, and 32 bits are used to represent the parity bit.
[0009] According to a method for transmitting vehicle fault information provided by the present invention, when the first indication information is the second state value or the third state value, the data structure of the word corresponding to the first indication information is as follows: Bits 1 to 8 are used to represent the tag number, bits 9 to 29 support filling the fault information to be transmitted, bits 30 to 31 are used to represent the first indication information, and bit 32 is used to represent the parity bit.
[0010] According to a method for transmitting vehicle fault information provided by the present invention, when the first indication information is the second state value or the third state value, the word corresponding to the first indication information supports idle bits, or supports filling with reserved or user-defined characters; the reserved or user-defined characters are used to characterize that the word corresponding to the first indication information supports idle bits.
[0011] According to a method for transmitting vehicle fault information provided by the present invention, the fault data block supports at least one of the following: One word of the fault data block supports filling one or more failure information; One word of the fault data block supports filling one or more groups of failure information; One word of the fault data block supports filling one or more types of failure information; The fault information to be transmitted filled in one word of the fault data block is used as a failure information; The fault information to be transmitted filled in the multiple words of the fault data block together constitute a piece of failure information.
[0012] The present invention also provides a device for transmitting vehicle fault information, comprising: A selection module, configured to select, from at least one word of a fault data block defined by a fault transmission protocol, at least one target word that supports filling the fault information to be transmitted based on a status value of first indication information corresponding to each of the words, wherein the status value of the first indication information is used to indicate a type of information that the word supports filling, and the first indication information is defined by the fault transmission protocol; A filling module, used for filling the fault information to be transmitted into the at least one target word; The transmission module is used to generate and send a fault data block based on the at least one filled target word, wherein the fault data block includes the at least one filled target word.
[0013] The present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the method for transmitting vehicle fault information as described in any one of the above is implemented.
[0014] The present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the method for transmitting vehicle fault information as described in any one of the above is implemented.
[0015] The present invention also provides a computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the method for transmitting vehicle fault information as described in any one of the above is implemented.
[0016] In the method and device for transmitting vehicle fault information provided by the present invention, words are used as basic units. First, according to the definition of the fault transmission protocol, in at least one word, based on the status value of the first indication information corresponding to each word, at least one target word that supports filling in the fault information to be transmitted is selected, and then the corresponding fault information to be transmitted is filled into the at least one target word for transmission. Specifically, a fault data block is generated and sent based on the at least one filled target word to realize the transmission of the fault information. The user can set the information type supported by each word of the fault data block according to the specific situation, and which words are filled to transmit the fault information, thereby realizing support for flexible and customizable fault information transmission. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] In order to more clearly illustrate the technical solutions in the present invention or related technologies, the following briefly introduces the drawings required for use in the embodiments or related technical descriptions. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0018] Figure 1 It is a flow chart of the method for transmitting vehicle fault information provided by the present invention; Figure 2 It is a structural schematic diagram of a transmission device for vehicle fault information provided by the present invention; Figure 3 It is a structural schematic diagram of the electronic device provided by the present invention. DETAILED DESCRIPTION
[0019] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0020] The following describes the method and device for transmitting vehicle fault information of the present invention in conjunction with the accompanying drawings.
[0021] Figure 1 FIG. 1 is a flow chart of a method for transmitting vehicle fault information provided by the present invention, such as Figure 1 As shown, the method for transmitting vehicle fault information includes steps 101 to 103; wherein: Step 101: In at least one word of a fault data block defined by a fault transmission protocol, based on the status value of first indication information corresponding to each of the words, select at least one target word that supports filling with fault information to be transmitted, wherein the status value of the first indication information is used to indicate the type of information supported by the word, and the first indication information is defined by the fault transmission protocol; Step 102: Fill the fault information to be transmitted into the at least one target word; Step 103: Generate and send a faulty data block based on the at least one target word after filling, wherein the faulty data block includes the at least one target word after filling.
[0022] In the related art, it is difficult to support the transmission of fault information of vehicles, such as airplanes, high-speed trains, medical-related vehicles, etc., in a flexible and customizable manner.
[0023] The method for transmitting vehicle fault information provided in an embodiment of the present invention is aimed at the transmission of fault information in the above-mentioned field. A fault transmission protocol for transmitting vehicle fault information is first designed. The fault transmission protocol defines the data structure of at least one word in a fault data block. Different words may have different data structures, and when the first indication information corresponding to different words has different state values, the corresponding data structures may be different.
[0024] On the basis of designing a fault transmission protocol, the method for transmitting vehicle fault information of the present invention can be implemented. This method can be applied to, for example, the control device side (sending side). The sending side is, for example, an embedded system, which is used to send fault information to the maintenance device side (receiving side). Specifically, the fault data block is transmitted to the maintenance device side, and the application software on the maintenance device side (such as an information management system, a maintenance system, a diagnosis and recording application of a monitoring or alarm system, etc.) checks and identifies the required fault information.
[0025] Specifically, the control device side can utilize the fault transmission protocol to first select at least one target word that supports filling the fault information to be transmitted in at least one word based on the status value of the first indication information corresponding to each word; the status value of the specific first indication information is used to indicate the type of information supported by at least one word, and based on this, it can be determined which words support filling the fault information to be transmitted, and these words are used as at least one target word.
[0026] After determining at least one target word, the fault information to be transmitted of the vehicle is filled into at least one target word, and then based on the at least one filled target word, a fault data block is generated and sent. The fault data block includes the at least one filled target word and may also include other unfilled words.
[0027] In some embodiments, the above-mentioned fault information to be transmitted is a broad description, for example, it may include fault information, status information, etc.
[0028] In some embodiments, the above-mentioned fault data block is also a broad description, for example, it may include fault report, fault detection, alarm information and system test information.
[0029] In some embodiments, a fault data block can be understood as being composed of words with the same label number (label number). It should be noted that the label number is set in the data structure of the word, and the user can customize one or more label numbers for fault information transmission. For example, the label number commonly defined for aviation airborne systems is label 356, which represents the transmission of maintenance data. In the embodiment of the present invention, the user can use any label number as fault information transmission.
[0030] In some other embodiments, the first indication information defined in the fault transmission protocol may be a Sign Status Matrix (SSM).
[0031] Optionally, in the fault transmission protocol, the first indication information may satisfy at least one of the following: 1) The first indication information is a first state value, which is used to indicate that the word corresponding to the first indication information corresponds to a start instruction for transmitting and parsing the fault data block; Specifically, the first indication information is a first state value, for example, SSM=01, and the fault transmission protocol defines: data transmission and analysis start from the word corresponding to SSM=01, representing the first word.
[0032] 2) The first indication information is a second state value, which is used to indicate that the word corresponding to the first indication information supports filling the fault information to be transmitted; Specifically, the first indication information is the second state value, for example, SSM=00, and the fault transmission protocol defines: SSM=00 is used to represent the words corresponding to the transmission of valid data block information (for example, fault information to be transmitted), and supports filling in fault information to be transmitted; that is, the words corresponding to SSM=00 are mainly used to transmit fault information, and these words can also be used as failed words.
[0033] 3) The first indication information is a third state value, which is used to indicate that the word corresponding to the first indication information supports filling the fault information to be transmitted, and corresponds to an end instruction of transmitting and parsing the fault data block; Specifically, the first indication information is the third state value, for example, SSM=10, and the fault transmission protocol defines: data transmission ends at SSM=10, and supports filling in fault information to be transmitted.
[0034] 4) The first indication information is a fourth state value, which is used to indicate that the word corresponding to the first indication information supports filling control bit information that is customized and used by the user.
[0035] Specifically, the first indication information is the fourth state value, for example, SSM=11, and the fault transmission protocol defines: SSM=11 is to support filling in control bit information customized and used by users, such as transmitting similar remarks, description information, and control-related information.
[0036] It should be noted that the word corresponding to SSM=11 is optional, and the user can set whether to use the word of SSM=11 to transmit control information.
[0037] In some embodiments, the first state value, the second state value, the third state value, and the fourth state value can be set by the user according to actual conditions. It is only necessary to ensure that these four state values are different to represent words that support the transmission of different information types.
[0038] In the method for transmitting vehicle fault information provided by an embodiment of the present invention, words are used as basic units. First, according to the definition of the fault transmission protocol, in at least one word, based on the status value of the first indication information corresponding to each word, at least one target word that supports filling in the fault information to be transmitted is selected, and then the corresponding fault information to be transmitted is filled into the at least one target word for transmission. Specifically, a fault data block is generated and sent based on the at least one filled target word to realize the transmission of the fault information. The user can set the information type supported by each word of the fault data block according to the specific situation, and which words are filled to transmit the fault information, thereby realizing support for flexible and customizable fault information transmission.
[0039] Optionally, when the first indication information is the first state value, the word corresponding to the first indication information may support filling in any one of the following items: a. Total number of transmitted words and transmission auxiliary information; b. The total number of transmitted words and the fault information to be transmitted; The total number of transmitted words is used to represent the number of words included in the faulty data block.
[0040] In some embodiments, the above-mentioned transmission auxiliary information is used to assist transmission, and can be defined as description, classification, test annotation, configuration or configuration information according to the system data transmission situation, such as Class I or Class II alarm information, configuration, version, time and other information, which can be customized by the user according to actual conditions.
[0041] Specifically, when the first indication information is the first state value, for example, SSM=01, the word corresponding to the first indication information is the first word of the fault data block. The first word will carry the total number of transmitted words used to characterize the number of words included in the fault data block, and will also carry the above-mentioned transmission auxiliary information or fault information to be transmitted. The transmission auxiliary information is used to assist transmission, and the fault information to be transmitted can also be directly transmitted through the first word.
[0042] In some embodiments, the fault transmission protocol defines that the maximum number of total transmission words is 255, that is, the maximum number of words in the fault data block does not exceed 255.
[0043] Optionally, the total number of transmission words may be determined according to the size and type of the fault information to be transmitted.
[0044] Optionally, when the first indication information is the first state value, the data structure of the word corresponding to the first indication information is as follows: 1 to 8 bits are used to represent the label number, 9 to 20 bits are used to represent the total number of transmitted words, 21 to 29 bits support filling at least one of the transmission auxiliary information and the fault information to be transmitted, 30 to 31 bits are used to represent the first indication information, and 32 bits are used to represent the parity bit.
[0045] Specifically, when the first indication information is the first state value, the word corresponding to the first indication information is also the first word. The data structure of the first word is shown in the following Table 1, for example: Table 1 Data structure of the first word
[0046] Optionally, when the first indication information is the second state value or the third state value, the word corresponding to the first indication information supports filling in the fault information to be transmitted.
[0047] Specifically, when the first indication information is the second state value or the third state value, for example, when SSM=00 or SSM=10, the words corresponding to the first indication information can be used to fill in the fault information to be transmitted.
[0048] Optionally, when the first indication information is the second state value or the third state value, the data structure of the word corresponding to the first indication information is as follows: Bits 1 to 8 are used to represent the tag number, bits 9 to 29 support filling the fault information to be transmitted, bits 30 to 31 are used to represent the first indication information, and bit 32 is used to represent the parity bit.
[0049] Specifically, when the first indication information is the second state value, the word corresponding to the first indication information is used to transmit valid data, and can be used as a failure word to transmit the fault information to be transmitted. The data structure of the failure word is shown in Table 2 below: Table 2 Data structure of invalid word
[0050] When the first indication information is the third state value, the word corresponding to the first indication information is the word for ending transmission. The data structure of the word for ending transmission is shown in the following Table 3, for example: Table 3 Data structure of the word that ends the transfer
[0051] The following table 4 illustrates the data structure of the fault data block: Table 4 Data structure of fault data block
[0052] In some embodiments, the user can set the content filled in the defined information data block according to his own needs, the fault information, configuration information, verification information, blank, spare, etc. that need to be transmitted, and store all the data block contents defined in the words of all label numbers (for example, label 356) in the memory according to the given data source. Theoretically, the number of words of the label number (for example, label 356) can be set to infinity, but usually the user needs to set the words of the label number according to the required reporting, monitoring, device transmission rate, required transmission rate, total number of tested data or memory usage.
[0053] Optionally, when the first indication information is the second state value or the third state value, the word corresponding to the first indication information supports free bits, or supports filling with reserved or user-defined characters; the reserved or user-defined characters are used to characterize that the word corresponding to the first indication information supports free bits.
[0054] Specifically, when the first indication information is the second state value or the third state value, for example, SSM=00 or SSM=10, the word corresponding to the first indication information, that is, any middle word or the data block in the last word can be a spare space, for example, to fill in spare, reserved or user-defined characters.
[0055] Optionally, the fault data block may support at least one of the following: 1) One word of the fault data block supports filling one or more failure information; 2) One word of the fault data block supports filling one or more groups of failure information; 3) One word of the fault data block supports filling one or more types of failure information; 4) The fault information to be transmitted filled in one word of the fault data block is used as a failure information; 5) The fault information to be transmitted filled in the multiple words of the fault data block together constitute a failure information.
[0056] In some embodiments, the failure information includes, for example, fault information, fault code, status information or status code, etc.
[0057] Specifically, the information data block defined by bit 29--9 of each failure word (single word) can define or fill one or more, one or more groups, one or more types of failure information, or one failure word or multiple failure words can represent one failure information.
[0058] With reference to the data structure of the fault data block in Table 4 above, the following example illustrates a method for transmitting vehicle fault information provided by an embodiment of the present invention.
[0059] The fault data block in the embodiment of the present invention can be understood as a transmission list composed of multiple words with the same label number, and specific bits of each word are filled with block information to be transmitted, such as fault or status information.
[0060] Since the embodiment of the present invention is based on the fault transmission protocol, the indication of the fault or status information can be defined at any position in the fault data block, and the information in the fault data block is based on the fault transmission protocol or user-defined, which provides users with a wider degree of freedom. For the user, the user must specify and define a series of specific bit tags in the fault data block to be checked and read, which is convenient for the receiving system to parse the received fault data block, and also convenient for software developers to correctly define the data length and information content under different words.
[0061] In the fault transmission protocol, the value of SSM is a prerequisite for information loading and interpretation. This protocol stipulates that SSM is used to identify the start and stop instructions of data block information transmission.
[0062] Specifically, the number of words is defined starting from bit 9 of the first word in the fault data block. Specifically, bits 20--9 of the first word in the fault data block are used to define the number of recorded words, which represents the total number of all words transmitted in the fault data block to the end, and is named the total number of transmitted words; bits 29--21 can be defined as description, classification, test annotation, configuration or other information according to the system data transmission situation.
[0063] In some embodiments, the number of bits to be occupied can be determined based on the size of the number of words, such as setting [number of words to be sent, # of Words 20--9 (number of words to be sent)]. The size of the number of words determines how many words with the same label number are included in each fault data block. The words in each fault data block are used to define a complete set of fault or status information. The total number of transmitted words in the first word is determined by the size (length) and type of the fault or status information that the user needs to transmit.
[0064] It should be noted that in the entire fault transmission protocol, no record sequence words are defined, and data blocks in all words can be included in a series of transmission lists to represent a fault or information code.
[0065] In some embodiments, the information data block defined by bit 29--9 of each failure word (single word) can define or fill one or more, one or more groups, one or more types of failure information, or one failure word or multiple failure words can represent one failure information.
[0066] The second word of the fault data block is used to load and transmit the first failure or information data; the third word of the fault data block is used to load and transmit the second failure or information data; and so on, the seventh (X+1) word of the fault data block is used to load and transmit the sixth (X=third from the last) failure or information data; the transmitted failure information ends when SSM=10 and the eighth (X+2) word is transmitted, for a total of X+1 sets of failure or information data.
[0067] The ninth (X+3) word of the fault data block defines SSM=11 as the control bit information defined and used by the user.
[0068] For the parsing on the receiving side, when the word corresponding to SSM=11 is parsed, this word can be discarded and other words can be parsed. The user can also choose not to use the custom word of SSM=11.
[0069] In some embodiments, bits 29--9 of a partial word in the fault data block are supported to be empty.
[0070] In some embodiments, the fault data block may be encrypted or the fault information filled in the fault data block may be encrypted and then transmitted, received by the receiving side, and decrypted or parsed according to the data encryption characteristics.
[0071] In some embodiments, 8 labels can usually be set, that is, there are 8 words in the fault data block. When the user does not use the custom SSM=11-bit word, there are a total of 7 groups of failure or information data words.
[0072] In some embodiments, any word in the middle of the fault data block or the information data block defined in the last word can be a SPARE space to fill with idle, reserved or user-defined characters. The actual number of words required (total number of transmitted words) is determined by the user based on the actual amount of fault or status information (such as the length of the information string) and different types. The end word of the fault data block is when the total number of transmitted words decreases to 1, that is, the word corresponding to the defined SSM=10 or the user-defined SSM=11, and the last word of the fault data block is the sending end word.
[0073] In some embodiments, a word of a faulty data block may contain one or more instruction sequences.
[0074] The following is a description of a vehicle fault information transmission device provided by the present invention. The vehicle fault information transmission device described below and the vehicle fault information transmission method described above can be referenced to each other.
[0075] Figure 2 FIG. 1 is a schematic diagram of the structure of the device for transmitting vehicle fault information provided by the present invention. Figure 2 As shown, the transmission device 200 of vehicle fault information includes: A selection module 201 is used to select at least one target word that supports filling the fault information to be transmitted from at least one word of the fault data block defined by the fault transmission protocol based on the state value of the first indication information corresponding to each of the words, the state value of the first indication information is used to indicate the type of information supported by the word, and the first indication information is defined by the fault transmission protocol; A filling module 202, configured to fill the fault information to be transmitted into the at least one target word; The transmission module 203 is configured to generate and send a faulty data block based on the at least one target word after padding, wherein the faulty data block includes the at least one target word after padding.
[0076] In the transmission device of vehicle fault information provided by an embodiment of the present invention, words are used as basic units. The selection module first selects at least one target word that supports filling in the fault information to be transmitted in at least one word based on the status value of the first indication information corresponding to each word according to the definition of the fault transmission protocol. The filling module then fills the corresponding fault information to be transmitted into the at least one target word for transmission. Specifically, the transmission module generates and sends a fault data block based on the at least one filled target word to realize the transmission of the fault information. The user can set the information type supported by each word of the fault data block according to the specific situation, and which words are filled to transmit the fault information, thereby realizing support for flexible and customizable fault information transmission.
[0077] Optionally, in the fault transmission protocol, the first indication information satisfies at least one of the following: 1) The first indication information is a first state value, which is used to indicate that the word corresponding to the first indication information corresponds to a start instruction for transmitting and parsing the fault data block; 2) The first indication information is a second state value, which is used to indicate that the word corresponding to the first indication information supports filling the fault information to be transmitted; 3) The first indication information is a third state value, which is used to indicate that the word corresponding to the first indication information supports filling the fault information to be transmitted, and corresponds to an end instruction of transmitting and parsing the fault data block; 4) The first indication information is a fourth state value, which is used to indicate that the word corresponding to the first indication information supports filling control bit information that is customized and used by the user.
[0078] Optionally, when the first indication information is the first state value, the word corresponding to the first indication information supports filling in any one of the following items: a. Total number of transmitted words and transmission auxiliary information; b. The total number of transmitted words and the fault information to be transmitted; The total number of transmitted words is used to represent the number of words included in the faulty data block.
[0079] Optionally, the total number of transmitted words is determined according to the size and type of the fault information to be transmitted.
[0080] Optionally, when the first indication information is the first state value, the data structure of the word corresponding to the first indication information is as follows: 1 to 8 bits are used to represent the label number, 9 to 20 bits are used to represent the total number of transmitted words, 21 to 29 bits support filling at least one of the transmission auxiliary information and the fault information to be transmitted, 30 to 31 bits are used to represent the first indication information, and 32 bits are used to represent the parity bit.
[0081] Optionally, when the first indication information is the second state value or the third state value, the data structure of the word corresponding to the first indication information is as follows: Bits 1 to 8 are used to represent the tag number, bits 9 to 29 support filling the fault information to be transmitted, bits 30 to 31 are used to represent the first indication information, and bit 32 is used to represent the parity bit.
[0082] Optionally, when the first indication information is the second state value or the third state value, the word corresponding to the first indication information supports free bits, or supports filling with reserved or user-defined characters; the reserved or user-defined characters are used to characterize that the word corresponding to the first indication information supports free bits.
[0083] Optionally, the fault data block supports at least one of the following: 1) One word of the fault data block supports filling one or more failure information; 2) One word of the fault data block supports filling one or more groups of failure information; 3) One word of the fault data block supports filling one or more types of failure information; 4) The fault information to be transmitted filled in one word of the fault data block is used as a failure information; 5) The fault information to be transmitted filled in the multiple words of the fault data block together constitute a failure information.
[0084] Figure 3 is a schematic diagram of the structure of the electronic device provided by the present invention, such as Figure 3 As shown, the electronic device may include: a processor 310, a communications interface 320, a memory 330 and a communication bus 340, wherein the processor 310, the communications interface 320 and the memory 330 communicate with each other through the communication bus 340. The processor 310 may call the logic instructions in the memory 330 to execute the method for transmitting vehicle fault information, the method comprising: In at least one word of a fault data block defined by a fault transmission protocol, based on a status value of first indication information corresponding to each of the words, selecting at least one target word that supports filling with fault information to be transmitted, wherein the status value of the first indication information is used to indicate a type of information that the word supports filling, and the first indication information is defined by the fault transmission protocol; Filling the to-be-transmitted fault information into the at least one target word; Based on the at least one filled target word, a faulty data block is generated and sent, wherein the faulty data block includes the at least one filled target word.
[0085] In addition, the logic instructions in the above-mentioned memory 330 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on such an understanding, the technical solution of the present invention, or the part that contributes to the relevant technology or the part of the technical solution, can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.
[0086] On the other hand, the present invention further provides a computer program product, the computer program product includes a computer program, the computer program can be stored in a non-transitory computer-readable storage medium, when the computer program is executed by a processor, the computer can execute the method for transmitting vehicle fault information provided by the above methods, the method comprising: In at least one word of a fault data block defined by a fault transmission protocol, based on a status value of first indication information corresponding to each of the words, selecting at least one target word that supports filling with fault information to be transmitted, wherein the status value of the first indication information is used to indicate a type of information that the word supports filling, and the first indication information is defined by the fault transmission protocol; Filling the to-be-transmitted fault information into the at least one target word; Based on the at least one filled target word, a faulty data block is generated and sent, wherein the faulty data block includes the at least one filled target word.
[0087] In another aspect, the present invention further provides a non-transitory computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the method for transmitting vehicle fault information provided by the above methods is implemented, and the method includes: In at least one word of a fault data block defined by a fault transmission protocol, based on a status value of first indication information corresponding to each of the words, selecting at least one target word that supports filling with fault information to be transmitted, wherein the status value of the first indication information is used to indicate a type of information that the word supports filling, and the first indication information is defined by the fault transmission protocol; Filling the to-be-transmitted fault information into the at least one target word; Based on the at least one filled target word, a faulty data block is generated and sent, wherein the faulty data block includes the at least one filled target word.
[0088] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.
[0089] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the relevant technology can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiment.
[0090] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A method for transmitting vehicle fault information, characterized in that: include: In at least one word of a fault data block defined by a fault transmission protocol, based on a status value of first indication information corresponding to each of the words, selecting at least one target word that supports filling with fault information to be transmitted, wherein the status value of the first indication information is used to indicate a type of information that the word supports filling, and the first indication information is defined by the fault transmission protocol; Filling the to-be-transmitted fault information into the at least one target word; Based on the at least one filled target word, a faulty data block is generated and sent, wherein the faulty data block includes the at least one filled target word.
2. The method for transmitting vehicle fault information according to claim 1, characterized in that: In the fault transmission protocol, the first indication information satisfies at least one of the following: The first indication information is a first state value, which is used to indicate that the word corresponding to the first indication information corresponds to a start instruction for transmitting and parsing the fault data block; The first indication information is a second state value, which is used to indicate that the word corresponding to the first indication information supports filling the fault information to be transmitted; The first indication information is a third state value, which is used to indicate that the word corresponding to the first indication information supports filling the fault information to be transmitted, and corresponds to an end instruction of transmitting and parsing the fault data block; The first indication information is a fourth state value, which is used to indicate that the word corresponding to the first indication information supports filling control bit information that is customized and used by a user.
3. The method for transmitting vehicle fault information according to claim 2, characterized in that: When the first indication information is the first state value, the word corresponding to the first indication information supports filling in any one of the following items: Total number of words transmitted and transmission auxiliary information; The total number of transmitted words and the fault information to be transmitted; The total number of transmitted words is used to represent the number of words included in the faulty data block.
4. The method for transmitting vehicle fault information according to claim 3, characterized in that: The total number of transmitted words is determined according to the size and type of the fault information to be transmitted.
5. The method for transmitting vehicle fault information according to claim 3 or 4, characterized in that: When the first indication information is the first state value, the data structure of the word corresponding to the first indication information is as follows: 1 to 8 bits are used to represent the label number, 9 to 20 bits are used to represent the total number of transmitted words, 21 to 29 bits support filling at least one of the transmission auxiliary information and the fault information to be transmitted, 30 to 31 bits are used to represent the first indication information, and 32 bits are used to represent the parity bit.
6. The method for transmitting vehicle fault information according to claim 2, characterized in that: When the first indication information is the second state value or the third state value, the data structure of the word corresponding to the first indication information is as follows: Bits 1 to 8 are used to represent the tag number, bits 9 to 29 support filling the fault information to be transmitted, bits 30 to 31 are used to represent the first indication information, and bit 32 is used to represent the parity bit.
7. The method for transmitting vehicle fault information according to claim 2 or 6, characterized in that: When the first indication information is the second state value or the third state value, the word corresponding to the first indication information supports free bits, or supports filling with reserved or user-defined characters; the reserved or user-defined characters are used to represent that the word corresponding to the first indication information supports free bits.
8. The method for transmitting vehicle fault information according to claim 1, characterized in that: The fault data block supports at least one of the following: One word of the fault data block supports filling one or more failure information; One word of the fault data block supports filling one or more groups of failure information; One word of the fault data block supports filling one or more types of failure information; The fault information to be transmitted filled in one word of the fault data block is used as a failure information; The fault information to be transmitted filled in the multiple words of the fault data block together constitute a piece of failure information.
9. A device for transmitting vehicle fault information, characterized in that: include: A selection module, configured to select, from at least one word of a fault data block defined by a fault transmission protocol, at least one target word that supports filling the fault information to be transmitted based on a status value of first indication information corresponding to each of the words, wherein the status value of the first indication information is used to indicate a type of information that the word supports filling, and the first indication information is defined by the fault transmission protocol; A filling module, used for filling the fault information to be transmitted into the at least one target word; The transmission module is used to generate and send a fault data block based on the at least one filled target word, wherein the fault data block includes the at least one filled target word.
10. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the program, the method for transmitting vehicle fault information as described in any one of claims 1 to 8 is implemented.
