Data processing method and device for carrying tool

By determining the processing strategy based on data transmission status indication information and word count at the data receiving end, the fault data and test data of the vehicle are processed, solving the processing problem at the data receiving end and improving integrity and efficiency.

CN119030668AActive Publication Date: 2024-11-26SHENZHEN QINGWEI AVIATION TECHNOLOGY CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202411269733.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-11
Publication Date
2024-11-26
Estimated Expiration
2044-09-11

AI Technical Summary

Technical Problem

In the existing technology, how to effectively process fault data and test data received from the vehicle by the data receiving end has not been effectively solved.

Method used

By receiving the data to be processed sent by the carrier, the processing strategy for each word is determined based on the data transmission status indication information and the number of words in the data to be processed, and each data block to be processed is processed accordingly, including operations such as recording, storing, parsing or discarding.

Benefits of technology

It enables the data receiving end to fully process the data to be processed, ensuring the integrity of data processing and improving data processing efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119030668A_ABST
    Figure CN119030668A_ABST
Patent Text Reader

Abstract

The invention provides a data processing method and device for a carrying tool, and relates to the technical field of data processing.The method comprises the steps that to-be-processed data sent by the carrying tool is received, the to-be-processed data comprises at least one word, and each word comprises a to-be-processed data block; for each word in the to-be-processed data, determining a processing strategy corresponding to a to-be-processed data block in the word based on at least one of the word number of the to-be-processed data and data transmission state indication information carried in the word; wherein the data transmission state indication information represents the data transmission state corresponding to the word in the to-be-processed data transmission process; the word number is used for representing the total number of words in the to-be-processed data; and processing each to-be-processed data block based on the processing strategy corresponding to the to-be-processed data block in each word. Through the method, different processing strategies are utilized to process different to-be-processed data blocks, the integrity of data processing is ensured, and the data processing efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of data processing technology, and in particular to a data processing method and device for a vehicle. Background Art

[0002] During the operation or testing of vehicles such as airplanes, cars, and trains, it is necessary to send key information such as fault data and test data to a data receiving end, such as a diagnostic recording device, which will diagnose and record the fault data or test data of the vehicle.

[0003] In the related art, there is a data transmission protocol that supports user customization and is highly flexible, and the protocol can be applied to data transmission between a vehicle and a data receiving end.

[0004] However, how the data receiving end processes the received data is a problem that needs to be solved urgently. Summary of the invention

[0005] In view of the problems existing in the prior art, an embodiment of the present invention provides a data processing method and device for a vehicle.

[0006] The present invention provides a data processing method for a vehicle, which is applied to a data receiving end in communication connection with the vehicle, and the method comprises: receiving data to be processed sent by the vehicle, wherein the data to be processed includes at least one word, and each word includes a data block to be processed; the data block to be processed includes fault data and / or test data of the vehicle; For each word in the data to be processed, based on the number of words in the data to be processed and at least one of the data transmission status indication information carried in the word, determine the processing strategy corresponding to the data block to be processed in the word; wherein the data transmission status indication information represents the data transmission status corresponding to the word during the data transmission to be processed; the number of words is used to represent the total number of words in the data to be processed; Based on the processing strategy corresponding to the data block to be processed in each word, each data block to be processed is processed.

[0007] Optionally, the determining a processing strategy corresponding to the to-be-processed data block in the word includes: Determine whether the data transmission status indication information is a first value; the first value indicates that the data transmission status corresponding to the word is to start transmission; When the data transmission status indication information is the first value, determining that the processing strategy is the first strategy; The first strategy instructs the data receiving end to perform the following operations: resetting data, recording and storing the to-be-processed data blocks in the words, determining the number of words of the to-be-processed data, and reducing the number of words by 1.

[0008] Optionally, the determining a processing strategy corresponding to the to-be-processed data block in the word further includes: In the case where the data transmission status indication information is not the first value, determining whether the data transmission status indication information is a second value, and whether the word number is 1 at the current moment; the second value indicates that the data transmission status corresponding to the word is end of transmission; When the data transmission status indication information is the second value and the word count at the current moment is 1, determining that the processing strategy is the second strategy; The second strategy instructs the data receiving end to perform the following operations: record and store the data blocks to be processed and parse the currently stored data blocks to be processed.

[0009] Optionally, the determining a processing strategy corresponding to the to-be-processed data block in the word further includes: When the data transmission status indication information is not the second value and / or the number of words at the current moment is not 1, determine whether the data transmission status indication information is a third value and whether the number of words at the current moment is greater than 1; the third value indicates that the data transmission status corresponding to the word is transmitting; When the data transmission status indication information is the third value and the number of words at the current moment is greater than 1, determining that the processing strategy is the third strategy; The third strategy instructs the data receiving end to perform the following operations: subtract 1 from the word number at the current moment, and record and store the to-be-processed data block in the word at the current moment.

