Vehicle data uploading method and device based on vehicle-mounted Ethernet
By obtaining real-time data and upload mode in the vehicle data upload method, and adopting appropriate upload methods, the problem of bandwidth waste when uploading vehicle data is solved and the user experience is improved.
Patent Information
- Application Number
- CN202411373805.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-29
- Publication Date
- 2025-01-14
AI Technical Summary
When vehicle data is uploaded over Ethernet, it is easy to cause waste of bandwidth resources, affecting users' experience in other vehicle functions.
A vehicle data upload method based on vehicle Ethernet is provided. By obtaining real-time vehicle data and the current vehicle data upload mode, different upload methods are adopted according to the upload mode. In real-time mode, data is uploaded based on the preset period; in event mode, the data to be uploaded is determined based on the target upload trigger event.
It reduces the bandwidth resources occupied by vehicle data upload and improves the user experience on other vehicle functions.
Smart Images

Figure CN119316367A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of data processing, and in particular to a vehicle data uploading method and device based on vehicle-mounted Ethernet. Background Art
[0002] Currently, vehicle-side data uploads are mainly based on Controller Area Network (CAN) data, and are generally uploaded in real-time data streams.
[0003] However, the data transmission rate supported by the CAN bus is limited. In application scenarios with high requirements for transmission bandwidth, data transmission via the CAN bus will be difficult to meet data transmission requirements.
[0004] Ethernet provides a higher data transmission rate and can meet application scenarios with high requirements for transmission bandwidth. However, when vehicle-side data is currently uploaded via Ethernet, it is also uploaded in the form of real-time data streams, which easily causes a waste of bandwidth resources and affects the user experience of other vehicle functions. Summary of the invention
[0005] In view of this, it is necessary to provide a vehicle data uploading method and device based on vehicle-mounted Ethernet to solve the problem that bandwidth resources are easily wasted when uploading vehicle-side data via Ethernet.
[0006] In order to solve the above problems, the present invention provides a vehicle data uploading method based on vehicle Ethernet, comprising: Get real-time vehicle data and current vehicle data upload mode; When the current vehicle data uploading mode is the real-time mode, uploading the real-time vehicle data based on a first preset period; When the current vehicle data upload mode is the event mode, the vehicle data to be uploaded is determined based on the target upload trigger event and uploaded.
[0007] In a possible implementation, the method further includes: When the current vehicle data upload mode is the event mode, the acquired real-time vehicle data is stored in a packet cache queue, each network packet in the real-time vehicle data corresponds to an index number, and the index numbers corresponding to each network packet are arranged consecutively according to the receiving time; The target index number is recorded based on a second preset period, where the target index number is the index number corresponding to the network packet whose receiving time is closest to the current moment.
[0008] In a possible implementation, determining the vehicle data to be uploaded based on the target upload triggering event includes: Determining the vehicle data to be uploaded based on the target index number at the triggering time of the target upload triggering event, the target index number at the first time, and the triggering time of the second upload triggering event; The first moment is the moment that is a first time length before the target moment, the second upload trigger event is the upload trigger event whose trigger time is closest to the second moment, the second moment is the moment that is a first time length after the target moment, and the target moment is the trigger time of the target upload trigger event.
[0009] In a possible implementation, determining the vehicle data to be uploaded based on the target index number at the triggering time of the target upload triggering event, the target index number at the first time, and the triggering time of the second upload triggering event includes: In the case where the second upload triggering event is the target upload triggering event, a network packet having an index number between the target index number at the first moment and the target index number at a third moment is determined as the vehicle data to be uploaded, and the third moment is a moment at a second time length after the target moment; In the case that the second upload trigger event is not the target upload trigger event, the network packet whose index number is between the target index number at the first moment and the target index number at the fourth moment is determined as the vehicle data to be uploaded, and the fourth moment is the moment at the second time length after the triggering moment of the second upload trigger event.
[0010] In a possible implementation, the method further includes: Before uploading the real-time vehicle data or the vehicle data to be uploaded, the real-time vehicle data or the vehicle data to be uploaded are spliced into JSON data.
[0011] In a possible implementation, the splicing of the real-time vehicle data or the vehicle data to be uploaded into JSON data includes: The real-time vehicle data or the vehicle data to be uploaded are spliced into JSON data based on the identity information of TBOX and the current timestamp information.
[0012] In a possible implementation, the acquiring of real-time vehicle data includes: Monitor the multicast address of ADECU and / or MPU to obtain the real-time vehicle data.
[0013] The present invention also provides a vehicle data uploading device based on vehicle Ethernet, comprising: The acquisition module is used to obtain real-time vehicle data and the current vehicle data upload mode; A first uploading module, configured to upload the real-time vehicle data based on a first preset period when the current vehicle data uploading mode is a real-time mode; The second uploading module is used to determine and upload the vehicle data to be uploaded based on the target upload triggering event when the current vehicle data uploading mode is the event mode.
[0014] The present invention also provides an electronic device, including a memory and a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the program, the vehicle data uploading method based on vehicle Ethernet as described above is implemented.
[0015] The present invention also provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the vehicle data uploading method based on the vehicle Ethernet as described above is implemented.
[0016] The beneficial effects of the present invention are as follows: the vehicle data uploading method and device based on vehicle-mounted Ethernet provided by the present invention first obtain real-time vehicle data and a vehicle data uploading mode, then confirm the current data uploading demand according to the vehicle data uploading mode, and then adopt the corresponding data uploading method according to the current data uploading demand. When there is no need to upload vehicle data in real time, data uploading is triggered by a target trigger event, thereby reducing the bandwidth resources occupied by vehicle data uploading and improving the user experience of other vehicle functions. The present invention can adjust the vehicle data uploading method according to the current data uploading demand, reducing the bandwidth resources occupied by vehicle data uploading and improving the user experience of other vehicle functions. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] Figure 1 A flow chart of an embodiment of a method for uploading vehicle data based on vehicle Ethernet provided by the present invention; Figure 2 A schematic diagram of a process flow of an embodiment of a vehicle data uploading process provided by the present invention; Figure 3 A structural schematic diagram of an embodiment of a vehicle data uploading device based on vehicle Ethernet provided by the present invention; Figure 4 A schematic structural diagram of an electronic device according to an embodiment of the present invention. DETAILED DESCRIPTION
[0018] The preferred embodiments of the present invention are described in detail below in conjunction with the accompanying drawings, wherein the accompanying drawings constitute a part of this application and are used together with the embodiments of the present invention to illustrate the principles of the present invention, but are not used to limit the scope of the present invention.
[0019] In the description of the present invention, the terms "first" and "second" are used for descriptive purposes only and cannot be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In addition, the meaning of "plurality" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined.
[0020] In the description of the present invention, reference to an "embodiment" means that a particular feature, structure, or characteristic described in conjunction with the embodiment may be included in at least one embodiment of the present invention. The appearance of the phrase in various places in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive of other embodiments. It is explicitly and implicitly understood by those skilled in the art that the described embodiments may be combined with other embodiments.
[0021] Currently, vehicle-side data upload is mainly in the form of CAN data, and is generally uploaded as a real-time data stream.
[0022] However, the data transmission rate supported by the CAN bus is limited. In application scenarios with high requirements for transmission bandwidth, data transmission via the CAN bus will be difficult to meet data transmission requirements.
[0023] Ethernet provides a higher data transmission rate and can meet application scenarios with high requirements for transmission bandwidth. However, when vehicle-side data is currently uploaded via Ethernet, it is also uploaded in the form of real-time data streams, which easily causes a waste of bandwidth resources and affects the user experience of other vehicle functions.
[0024] In order to solve the above problems, the present invention provides a vehicle data uploading method based on vehicle Ethernet.
[0025] The specific embodiments are described in detail below: A specific embodiment of the present invention discloses a vehicle data uploading method based on vehicle Ethernet, combined with Figure 1 Come and see, Figure 1 The flowchart of an embodiment of a vehicle data uploading method based on vehicle Ethernet provided by the present invention includes steps S101 to S103, wherein: In step S101, real-time vehicle data and the current vehicle data uploading mode are obtained; In step S102, when the current vehicle data uploading mode is the real-time mode, the real-time vehicle data is uploaded based on a first preset period; In step S103, when the current vehicle data upload mode is the event mode, the vehicle data to be uploaded is determined based on the target upload trigger event and uploaded.
[0026] During implementation, the telematics box (TBOX) on the vehicle can first obtain real-time vehicle data from the autonomous driving electronic control unit (ADECU) and / or microprocessor unit (MPU), such as the vehicle's real-time operating parameters, video information around the vehicle, etc.
[0027] Then you can also obtain the current vehicle data upload mode. The vehicle data upload mode can be issued by the data demand platform, which mainly includes real-time mode and event mode. In real-time mode, the platform has a higher demand for vehicle data, which is generally used in vehicle testing before leaving the factory; in event mode, the platform only needs to obtain vehicle data before and after certain specific events, such as vehicle failure events, which is generally used during the normal operation of the vehicle.
[0028] When the current vehicle data upload mode is real-time mode, TBOX can upload real-time vehicle data to the data demand platform according to the first preset period (for example, every 5 seconds); when the current vehicle data upload mode is event mode, TBOX can determine the vehicle data to be uploaded and upload it according to the target upload trigger event. The target upload trigger event can be a vehicle failure event, an abnormal driving event, etc.
[0029] The vehicle data uploading method based on vehicle Ethernet provided by the present invention can be applied to the pre-delivery test scenario of commercial vehicles, and can also be applied to the operation monitoring scenario of commercial vehicles, and the present invention does not make specific limitations on this.
[0030] Compared with the prior art, the vehicle data uploading method based on vehicle Ethernet provided in this embodiment first obtains real-time vehicle data and a vehicle data uploading mode, then confirms the current data uploading demand according to the vehicle data uploading mode, and then adopts the corresponding data uploading method according to the current data uploading demand. When there is no need to upload vehicle data in real time, data uploading is triggered by a target trigger event, thereby reducing the bandwidth resources occupied by vehicle data uploading and improving the user experience of other vehicle functions. The present invention can adjust the vehicle data uploading method according to the current data uploading demand, reducing the bandwidth resources occupied by vehicle data uploading and improving the user experience of other vehicle functions.
[0031] Exemplarily, the method further includes: When the current vehicle data upload mode is the event mode, the acquired real-time vehicle data is stored in a packet cache queue, each network packet in the real-time vehicle data corresponds to an index number, and the index numbers corresponding to each network packet are arranged consecutively according to the receiving time; The target index number is recorded based on a second preset period, where the target index number is the index number corresponding to the network packet whose receiving time is closest to the current moment.
[0032] Specifically, when the current vehicle data upload mode is the event mode, TBOX can first store the acquired real-time vehicle data in the packet cache queue. In addition, each network packet in the real-time vehicle data corresponds to an index number, and the index numbers corresponding to each network packet are arranged continuously according to the receiving time. TBOX can record the index number (i.e., the target index number) corresponding to the network packet whose receiving time is closest to the current time according to the second preset period (e.g., every 1s or every 0.5s), thereby providing a basis for the subsequent determination of the vehicle data to be uploaded.
[0033] Exemplarily, determining the vehicle data to be uploaded based on the target upload triggering event includes: Determining the vehicle data to be uploaded based on the target index number at the triggering time of the target upload triggering event, the target index number at the first time, and the triggering time of the second upload triggering event; The first moment is the moment that is a first time length before the target moment, the second upload trigger event is the upload trigger event whose trigger time is closest to the second moment, the second moment is the moment that is a first time length after the target moment, and the target moment is the trigger time of the target upload trigger event.
[0034] Specifically, when determining the vehicle data to be uploaded according to the target upload trigger event, the vehicle data to be uploaded can be determined according to the target index number of the triggering moment (i.e., the target moment) of the target upload trigger event, the target index number of the moment (i.e., the first moment) of the first time length (e.g., 10s) before the target moment, and the triggering moment of the second upload trigger event, thereby ensuring that the vehicle data related to the target upload trigger event can be uploaded. The second upload trigger event is the upload trigger event whose triggering moment is closest to the moment (i.e., the second moment) of the first time length (e.g., 10s) after the target moment.
[0035] Exemplarily, determining the vehicle data to be uploaded based on the target index number at the triggering time of the target upload triggering event, the target index number at the first time, and the triggering time of the second upload triggering event includes: In the case where the second upload triggering event is the target upload triggering event, a network packet having an index number between the target index number at the first moment and the target index number at a third moment is determined as the vehicle data to be uploaded, and the third moment is a moment at a second time length after the target moment; In the case that the second upload trigger event is not the target upload trigger event, the network packet whose index number is between the target index number at the first moment and the target index number at the fourth moment is determined as the vehicle data to be uploaded, and the fourth moment is the moment at the second time length after the triggering moment of the second upload trigger event.
[0036] Specifically, after the target upload trigger event is triggered, there may be other related upload trigger events, or there may not be other upload trigger events. Therefore, it is necessary to determine the vehicle data to be uploaded according to the actual situation.
[0037] When the second upload trigger event is a target upload trigger event, the network packet with an index number between the target index number at the first moment and the target index number at the moment (i.e., the third moment) at a second time length (e.g., 5s) after the target moment can be determined as the vehicle data to be uploaded.
[0038] When the second upload trigger event is not a target upload trigger event, the network packets with index numbers between the target index number at the first moment and the target index number at the fourth moment can be determined as the vehicle data to be uploaded, and the fourth moment is the moment at which the second time length (e.g., 5s) is located after the triggering moment of the second upload trigger event. That is, at most, the vehicle data within the first time length + the second time length after the target moment needs to be uploaded. For example, if the first time length is set to 10s and the second time length is set to 5s, then at most, the vehicle data within 15s after the target moment needs to be uploaded.
[0039] Exemplarily, the method further includes: Before uploading the real-time vehicle data or the vehicle data to be uploaded, the real-time vehicle data or the vehicle data to be uploaded are spliced into JSON data.
[0040] Specifically, in order to facilitate the transmission of vehicle data, before uploading the real-time vehicle data or the vehicle data to be uploaded, TBOX can splice the real-time vehicle data or the vehicle data to be uploaded into JavaScript Object Notation (JSON) data and then upload it.
[0041] Exemplarily, the splicing of the real-time vehicle data or the vehicle data to be uploaded into JSON data includes: The real-time vehicle data or the vehicle data to be uploaded are spliced into JSON data based on the identity information of TBOX and the current timestamp information.
[0042] Specifically, when TBOX splices real-time vehicle data or vehicle data to be uploaded into JSON data, it can also splice its own identity (such as vid, tboxid, simid, etc.) and current timestamp information into the JSON data.
[0043] Exemplarily, in a possible implementation, the acquiring real-time vehicle data includes: Monitor the multicast address of ADECU and / or MPU to obtain the real-time vehicle data.
[0044] Specifically, when acquiring real-time vehicle data, TBOX may acquire real-time vehicle data by monitoring the multicast address of ADECU and / or MPU.
[0045] The technical solution of the present invention is better described below with reference to a specific embodiment: The vehicle data upload solution provided by the present invention mainly involves TBOX, ADECU / MPU, front-view integrated machine and surround-view controller, combined with Figure 2 Come and see, Figure 2 This is a flow chart of an embodiment of a vehicle data uploading process provided by the present invention, and the process includes the following steps: When the data upload mode is "real-time mode", the ADECU / MPU sends real-time Ethernet data, and TBOX transmits it to the platform for analysis.
[0046] When the data upload mode is "Event Mode", TBOX rolls and caches Ethernet event data, determines whether to upload the cached data based on the event ID, and captures the first 10s and last 5s of data for upload based on the event occurrence time. When multiple events are continuous or the interval is less than 15s, data is continuously uploaded to the last 5s of the last event.
[0047] The TBOX implementation involves three threads: the packet receiving thread, the event mode packet sending thread, and the real-time mode packet sending thread.
[0048] 1. Packet receiving thread.
[0049] The packet receiving operation mainly monitors the multicast addresses of ADECU and MPU and receives network packets from the bottom layer, so the packet receiving operation is the same in both modes. The difference is that after receiving the network packet, the event mode will store the packet, and when an event occurs, the event mode packet sending thread will extract the network packet at the corresponding time point from the cache area, process it into compressed json data, and then send it out; while the real-time mode will process the packet into json data and cache it after receiving it, and when it exceeds 5s, it will wake up the real-time mode packet sending thread to compress the json data in the cache area and send it out.
[0050] 2. Network packet processing flow.
[0051] The two modes process network packets in the same way after receiving them. The process is mainly divided into the following steps: a. Parse network packets.
[0052] The network packet may be multiple packets or single packets, and needs to be processed after parsing according to the protocol header. If it is a single packet, go directly to the next step; if it is multiple packets, you need to assemble them into a complete packet before going to the next step.
[0053] b. Assemble json object data.
[0054] After taking out the valid data of a single network packet or an assembled multi-packet complete network packet, it is spliced with TBOX's vid, tboxid, simid, timestamp and other information to form a json data and temporarily stored in a buffer.
[0055] c. Send data Event Mode: Gzip the JSON data 10s before and 5s (or ≤15s) after the event is triggered, and send it to the platform using HTTP file transfer.
[0056] Live Mode: Every 5 seconds, the data in the JSON data buffer will be gzip compressed and sent to the platform using HTTP file transfer.
[0057] 3. Event mode packet sending thread In event mode, the packet receiving thread will store the received network packets in the packet cache queue. Each network packet will correspond to an index number, and a network packet counter cache queue will record the current packet index number every 1 second to trace which network packet corresponds to the 10 seconds before the trigger event. When an event occurs, the trigger time is recorded, and the index number of the corresponding packet 10 seconds ago is found from the network packet counter cache queue based on the trigger time. Then, based on the index number 10 seconds ago and the index number at the current moment, the 10 seconds of data is taken out from the packet cache queue, and the data is processed and sent to the platform. The remaining 5s (or ≤15s) data has not been cached yet, so it needs to wait for 5s (<=15s) and be sent after unified processing. In the case of ≤15s, if multiple events are generated continuously within 10s after the trigger time, in order to reduce the upload of duplicate data, the data between the trigger time of the last event and the 10s before the first trigger time will be sent, as well as the data 5s after the trigger time of the last event, so there will be data 15s after the trigger at most.
[0058] The present invention can meet different data acquisition requirements while ensuring vehicle driving safety.
[0059] The embodiment of the present invention also provides a vehicle data uploading device based on vehicle Ethernet, Figure 3 Come and see, Figure 3 The schematic diagram of the structure of an embodiment of a vehicle data upload device based on vehicle Ethernet provided by the present invention is as follows. The vehicle data upload device 300 based on vehicle Ethernet includes: The acquisition module 301 is used to acquire real-time vehicle data and the current vehicle data upload mode; A first uploading module 302, configured to upload the real-time vehicle data based on a first preset period when the current vehicle data uploading mode is a real-time mode; The second uploading module 303 is used to determine and upload the vehicle data to be uploaded based on the target upload triggering event when the current vehicle data uploading mode is the event mode.
[0060] The specific implementation methods of each module of the vehicle data upload device based on vehicle Ethernet can refer to the description of the above-mentioned vehicle data upload method based on vehicle Ethernet, and have similar beneficial effects, which will not be repeated here.
[0061] The embodiment of the present invention further provides an electronic device, Figure 4 Come and see, Figure 4 This is a structural diagram of an embodiment of an electronic device provided by the present invention. The electronic device 400 includes a processor 401, a memory 402, and a computer program stored in the memory 402 and executable on the processor 401. When the processor 401 executes the program, the vehicle data uploading method based on the vehicle Ethernet as described above is implemented.
[0062] As a preferred embodiment, the electronic device 400 further includes a display 403 for displaying that the processor 401 executes the vehicle data uploading method based on the vehicle Ethernet as described above.
[0063] Exemplarily, the computer program may be divided into one or more modules / units, one or more modules / units are stored in the memory 402, and executed by the processor 401 to complete the present invention. One or more modules / units may be a series of computer program instruction segments that can complete specific functions, and the instruction segments are used to describe the execution process of the computer program in the electronic device 400. For example, the computer program may be divided into the acquisition module 301, the first upload module 302, and the second upload module 303 in the above embodiment. The specific functions of each module are as described above, and are not repeated here.
[0064] The electronic device 400 may be a desktop computer, a notebook, a PDA or a smart phone with an adjustable camera module.
[0065] Among them, the processor 401 may be an integrated circuit chip with signal processing capabilities. The above-mentioned processor 401 may be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it may also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present invention can be implemented or executed. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.
[0066] The memory 402 may be, but is not limited to, a random access memory (RAM), a read only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electric erasable programmable read-only memory (EEPROM), etc. The memory 402 is used to store programs, and the processor 401 executes the program after receiving the execution instruction. The process definition method disclosed in any of the embodiments of the present invention may be applied to the processor 401 or implemented by the processor 401.
[0067] The display 403 may be an LCD display screen or an LED display screen, for example, a display screen on a vehicle-mounted device.
[0068] Understandably, Figure 4 The structure shown is only a schematic diagram of the structure of the electronic device 400. The electronic device 400 may also include Figure 4 More or fewer components as shown. Figure 4 Each component shown in the figure can be implemented by hardware, software or a combination thereof.
[0069] The electronic device provided according to the above-mentioned embodiment of the present invention can be implemented with reference to the specific description of the vehicle data upload method based on the vehicle Ethernet as described above according to the present invention, and has similar beneficial effects as the vehicle data upload method based on the vehicle Ethernet as described above, which will not be repeated here.
[0070] An embodiment of the present invention further provides a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the vehicle data uploading method based on vehicle Ethernet as described above is implemented.
[0071] Generally speaking, the computer instructions for implementing the method of the present invention can be carried by any combination of one or more computer-readable storage media. Non-transitory computer-readable storage media can include any computer-readable media except for the signal itself that is temporarily propagating.
[0072] Computer-readable storage media may be, for example, but not limited to, electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatuses, or devices, or any combination thereof. More specific examples of computer-readable storage media (a non-exhaustive list) include: an electrical connection having one or more conductors, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In this document, a computer-readable storage medium may be any tangible medium that contains or stores a program that may be used by or in conjunction with an instruction execution system, apparatus, or device.
[0073] Computer program codes for performing the operations of the present invention may be written in one or more programming languages or a combination thereof, including object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages, in particular, Python suitable for neural network computing and platform frameworks based on TensorFlow, PyTorch, etc. may be used. The program code may be executed entirely on the user's computer, partially on the user's computer, as an independent software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0074] Those skilled in the art will appreciate that all or part of the processes of the above-mentioned embodiments can be implemented by instructing related hardware through a computer program, and the program can be stored in a computer-readable storage medium, wherein the computer-readable storage medium is a disk, an optical disk, a read-only storage memory, or a random access memory, etc.
[0075] The present invention discloses a vehicle data uploading method and device based on vehicle-mounted Ethernet. First, real-time vehicle data and a vehicle data uploading mode are acquired. Then, according to the vehicle data uploading mode, a current data uploading requirement is confirmed. Then, according to the current data uploading requirement, a corresponding data uploading method is adopted. When there is no need to upload vehicle data in real time, data uploading is triggered by a target triggering event, thereby reducing the bandwidth resources occupied by vehicle data uploading and improving the user experience of using other vehicle functions. The present invention can adjust the vehicle data uploading method according to the current data uploading requirement, thereby reducing the bandwidth resources occupied by vehicle data uploading and improving the user experience of using other vehicle functions.
[0076] The above description is only a preferred specific implementation manner of the present invention, but the protection scope of the present invention is not limited thereto. Any changes or substitutions that can be easily conceived by any technician familiar with the technical field within the technical scope disclosed by the present invention should be covered within the protection scope of the present invention.
Claims
1. A vehicle data uploading method based on vehicle Ethernet, characterized in that: include: Get real-time vehicle data and current vehicle data upload mode; When the current vehicle data uploading mode is the real-time mode, uploading the real-time vehicle data based on a first preset period; When the current vehicle data upload mode is the event mode, the vehicle data to be uploaded is determined based on the target upload trigger event and uploaded.
2. The vehicle data uploading method based on vehicle Ethernet according to claim 1 is characterized in that: The method further comprises: When the current vehicle data upload mode is the event mode, the acquired real-time vehicle data is stored in a packet cache queue, each network packet in the real-time vehicle data corresponds to an index number, and the index numbers corresponding to each network packet are arranged consecutively according to the receiving time; The target index number is recorded based on a second preset period, where the target index number is the index number corresponding to the network packet whose receiving time is closest to the current moment.
3. The vehicle data uploading method based on vehicle Ethernet according to claim 2 is characterized in that: The determining the vehicle data to be uploaded based on the target upload triggering event includes: Determining the vehicle data to be uploaded based on the target index number at the triggering time of the target upload triggering event, the target index number at the first time, and the triggering time of the second upload triggering event; The first moment is the moment that is a first time length before the target moment, the second upload trigger event is the upload trigger event whose trigger time is closest to the second moment, the second moment is the moment that is a first time length after the target moment, and the target moment is the trigger time of the target upload trigger event.
4. The vehicle data uploading method based on vehicle Ethernet according to claim 3 is characterized in that: The determining of the vehicle data to be uploaded based on the target index number at the triggering time of the target upload triggering event, the target index number at the first time, and the triggering time of the second upload triggering event includes: In the case where the second upload triggering event is the target upload triggering event, a network packet having an index number between the target index number at the first moment and the target index number at a third moment is determined as the vehicle data to be uploaded, and the third moment is a moment at a second time length after the target moment; In the case that the second upload trigger event is not the target upload trigger event, the network packet whose index number is between the target index number at the first moment and the target index number at the fourth moment is determined as the vehicle data to be uploaded, and the fourth moment is the moment at the second time length after the triggering moment of the second upload trigger event.
5. The vehicle data uploading method based on vehicle Ethernet according to claim 1 is characterized in that: The method further comprises: Before uploading the real-time vehicle data or the vehicle data to be uploaded, the real-time vehicle data or the vehicle data to be uploaded are spliced into JSON data.
6. The vehicle data uploading method based on vehicle Ethernet according to claim 5 is characterized in that: The step of splicing the real-time vehicle data or the vehicle data to be uploaded into JSON data includes: The real-time vehicle data or the vehicle data to be uploaded are spliced into JSON data based on the identity information of TBOX and the current timestamp information.
7. The vehicle data uploading method based on vehicle Ethernet according to any one of claims 1 to 6, characterized in that: The obtaining of real-time vehicle data comprises: Monitor the multicast address of ADECU and / or MPU to obtain the real-time vehicle data.
8. A vehicle data uploading device based on vehicle Ethernet, characterized in that: include: The acquisition module is used to obtain real-time vehicle data and the current vehicle data upload mode; A first uploading module, configured to upload the real-time vehicle data based on a first preset period when the current vehicle data uploading mode is a real-time mode; The second uploading module is used to determine and upload the vehicle data to be uploaded based on the target upload triggering event when the current vehicle data uploading mode is the event mode.
9. An electronic device, characterized in that: It comprises a memory and a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the program, the vehicle data uploading method based on vehicle Ethernet according to any one of claims 1 to 7 is implemented.
10. A computer-readable storage medium, characterized in that: A computer program is stored thereon, and when the computer program is executed by a processor, the vehicle data uploading method based on vehicle Ethernet as described in any one of claims 1 to 7 is implemented.
Citation Information
Cited By
Vehicle log reporting method, system and device, computer equipment and storage medium
CN120599722A