Customized data request system and method of use

By installing sensors, transmitters, and processors in vehicles to generate and process data collection commands, the problem of third-party application developers struggling to efficiently collect and process data is solved. This achieves high efficiency and flexibility in data collection, improves application debugging and optimization efficiency, and enhances the user experience.

CN115964139BActive Publication Date: 2026-11-27WOVEN BY TOYOTA INC
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211234840.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2021-10-11
Filing Date
2022-10-10
Publication Date
2026-11-27
Estimated Expiration
2042-10-10

AI Technical Summary

Technical Problem

In existing technologies, third-party application developers find it difficult to efficiently and flexibly collect and process data from vehicle systems for application debugging, updates, and optimization, resulting in large data volumes, high network traffic, and poor user experience.

Method used

By incorporating sensors, transmitters, non-transient computer-readable media, and processors within the vehicle, data collection commands can be generated and processed. This supports customization of trigger events, time ranges, and data types, priority queue management, reduced data volume, and adaptation to different processors and algorithms, providing flexibility in data format and timing.

Benefits of technology

It achieves high efficiency and flexibility in data collection, reduces network traffic, improves the efficiency of application debugging and optimization, enhances user experience, and supports adaptability to different processors and algorithms.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115964139B_ABST
    Figure CN115964139B_ABST
Patent Text Reader

Abstract

Customized data request system for collecting desired data from a vehicle and method of use. The vehicle includes a sensor and a transmitter. The vehicle also includes a non-transitory computer readable medium configured to hold instructions and a processor coupled to the non-transitory computer readable medium. The processor is configured to execute instructions to cause: receiving or generating a data collection command, the data collection command including a processing indication for processing data collected from at least one of the sensor, an application log, and a system log. The processor is further configured to execute instructions to cause collecting sensor information based on the data collection command. The processor is further configured to execute instructions to cause processing the collected data based on the processing indication and indicating to the transmitter to transmit the processed data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to a customized data request system and its usage. Background Technology

[0002] Devices such as vehicles, robots, and electrical appliances frequently contain operating systems (OS) that can be accessed by third-party application developers. These developers create programs that run on the device's OS to alter the user experience. To maximize user satisfaction, they collect performance data and update or debug their applications.

[0003] In some instances, third-party application developers access devices to collect data about their application's performance. In others, they receive performance-related information from users through feedback or other means. Finally, they process raw data received from the device to debug or update their applications running on it. Summary of the Invention

[0004] To address the technical problem, the present invention provides a vehicle comprising: a sensor; a transmitter; a non-transitory computer-readable medium configured to store commands; and a processor connected to the non-transitory computer-readable medium, the processor being configured to execute the commands to: receive or generate a data collection command, the data collection command including processing instructions for processing collected data; collecting data from at least one of the sensor, application logs, and system logs based on the data collection command; processing the collected data based on the processing instructions; and instructing the transmitter to transmit the processed data, the processing instructions including multiple processing actions to be performed and the type of processing for each processing action. Attached Figure Description

[0005] Figure 1 These are diagrams of systems used to collect customized data, as described in some implementation methods.

[0006] Figure 2 These are diagrams of systems used to collect customized data, as described in some implementation methods.

[0007] Figure 3 These are flowcharts of methods for collecting customized data, which are involved in some implementation methods.

[0008] Figure 4 This is a diagram of the data structure of data collection commands involved in some implementation methods.

[0009] Figure 5A These are diagrams of code related to data collection commands involved in some implementation methods.

[0010] Figure 5B These are diagrams of code related to image trimming involved in some implementation methods.

[0011] Figure 6 These are flowcharts illustrating methods for processing data in order to generate customized data, as described in some implementation methods.

[0012] Figure 7 These are diagrams of systems used to implement customized data collection, as described in some implementation methods. Detailed Implementation

[0013] Regarding the technical solution of this disclosure, through its connection with the accompanying appendix... Figure 1 It is best to read the following detailed description for a thorough understanding. It should be noted that, according to standard practice in this field, the features are not depicted to a fixed scale. In fact, the dimensions of the features may be increased or decreased arbitrarily for clarity.

[0014] The following disclosure provides multiple different implementations or examples for achieving different features of the provided subject matter. Specific examples of constituent elements, values, actions, materials, configurations, etc., are described as follows for the sake of brevity. Of course, these are merely examples and are not intended to be limiting. Other constituent elements, values, actions, materials, configurations, etc., may also be considered. For example, the formation of the first feature onto the second feature as described later may include a method in which the first and second features are in direct contact, or a method in which an additional feature can be formed between the first and second features so that the first and second features do not necessarily have direct contact. Furthermore, this disclosure may sometimes repeat reference numerals and / or text in various examples. This repetition is for the purpose of brevity and clarity and does not itself affect the various implementations and / or relationships between the components discussed.

[0015] Furthermore, terms indicating spatial relative positions, such as "below," "below," "lower part," "above," and "upper part," may sometimes be used, as illustrated in the accompanying drawings, to facilitate the description of the relationship between an element or feature and other elements or features. In addition to the directions shown in the accompanying drawings, terms indicating spatial relative positions are intended to include different orientations of the device in use or operation. The device can be oriented in other directions (rotated 90 degrees or other orientations), and the descriptors indicating spatial relative positions used herein can be interpreted accordingly.

[0016] For the sake of brevity, communication between the various components of this disclosure is described as wireless. Those skilled in the art will understand that communication using wired connections is also within the scope of this disclosure, which is not limited to wireless communication.

[0017] An operating system (OS) is designed to enable application designers to develop and implement applications that work in vehicles. While protecting the operation of safety protocols within the vehicle, the OS aims to provide application designers with maximum access to non-safety protocols. During application design and implementation, designers require feedback related to application defects, problems, performance improvements, test data collection, or other desired information for debugging or improvement. This disclosure addresses how application designers can customize collected data and feedback to provide the information content, format, and timeliness required by the application designer.