[0010] Optionally, the determining a processing strategy corresponding to the to-be-processed data block in the word further includes: When the data transmission status indication information is not the third value and / or the number of words at the current moment is less than or equal to 1, determine whether the data transmission status indication information is the second value and whether the number of words at the current moment is less than 1; When the data transmission status indication information is the second value and the number of words at the current moment is less than 1, determining that the processing strategy is the fourth strategy; The fourth strategy instructs the data receiving end to perform the following operations: resetting data and resetting word count.

[0011] Optionally, before determining whether the data transmission status indication information is the first value, the method further includes: Determine whether the data transmission status indication information is a fourth value, wherein the fourth value indicates that the data block to be processed is a control bit data block, and the control bit data block supports user customization and use; When the data transmission status indication information is the fourth value, the to-be-processed data block is discarded.

[0012] Optionally, the method further comprises: For the data to be processed, all the data blocks to be processed that have been stored at the data receiving end are parsed.

[0013] Optionally, each word further includes a tag number, and the tag number is used to indicate the data type of the to-be-processed data block corresponding to the word; After receiving the data to be processed, the method further includes: When the tag number corresponding to the current data block to be processed is different from the tag number corresponding to the previous data block to be processed, determining to trigger a target event; the target event indicates that the data to be processed is changed; The target event is recorded.

[0014] The present invention also provides a data processing device for a vehicle, which is applied to a data receiving end in communication connection with the vehicle, and the device comprises: A receiving module, used for receiving data to be processed sent by the vehicle, wherein the data to be processed includes at least one word, and each word includes a data block to be processed; the data block to be processed includes fault data and / or test data of the vehicle; A first determination module is used to determine, for each word in the data to be processed, a processing strategy corresponding to the data block to be processed in the word based on the number of words in the data to be processed and at least one of the data transmission status indication information carried in the word; A processing module, configured to process each of the data blocks to be processed based on the processing strategy corresponding to the data block to be processed in each word; The data transmission status indication information represents the data transmission status corresponding to the word during the data transmission to be processed; and the word number is used to represent the total number of words in the data to be processed.

[0015] 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, it implements any of the above-described data processing methods for a vehicle.

[0016] The present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements any of the above-described data processing methods for a vehicle.

[0017] The present invention also provides a computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the computer program implements any of the above-mentioned data processing methods for a vehicle.

[0018] The data processing method and device for a vehicle provided by the present invention receive data to be processed, and for each word in the data to be processed, determine the processing strategy corresponding to the data block to be processed in the word based on at least one of the data transmission status indication information carried in the word and the number of words of the data to be processed; then, based on the processing strategy corresponding to the data block to be processed in each word, each data block to be processed is processed; through the above method, a data processing strategy is provided for a data receiving end, so that the data receiving end can completely process the data to be processed, thereby ensuring the integrity of data processing; and, while not omitting data processing, different processing strategies are used to process different data blocks to be processed, thereby improving data processing efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. 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.

[0020] Figure 1 It is one of the flow charts of the data processing method for a vehicle provided by the present invention; Figure 2 This is the second flow chart of the data processing method for a vehicle provided by the present invention; Figure 3 It is a logical schematic diagram of a data processing method for a vehicle provided by the present invention; Figure 4 It is a structural schematic diagram of a data processing device for a vehicle provided by the present invention; Figure 5 It is a structural schematic diagram of the electronic device provided by the present invention. DETAILED DESCRIPTION

[0021] 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.

[0022] In order to facilitate a clearer understanding of the embodiments of the present application, some relevant knowledge is first introduced as follows.

[0023] During the operation or testing of vehicles such as airplanes, cars, and trains, it is necessary to send key information such as fault data and test data to a data receiving end, such as a diagnostic recording device, which will diagnose and record the fault data or test data of the vehicle. In the related technology, there is a data transmission protocol that supports user customization and high flexibility, namely the Customizable Data Block Protocol (CDBP), which can be applied to data transmission between vehicles and data receiving ends. In actual applications, CDBP is a customizable data block protocol used to transmit data such as fault reports, fault detection, alarm information, and system test information between vehicles and data receiving ends.

[0024] In actual applications, the data sending end is the control device of the vehicle, such as an embedded system; the data receiving end is the maintenance equipment, and the equipment maintenance software in the maintenance equipment (such as information management system, maintenance system, diagnosis and recording application of monitoring or alarm system, etc.) can check and identify the data sent by the control device.

[0025] In the embodiment of the present invention, the data block structure under the CDBP protocol can be represented by the following Table 1.

[0026] Table 1

[0027] In Table 1 above, the label number indicates the type of data. For example, label number = 381 indicates that the transmitted data is fault information, and label number = 123 indicates that the transmitted data is alarm information. The selection of label number can be user-defined. The same label number constitutes a data transmission list of the same data type, and the specific bits of each label are filled with the data block to be transmitted.

[0028] The Sign Status Matrix (SSM) is a data transmission status indication information. The SSM is used to identify the transmission status of a data block, such as start or stop.

