CN-122018840-A - Data output sequence generation method, electronic device, system and medium
Abstract
The present application relates to the field of data processing technology, and more particularly, to a method of generating a data output sequence, an electronic device, a data processing system, and a computer readable storage medium embodying the method. The method comprises the steps of receiving a current data set, wherein the current data set comprises at least one data item, each data item has a unique identifier, obtaining a history mapping relation, the history mapping relation indicates the corresponding relation between the identifiers of the data items and the allocated output positions of the data items in the previous output period, allocating the output positions of the data items in the current data set based on the history mapping relation to form a current output sequence, wherein the data items with the identifiers in the history mapping relation are allocated to the output positions indicated by the history mapping relation, and updating the history mapping relation according to the current output sequence for use in the next output period.
Inventors
- CUI YAN
Assignees
- 博世汽车部件(苏州)有限公司
Dates
- Publication Date
- 20260512
- Application Date
- 20260206
Claims (15)
- 1. A method of generating a data output sequence, comprising: Receiving a current data set, the current data set comprising at least one data entry, wherein each data entry has a unique identifier; Acquiring a history mapping relation, wherein the history mapping relation indicates the corresponding relation between the data item identifier and the allocated output position in the last output period; Assigning output positions to data entries in the current data set based on the history mapping relationship to form a current output sequence, wherein for data entries whose identifiers exist in the history mapping relationship, they are assigned to output positions indicated by the history mapping relationship, and And updating the history mapping relation for the next output period according to the current output sequence.
- 2. The method of claim 1, wherein the current data set originates from an object container that, when invoked, provides a set of data entries that are updated based on detection results of an environment, and the object container contains data entries corresponding to detected objects.
- 3. The method of claim 1, wherein the history mapping is implemented by a history identifier list, each entry in the history identifier list corresponding to an output location and storing a data entry identifier occupying the output location in a last output period.
- 4. The method of claim 1, wherein assigning an output location for a data entry in the current data set comprises: For data entries whose identifiers are not present in the history mapping, they are assigned to a free output location.
- 5. The method of claim 4, wherein for data entries whose identifiers are not present in the history map, assigning them to a free output location comprises: searching unoccupied output positions in the current output sequence according to the index sequence of the output positions, and distributing the data entry to the first searched idle output position.
- 6. The method of claim 1, wherein the method further comprises: After position allocation is performed on all data items in the current data set, filling a preset default value for unoccupied output positions in the current output sequence.
- 7. The method of claim 3, wherein updating the historical mapping according to the current output sequence comprises: Forming a current identifier list according to the data item identifiers distributed on each output position in the current output sequence; and replacing the history identifier list with the current identifier list to serve as a history mapping relation of the next output period.
- 8. The method of claim 1, wherein the current output sequence is used to generate a vehicle communication bus signal comprising at least one of a controller area network bus signal, an on-board ethernet signal, a LIN bus signal, a FlexRay bus signal, each output location in the current output sequence being mapped sequentially to a predefined signal field in the vehicle communication bus signal.
- 9. The method of claim 1, wherein the method is performed by a sensor gateway unit within a millimeter wave radar, the data entry in the current data set corresponding to a target reflection point detected by the millimeter wave radar, the unique identifier being an identifier of the target reflection point.
- 10. An electronic device comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, the execution of the computer program causing the method according to any one of claims 1-8 to be performed.
- 11. The electronic device of claim 10, wherein the electronic device is a vehicle domain controller or a camera.
- 12. The electronic device of claim 10, wherein the electronic device is a millimeter wave radar, the data entry in the current data set corresponds to a target reflection point detected by the millimeter wave radar, and the unique identifier is an identifier of the target reflection point.
- 13. A data processing system, comprising: the sensing unit is used for acquiring the environment information and generating sensing data; The electronic device of claim 10, wherein the electronic device is communicatively coupled to the sensing unit for receiving a current data set formed based on the sensed data and generating the current output sequence, and And the communication interface is connected with the electronic equipment and is used for outputting the current output sequence.
- 14. The data processing system of claim 13, wherein the sensing unit is a millimeter wave radar.
- 15. A computer readable storage medium, characterized in that the computer readable storage medium comprises instructions which, when run, perform the method according to any of claims 1-9.
Description
Data output sequence generation method, electronic device, system and medium Technical Field The present application relates to the field of data processing technology, and more particularly, to a method of generating a data output sequence, an electronic device, a data processing system, and a computer readable storage medium embodying the method. Background In the development and testing of Advanced Driving Assistance Systems (ADAS), it is generally required to output environmental target information perceived by the system to a visualization tool for performance analysis and debugging. Currently, in a data stream output from a system, output data positions corresponding to the same target object at different times may change. This output sequence instability makes it difficult for downstream analysis and display tools to consistently and consistently track and observe specific targets, thereby increasing the complexity and cost of data interpretation and system evaluation. It is noted that the information disclosed in the above background section is only for enhancement of understanding of the background of the application and thus may include information that does not form the prior art that is already known to those of ordinary skill in the art. Disclosure of Invention To solve or at least alleviate one or more of the above problems, embodiments of the present application provide a method of generating a data output sequence, an electronic device, a data processing system and a computer readable storage medium implementing the method. According to a first aspect of the application, there is provided a method of generating a data output sequence, comprising receiving a current data set comprising at least one data item, wherein each data item has a unique identifier, obtaining a history map indicating correspondence between the data item identifier and its allocated output location in a previous output cycle, allocating output locations for data items in the current data set based on the history map to form a current output sequence, wherein for data items whose identifiers are present in the history map, they are allocated to the output locations indicated by the history map, and updating the history map for use in a next output cycle according to the current output sequence. Alternatively or additionally to the above, in a method according to an embodiment of the application, the current data set originates from an object container, which when invoked provides a set of data entries updated based on detection results of the environment, and the object container contains data entries corresponding to detected objects. Alternatively or additionally to the above, in a method according to an embodiment of the application, the history mapping is implemented by a list of history identifiers, each entry in the list of history identifiers corresponding to an output position and storing a data entry identifier occupying the output position in a previous output period. Alternatively or additionally, in a method according to an embodiment of the application, assigning output locations to data entries in the current data set includes assigning data entries for which identifiers do not exist in the history mapping relationship to a free output location. Alternatively or additionally, in a method according to an embodiment of the present application, assigning a data item whose identifier does not exist in the history mapping relationship to a free output position includes searching for unoccupied output positions in the current output sequence in an index order of the output positions, and assigning the data item to the first free output position found. Alternatively or additionally to the above, the method according to an embodiment of the present application further comprises filling a preset default value for unoccupied output positions in the current output sequence after position allocation is performed for all data entries in the current data set. Alternatively or additionally, in a method according to an embodiment of the present application, updating the history mapping relation according to the current output sequence includes forming a current identifier list according to data entry identifiers allocated at respective output positions in the current output sequence, and replacing the history identifier list with the current identifier list as a history mapping relation of a next output period. Alternatively or additionally to the above, in a method according to an embodiment of the application, the current output sequence is used for generating a vehicle communication bus signal comprising at least one of a controller area network bus signal, an on-board ethernet signal, a LIN bus signal, a FlexRay bus signal, each output position in the current output sequence being mapped sequentially to a predefined signal field in the vehicle communication bus signal. Alternatively or additionally to the above, in a m