[0018] For example, using 216, 226, or 232 ( Figure 2 Applications developed by application designers, such as OS218, 228, or 238, can respond to situations where the application is deemed to have met a trigger event, via methods such as OS218, 228, or 238. Figure 2 OSes like ) and others, such as data collection unit 236 ( Figure 2 Data collection units such as data collection units send data collection commands like 400 (…). Figure 4 Data collection commands such as ) can be defined. Application designers can define trigger events for collecting data from vehicle sensors, and time ranges such as 402 ( Figure 4 The time frame for data collection is defined as such. A triggering event is an event occurring within or around the vehicle that the application designer wishes to obtain data from. For example, triggering events include rapid acceleration, sudden braking, the acquisition of an image of the requested object, the detection of the requested object, and other appropriate occurrences. In some implementations, triggering events are in-application events such as application failures or "crashes." In some implementations, the application determines whether the triggering event (trigger condition) is met, and responds by sending a data collection command to the data collection unit. In some implementations, the data collection unit determines whether the triggering condition is met, and responds by collecting data associated with the triggering event. In some implementations, such as server 120 (… Figure 1 The server determines whether the triggering conditions are met. When the server determines that the triggering conditions are met, the server sends a data collection command to the data collection unit.

[0019] The data collection command includes time range information. The time range for data collection means, for example, the start time of the event (403) and the end time of the event (404). Figure 4 This refers to the time range before and / or after a triggered event, such as 5 seconds before the event and 10 seconds after the event (for an event start time of -5 seconds and an event end time of 10 seconds). In some implementations, the time range also includes a frequency parameter, which indicates the frequency at which data should be sampled from the time range. For example, with an event time of t = 100 seconds, a start time of -1 second, an end time of 2 seconds, and a frequency of 10 Hz (100 millisecond periods), data can be collected via a data collection command at t = 99.0 seconds, 99.1 seconds, 99.2 seconds, ..., 101.9 seconds, and 102.0 seconds. The data collection command includes a data source ID such as a sensor ID and / or an application ID, allowing application designers to customize the type of data collected in response to the triggered event. Examples of data collected include camera image data, LiDAR data, radar data, vehicle position and orientation data, acceleration data, application logs, proximity data related to the distance between the vehicle and surrounding objects, or traffic and driving information such as Vehicle Information and Communication System (VICS) and Traffic Message Channel (TMC). When triggering conditions are met, a data collection command is sent to the data collection unit for processing. Based on the information in the data collection command, the collected data is processed and transmitted from the vehicle.

[0020] When data is received, the data collection unit performs a process such as storage unit 237 ( Figure 2 Priority queues 239 in storage units such as ) Figure 2 The data collection unit can add requests to a priority queue, such as a priority queue. In some implementations, the data collection unit can adjust the priority of requests in the queue. In some implementations, data related to vehicle safety or the manufacturer's application can be given a higher priority than data from third-party applications. In some implementations, the priority of requests is based on priority 406, such as in the data collection command. Figure 4 Priority information such as requester ID 407 is used to determine the priority of a request. In some implementations, the priority of a request is determined based on priority information such as requester ID 407. Figure 4 The priority of a request is determined by the identity of the requester sending the data collection command, such as source ID 405. In some implementations, the priority of the request is based on factors such as source ID 405. Figure 4The data collection unit is determined based on the identity of the data collection source, such as post-processing 410. Figure 4 Customized commands, such as those used in the vehicle, are employed to process the data. Then, for the application designer's access, the processed data is sent from the vehicle to a server or cloud-based system.

[0021] In some implementations, data processing is performed before data is sent from the vehicle. This processing helps to minimize the amount of data sent and to provide data most relevant to the application designer in a format suitable for the application designer.

[0022] Application designers can select, along with the algorithm used to implement the requested processing, the number of processing actions to be performed on the collected data and the type of processing to be performed on the collected data. By increasing the flexibility of application designers in setting the processing actions to be performed on the collected data, application designers can receive more appropriate data for application debugging, application performance improvement, application testing, neural network learning for application optimization, or other modifications or updates to the application without losing information about the data object or having unnecessary data. In some cases, the amount of data transmitted from the vehicle is reduced by appropriate processing actions selected by the application designer. The reduced amount of data helps the system reduce the amount of network traffic between vehicle 130 and server 120. The reduced amount of data also helps the system provide data to a larger number of applications in order to provide a more customized experience for vehicle operators such as vehicle drivers. In some examples, the amount of data provided to the user increases as a result of processing selected by the user. In some cases, the increased data volume enables the provision of more useful data to users, allows users to investigate the application's functionality more efficiently, enables the use of more useful training data to learn and optimize the application's neural network, enables the use of more test data to test the application to achieve better test coverage, and makes it possible to provide application updates or debugging.

[0023] To determine the processing actions to be performed on the collected data, application designers use tree structures and inherent node IDs to determine which actions to perform on which parts of the processed data. In some implementations, application designers use graph structures to determine the actions to be performed on the collected data. The tree structure also determines the order in which the processing actions are performed on the collected data. For example, in some implementations, an image is cropped, and the size of the cropped image is changed. In some implementations, the image size is changed, and then a cropping action is performed on the resized image. In some implementations, the application designer can determine that the object data to be processed should be image data, and then that the image data should be cropped, and the size of the cropped data should be changed. In some implementations, the application designer can determine whether image data with or without gamma correction is used for data processing. In some implementations, the application designer can determine the format of the image data to be processed, such as RGB, YUV444, YUV420, Bayer pattern images, etc. This makes it possible for application designers to test applications without losing useful information from the data, and to use appropriate data for learning the application's neural network. Application designers can also perform a second action, such as compression of pruned data. That is, multiple actions can be performed on a single piece of data, provided each action refers to its inherent "parent" node in the tree structure. These processing methods allow application designers to reduce the need for components such as processor 702, memory 704, and bus 708. Figure 7 This makes it possible to handle system workloads such as I / O traffic. Application designers can also determine the algorithms used for predetermined actions to compress data size, such as JPEG compression, PNG compression, ZIP compression, and H.264 encoding, so that even if the use cases and the objects of the collected data change over time, application designers can flexibly choose the desired algorithm for the application's use cases. Since algorithms such as compression algorithms, encoding algorithms, and interpolation algorithms such as linear interpolation, bilinear interpolation, and bicubic interpolation are known for processing the collected data, application designers can efficiently process the processed data if necessary to determine what modifications to make to the application. There are cases where application software such as Application 216, 232, or 226 (Figure) is reused in next-generation products, and next-generation products such as processor 702 ( Figure 7This includes situations where processors differ from current-generation processors, or where next-generation processors' HW accelerators support new processing algorithms with better performance, or where HW accelerators do not support processing algorithms supported by current-generation processors. In these cases, the flexibility of using post-processing algorithms allows application designers to easily change the algorithms used in the next generation with minimal changes to the application software. In some implementations, application designers can also customize the output format for the data sent. For example, when the data is image data, the output format includes information such as pixel height, pixel width, number of channels, channel order (such as RGB and BGR), data layout (such as channel-height-width (CHW) and height-width-channel (HWC), file format (such as jpeg and png files), and serialized data format (such as Google Protocol Cache and Robotics Operating System (ROS) themes). This allows application designers to flexibly choose algorithms and data formats suitable for their application use cases, even if the use cases and the objects of the collected data change over time.

[0024] By providing the ability to customize data received by application developers, this disclosure enables external application developers to access data from sensors in a vehicle for debugging, testing, optimization, or updating their applications. The format, timing, and content of the collected data can be customized by the developer to efficiently debug the application in a way that is closely correlated with the application's development environment, such as development tools, and the application's performance, thereby enabling the identification of events that could adversely affect application performance. While the following description refers to use in vehicles such as automobiles, those skilled in the art will understand that this disclosure can be applied to other types of movable devices, such as robots, drones, household appliances, or other suitable devices.

[0025] Figure 1 This is a diagram of a system 100 for customized data, according to some implementations. System 100 includes a user interface (UI) 110 configured to receive information from a user. UI 110 is configured to transmit information to a server 120 or a vehicle 130. In some implementations, UI 110 is capable of communicating directly with vehicle 130. In some implementations, UI 110 is configured to communicate with vehicle 130 via server 120. System 100 also includes a server 120 configured to communicate with both UI 110 and vehicle 130. System 100 also includes a vehicle 130 capable of communicating with both server 120 and UI 110.

[0026] UI110 is configured to receive input commands from a user. In some implementations, the user includes a software developer. In some implementations, the user includes an insurance provider. In some implementations, the user includes a law enforcement agency.

[0027] In some implementations, UI 110 enables a user to upload binary executable files or source code of an application operating on the electronic control unit (ECU) of vehicle 130. UI 110 also enables a user to update applications operating on the ECU of vehicle 130. For example, in some implementations, a user can use UI 110 to send over-the-air (OTA) updates to the application. In some implementations, application updates are based on data received from vehicle 130 due to data collection commands generated by the application. In some implementations, updating the application updates the conditions that trigger events. In some implementations, updating the application updates conditions such as post-processing parameters 410. Figure 4 Information such as that in the data collection unit 236, from the application to the data collection unit 236. Figure 2 The content of post-processing instructions transmitted by data collection units such as data collection command 400 is updated. In some implementations, the data collection command 400 is updated by updating the application. Figure 4 This includes any other information such as data collection commands transmitted from the application to the data collection unit. In some implementations, UI 110 enables users to upload weight data of the learned neural network of an application operating on the ECU of vehicle 130.

[0028] In some embodiments, UI 110 includes a graphical user interface (GUI). In some embodiments, UI 110 includes a mobile terminal, such as a mobile phone, capable of connecting to server 120. In some embodiments, UI 110 includes a computer capable of connecting to server 120. UI 110 can also provide users with updates related to the status of data requests or updates related to the status of applications operating on vehicle 130. In some embodiments, UI 110 responds to additional queries from users, providing status updates related to data requests. In some embodiments, UI 110 provides status updates related to data requests when it automatically receives updated information from server 120 without user access. In some embodiments, status updates cause UI 110 to issue a warning to the user. In some embodiments, the warning includes audible or visual warnings.

[0029] In some implementations, UI110 is configured to receive information from the user indicating the type of processing performed on data collected by vehicle 130. For example, if the use case of the application changes or the function of the ECU in vehicle 130 changes, the user can update the application to modify what data collection command information the application generates.

[0030] In some implementations, UI110 is configured to receive a data collection request from a user containing information corresponding to an event time, time range, data source ID, post-processing, or other parameters. In some implementations, UI110 is configured to receive a data collection request including a data collection command 400 (… Figure 4 Similar data collection requests. UI110 transforms the data collection request into a data collection command. In some implementations, UI110, instead of an application, sends a data collection request to a data collection unit 236, such as in a vehicle, via a network such as a wireless network. Figure 2 Data collection units such as [those that send data collection commands] send data collection commands.

[0031] Server 120 includes a receiver 122 configured to receive information from UI 110 and vehicle 130. Server 120 includes a transmitter 124 configured to send information to UI 110 and vehicle 130. Server 120 includes a memory 126 configured to store data requests, binary executable files or source code of applications, and weight data of neural networks of the application from UI 110, and to store collected data from vehicle 130. Server 120 also includes a processor 128 configured to process information in communication with UI 110 and vehicle 130. In some embodiments, the collected data received from vehicle 130 has already been processed according to a data request from a user or an application operating in vehicle 130. In some embodiments, the collected data received from vehicle 130 is processed by processor 128 according to a data request.

[0032] Storage unit 126 is configured to store information received by receiver 122. In some embodiments, memory 126 includes random access memory (RAM) such as DRAM, flash memory, or other types of memory. In some embodiments, memory 126 is accessible to a user. In some embodiments, updates to information in memory 126 trigger notifications to users associated with the updated information in memory 126. For example, in some embodiments, a notification is sent to the user in response to a situation where server 120 receives data related to a data collection command from a user-developed application. In some embodiments, memory 126 stores information in conjunction with timestamp data indicating the time when the information was received. In some embodiments, transmitter 124 is configured to send information to UI 110 or vehicle 130 based on priority levels.

[0033] The transmitter 124 is configured to send information to the UI 110 and the vehicle 130. In some embodiments, the transmitter 124 is configured to respond to updates in the memory 126 and provide updates to the user. In some embodiments, the transmitter 124 is configured to respond to requests received from the user and provide the user with application logs.

[0034] The transmitter 124 is configured to send a request to the vehicle 130. In some embodiments, the transmitter 124 is configured to send the request to the vehicle 130 based on the priority level of the request.

[0035] In some embodiments, transmitter 124 is configured to always send a request to vehicle 130 when server 120 has sufficient connectivity with vehicle 130. In some embodiments, transmitter 124 is configured to periodically send requests to vehicle 130 whenever vehicle 130 is capable of receiving new requests and transmitter 124 has sufficient connectivity with vehicle 130. In some embodiments, transmitter 124 is configured to send requests to vehicle 130 in groups, such as 5 requests, 20 requests, or some other number of requests. In some embodiments, transmitter 124 is configured to request acknowledgment of receipt of requests from vehicle 130. In response to a situation where no acknowledgment of receipt is received from the vehicle within a predetermined period, transmitter 124 is configured to resend the request.

[0036] Vehicle 130 includes sensors for detecting both the internal state of vehicle 130 and the external environment surrounding vehicle 130. In some embodiments, the sensors include cameras, LiDAR sensors, RADAR sensors, SONAR sensors, accelerometers, steering wheel position sensors, speedometers, GPS, inertial measurement units (IMUs), or other suitable sensors. Vehicle 130 includes an ECU configured to operate applications stored in vehicle 130. In some embodiments, vehicle 130 is configured to determine triggering events for collecting and outputting data based on commands stored with the applications. In some embodiments, vehicle 130 is configured to determine the duration and type of data collected and output based on commands stored with the applications.

[0037] The application can respond to the detection of a triggering event by initiating a data collection command. In some implementations, the data collection command is generated in response to triggering events such as an application crash, an anomaly detected in the application, or other appropriately detected occurrences. In some implementations, the application determines that the triggering event condition has been met when it detects sudden braking or acceleration. In some implementations, the application is an object detection application, and it determines that the triggering event condition has been met when it detects a specific object, such as an object fallen on the road, an emergency vehicle, a vehicle involved in an accident, an animal on the road, any kind of object not normally found on the road, or other appropriate object. In some implementations, the application determines that the triggering event condition has been met when it detects a malfunction from diagnostic information of vehicle 130. In some implementations, vehicle 130 is configured to respond to the detection of a triggering event associated with the application by generating a notification to the user. In some implementations, the notification is sent directly to the user, for example, through UI 110. In some implementations, the notification is sent to the user through server 120. In some implementations, the notification includes an audible notification or a visual notification. In some implementations, the notification is configured such that the UI110 automatically displays the notification without user intervention.

[0038] Vehicle 130 is configured to respond to receiving a data collection command generated by an application, or a data collection request from UI 110 or server 120, by assigning a data request ID to the received request, or by processing the request in a way that is independent of the system or program from which the data request originated. Making the request independent of the system or program from which the data request originated helps to expand the vehicle 130's ability to receive and process a wide range of requests from various users and systems. The ECU of vehicle 130 includes a processor for processing data requests and determining which type of information from which sensor, usable in vehicle 130, satisfies the data request. Vehicle 130 also includes memory for storing data from the sensors. In some embodiments, the processor accesses the memory to determine whether any stored data satisfies the data request. Vehicle 130 can also send data deemed to satisfy the data request to server 120 or UI 110. In some embodiments, the processor is configured to attempt to satisfy received requests in priority order based on the priority level of the received data requests. In some implementations, vehicle 130 is configured to send data to server 120 or UI 110 preferentially based on the priority level of the received request.

[0039] Figure 2 This is a diagram of a system 200 for collecting customized data according to some implementation methods. In some implementations, the system 200 is entirely contained within the interior of a vehicle such as an automobile. In some implementations, the vehicle including the system 200 is a vehicle 130 (…). Figure 1 System 200 includes at least one ECU. For example... Figure 2For example, system 200 includes a first ECU 210, a second ECU 220, and a third ECU 230. System 200 also includes at least one sensor 240 communicating with the first ECU 210, the sensor 240 being configured to acquire data related to the function of the first ECU 210. For example, in some embodiments, sensor 240 includes a front-facing camera, and the first ECU 210 is configured to facilitate image recognition applications and autonomous driving applications using image data from the front-facing camera. The system also includes at least one sensor 250 communicating with the second ECU 220, the sensor 250 being configured to acquire data related to the function of the second ECU 220. For example, in some embodiments, sensor 250 is configured to acquire interactions between a user and the vehicle's infotainment system, and the second ECU 220 is configured to control the vehicle's infotainment system. System 200 also includes at least one sensor 260 communicating with the third ECU 230, the sensor 260 being configured to acquire data related to the function of the third ECU 230. For example, in some embodiments, sensor 260 includes an accelerometer, and the third ECU 230 is configured to control the motor or engine operation of the vehicle.

[0040] In some embodiments, ECU 210, ECU 220, and ECU 230 are integrated into a single ECU. In some embodiments, one of ECU 210, ECU 220, or ECU 230 is separated, and the other two ECUs are integrated together. In some embodiments, ECU 210, ECU 220, and ECU 230 are each separated. All ECUs can communicate with each other using OS 218, 228, and 238. In some embodiments, system 200 includes four or more ECUs. In some embodiments, system 200 includes two or fewer ECUs. In some embodiments, the same type of OS, such as QNX (registered trademark), is used for OS 218, 228, and 238. In some embodiments, different types of OS are used for OS 218, 228, and 238. For example, OS 218 is QNX, OS 228 is AutomotiveGradeLinux (AGL (registered trademark)), and OS 238 is eMCOS (registered trademark). In some implementations, the first ECU 210, the second ECU 220, and the third ECU 230 are interconnected via an interface such as Ethernet (registered trademark), a controller area network (CAN) bus, or the like.

[0041] The first ECU 210 includes an application 216. In some embodiments, the application 216 is generated and / or set in the first ECU 210 by the vehicle manufacturer. In some embodiments, the application 216 is generated or set in the first ECU 210 by a third party. In some embodiments, the application 216 is set or updated by the UI 110 via OTA updates. The application 216 can use the OS 218 to exchange data with other components of the vehicle, such as sensors 240, the second ECU 220, and the third ECU 230. In some embodiments, an application programming interface (API) is used to facilitate communication between the OS 218 and the application 216.

[0042] Application 216 includes information related to one or more triggering events for generating a data collection command. Application 216 also includes information about the type of data collected in response to the detection of a triggering event by application 216 or data collection unit 236. Application 216 also includes information about how the collected data is processed after collection, prior to transmission to the outside of the vehicle. In some embodiments, application 216 also includes priority information related to the priority level of the data collection command generated in response to the detection of a triggering event. In some embodiments, in response to the detection of a triggering event, application 216 is configured to generate a data collection command 400 (… Figure 4 Similar data collection commands. In some implementations, information related to the triggering event, the type of data collected, how the collected data is processed, and priority information can be updated via OTA updates through the UI110.

[0043] In some embodiments, the triggering event is an event occurring within application 216, such as a malfunction or crash of application 216. In some embodiments, the triggering event is an event occurring outside application 216, such as sudden braking or rapid acceleration. In some embodiments, the triggering event includes a data detection object acquired by sensor 240. Those skilled in the art will understand that the examples of triggering events described above are merely examples, and different types of triggering events are also within the scope of this disclosure.

[0044] In some embodiments, application 216 is configured to transmit application logs along with data collection commands to data collection unit 236. The application logs include information related to the actions of application 216. In some embodiments, the application logs also include information from sensor 240.

[0045] Application 216 is configured to use OS 218, which is capable of communicating with OS 238, to transmit data collection commands to data collection unit 236. OS 218 is the vehicle's operating system. In some embodiments, OS 218 communicates with OS 238 via a wired connection such as Ethernet or CAN bus. In some embodiments, OS 218 communicates with OS 238 wirelessly.

[0046] The second ECU 220 is similar to the first ECU 210, and similar elements have the same reference number with a large "10". In some embodiments, the second ECU 220 is configured to implement application 226, which has a different function than application 216 implemented on the first ECU 210.

[0047] The third ECU 230 is configured to receive information from the first ECU 210 and the second ECU 220 using OS 238. That is, OS 218 of the first ECU 210 and OS 228 of the second ECU 220 interface with OS 238 of the third ECU 230. In some embodiments, information is transmitted to the third ECU 230 wirelessly. In some embodiments, information is transmitted to the third ECU 230 via a wired connection such as Ethernet or a CAN bus.

[0048] The third ECU 230 includes application 232. Application 232 is capable of generating data collection commands and application logs in a manner similar to that described above with respect to application 216.

[0049] The third ECU 230 includes a data collection unit (DCU) 236. The DCU 236 is configured to collect data from sensors 240, 250, and / or 260, collectively referred to as sensors, based on data requests generated by applications 216, 226, and / or 232, collectively referred to as applications. Each application is not limited to collecting data from sensors associated with the same ECU as the application. Each application can collect data from any sensor for which it has been granted access permissions. In some embodiments, predetermined sensors may have limited access rights for privacy, security, or other concerns.

[0050] Furthermore, DCU236 is capable of collecting data based on received data collection commands, such as accessing application logs from applications 216, 226, or 232. In some embodiments, DCU236 collects information from application logs related to an application different from the application that generated the data collection command. For example, in some embodiments, DCU236 receives a data collection command from application 216, which instructs DCU236 to collect data from the application logs of application 226. In some embodiments, DCU236 is configured to respond to a determination that the application that generated the data collection command is not allowed to access the application logs, thus invalidating the instruction in the data collection command to retrieve information from the application logs. In some embodiments, DCU236 is configured to, based on the permissions granted to the application that generated the data collection command, only allow data collection from application log levels selected, such as error levels, but invalidate requests for data from levels other than the application logs.

[0051] The sensors include at least one of a camera, lidar sensor, radar sensor, sonar sensor, accelerometer, geostationary system (GPS), inertial measurement unit (IMU), and other suitable sensors. Those skilled in the art will understand that in some embodiments, the sensors include multiple sensors, which include multiple different types of sensors. The sensors are configured to collect data during vehicle movement. Data from the sensors is transmitted to the DCU236 via OS218, OS228, and / or OS238, collectively referred to as OS. In some embodiments, to mitigate the performance overhead of OS218, data from the sensors can be transmitted to the DCU236 without via OS218. The data from the sensors includes metadata related to time, vehicle location, vehicle orientation, vehicle state, sensor state, sensor parameters or sensor calibration data, or other suitable metadata related to the time the data was collected by the sensors.

[0052] DCU236 is configured to receive data collection commands from an application. The data collection command includes information about the type of data to be collected and the time range for data collection. The data collection command also includes commands for processing the collected data before sending it to a user, such as an application designer or other user. In some embodiments, the data collection command includes priority information indicating the priority level for executing the data collection command. In some embodiments, DCU236 can invalidate the priority level in the data collection command based on the condition that no other data collection commands have been processed within DCU236. In some embodiments, the data collection command includes information about the source of the data collection command and information about which sensor DCU236 should acquire data from. In some embodiments, the data collection command includes information related to data collection command 400 (…). Figure 4 Similar information. In some implementations, in response to a situation where the data collection command does not indicate the type of processing to be performed on the collected data, the DCU236 is configured to perform default processing. In some implementations, default processing includes data resizing, data trimming, data compression, or other appropriate default processing.

[0053] DCU 236 includes a storage unit 237. In some embodiments, storage unit 237 includes random access memory (RAM) such as dynamic RAM (DRAM), flash memory, or other suitable memory. Storage unit 237 is configured to store information during the execution of data collection commands. The information used to execute data collection commands includes information from sensors, intermediately processed data based on commands in the data collection commands, metadata, commands for DCU 236 to interface with external components such as sensors, and / or other information generated during the execution of data collection commands.

[0054] DCU 236 also includes a buffer area 238 within storage unit 237. Buffer area 238 is configured to receive data from sensors and application logs from applications 216, 232, and 226. In some embodiments, the data from sensors and the application logs are automatically transmitted to buffer area 238 during vehicle operation. In some embodiments, the data from sensors includes metadata such as the time when data was detected and the vehicle's location. Buffer area 238 is configured to store the data from sensors and the application logs. In response to receiving a data collection command, DCU 236 can examine the data from sensors and the application logs stored in buffer area 238 to retrieve data that can be used to execute the data collection command.

[0055] Due to the limited capacity of buffer area 238, in some examples, data is collected for a long time before the attempted data is retrieved. Therefore, the data that DCU 236 wants to obtain in buffer area 238 has been at least partially overwritten previously. In some embodiments, buffer area 238 has a circular buffer data structure, so old data is automatically overwritten by new data. In some embodiments, buffer area 238 has a database data structure such as a key-value store (KVS) or a relational database, and old data is periodically cleared from the database by data collection unit 236. In some embodiments, in response to a determination that there is no less data in buffer area 238 than all the data needed to implement the data collection command, DCU 236 is configured to access more than one sensor to collect the requested data. In some embodiments, DCU 236 is configured to respond to a situation where not all the data needed to implement the data collection command is identified in buffer area 238, thus invalidating the data collection command. In some embodiments, DCU 236 is configured to collect and process usable data in the buffer area 238 even if less data than the total data used to implement the data collection command is available. In some embodiments, DCU 236 is configured to hold the data collection command until the buffer area 238 contains all the data needed to implement the data collection command. In some embodiments, DCU 236 is configured to prevent overwriting of data in the buffer area 238 related to unprocessed data collection commands.

[0056] DCU 236 also includes a priority queue 239 configured to store data collection commands in priority order. In some embodiments, the priority level of a data collection command is determined based on information within the data collection command. In some embodiments, DCU 236 sets the priority of a data collection command based on the source of the data collection command, i.e., which user or application generated the data collection command, the time the data collection command was received, the type of data requested by the data collection command, or other appropriate criteria for setting the priority level of the data collection command. In some embodiments, DCU 236 responds to a situation where the priority level in a data collection command is determined to be different from the priority level determined by DCU 236, invalidating the priority level in the data collection command. The data collection commands stored in priority queue 239 are processed in priority order. DCU 236 is further configured such that, in some embodiments, a transmitter (not shown) is instructed to transmit the processed data corresponding to the data collection command in priority order. In some implementations, DCU236 responds to a situation where it is determined that there is no data in buffer area 238 for implementing the data collection command, and lowers the priority level of the data collection command in priority queue 239 for subsequent processing.

[0057] In some embodiments, DCU236 is further configured to access an application in order to obtain application log data used to implement a data collection command. In some embodiments, the application transmits the application log data used to execute the data collection command to DCU236 along with the data collection command. In some embodiments, DCU236 is configured to determine whether one application is permitted to access another application in order to implement a data collection command. Responding to the determination that the first application is not permitted to access the second application, in some embodiments, DCU236 is configured to invalidate the data collection command. In some embodiments, DCU236 responds to the determination that the first application cannot access the second application by processing the data collection command as if no application log data from the second application is available.

[0058] In some implementations, DCU236 is further configured to access OS218, 228, and 238 to retrieve system log data used for executing data collection commands. When an application sends a data source ID 405 indicating the system log, Figure 4 Data collection command 400 (such as data source ID) Figure 4 When a data collection command such as ) is executed, the DCU236 accesses the system log from the OS, based on post-processing parameters such as 410 ( Figure 4The system logs are processed using post-processing instructions such as [example instructions would be inserted here], and then transmitted to server 120 as collected data. In some implementations, the system logs are the syslogs of the Linux (registered trademark) OS generated by OS218, 228, and 238. In some implementations, the system logs are the diagnostic logs and trace logs (DLT logs) generated by OS218, 228, and 238.

[0059] The DCU236 is further configured to process the collected data based on command data in the data collection command. The command data indicates a predetermined action to be performed on the collected data. The DCU236 is configured to process the collected data according to the data collection command before instructing the transmitter to send the data collection command to the user. In some embodiments, this processing action includes image cropping, image resizing, video encoding such as H.264, image encoding such as PNG or JPEG, zip compression, data serialization such as using Google Protocol Buffer, ROS themes, or other appropriate actions.

[0060] In some implementations, the command data in the data collection command has a data structure such as a tree structure. The tree structure includes: a root node, which corresponds to the collected data to be processed, such as image data from a camera; leaf nodes, which correspond to data to be transmitted to, for example, a server 120 (…). Figure 1 ) or UI110 ( Figure 1 The data corresponds to the output data of external devices such as root nodes and leaf nodes; and to internal nodes other than root nodes and leaf nodes, which correspond to data processing units. In some embodiments, internal nodes correspond to any of the following: data resizing processing, pruning processing, video encoding such as H.264 encoding, image encoding such as JPEG encoding, data compression such as ZIP compression, or other suitable actions. Each leaf node and internal node has a single parent node corresponding to the root node or internal nodes. Each root node and internal node has at least one child node among internal nodes and leaf nodes. Each node has at least one parent-child relationship with other nodes. A parent-child relationship means that the processing unit corresponding to the parent node outputs data to the processing unit corresponding to the child node. In some embodiments, the command data has a directed graph structure. By having a tree structure or graph structure, the user can process the data sequentially, for example, by... Figure 6As shown, command data that allows for branching in parallel data processing can be flexibly defined. In some embodiments, each node has a processing unit ID that identifies the type of processing and parameters for that processing. In some embodiments, the processing unit ID has a text format representing the name of the processing unit, such as "image compression JPEG", "image cropping", or "image resizing". In some embodiments, the processing unit ID has a unique universally unique identifier (UUID) assigned to a specific unit of processing. In response to the command data, the DCU236 performs processing on the collected data corresponding to the command data. Figure 6 Additional descriptions are provided in connection with the following description.

[0061] In some implementations, the application is configured to query the DCU236 to receive information about the type of processing that the DCU236 can utilize. In some implementations, the DCU236 responds to the query by sending a list of processing unit IDs. In some implementations, the application can automatically update based on the identification of keywords in the information received from the DCU236. For example, keywords such as "trimming," "resizing," or "compression" can be used together with keywords such as "png" or "jpeg" to identify the action to be performed and automatically select the desired action to be performed on the collected data. While creating an application with this level of sophistication may initially require a lot of work from the user, once the application is installed in the vehicle, it helps the user avoid updating the application.

[0062] In some implementations, the DCU 236 is configured to receive queries from an application or from a received data request, requesting options regarding a certain type of processing action that can be utilized within the DCU 236. For example, the DCU 236 can receive queries related to the type of data compression that the DCU 236 can perform. The DCU 236 is configured, for example, to respond using a table including compression ID information associated with the available compression types. In some implementations, the application can automatically update based on keyword identification of information received from the DCU 236. In some implementations, information from the DCU 236 is sent to a user, who can update the application or data request with a specific action type based on the options available within the DCU 236.

[0063] The DCU236 uses command data with tree or directed graph structures to process data. Non-limiting examples of tree-structured processing via the DCU236 will be discussed later. Figure 6 It is described as follows. Figure 6In a non-limiting example, image data 605 corresponds to the root node, processing units 610, 615, 620, and 630 correspond to internal nodes, and uploading units 625 and 635 correspond to leaf nodes. The DCU 236 can perform various actions in a sequence corresponding to a tree structure or directed graph structure to generate data in a user-desired format. The DCU 236 can process data that has undergone several initial processing steps. For example, the DCU 236 can resize an image that has already undergone a trimming process. The DCU 236 can perform multiple actions on previously processed data. For example, the DCU 236 can perform multiple compressions of a trimmed image. In some implementations, the DCU 236 cannot combine two previously processed data during subsequent processing actions. For example, in some implementations, the DCU 236 cannot compress the trimmed image and the resized image in a single action. Instead, the DCU 236 can compress the trimmed image and the resized image separately.

[0064] In some implementations, the commands for processing the data include information about how the commands should be executed. In some implementations, such as post-processing parameters 410 in a data collection command... Figure 4 Parameters such as ) include parameters used for the processing unit. For example, in some embodiments where the command indicates an image resizing, the node corresponding to the unit handling the resizing in the data collection command includes the desired size of the image whose size is being changed. In some embodiments where the command indicates image cropping, the node corresponding to the unit performing the cropping action in the data collection command includes the (x, y) positions of the top-left and bottom-right points of the rectangle of the cropped object. Those skilled in the art will recognize that these are merely examples, and this disclosure covers a wide variety of commands used to perform the processing of the collected data.

[0065] The DCU236 can also direct the transmissions within the vehicle, such as the UI110. Figure 1 ) or server 120 ( Figure 1External devices such as [device name] send processed data corresponding to each leaf node. In some embodiments, the processed data is sent together with the corresponding metadata. In some embodiments, the processed data is stored in storage unit 237 together with the corresponding metadata until the processed data and metadata are sent. In some embodiments, the processed data and metadata are cleared from storage unit 237 after transmission. In some embodiments, the processed data and metadata are cleared from storage unit 237 after receiving confirmation of data reception from an external device. In some embodiments, DCU 236 is configured to determine the priority of sending processed data and metadata based on priority information in the data collection command or priority information determined by DCU 236 during the parsing of the data collection command.

[0066] In some cases, processing data within the vehicle reduces the amount of data sent from the vehicle, which helps reduce vehicle-to-vehicle (V2V) latency, such as with UI110. Figure 1 ) or server 120 ( Figure 1 This reduces data congestion between external devices such as [devices name missing] and decreases vehicle power consumption. Reducing power consumption helps lower the risk of the vehicle running out of power. For example, it reduces the risk of battery depletion in electric vehicles (EVs). In some embodiments, the DCU236 is configured to retain processed data instead of transmitting it when the vehicle's state of charge (SOC) is less than a first threshold. In some embodiments, the DCU236 is configured to save the collected data without processing it when the vehicle's SOC is less than a second threshold lower than the first threshold. In some embodiments, the DCU236 is configured to save commands or received data requests from the application instead of collecting the corresponding data when the vehicle's SOC is less than a third threshold lower than the second threshold. By avoiding power-consuming actions during periods of low SOC, the risk of the vehicle running out of power can be reduced.

[0067] In some cases, processing data within a vehicle increases the amount of data sent from the vehicle. This increased data volume provides application designers with better information to decide whether and how to update the application based on the received information.

[0068] Reducing data congestion between the vehicle and external devices also helps ensure that the vehicle can receive information necessary for updating or optimizing in-vehicle applications, operating systems, or other devices. For example, software updates for applications such as autonomous driving systems, which are updated over-the-air (OTA), help occupants drive the vehicle safely and comfortably. For example, traffic information updates help the in-vehicle navigation system determine the vehicle's route. For example, map updates help the in-vehicle navigation system determine the vehicle's route. For example, map updates help the in-vehicle autonomous driving system drive the vehicle safely. Reducing data congestion between the vehicle and external devices helps ensure that the vehicle appropriately receives data such as software updates, traffic updates, and map updates for the use of in-vehicle applications and their components.

[0069] System 200 can utilize applications along with user-defined data collection commands to determine whether to collect data such as sensor data, application logs, or system logs, and what type of data to collect. System 200 can process the collected data to provide it to the user in the desired format so that the user can develop new applications or update existing ones. System 200 is independent of the application's programming language and the data structure desired by the user. As a result, System 200 can provide customized data to the user, reducing or eliminating the need for the user to use special devices or knowledge to determine the meaning of the received data. In some implementations, System 200 also reduces the amount of trivial data provided to the user, saving user time spent developing new applications or updating existing ones. Consequently, it allows vehicle operators to more easily and quickly deploy enhanced applications with higher reliability than other systems.

[0070] Figure 3 This is a flowchart of a method 300 for collecting customized data, which is involved in some implementations. In some implementations, method 300 uses system 100 ( Figure 1 ) or System 200 ( Figure 2 This method 300 includes references to devices such as applications (APPs), operating systems, and DCUs. Those skilled in the art will recognize that these devices are merely examples to aid in understanding this disclosure and are not intended to limit its scope. Furthermore, those skilled in the art will understand, for example, that method 300 can be modified for processing via a DCU to allow processing from devices such as UI110 (…). Figure 1 ) or server 120 ( Figure 2 External devices such as ) receive data requests.

[0071] Method 300 includes action 305 where the application determines whether a triggering event has occurred. In some implementations, the triggering event includes an application crash, an exception detected in the application, or other appropriately detected occurrences. In some implementations, the triggering event includes an event occurring inside or around the vehicle. In some implementations, the triggering event is based on a request received from a user. In response to a detected triggering event, method 300 proceeds to action 310. In response to no detected triggering event, method 300 returns to action 305 and waits for the detection of a triggering event.

[0072] Method 300 also includes the action 310 of generating a data collection command via an application. The data collection command is generated based on commands within the application. The data collection command includes the type of data to be collected, the duration of data collection, the frequency of data collection, the source of the collected data, identification information for the application that generated the data collection command, and processing instructions on how to process the collected data. In some embodiments, the data type includes at least one of sensor data, application log data, and system log data. In some embodiments, the data collection command also includes priority level information for the data collection command. In some embodiments, the priority level is set based on the user's identity. In some embodiments, the priority level is set based on the application's functionality. In some embodiments, the DCU disables the priority level in the data collection command.

[0073] Method 300 also includes action 315 of the application sending data collection commands to the OS. In some implementations, the application's programming language or data structure differs from the DCU's programming language or data structure. The OS can use an API to facilitate communication of data collection commands from the application, enabling the DCU to use these commands to implement the instructions within the data collection commands.

[0074] Method 300 also includes action 320 of the OS sending a data request to the DCU. Using the OS to send the data request to the DCU helps make Method 300 independent of the application's data structures and programming languages. This increases the flexibility of implementing Method 300 across a large number of systems using applications developed by a wide range of users.

[0075] Method 300 also includes the action 325 of the DCU receiving a data collection command. In method 300, the DCU receives a data collection command from the OS. In some embodiments, the DCU receives the data collection command directly from an application. In some embodiments, the DCU receives the command from an application such as UI110. Figure 1 External devices such as ) receive data collection commands.

[0076] Method 300 also includes the action 330 of appending a data collection command to the queue for processing by the DCU based on priority information. The queue determines the order in which data satisfying the data collection command is collected and processed by the DCU. By including a priority level, the DCU can respond to data requests in a priority-based manner, so that lower-value data collection commands are quickly responded to higher-value data collection commands. This helps to maintain optimal vehicle performance. In some embodiments, the priority level of the data collection command increases as the time from receiving the data collection command from the DCU increases. In some embodiments where the data collection command does not include priority information, the data collection command is appended to the queue based on the timestamp when the DCU receives the data request. In some embodiments where the data collection command does not include priority information, the data collection command is appended to the queue based on the user's identity or the identification information of the application that generated the data collection command.

[0077] Method 300 also includes action 335, which involves the DCU determining whether the queue is empty. In response to the determination that the queue is empty, method 300 returns to action 335, waiting to receive new data requests. In response to the determination that the queue is not empty, method 300 proceeds to action 340.

[0078] Method 300 also includes action 340 whereby the DCU selects the next item from the queue. The next item is the data collection command with the highest priority level in the queue.

[0079] Method 300 also includes action 345 of removing lower-priority data collection commands from the queue. This action responds to a situation where the available capacity of the queue becomes less than a threshold capacity value and the priority level of the data request is less than the priority threshold by removing lower-priority data collection commands from the queue. Removing lower-priority data collection commands from the queue when it is close to its available capacity helps ensure that higher-priority data collection commands can be appended to the queue. Action 345 is omitted in some implementations. For example, in some implementations where the DCU determines that the queue has sufficient storage capacity, action 345 does not significantly improve the performance of the method; therefore, action 345 is omitted.

[0080] Method 300 also includes action 350 of removing duplicate data collection commands from the queue. In some embodiments, when a data collection command requests data that has already been requested by a previous data collection command, action 350 removes the subsequently received data collection command from the queue. In some embodiments, when a data collection command requests to collect data that is duplicated with a previous data collection command, action 350 removes the duplicate portion of the subsequently received data collection command from the queue. For example, in some embodiments, if a first data collection command requests data from the sensor at times t = 100, 102, 104, and 106, and subsequent data collection commands request data from the same sensor at times t = 102, 103, 104, 105, 106, 107, and 108, the portion of information in the subsequent data collection command that is duplicated with the first data collection command is removed. Thus, the corrected subsequent data collection commands only request to collect data from the sensor at times t = 103, 105, 107, and 108. The DCU investigates data requests in the queue to determine if any of the requests originate from the same application or user and contain identical commands regarding data collection and processing. In some implementations, the same application sends multiple data collection commands to the DCU with different information; therefore, removing data collection commands solely based on application or user identity increases the risk of improper handling. Removing duplicate data collection commands from the queue helps reduce unnecessary processing and transmission by the DCU. This reduces power consumption and data congestion in vehicles including the DCU.

[0081] Method 300 also includes an action 355 of the DCU collecting and processing data. The DCU collects data from a buffer, one or more sensors, an application, or memory based on the type of data requested via a data request from an application or user. In some embodiments where the DCU omits a portion of the data collection command, only the data related to the remainder of the data collection command is collected. In some instances, the processing differs between two repeated data collection commands. In some embodiments where repeated data collection commands have different processing instructions, all data is processed according to each data collection command. By omitting portions of data collection commands that are repeated from previous data collection commands, the DCU reduces processing load and energy consumption. By still processing the overall data set for the data collection command, the user is still provided with all the desired data. The DCU then processes the collected data based on the commands in the data collection command. Details of data processing are provided as described above in some embodiments. Furthermore, non-limiting examples of data processing will be provided... Figure 5A , Figure 5B as well as Figure 6The following is a detailed description.

[0082] Method 300 also includes an action 360 of sending the processed data to a user, application, or external device. In some embodiments, the processed data is transmitted, for example, via UI 110 (…). Figure 1 The processed data is sent to the user. In some implementations, the notification is sent along with the processed data. In some implementations, the notification includes an audible or visual warning. In some implementations, the notification enables a user-controlled mobile device to automatically display the notification. In some implementations, the processed data is sent to the application for storage, and the notification is sent to the user to access the processed data from the application. In some implementations, the processed data is sent to a server such as 120 for storage. Figure 1 External devices such as UI110 are used. In some embodiments, the processed data is sent to an external device, notifying the user to access the processed data from the external device. Figure 1 () is sent to the user.

[0083] Method 300 also includes the action 365 of the DCU removing data from memory. In some embodiments, data removal includes not only removing the collected raw data and metadata associated with the processed data, but also removing the processed data itself. In some embodiments, data removal includes identifying a section of memory where the data is stored and making that section of memory available by overwriting it with new data. Data removal helps prevent the memory from reaching a capacity that is reduced or impaired to allow the DCU to receive and process new data requests.

[0084] Method 300 also includes action 370 of determining whether an error was detected during data collection, processing, or transmission. In some embodiments, an error is detected in response to a situation where a portion of data stored in memory becomes unreadable or a portion of memory cannot be written to. In some embodiments, an error is detected in response to a situation where the DCU cannot properly interface with an application or external device. In some embodiments, the error is a network error such as an HTTP error or a cyclic redundancy check (CRC) error, indicating that the DCU cannot effectively send or receive data. For example, in some embodiments, an error is detected in response to a situation where a vehicle or device such as server 120 or UI 110 is lost during action 360. Figure 1The method detects network errors by responding to the connectivity issues between external devices such as [devices name missing]. Upon determining that an error has occurred, method 300 proceeds to action 375. Upon determining that no error has occurred, method 300 returns to action 335 to determine if the queue is empty. In some embodiments, when no error is detected, error-free and successfully completed data collection commands are removed from the queue; when an error is detected, data collection commands that failed to complete and ended due to an error are not removed from the queue but are retained in the queue for further processing. In some embodiments, the method detects errors by responding to the situation where a data request is received by the DCU but not processed. This type of error, in some instances, indicates that the DCU is not working or has crashed. In some embodiments, the method detects errors by responding to the situation where a data request is incorrectly identified by the DCU. This type of error, in some instances, indicates that the API between the application and the OS is a different version than the API between the DCU and the OS. In some embodiments, the method detects errors by responding to the situation including invalid commands. This type of error, in some instances, indicates a problem with the application or a problem with the data received from the user. In some implementations, errors are detected by responding to a situation where the tree or graphical structure of the processing instruction includes an invalid command. This type of error, in some instances, indicates a problem with the application or a problem with the data received from the user.

[0085] Method 300 also includes the action 375 of saving errors to a transmission error log from the DCU. In some embodiments, the error log can be accessed by an external device or a user. In some embodiments, the error log is sent to an external device or user after each error is detected. In some embodiments, the error log is sent to an external device or user when a predetermined number of new errors are entered. Generating and reporting error logs helps determine whether the DCU's memory has degraded to the point that further processing of data collection commands is inhibited.

[0086] In some embodiments, method 300 includes additional actions. For example, in some embodiments, method 300 includes the DCU investigating priority information in a data collection command and determining where to place the newly received data collection command in the queue. In some embodiments, method 300 includes actions in a different order. For example, in some embodiments, action 350 is performed before action 345. In some embodiments, at least one action of method 300 is omitted. For example, in some embodiments, action 345 is omitted. In some embodiments, when method 300 is used to process data collection commands received from an external device, actions 305-320 are omitted.

[0087] Figure 4 This is a diagram illustrating a data collection command 400 related to some implementation methods. In some implementations, the data collection command 400 is capable of being implemented in system 100 ( Figure 1 System 200 Figure 2 ) and / or method 300 ( Figure 3 In some implementations, the data collection command 400 is used by applications such as 216, 226, or 232. Figure 2 Applications such as UI110 are used to generate it. In some implementations, applications such as UI110 are used. Figure 1 The user generates data collection commands 400 using a UI such as [example UI]. Those skilled in the art will recognize that data collection command 400 is merely an example of a data collection command, and data collection commands with different parameters are also within the scope of this disclosure.

[0088] The data collection command 400 includes an event time parameter 401. The event time parameter 401 indicates the time at which a triggering event is detected. The data collection command 400 also includes a time range parameter 402, which indicates the start time for event parameter 403 and the end time for event parameter 404. The time range parameter 402 indicates the duration for which data should be collected in response to the detection of the triggering event. The start time for event parameter 403 represents the period prior to the detection of the triggering event for which data should be collected. The end time for event parameter 404 represents the period after the detection of the triggering event for which data should be collected. In some embodiments, the time range parameter 402 further includes a frequency parameter 408, which indicates the frequency at which data is collected during the period between the start time for event parameter 403 and the end time for event parameter 404. The data collection command 400 includes a data source ID parameter 405. The data source ID parameter 405 indicates which sensor or application should be used to collect data to satisfy the data collection command 400. In some embodiments, the data source ID parameter 405 includes an arrangement of sensors and / or applications. In some implementations, the data source ID parameter 405 includes only one or more sensors. In some implementations, the data source ID parameter 405 includes only one or more applications. In some implementations, the data source ID parameter 405 includes at least one sensor and at least one application. In some implementations, the data source ID parameter 405 includes an OS. The data collection command 400 also includes a priority parameter 406. The priority parameter 406 indicates the priority level requested by the data collection command 400. As discussed above, in some implementations, such as the DCU236 ( Figure 2DCUs such as those that invalidate priority parameter 406. Data collection command 400 also includes a requester ID parameter 407. The requester ID parameter 407 indicates the source of the data collection command 400. In some embodiments, the requester ID parameter 407 indicates the application that generated the data collection command 400. In some embodiments, the requester ID parameter 407 indicates the identity of the user who generated the data collection command 400. Data collection command 400 also includes a post-processing parameter 410. The post-processing parameter 410 indicates what processing should be performed on the collected data before the data is made available to the user. In some embodiments, the post-processing parameter 410 defines a tree structure for performing processing on the collected data.

[0089] Figure 5A This is a diagram of code 500A, represented by an example of an Interface Description Language (IDL) for data collection commands, relating to some implementation methods. Code 500A does not depend on systems such as 100 ( Figure 1 ) or System 200 ( Figure 2 This refers to systems used for collecting and processing data based on data collection commands, and for generating data collection commands. In some implementations, code 500A is described using JavaScript Open Notation (JSON). In some implementations, code 500A is described using different programming languages. Code 500A includes priority level information 510A. Code 500A also includes time range information 520A. Code 500A also includes post-processing information 530A representing a tree structure indicating processing instructions. This tree structure is the post-processing parameter 410 ( Figure 4 This is a non-limiting example. Code 500A also includes log level information 540A. Log level information 540A indicates what type of information the data collection command should retrieve from other applications to satisfy the data collection command. Those skilled in the art will understand that Code 500A is not merely an example, and additional information regarding data collection commands and other types of data structures are also within the scope of this disclosure.

[0090] Figure 5B This is a diagram of code 500B for image trimming, as described in some implementations. Code 500B represents the parameters contained in the nodes of the trimming unit. Code 500B is independent of systems such as 100 (…). Figure 1 ) or System 200 ( Figure 2This refers to systems used for collecting and processing data based on data collection commands, and for generating data collection commands. In some implementations, code 500B is described using JSON. In some implementations, the code is described using different programming languages. In some implementations, code 500B can be used as, for example, for post-processing information 530A (…). Figure 5A It is used as part of data collection commands such as )

[0091] Code 500B includes trimming angle information 510B. Trimming angle information 510B indicates the position of the top-left and bottom-right boundaries of the trimmed image. Code 500B also includes size change information 520B, which indicates the size of the trimmed image in the x and y directions after the size change. Code 500B also indicates interpolation information 530B, which indicates the algorithm used for interpolation between image size changes. Those skilled in the art will understand that code 500B is merely an example, and additional information for image trimming and other types of data structures are also within the scope of this disclosure. Those skilled in the art will understand that code 500A is not merely an example, and additional information regarding data collection commands and other types of data structures are also within the scope of this disclosure. Furthermore, those skilled in the art will understand that image trimming is merely an example, and additional types of processing are also within the scope of this disclosure.

[0092] Figure 6 This is a flowchart of a method 600, involving data processing to generate customized data, according to some implementations. In some implementations, method 600 uses system 100 ( Figure 1 ) or System 200 ( Figure 2 In some implementations, method 600 is used as method 300. Figure 3 This is performed as part of action 355. Method 600 has a tree structure. In method 600, each child node of the tree structure refers to a single parent node. In method 600, multiple child nodes can refer to a parent node.

[0093] Method 600 includes the action 605 of receiving image data. The image data is known as the root node in a tree structure. Image data is collected in response to a detected triggering event. In some embodiments, image data is collected from one or more cameras mounted on the vehicle. In some embodiments, image data is collected from sources such as buffer area 238. Figure 2Image data is retrieved from a buffer area such as a buffer region, thereby receiving the image data. In some implementations, the image data includes a single image. In some implementations, the image data includes multiple images acquired within a time range defined based on commands in data collection commands received from the application or the user.

[0094] Method 600 also includes an action 610 of trimming image data. Trimming the image selects portions of the image data for subsequent processing in the tree structure of method 600. Unselected portions of the image are removed and excluded from further processing. In some embodiments, the image data is trimmed based on commands from an application or user's data collection command. In some embodiments, the image is trimmed such that portions of the image data predetermined by commands in the data collection command are removed.

[0095] Method 600 also includes an action 615 of changing the size of the cropped image data. The size change is performed on the cropped image generated in action 610, but not on the original image data received in action 605. In some embodiments, the size of the image data is changed based on a command in a data collection command. In some embodiments, the size of the image data is changed to have a predetermined number of pixels based on a command in a data collection command. In some embodiments, the size of the image data is changed by adjusting the size of the image data according to a defined coefficient, such as 1.5 or 0.75, based on a command in a data collection command. In some embodiments, the command in the data request also includes an algorithm used during the size change of the image data.

[0096] Method 600 also includes an action 620 of compressing the first image after its image data has been resized using a PNG lossless algorithm. Compression is performed on the resized image generated in action 615, but not on the cropped image generated in action 610 or the original image data received in action 605. Compression is performed using an algorithm defined by the command in the data collection command. Furthermore, based on the command in the data collection command, compression is performed only on the first image.

[0097] Method 600 also includes an action 625 of uploading the compressed first image. In action 620, a compressed image is generated, known to be a leaf node in a tree structure. The compressed first image is intended for display to the user or, as in UI 110 (…). Figure 1 ) or server 120 ( Figure 1The compressed first image is uploaded to a queue by external devices such as [devices name missing]. In some embodiments, the compressed first image is uploaded to a memory accessible to the user, such as when a notification such as an audible or visual warning is sent to the user for access to the memory.

[0098] Method 600 also includes action 630, which uses the H.264 algorithm to compress the resized image data. Compression is performed on the resized image generated in action 615, but not on the cropped image generated in action 610 or the original image data received in action 605. In method 600, a portion of the resized image data is compressed using two different algorithms: lossless PNG in action 620 and H.264 in action 630. Compression is performed using the algorithm defined by the command in the data collection command. Alternatively, compression is performed on all image data based on the command in the data collection command.

[0099] Method 600 also includes action 635, which uploads the compressed image data from action 630. In action 630, a compressed image is generated, known to be a leaf node in a tree structure. The compressed image data is then sent to the user or, as in UI 110 (…). Figure 1 ) or server 120 ( Figure 1 The compressed image data is uploaded to a queue for transmission from external devices such as [device name missing]. In some embodiments, the compressed image data is uploaded to a memory accessible to the user, and notifications such as audible or visual warnings are sent to the user to access the memory. In some embodiments, actions 625 and 635 are performed in combination without sending notifications to the user until both actions 625 and 635 are completed. In some embodiments, a notification is sent to the user when either action 625 or action 635 is completed. Actions 625 and 635 include similar steps, but each action 625 and action 635 has a single parent node. That is, action 625 has the parent node of action 620, and action 635 has the parent node of action 630. Actions 625 and 635 do not share a common parent node. In some embodiments, actions 620 and 630 are processed in parallel by utilizing multiple cores of processor 702. In some embodiments, actions 625 and 635 are processed in parallel.

[0100] In some embodiments, method 600 includes additional actions. For example, in some embodiments, a large number of trimming actions are performed on the received image data. In some embodiments, at least one action of method 600 is omitted. For example, in some embodiments, action 615 is omitted, and action 610 is used as a parent node to perform actions 620 and 630. In some embodiments, the order of actions in method 600 is changed. For example, in some embodiments, actions 625 and 635 are performed simultaneously.

[0101] Figure 7 This is a diagram of a system 700 for collecting customized data, according to some implementation methods. System 700 includes a hardware processor 702 and a non-transitory computer-readable storage medium 704, which is encoded with computer program code 706, i.e., a set of executable commands, i.e., commands for storing the data. The computer-readable storage medium 704 is also encoded with commands for performing operations such as UI110 (…). Figure 1 ) or server 120 ( Figure 1 Command 707 is sent to the interface of external devices such as (e.g., ) . Processor 702 is electrically connected to computer-readable storage medium 704 via bus 708. Processor 702 is also electrically connected to I / O interface 710 via bus 708. Network interface 712 is also electrically connected to processor 702 via bus 708. Network interface 712 is connected to network 714 so that processor 702 and computer-readable storage medium 704 are connected to external elements via network 714. Processor 702 is configured to execute computer program code 706 encoded in computer-readable storage medium 504, so as to enable the execution of commands such as those in system 100 ( Figure 1 System 200 Figure 2 Method 300 Figure 3 ) or method 600 ( Figure 6 The system 700 describes part or all of such actions.

[0102] In some implementations, processor 702 is a central processing unit (CPU), a graphics processing unit (GPU), a multiprocessor, a distributed processing system, an application-specific integrated circuit (ASIC), and / or a suitable processing unit.

[0103] In some embodiments, the computer-readable storage medium 704 is an electronic, magnetic, optical, electromagnetic, infrared, and / or semiconductor system (or apparatus or device). For example, the computer-readable storage medium 704 includes semiconductor memory or solid-state memory, magnetic tape, removable computer disk, random access memory (RAM), read-only memory (ROM), rigid disk, and / or optical disk. In some embodiments using optical disk, the computer-readable storage medium 704 includes a compact disc read-only memory (CD-ROM), a read-write optical disc (CD-R / W), and / or a digital video disc (DVD).

[0104] In some embodiments, storage medium 704 stores computer program code 706, which is configured to cause system 700 to perform actions as in system 100. Figure 1 System 200 Figure 2 Method 300 Figure 3 ) or method 600 ( Figure 6 Some or all of the actions described in the document are included. In some embodiments, the storage medium 704 also stores parameters such as trigger event parameters 706, tree node parameters 718, data processing parameters 720, time range parameters 722, and / or parameters used to perform actions such as those described in system 100. Figure 1 System 200 Figure 2 Method 300 Figure 3 ) or method 600 ( Figure 6 The description of such an action as part or all of a set of executable commands, etc., executed in system 100 ( Figure 1 System 200 Figure 2 Method 300 Figure 3 ) or method 600 ( Figure 6 The information generated during part or all of the period during which such an action is described in the system 100, and the information generated in order to perform such an action in the system 100. Figure 1 System 200 Figure 2 Method 300 Figure 3 ) or method 600 ( Figure 6 The information required to describe part or all of such an action is described in the document.

[0105] In some embodiments, storage medium 704 stores commands 707 for interfacing with manufacturing machinery. Command 707 instructs processor 702 to efficiently implement commands such as those in system 100. Figure 1 System 200 Figure 2 Method 300 Figure 3 ) or method 600 ( Figure 6It becomes possible to generate manufacturing commands that can be read by external devices by performing some or all of the actions described in the document.

[0106] System 700 includes an I / O interface 710. The I / O interface 710 is coupled to external circuitry. In some embodiments, the I / O interface 710 includes a keyboard, keypad, mouse, trackball, trackpad, and / or cursor arrow keys for transmitting information and commands to processor 702.

[0107] System 700 further includes a network interface 712 integrated with processor 702. Network interface 712 enables system 700 to communicate with a network 714 connected to one or more other computer systems. Network interface 712 includes wireless network interfaces such as Bluetooth, Wi-Fi, WiMAX, GPRS, or WCDMA, or wired network interfaces such as Ethernet, USB, or IEEE-1394. In some embodiments, implementations such as in system 100 are performed in two or more systems 700. Figure 1 System 200 Figure 2 Method 300 Figure 3 ) or method 600 ( Figure 6 The entirety of the actions described in the document is exchanged between different systems 700 via network 714, including information such as trigger events, tree nodes, data processing, and time ranges.

[0108] One aspect of this disclosure relates to a vehicle. The vehicle includes sensors. The vehicle also includes a transmitter. The vehicle further includes a non-transitory computer-readable medium configured to store commands. The vehicle also includes a processor connected to the non-transitory computer-readable medium. The processor is configured to execute commands to receive or generate a data collection command, the data collection command including processing instructions for processing collected data, the processing instructions including multiple processing actions to be performed, and the type of processing for each processing action. The processor is further configured to execute commands to: collect data from at least one of sensors, application logs, and system logs based on the data collection command. The processor is further configured to execute commands to: process the collected data based on the processing instructions. The processor is further configured to execute commands to instruct the transmitter to transmit the processed data. In some embodiments, the vehicle also includes multiple sensors, the sensor being one of multiple sensors, and the processor is configured to execute commands to: identify the sensor from the multiple sensors based on the received data collection command. In some embodiments, the non-transitory computer-readable medium further includes an application stored in the non-transitory computer-readable medium and executed by a processor, the processor being configured to respond to detection of the occurrence of a triggering event and generate a data collection command. In some embodiments, the non-transitory computer-readable medium is configured to store a reference for determining the triggering event. In some embodiments, the data collection command includes an indication of a time range for the collected information. In some embodiments, the data collection command includes priority level information. In some embodiments, the processor is configured to execute the command such that: the collected data is processed based on a tree structure defined by the data collection command. In some embodiments, the data collection command includes information relating to an algorithm for performing at least one processing action. In some embodiments, the processor is further configured to execute the command such that: a second data collection command is received or generated; it is determined whether data collected based on the second data collection command is duplicated with data collected based on the data collection command; data collection indications regarding duplicate data are removed from the second data collection command; and the second data collection command as a whole is processed.

[0109] One technical solution disclosed herein relates to a method. The method includes receiving a data collection command, the data collection command including processing instructions for processing collected data, the processing instructions including multiple processing actions to be performed and the type of processing for each processing action. The method further includes: collecting data from at least one of sensors connected to a vehicle, application logs, and system logs based on the data collection command. The method further includes: processing the collected data based on the processing instructions. The method further includes instructing a transmitter to send the processed data. In some embodiments, the method further includes: selecting a sensor from multiple sensors installed in the vehicle based on the data collection command. In some embodiments, the method further includes executing an application, which includes: responding to the detection of a triggering event by generating a data collection command. In some embodiments, the triggering event includes application crashes and the detection of application anomalies. In some embodiments, the method further includes: generating a data collection command including a command about a time range of the collected information. In some embodiments, the method further includes generating a data collection command including priority level information. In some embodiments, processing the collected data includes: processing the collected data based on a tree structure defined by the data collection command. In some embodiments, the method further includes: generating a data collection command that includes information relating to an algorithm for performing at least one processing action. In some embodiments, the method further includes: receiving or generating a second data collection command, determining whether data collected based on the second data collection command is duplicated with data collected based on the data collection command, removing data collection instructions regarding duplicate data from the second data collection command, and processing the second data collection command as a whole.

[0110] One technical solution disclosed herein relates to a system. The system includes a non-transitory computer-readable medium configured to store commands. The system also includes a processor connected to the non-transitory computer-readable medium. The processor is configured to execute commands based on instructions from a user to receive a data collection instruction, the data collection instruction including a triggering event, the type of data to be collected, and a time range for data collection. The processor is further configured to execute commands to receive a processing instruction from the user, the processing instruction having a tree structure of processing actions to be performed on the collected data and the type of processing for each node of the tree structure. The processor is further configured to execute commands to generate a data collection command based on the received data collection instruction and the received processing instruction. The processor is further configured to execute commands to instruct the sending of a data collection command to a data collection unit of a vehicle having sensors in response to the detection of a triggering event. In some embodiments, the processor is further configured to execute commands to instruct the sending of a data collection command and the sending of an application log.

[0111] The foregoing description outlines some key features of the embodiments to enable those skilled in the art to better understand the technical solutions of this disclosure. Those skilled in the art should recognize that this disclosure can be readily used as a basis for designing or modifying other processes and structures to achieve the same objectives and / or advantages as the embodiments described herein. Those skilled in the art should also recognize that such equivalent configurations do not depart from the spirit and scope of this disclosure, and various changes, substitutions, and modifications can be made therein without departing from the spirit and scope of this disclosure.

Claims

1. A vehicle, comprising: sensor; Transmitter; A non-transitory computer-readable medium, configured to store commands; and A processor, which is connected to the non-transitory computer-readable medium, The processor is configured to execute the command such that: Receives a data collection command customized by the user, the data collection command including: The triggering event, the type of data to be collected, the time range for collecting the data, and the processing instructions for processing the collected data. Based on the data collection command, data is collected from at least one of the sensors, application logs, and system logs. Based on the processing instructions, the collected data is processed. The transmitter is instructed to send the processed data, which is then provided to the user in a predetermined format. The processing instructions include the number of times each of several processing actions should be performed on the collected data, selected by the user, and the type of processing for each of those actions. The non-transitory computer-readable medium also includes an application stored in the non-transitory computer-readable medium and executed by the processor. The processor is configured to generate the data collection command in response to the detection of a triggering event.

2. The vehicle according to claim 1, It also has multiple sensors. The sensor is one of the plurality of sensors, and the processor is configured to execute the command such that: based on the received data collection command, the sensor is identified from the plurality of sensors.

3. The vehicle according to claim 1, The non-transient computer-readable medium is configured to store a reference for determining the triggering event.

4. The vehicle according to any one of claims 1 to 3, The data collection command includes an indication of the time range of the sensor data to be collected.

5. The vehicle according to any one of claims 1 to 3, The data collection command includes priority level information.

6. The vehicle according to any one of claims 1 to 3, The processor is configured to execute the command such that the collected data is processed based on a tree defined by the data collection command.

7. The vehicle according to any one of claims 1 to 3, The data collection command includes information related to an algorithm for performing at least one of the processing actions.

8. The vehicle according to any one of claims 1 to 3, The processor is further configured to execute the command such that: Receive or generate the second data collection command. Determine whether the data collected based on the second data collection command is duplicated with the data collected based on the data collection command. Remove the data collection instructions regarding duplicate data from the second data collection command. The entire second data collection command is processed.

9. A method comprising: The user receives a data collection command customized by the user, the data collection command including: a trigger event, the type of data to be collected, the time range for collecting the data, and a processing instruction for processing the collected data; Based on the data collection command, data is collected from at least one of the sensors connected to the vehicle, application logs, and system logs; Based on the processing instructions, the collected data is processed; and The transmitter instructs the user to send processed data, providing the data in a predetermined format. The processing instructions include the number of times each of several processing actions should be performed on the collected data, selected by the user, and the type of processing for each of the processing actions. It also includes executing the application. The execution of the application includes responding to the detection of a triggering event to generate the data collection command.

10. The method of claim 9, further comprising: Based on the data collection command, the sensor is selected from a plurality of sensors installed in the vehicle.

11. The method according to claim 9, The triggering events include the application crashing and the detection of an anomaly in the application.

12. The method according to any one of claims 9 to 11, further comprising: Generate the data collection command, which includes an indication of the time range of the sensor data to be collected.

13. The method according to any one of claims 9 to 11, further comprising: Generate the data collection command, which includes priority level information.

14. The method according to any one of claims 9 to 11, Processing the collected data includes processing the collected data based on a tree structure defined by the data collection command.

15. The method according to any one of claims 9 to 11, further comprising: The data collection command generates information relating to an algorithm for performing at least one of the processing actions.

16. The method according to any one of claims 9 to 11, further comprising: Receive the second data collection command; Determine whether the data collected based on the second data collection command is duplicated with the data collected based on the data collection command. Remove the data collection instructions regarding duplicate data from the second data collection command; as well as The entire second data collection command is processed.

17. A system having: Non-transitory computer-readable media, configured to store commands; and A processor, which is connected to the non-transitory computer-readable medium, The processor is configured to execute the command such that: The system receives user-defined data collection instructions based on user input. These instructions include a triggering event, the type of data to be collected, and the timeframe for collecting the data. The user receives processing instructions, which include a tree structure of processing actions to be performed on the collected data, and the type of processing for each node in the tree structure. Based on the received data collection instructions and processing instructions, a data collection command is generated. In response to the detection of the triggering event, the system instructs the data collection command to be sent to the data collection unit of the vehicle, which includes sensors. Data is provided to the user in a predetermined format.

18. The system according to claim 17, The processor is further configured to execute the command such that: the sending of application logs is instructed together with the sending of the data collection command.

Citation Information

Patent Citations

  • Data collection apparatus, data collection system, data collection method, and on-vehicle device

    CN110874929A

  • Vehicular data acquisition device and vehicular data acquisition method

    JP2012221031A