[0029] For example, SSM=01 indicates the start of data transmission, SSM=00 indicates data transmission in progress, SSM=10 indicates the end of data transmission, and SSM=11 is defined as the control bit information defined and used by the user. It should be noted that the "total number of transmitted words" is defined starting from Bit 9 in the first label number. The "total number of transmitted words" refers to the total number of data blocks that need to be transmitted.

[0030] SSM is used as an example to illustrate the data transmission status indication information. Of course, other methods can also be selected as data transmission status indication information to determine the data transmission status. For example, the data transmission status indication information can be a preset character segment: "CDBPBlockStart" indicates the start of data transmission, and "CDBPBlockEnd" indicates the end of data transmission.

[0031] In summary, after the data sender sends data to the data receiver through the CDBP transmission protocol, how the data receiver processes the received data (for example, whether to record, discard or parse the received data) is a problem that needs to be solved urgently.

[0032] Combine the following Figures 1 to 3 The data processing method for a vehicle provided by the present invention is described in detail. Figure 1 This is one of the flow charts of the data processing method for a vehicle provided by the present invention, see Figure 1 As shown, the method is applied to a data receiving end in communication with a vehicle, and includes steps 101 to 103, wherein: Step 101: receiving data to be processed sent by a vehicle, wherein the data to be processed includes at least one word, and each word includes a data block to be processed; the data block to be processed includes fault data and / or test data of the vehicle.

[0033] In an embodiment of the present invention, after a data receiving end (e.g., a diagnostic recording device) receives data to be processed sent by a data sending end (e.g., a control device of a vehicle), it is necessary to determine the total number of words to be processed in the received data to be processed. The number of words of the data to be processed is defined at the 9th to 20th bit positions of the first word in the data to be processed.

[0034] In practical applications, a word includes a data block to be processed, which may be fault information of a vehicle, test information, etc. The data receiving end needs to process the information, for example, record, store, and analyze it.

[0035] Step 102: for each word in the data to be processed, determine the processing strategy corresponding to the data block to be processed in the word based on the number of words in the data to be processed and at least one item of data transmission status indication information carried in the word; wherein the data transmission status indication information represents the data transmission status corresponding to the word during the data transmission to be processed; and the number of words is used to represent the total number of words in the data to be processed.

[0036] In the embodiment of the present invention, the data transmission status indication information is SSM. Each word carries SSM to represent the data transmission status of the word during the data transmission process. Different SSM values ​​correspond to different data transmission statuses of the corresponding words.

[0037] For example, SSM=01 indicates that during the transmission of the data to be processed, the data transmission status of the word is "starting transmission"; SSM=00 indicates that valid data block information is being transmitted, which can also be understood as the data transmission status of the word is "transmitting"; SSM=10 indicates that the data transmission status of the word is "ending transmission".

[0038] Optionally, the word number of the data to be processed is obtained from the first word of the data to be processed.

[0039] For each word in the data to be processed, a processing strategy for the word may be determined based on the SSM value of the word and the total number of words in the data to be processed.

[0040] Step 103: Process each of the data blocks to be processed based on the processing strategy corresponding to the data block to be processed in each word.

[0041] In the embodiment of the present invention, for different words, the data receiving end uses different processing strategies to process the to-be-processed data block corresponding to the word, for example, recording, storing, parsing or discarding the to-be-processed data block.

[0042] The data transmission method for a vehicle provided by the present invention receives data to be processed, and for each word in the data to be processed, determines a processing strategy corresponding to a data block to be processed in the word based on at least one of data transmission status indication information carried in the word and the number of words in the data to be processed; then, based on the processing strategy corresponding to the data block to be processed in each word, each data block to be processed is processed; through the above method, a data processing strategy is provided for a data receiving end, so that the data receiving end can completely process the data to be processed, thereby ensuring the integrity of data processing; and, while not omitting data processing, different processing strategies are used to process different data blocks to be processed, thereby improving data processing efficiency.

[0043] Optionally, each word further includes a tag number, and the tag number is used to indicate the data type of the to-be-processed data block corresponding to the word; After receiving the data to be processed, the data receiving end also needs to perform the following steps: Step 1), when the tag number corresponding to the current data block to be processed is different from the tag number corresponding to the previous data block to be processed, determining a triggering target event; the target event indicates that the data to be processed has changed; Step 2), record the target event.

[0044] In the embodiment of the present invention, the data blocks to be processed corresponding to each word in the data to be processed are all of the same type of data, and all have the same label number (label number). For example, label=421 means that the data blocks to be processed corresponding to each word in the data to be processed are "fault information type", and label=422 means that the data blocks to be processed corresponding to each word in the data to be processed are "test information type".

[0045] After receiving the data to be processed, if the label number of the data block currently to be processed is different from the label number of the last processed data block, it means that the data to be processed has changed, and the event is recorded.

[0046] For example, the label number of the current data block to be processed is 421, and the label number of the previous data block is 422, which indicates that the data to be processed changes from test information type data to fault information type data.

[0047] Optionally, based on at least one of the data transmission status indication information carried in the word and the number of words of the data to be processed, determining the processing strategy corresponding to the data block to be processed in the word can be specifically implemented in the following manner: Step 1), determining whether the data transmission status indication information is a first value; the first value indicates that the data transmission status corresponding to the word is starting transmission; Step 2), when the data transmission status indication information is the first value, determining the processing strategy to be the first strategy; The first strategy instructs the data receiving end to perform the following operations: resetting data, recording and storing the to-be-processed data blocks in the words, determining the number of words of the to-be-processed data, and reducing the number of words by 1.

[0048] In the embodiment of the present invention, for each word in the data to be processed, the data receiving end needs to determine whether the data transmission status indication information corresponding to the word is the first value, that is, determine whether the value of the word SSM is equal to 01.

[0049] If SSM=01, it indicates that the transmission and analysis of valid data starts at SSM=01, that is, the data transmission status of this word is "start transmission" during the data transmission process. The data structure of this word is shown in Table 2: Table 2 Data structure of the start transmission word

[0050] When SSM=01, the processing strategy is determined to be the first strategy. At this time, the data receiving end performs the following operations on the valid data block at the 21-29 bit position (that is, the data block to be processed mentioned above): 1) Start resetting data; 2) Record and store the valid data block at bit position 21-29; 3) Reduce the total number of transmitted words at bit positions 9-20 by 1.

[0051] Specifically, when SSM=01, the data receiving end starts to reset the data and stores the data block to be processed corresponding to the word. Since the data receiving end has processed the word at this time, the total number of transmitted words needs to be minus 1. For example, if the total number of transmitted words is 10, 10-1=9, indicating that there are still 9 words in the data to be processed that have not been processed.

[0052] Optionally, before determining whether the data transmission status indication information is the first value, the data receiving end further needs to execute the following determination logic: Step 1), determining whether the data transmission status indication information is a fourth value, wherein the fourth value indicates that the data block to be processed is a control bit data block, and the control bit data block supports user customization and use; Step 2): when the data transmission status indication information is the fourth value, discard the data block to be processed.

[0053] In the embodiment of the present invention, for each word in the data to be processed, it is determined whether the data transmission status indication information is the fourth value, that is, whether SSM is equal to 11. SSM=11 is the control bit information defined and used by the user. The data structure of the word is shown in Table 3: Table 3 Data structure of control bit information word

[0054] Normally, the valid data block actually needed by the user (i.e. the to-be-processed data block mentioned above) is not stored in the control bit data block. Therefore, when SSM=11, the data receiving end can discard the data block.

[0055] Optionally, when the data transmission status indication information is not the first value, the data receiving end needs to execute the following judgment logic, including: Step 1), determine whether the data transmission status indication information is a second value, and whether the word number at the current moment is 1; the second value indicates that the data transmission status corresponding to the word is to end transmission; Step 2), when the data transmission status indication information is the second value and the number of words at the current moment is 1, determining that the processing strategy is the second strategy; The second strategy instructs the data receiving end to perform the following operations: record and store the data blocks to be processed and parse the currently stored data blocks to be processed.

[0056] In an embodiment of the present invention, for each word in the data to be processed, if the SSM corresponding to the word is not 01, it is determined whether the SSM is equal to the second value (that is, whether the SSM is equal to 10), and whether the number of unprocessed words recorded when the data receiving end processes the word at the current moment is equal to 1.

[0057] If SSM=10, it indicates that the transmission and analysis of valid data ends at "SSM=10". Since the data transmission status of this word is "end of transmission" during the data transmission process, this word is the last unprocessed word in the entire data processing list, so the data receiving end needs to confirm that the number of unprocessed words recorded = 1 (recorded as the total number of words WordCount=1). The data structure of this word is shown in Table 4: Table 4 Data structure of the end transmission word

[0058] When SSM=10 and WordCount=1, the processing strategy is determined to be the second strategy. At this time, the data receiving end performs the following operations on the valid data block at the 21-29 bit position (that is, the data block to be processed mentioned above): 1) Recording and storing the data blocks to be processed; 2) Parse the currently stored data blocks to be processed.

[0059] Specifically, in the above case, the data receiving end triggers the DATA_EVENT event, that is, the data receiving end can record and store the to-be-processed data block of the word while parsing it.

[0060] Optionally, when the SSM≠10, and / or the WordCount≠1 at the current moment, the data receiving end also needs to execute the following judgment logic, including: Step 1), determine whether the data transmission status indication information is a third value, and whether the number of words at the current moment is greater than 1; the third value indicates that the data transmission status corresponding to the word is transmitting; Step 2), when the data transmission status indication information is the third value and the number of words at the current moment is greater than 1, determining that the processing strategy is the third strategy; The third strategy instructs the data receiving end to perform the following operations: subtract 1 from the word number at the current moment, and record and store the to-be-processed data block in the word at the current moment.

[0061] In an embodiment of the present invention, for each word in the data to be processed, if the SSM corresponding to the word is ≠10, ​​and / or WordCount is ≠1 ​​at the current moment, it is determined whether the SSM is equal to a third value (i.e., whether the SSM is equal to 00), and whether the number of unprocessed words recorded by the data receiving end when processing the word at the current moment is greater than 1 (i.e., whether WordCount is greater than 1).

[0062] If SSM=00, it indicates that during the data transmission process, the valid data block corresponding to the word is being transmitted. The data structure of this word is shown in Table 5: Table 5 Data structure of the word being transmitted

[0063] When SSM=00 and WordCount>1, the processing strategy is determined to be the third strategy. At this time, the data receiving end performs the following operations for the valid data block at the 21-29 bit position (that is, the data block to be processed mentioned above): 1) Record and store the data block to be processed in the word at the current moment; 2) Subtract 1 from the number of words recorded at the data receiving end at the current moment.

[0064] Optionally, when the SSM≠10, and / or WordCount≤1 at the current moment, the data receiving end also needs to execute the following judgment logic, including: Step 1), determine whether the data transmission status indication information is the second value, and whether the word number is less than 1 at the current moment; Step 2), when the data transmission status indication information is the second value and the number of words at the current moment is less than 1, determining that the processing strategy is the fourth strategy; The fourth strategy instructs the data receiving end to perform the following operations: resetting data and resetting word count.

[0065] In an embodiment of the present invention, for each word in the data to be processed, if the SSM corresponding to the word is ≠00, and / or WordCount is ≤1 at the current moment, it is determined whether the SSM is equal to 10, and whether the number of unprocessed words recorded by the data receiving end when processing the word at the current moment is less than 1 (that is, whether WordCount is less than 1).

[0066] If SSM=10 and WordCount≤1, the data receiving end performs the following operations: 1) Reset data; 2) Reset the word count of the record.

[0067] Optionally, after processing the to-be-processed data block based on the fourth strategy, the data receiving end further needs to perform the following steps: Receive new data to be processed, and process the new data to be processed.

[0068] In the embodiment of the present invention, if SSM=10 and WordCount≤1, it indicates that a data transmission error may occur. At this time, the data receiving end stops processing the data to be processed and re-receives new data to be processed.

[0069] Optionally, when the data receiving end has processed all words in the data to be processed, the following operations are performed: For the data to be processed, all the data blocks to be processed that have been stored at the data receiving end are parsed.

[0070] In the embodiment of the present invention, the data receiving end stores the to-be-processed data blocks corresponding to some characters based on different processing strategies. When the data receiving end processes all characters in the to-be-processed data, it is necessary to parse all the stored data uniformly.

[0071] Figure 2 This is the second flow chart of the data processing method for a vehicle provided by the present invention, see Figure 2 As shown, the method is applied to a data receiving end in communication with a vehicle, and includes steps 201 to 216, wherein: Step 201: receiving data to be processed sent by a vehicle, wherein the data to be processed includes a plurality of words, and each word includes a data block to be processed; wherein the data block to be processed includes fault data and / or test data of the vehicle.

[0072] If the label number corresponding to the current data block to be processed is different from the label number corresponding to the previous data block to be processed, execute steps 202 - 203 ; otherwise, execute step 204 .

[0073] Step 202: Determine a trigger target event; wherein the target event represents a change in the data to be processed.

[0074] Step 203: Record the target event.

[0075] Step 204: for each word in the data to be processed, determine whether the data transmission status indication information carried in the word is a fourth value, wherein the fourth value indicates that the data block to be processed is a control bit data block, and the control bit data block supports user customization and use.

[0076] When the data transmission status indication information is the fourth value, step 205 is executed; otherwise, step 206 is executed.

[0077] Step 205: discard the data block to be processed.

[0078] Step 206: Determine whether the data transmission status indication information is a first value; wherein the first value represents that the data transmission status corresponding to the character is start transmission.

[0079] When the data transmission status indication information is the first value, execute step 207; otherwise, execute step 208.

[0080] Step 207, determine that the processing strategy is the first strategy; wherein the first strategy instructs the data receiving end to perform the following operations: reset data, record and store the data blocks to be processed in the words, determine the number of words in the data to be processed, and reduce the number of words by 1, where the number of words is used to represent the total number of words in the data to be processed.

[0081] Step 208: determine whether the data transmission status indication information is a second value, and whether the word number at the current moment is 1; wherein the second value indicates that the data transmission status corresponding to the word is end of transmission.

[0082] When the data transmission status indication information is the second value and the word number at the current moment is 1, step 209 is executed; otherwise, step 210 is executed.

[0083] Step 209: determine that the processing strategy is the second strategy; wherein the second strategy instructs the data receiving end to perform the following operations: record and store the data blocks to be processed and parse the currently stored data blocks to be processed.

[0084] Step 210: Determine whether the data transmission status indication information is a third value, and whether the number of words at the current moment is greater than 1; wherein the third value indicates that the data transmission status corresponding to the word is transmitting.

[0085] When the data transmission status indication information is the third value and the number of words at the current moment is greater than 1, execute step 211; otherwise, execute steps 212 to 214.

[0086] Step 211, determine that the processing strategy is the third strategy; wherein the third strategy instructs the data receiving end to perform the following operations: subtract 1 from the number of words at the current moment, and record and store the data block to be processed in the word at the current moment.

[0087] Step 212: Determine whether the data transmission status indication information is the second value, and whether the word count is less than 1 at the current moment.

[0088] Step 213: when the data transmission status indication information is the second value and the number of words at the current moment is less than 1, determine that the processing strategy is the fourth strategy; wherein the fourth strategy instructs the data receiving end to perform the following operations: reset data and reset the number of words.

[0089] Step 214: Receive new data to be processed and process the new data to be processed.

[0090] Step 215: Process each data block to be processed based on the processing strategy corresponding to the data block to be processed in each word.

[0091] It should be noted that, each time the data receiving end determines a processing strategy for a word, it processes the word based on the processing strategy.

[0092] Step 216: For the data to be processed, parse all the data blocks to be processed that have been stored at the data receiving end.

[0093] Figure 3 is a logical schematic diagram of the data processing method for a vehicle provided by the present invention, see Figure 3 As shown, the method is applied to a data receiving end that is connected to a vehicle for communication. The data receiving end first receives the data to be processed sent by the vehicle, and the data to be processed includes multiple words. For each word, the data receiving end needs to execute the following judgment logic: First determine if SSM=11 in the word? If so, discard the data block to be processed in the word; if not, determine whether SSM in the word is 01? If yes, reset the data, record word count -1 and data; if no, check if SSM in the word = 10? and total word count (WordCount) = 1? If yes, trigger the data event (DATA_EVENT); if no, check if SSM=00 in the word and WordCount>1? If yes, then decrement the word count and record and store the data; if no, determine if SSM=10? and WordCount<1? in the word. If so, reset the data and word counts; then trigger the return instruction to load new data to be processed; if not, trigger the DATA_EVENT event to parse the data block to be processed in the word.

[0094] The data processing device for a vehicle provided by the present invention is described below. The data processing device for a vehicle described below and the data processing method for a vehicle described above can be referenced to each other. Figure 4 is a schematic diagram of the structure of the data processing device for a vehicle provided by the present invention, such as Figure 4 As shown, the data processing device 400 for the vehicle is applied to a data receiving end connected to the vehicle for communication, and includes: a receiving module 401, a first determining module 402, and a processing module 403, wherein: The receiving module 401 is used to receive the data to be processed sent by the vehicle, wherein the data to be processed includes at least one word, and each word includes a data block to be processed; the data block to be processed includes the fault data and / or test data of the vehicle; A first determination module 402 is used to determine, for each word in the data to be processed, a processing strategy corresponding to the data block to be processed in the word based on the number of words in the data to be processed and at least one of the data transmission status indication information carried in the word; wherein the data transmission status indication information represents the data transmission status corresponding to the word during the process of the data transmission to be processed; and the number of words is used to represent the total number of words in the data to be processed; The processing module 403 is used to process each of the data blocks to be processed based on the processing strategy corresponding to the data block to be processed in each word.

[0095] The data processing device for a vehicle provided by the present invention receives data to be processed, and for each word in the data to be processed, determines a processing strategy corresponding to a data block to be processed in the word based on at least one of data transmission status indication information carried in the word and the number of words of the data to be processed; then, based on the processing strategy corresponding to the data block to be processed in each word, each data block to be processed is processed; through the above method, a data processing strategy is provided for a data receiving end, so that the data receiving end can completely process the data to be processed, thereby ensuring the integrity of data processing; and, while not omitting data processing, different processing strategies are used to process different data blocks to be processed, thereby improving data processing efficiency.

[0096] Optionally, the first determining module 402 is further configured to: Determine whether the data transmission status indication information is a first value; the first value indicates that the data transmission status corresponding to the word is to start transmission; When the data transmission status indication information is the first value, determining that the processing strategy is the first strategy; The first strategy instructs the data receiving end to perform the following operations: resetting data, recording and storing the to-be-processed data blocks in the words, determining the number of words of the to-be-processed data, and reducing the number of words by 1.

[0097] Optionally, the first determining module 402 is further configured to: In the case where the data transmission status indication information is not the first value, determining whether the data transmission status indication information is a second value, and whether the word number is 1 at the current moment; the second value indicates that the data transmission status corresponding to the word is end of transmission; When the data transmission status indication information is the second value and the word count at the current moment is 1, determining that the processing strategy is the second strategy; The second strategy instructs the data receiving end to perform the following operations: record and store the data blocks to be processed and parse the currently stored data blocks to be processed.

[0098] Optionally, the first determining module 402 is further configured to: When the data transmission status indication information is not the second value and / or the number of words at the current moment is not 1, determine whether the data transmission status indication information is a third value and whether the number of words at the current moment is greater than 1; the third value indicates that the data transmission status corresponding to the word is transmitting; When the data transmission status indication information is the third value and the number of words at the current moment is greater than 1, determining that the processing strategy is the third strategy; The third strategy instructs the data receiving end to perform the following operations: subtract 1 from the word number at the current moment, and record and store the to-be-processed data block in the word at the current moment.

[0099] Optionally, the first determining module 402 is further configured to: When the data transmission status indication information is not the third value and / or the number of words at the current moment is less than or equal to 1, determine whether the data transmission status indication information is the second value and whether the number of words at the current moment is less than 1; When the data transmission status indication information is the second value and the number of words at the current moment is less than 1, determining that the processing strategy is the fourth strategy; The fourth strategy instructs the data receiving end to perform the following operations: resetting data and resetting word count.

[0100] Optionally, the device further comprises: A judging module, used for judging whether the data transmission status indication information is a fourth value, wherein the fourth value indicates that the data block to be processed is a control bit data block, and the control bit data block supports user customization and use; A discarding module is used to discard the to-be-processed data block when the data transmission status indication information is the fourth value.

[0101] Optionally, the device further comprises: The parsing module is used to parse all the data blocks to be processed that have been stored in the data receiving end for the data to be processed.

[0102] Optionally, each word further includes a tag number, and the tag number is used to indicate the data type of the to-be-processed data block corresponding to the word; The device also includes: A second determination module is used to determine a trigger target event when the tag number corresponding to the current data block to be processed is different from the tag number corresponding to the previous data block to be processed; the target event indicates that the data to be processed has changed; The recording module is used to record the target event.

[0103] Figure 5 An example of a physical structure diagram of an electronic device is shown in FIG. Figure 5 As shown, the electronic device may include: a processor (processor) 510, a communication interface (Communications Interface) 520, a memory (memory) 530 and a communication bus 540, wherein the processor 510, the communication interface 520, and the memory 530 communicate with each other through the communication bus 540. The processor 510 can call the logic instructions in the memory 530 to execute a data processing method for a vehicle, the method comprising: receiving data to be processed sent by the vehicle, the data to be processed comprising at least one word, each word comprising a data block to be processed; the data block to be processed comprising fault data and / or test data of the vehicle; for each word in the data to be processed, based on the number of words in the data to be processed and at least one of the data transmission status indication information carried in the word, determining a processing strategy corresponding to the data block to be processed in the word; wherein the data transmission status indication information represents the data transmission status corresponding to the word during the data transmission to be processed; the number of words is used to represent the total number of words in the data to be processed; and based on the processing strategy corresponding to the data block to be processed in each word, processing each data block to be processed.

[0104] In addition, the logic instructions in the above-mentioned memory 530 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, in essence, or the part that contributes to the prior art 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 for 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, etc. Various media that can store program codes.

[0105] On the other hand, the present invention also provides a computer program product, which includes a computer program, which can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can execute the data processing method for a vehicle provided by the above-mentioned methods, the method including: receiving data to be processed sent by the vehicle, the data to be processed including at least one word, each word including a data block to be processed; the data block to be processed includes fault data and / or test data of the vehicle; for each word in the data to be processed, based on the number of words of the data to be processed and at least one of the data transmission status indication information carried in the word, determining the processing strategy corresponding to the data block to be processed in the word; wherein the data transmission status indication information represents the data transmission status corresponding to the word during the data transmission to be processed; the number of words is used to represent the total number of words in the data to be processed; based on the processing strategy corresponding to the data block to be processed in each word, processing each data block to be processed.

[0106] On the other hand, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, is implemented to execute the data processing method for a vehicle provided by the above-mentioned methods, the method comprising: receiving data to be processed sent by the vehicle, the data to be processed comprising at least one word, each word comprising a data block to be processed; the data block to be processed comprising fault data and / or test data of the vehicle; for each word in the data to be processed, based on the number of words in the data to be processed and at least one of the data transmission status indication information carried in the word, determining a processing strategy corresponding to the data block to be processed in the word; wherein the data transmission status indication information represents the data transmission status corresponding to the word during the data transmission to be processed; the number of words is used to represent the total number of words in the data to be processed; and based on the processing strategy corresponding to the data block to be processed in each word, processing each data block to be processed.

[0107] 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.

[0108] 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 prior art 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 embodiments.

[0109] 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 data processing method for a vehicle, characterized in that: Applied to a data receiving terminal in communication with a vehicle, the method comprises: receiving data to be processed sent by the vehicle, wherein the data to be processed includes at least one word, and each word includes a data block to be processed; the data block to be processed includes fault data and / or test data of the vehicle; For each word in the data to be processed, based on the number of words in the data to be processed and at least one of the data transmission status indication information carried in the word, determine the processing strategy corresponding to the data block to be processed in the word; wherein the data transmission status indication information represents the data transmission status corresponding to the word during the data transmission to be processed; the number of words is used to represent the total number of words in the data to be processed; Based on the processing strategy corresponding to the data block to be processed in each word, each data block to be processed is processed.

2. The data processing method for a vehicle according to claim 1, characterized in that: The determining of the processing strategy corresponding to the to-be-processed data block in the word includes: Determine whether the data transmission status indication information is a first value; the first value indicates that the data transmission status corresponding to the word is to start transmission; When the data transmission status indication information is the first value, determining that the processing strategy is the first strategy; The first strategy instructs the data receiving end to perform the following operations: resetting data, recording and storing the to-be-processed data blocks in the words, determining the number of words of the to-be-processed data, and reducing the number of words by 1.

3. The data processing method for a vehicle according to claim 2, characterized in that: The determining of the processing strategy corresponding to the to-be-processed data block in the word also includes: In the case where the data transmission status indication information is not the first value, determining whether the data transmission status indication information is a second value, and whether the word number is 1 at the current moment; the second value indicates that the data transmission status corresponding to the word is end of transmission; When the data transmission status indication information is the second value and the word count at the current moment is 1, determining that the processing strategy is the second strategy; The second strategy instructs the data receiving end to perform the following operations: record and store the data blocks to be processed and parse the currently stored data blocks to be processed.

4. The data processing method for a vehicle according to claim 3, characterized in that: The determining of the processing strategy corresponding to the to-be-processed data block in the word also includes: When the data transmission status indication information is not the second value and / or the number of words at the current moment is not 1, determine whether the data transmission status indication information is a third value and whether the number of words at the current moment is greater than 1; the third value indicates that the data transmission status corresponding to the word is transmitting; When the data transmission status indication information is the third value and the number of words at the current moment is greater than 1, determining that the processing strategy is the third strategy; The third strategy instructs the data receiving end to perform the following operations: subtract 1 from the word number at the current moment, and record and store the to-be-processed data block in the word at the current moment.

5. The data processing method for a vehicle according to claim 4, characterized in that: The determining of the processing strategy corresponding to the to-be-processed data block in the word also includes: When the data transmission status indication information is not the third value and / or the number of words at the current moment is less than or equal to 1, determine whether the data transmission status indication information is the second value and whether the number of words at the current moment is less than 1; When the data transmission status indication information is the second value and the number of words at the current moment is less than 1, determining that the processing strategy is the fourth strategy; The fourth strategy instructs the data receiving end to perform the following operations: resetting data and resetting word count.

6. The data processing method for a vehicle according to any one of claims 2 to 5, characterized in that: Before determining whether the data transmission status indication information is the first value, the method further includes: Determine whether the data transmission status indication information is a fourth value, wherein the fourth value indicates that the data block to be processed is a control bit data block, and the control bit data block supports user customization and use; When the data transmission status indication information is the fourth value, the to-be-processed data block is discarded.

7. The data processing method for a vehicle according to any one of claims 1 to 5, characterized in that: The method further comprises: For the data to be processed, all the data blocks to be processed that have been stored at the data receiving end are parsed.

8. The data processing method for a vehicle according to any one of claims 1 to 5, characterized in that: Each word also includes a tag number, and the tag number is used to represent the data type of the to-be-processed data block corresponding to the word; After receiving the data to be processed, the method further includes: When the tag number corresponding to the current data block to be processed is different from the tag number corresponding to the previous data block to be processed, determining to trigger a target event; the target event indicates that the data to be processed is changed; The target event is recorded.

9. A data processing device for a vehicle, characterized in that: Applicable to a data receiving end in communication with a vehicle, the device comprising: A receiving module, used for receiving data to be processed sent by the vehicle, wherein the data to be processed includes at least one word, and each word includes a data block to be processed; the data block to be processed includes fault data and / or test data of the vehicle; A first determination module is used to determine, for each word in the data to be processed, a processing strategy corresponding to the data block to be processed in the word based on the number of words in the data to be processed and at least one of the data transmission status indication information carried in the word; A processing module, configured to process each of the data blocks to be processed based on the processing strategy corresponding to the data block to be processed in each word; The data transmission status indication information represents the data transmission status corresponding to the word during the data transmission to be processed; and the word number is used to represent the total number of words in the data to be processed.

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 data processing method for a vehicle as described in any one of claims 1 to 8 is implemented.

11. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the data processing method for a vehicle as claimed in any one of claims 1 to 8 is implemented.

Citation Information

Patent Citations

  • Railway station signal device fault diagnosis and alarm system

    CN103198608A

  • Communication method and system based on serial port, and receiving terminal

    CN107294976A

  • Data detection method and device, server and readable storage medium

    CN111552635A