A vehicle data upload mode switching method and device

By receiving switching commands and adjusting the upload mode in the vehicle data upload system through TBOX, the problem of CAN bus transmission rate limitation is solved, flexible data upload mode switching is realized, and the cost of intelligent driving data analysis is reduced.

CN119316308BActive Publication Date: 2026-04-07DONGFENG COMML VEHICLE CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-09-29
Publication Date
2026-04-07

AI Technical Summary

Technical Problem

In existing technologies, vehicle data uploads are mainly via the CAN bus, which has a limited data transmission rate and cannot meet the needs of intelligent driving data analysis. Furthermore, real-time uploads result in high data costs and resource waste, increasing data analysis costs.

Method used

A method for switching vehicle data upload modes is provided. The method receives the switching command from the data platform through the TBOX, sends the status mode switching message to the ADECU and MPU to switch between real-time mode and event mode, and determines the switching status and adjusts the upload mode based on the feedback message.

Benefits of technology

It enables flexible switching of vehicle data upload modes according to data analysis needs, avoiding resource waste in real-time mode and reducing data analysis costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119316308B_ABST
    Figure CN119316308B_ABST
Patent Text Reader

Abstract

This invention relates to a method and apparatus for switching vehicle data upload modes, belonging to the field of data processing technology. The method, applied to a vehicle data upload control unit (TBOX), includes: receiving a data upload mode switching instruction from a data platform, wherein the instruction instructs the TBOX to switch to a target data upload mode, which may include a real-time mode or an event mode; and sending a status mode switching message to an active control unit (ADECU) and an active power supply unit (MPU), instructing the ADECU and MPU to switch to the target data upload mode. This invention enables flexible switching of vehicle data upload modes according to data analysis needs, avoiding resource waste and reducing data analysis costs.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of data processing technology, and in particular to a method and apparatus for switching vehicle data upload modes. Background Technology

[0002] Currently, vehicle-side data uploads are mainly via Controller Area Network (CAN) data, and are generally uploaded as real-time data streams.

[0003] However, the data transmission rate supported by the CAN bus is limited, making it difficult to meet the data volume requirements of intelligent driving data analysis. Furthermore, maintaining real-time uploads of vehicle and video data incurs high data charges, which can lead to resource waste and increased data analysis costs when real-time data uploads are not required. Summary of the Invention

[0004] In view of this, it is necessary to provide a method and device for switching vehicle data upload modes to solve the problem that keeping vehicle data and video data uploaded in real time increases the cost of data analysis.

[0005] To address the aforementioned problems, this invention provides a method for switching vehicle data upload modes, applied to a TBOX, comprising:

[0006] The system receives a data upload mode switching instruction from the data platform. The data upload mode switching instruction is used to instruct the TBOX to switch to the target data upload mode, which includes real-time mode or event mode.

[0007] A status mode switching message is sent to the ADECU and MPU, the status mode switching message being used to instruct the ADECU and MPU to switch to the target data upload mode.

[0008] In one possible implementation, the method further includes:

[0009] Receive a first status mode message sent by the ADECU and a second status mode message sent by the MPU. The first status mode message is used to provide feedback on the current data upload mode of the ADECU, and the second status mode message is used to provide feedback on the current data upload mode of the MPU.

[0010] Based on the first status mode message and the second status mode message, a switching response message is sent to the data platform. The switching response message is used to reply to the target data upload mode switching status of ADECU and MPU.

[0011] In one possible implementation, receiving the first status mode message sent by the ADECU and the second status mode message sent by the MPU includes:

[0012] After sending the state mode switching message to the ADECU and MPU, the first state mode message and the second state mode message are received within a first time period.

[0013] In one possible implementation, sending a handover response message to the data platform based on the first state mode message and the second state mode message includes:

[0014] If, within the first time period, the current data upload mode of ADECU reported in the last frame of the first state mode message is consistent with the target data upload mode, the ADECU is replied to in the switching response message that the upload mode switching is successful.

[0015] If, within the first time period, the current data upload mode of ADECU reported in the last frame of the first state mode message is inconsistent with the target data upload mode, the ADECU will be replied with a message in the switching response message that the upload mode switching failed.

[0016] If the first state mode message is not received within the first time period, reply with ADECU upload mode switching timeout in the switching response message;

[0017] If, within the first time period, the current data upload mode of the MPU reported in the last frame of the second state mode message is consistent with the target data upload mode, the MPU upload mode switch is successfully replied in the switch response message.

[0018] If, within the first time period, the current data upload mode of the MPU reported in the second state mode message of the last frame is inconsistent with the target data upload mode, the MPU upload mode switching failure will be replied in the switching response message.

[0019] If the second state mode message is not received within the first time period, reply with an MPU upload mode switching timeout in the switching response message.

[0020] In one possible implementation, the method further includes:

[0021] After replying in the switching response message that the ADECU upload mode switch was successful, the Ethernet data of the ADECU is uploaded to the data platform in the target data upload mode;

[0022] The system either replies in the switching response message that the ADECU upload mode switching failed, or replies in the switching response message that the ADECU upload mode switching timed out, and then stops uploading the ADECU's Ethernet data to the data platform.

[0023] After replying in the switching response message that the MPU upload mode switch was successful, the MPU's Ethernet data is uploaded to the data platform in the target data upload mode;

[0024] The system either replies in the switching response message that the MPU upload mode switching failed, or replies in the switching response message that the MPU upload mode switching timed out, and then stops uploading Ethernet data of the MPU to the data platform.

[0025] This invention also provides a method for switching vehicle data upload modes, applied to a data platform, comprising:

[0026] Send a data upload mode switching instruction to the TBOX. The data upload mode switching instruction is used to instruct the TBOX to switch to the target data upload mode, which includes real-time mode or event mode.

[0027] Receive the switching response message sent by the TBOX, the switching response message being used to reply to the target data upload mode switching status of the ADECU and MPU;

[0028] Based on the switching response message, determine whether the target data upload mode has been successfully switched.

[0029] In one possible implementation, determining whether the target data upload mode has been successfully switched based on the switch response message includes:

[0030] If the switch response message replies that the ADECU upload mode switch is successful, and / or if the switch response message replies that the MPU upload mode switch is successful, it is determined that the target data upload mode switch is successful.

[0031] If the switch response message indicates that the ADECU upload mode switching failed or the ADECU upload mode switching timed out, and the switch response message also indicates that the MPU upload mode switching failed or the MPU upload mode switching timed out, then the target data upload mode switching is determined to have failed.

[0032] In one possible implementation, the method further includes:

[0033] If no switching response message is received within the second time period after the data upload mode switching command is sent to the TBOX, it is determined that the target data upload mode switching has failed.

[0034] The present invention also provides a vehicle data upload mode switching device, comprising:

[0035] The first receiving module is used to receive a data upload mode switching instruction issued by the data platform. The data upload mode switching instruction is used to instruct the TBOX to switch to the target data upload mode, which includes real-time mode or event mode.

[0036] The first sending module is used to send a state mode switching message to the ADECU and MPU, the state mode switching message being used to instruct the ADECU and MPU to switch to the target data upload mode.

[0037] The present invention also provides a vehicle data upload mode switching device, comprising:

[0038] The second sending module is used to send a data upload mode switching instruction to the TBOX. The data upload mode switching instruction is used to instruct the TBOX to switch to the target data upload mode, which includes real-time mode or event mode.

[0039] The second receiving module is used to receive the switching response message sent by the TBOX, which is used to reply to the target data upload mode switching status of the ADECU and MPU;

[0040] The determination module is used to determine whether the target data upload mode has been successfully switched based on the switch response message.

[0041] The beneficial effects of this invention are as follows: The vehicle data upload mode switching method and apparatus provided by this invention allow the data platform to send a data upload mode switching command to the TBOX according to data analysis needs, instructing the TBOX to switch to the corresponding data upload mode. The TBOX then sends a status mode switching message to the ADECU and MPU according to the data upload mode switching command, instructing the ADECU and MPU to switch to the corresponding data upload mode, thus ultimately realizing the switching of vehicle data upload mode. This avoids the problem of vehicle data being continuously uploaded in real-time mode, which would increase the cost of data analysis. This invention can flexibly switch the vehicle data upload mode according to data analysis needs, avoiding resource waste and reducing the cost of data analysis. Attached Figure Description

[0042] Figure 1 A flowchart illustrating an embodiment of the vehicle data upload mode switching method provided by the present invention;

[0043] Figure 2 A flowchart illustrating yet another embodiment of the vehicle data upload mode switching method provided by the present invention;

[0044] Figure 3 A flowchart illustrating an embodiment of the vehicle data upload mode switching process provided by the present invention;

[0045] Figure 4 A schematic diagram of an embodiment of the vehicle data upload mode switching device provided by the present invention;

[0046] Figure 5 This is a schematic diagram of another embodiment of the vehicle data upload mode switching device provided by the present invention. Detailed Implementation

[0047] Preferred embodiments of the present invention will now be described in detail with reference to the accompanying drawings, which form 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 intended to limit the scope of the present invention.

[0048] In the description of this invention, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one of that feature. Furthermore, "a plurality of" means at least two, such as two, three, etc., unless otherwise explicitly specified.

[0049] In the description of this invention, reference to "embodiment" means that a specific feature, structure, or characteristic described in connection with an embodiment may be included in at least one embodiment of the invention. The appearance of this phrase in various places in the specification does not necessarily refer to the same embodiment, nor is it a separate or alternative embodiment mutually exclusive with other embodiments. It will be explicitly and implicitly understood by those skilled in the art that the described embodiments can be combined with other embodiments.

[0050] Currently, vehicle-side data uploads are primarily based on CAN data, and are generally uploaded as real-time data streams.

[0051] However, the data transmission rate supported by the CAN bus is limited, making it difficult to meet the data volume requirements of intelligent driving data analysis. Furthermore, maintaining real-time uploads of vehicle and video data incurs high data charges, which can lead to resource waste and increased data analysis costs when real-time data uploads are not required.

[0052] To address the aforementioned problems, this invention provides a method for switching vehicle data upload modes.

[0053] The specific embodiments are described in detail below:

[0054] A specific embodiment of the present invention discloses a method for switching vehicle data upload modes, applied to TBOX, combined with Figure 1 Let's take a look. Figure 1 A flowchart illustrating an embodiment of the vehicle data upload mode switching method provided by the present invention includes steps S101 and S102, wherein:

[0055] In step S101, a data upload mode switching instruction is received from the data platform. The data upload mode switching instruction is used to instruct the TBOX to switch to the target data upload mode, which includes real-time mode or event mode.

[0056] In step S102, a state mode switching message is sent to the ADECU and MPU, the state mode switching message being used to instruct the ADECU and MPU to switch to the target data upload mode.

[0057] During implementation, the vehicle's telematics box (TBOX) first receives a data upload mode switching command from the data platform. The data platform can be a platform used by the enterprise for vehicle testing and analysis, or other platforms that require data analysis using vehicle data. The data upload mode switching command instructs the TBOX to switch to the target data upload mode, which can be a real-time mode or an event mode, different from the current data upload mode.

[0058] For example, the default data upload mode after TBOX starts can be event mode. When the data platform has high requirements for data real-time performance, it can send a data upload mode switching command to TBOX, instructing TBOX to switch to real-time mode to upload vehicle data. When the data platform no longer needs high real-time data, it can send a data upload mode switching command to TBOX, instructing TBOX to switch to event mode to upload vehicle data, thus enabling reasonable switching of data upload mode according to data needs.

[0059] Since the data upload process also requires data to be obtained from the Autonomous Driving Electronic Control Unit (ADECU) and the Microprocessor Unit (MPU), after receiving the data upload mode switching command, TBOX can also send a status mode switching message to the ADECU and MPU, instructing the ADECU and MPU to switch to the target data upload mode.

[0060] The vehicle data upload mode switching method provided by this invention can be applied to pre-delivery testing scenarios for commercial vehicles, as well as to operation monitoring scenarios for commercial vehicles. This invention does not specifically limit the application of this method.

[0061] Compared with existing technologies, the vehicle data upload mode switching method provided in this embodiment allows the data platform to send a data upload mode switching command to the TBOX according to data analysis needs, instructing the TBOX to switch to the corresponding data upload mode. The TBOX then sends a status mode switching message to the ADECU and MPU according to the data upload mode switching command, instructing the ADECU and MPU to switch to the corresponding data upload mode, thus ultimately realizing the switching of vehicle data upload mode. This avoids the problem of vehicle data being continuously uploaded in real-time mode, which would increase the cost of data analysis. This invention can flexibly switch the vehicle data upload mode according to data analysis needs, avoiding resource waste and reducing the cost of data analysis.

[0062] Exemplarily, the method further includes:

[0063] Receive a first status mode message sent by the ADECU and a second status mode message sent by the MPU. The first status mode message is used to provide feedback on the current data upload mode of the ADECU, and the second status mode message is used to provide feedback on the current data upload mode of the MPU.

[0064] Based on the first status mode message and the second status mode message, a switching response message is sent to the data platform. The switching response message is used to reply to the target data upload mode switching status of ADECU and MPU.

[0065] Specifically, after sending a status mode switching message to the ADECU and MPU, the TBOX can also receive a first status mode message from the ADECU and a second status mode message from the MPU. The first status mode message can be used to provide feedback on the current data upload mode of the ADECU, and the second status mode message can be used to provide feedback on the current data upload mode of the MPU.

[0066] Based on the first state mode message and the second state mode message, TBOX can determine the current data upload mode of ADECU and MPU, and then send a switch response message to the data platform to provide feedback on the data upload mode switch status of ADECU and MPU.

[0067] For example, receiving the first status mode message sent by the ADECU and the second status mode message sent by the MPU includes:

[0068] After sending the state mode switching message to the ADECU and MPU, the first state mode message and the second state mode message are received within a first time period.

[0069] Specifically, since data usually has time-sensitive requirements, after sending the status mode switching message to the ADECU and MPU, the TBOX needs to receive the first status mode message and the second status mode message within the first duration (e.g., 1 second) to promptly determine the current data upload mode of the ADECU and MPU.

[0070] For example, sending a handover response message to the data platform based on the first state mode message and the second state mode message includes:

[0071] If, within the first time period, the current data upload mode of ADECU reported in the last frame of the first state mode message is consistent with the target data upload mode, the ADECU is replied to in the switching response message that the upload mode switching is successful.

[0072] If, within the first time period, the current data upload mode of ADECU reported in the last frame of the first state mode message is inconsistent with the target data upload mode, the ADECU will be replied with a message in the switching response message that the upload mode switching failed.

[0073] If the first state mode message is not received within the first time period, reply with ADECU upload mode switching timeout in the switching response message;

[0074] If, within the first time period, the current data upload mode of the MPU reported in the last frame of the second state mode message is consistent with the target data upload mode, the MPU upload mode switch is successfully replied in the switch response message.

[0075] If, within the first time period, the current data upload mode of the MPU reported in the second state mode message of the last frame is inconsistent with the target data upload mode, the MPU upload mode switching failure will be replied in the switching response message.

[0076] If the second state mode message is not received within the first time period, reply with an MPU upload mode switching timeout in the switching response message.

[0077] Specifically, when TBOX sends a handover response message to the data platform based on the first state mode message and the second state mode message, it can determine the message content to be replied to by TBOX in the handover response message according to the above rules.

[0078] Exemplarily, the method further includes:

[0079] After replying in the switching response message that the ADECU upload mode switch was successful, the Ethernet data of the ADECU is uploaded to the data platform in the target data upload mode;

[0080] The system either replies in the switching response message that the ADECU upload mode switching failed, or replies in the switching response message that the ADECU upload mode switching timed out, and then stops uploading the ADECU's Ethernet data to the data platform.

[0081] After replying in the switching response message that the MPU upload mode switch was successful, the MPU's Ethernet data is uploaded to the data platform in the target data upload mode;

[0082] The system either replies in the switching response message that the MPU upload mode switching failed, or replies in the switching response message that the MPU upload mode switching timed out, and then stops uploading Ethernet data of the MPU to the data platform.

[0083] Specifically, when TBOX replies in the switch response message that the ADECU upload mode switch was successful, it can upload the ADECU's Ethernet data to the data platform through the corresponding data upload mode. However, when TBOX replies in the switch response message that the ADECU upload mode switch failed or timed out, it indicates that there is a problem with the ADECU's data upload mode, and the ADECU's Ethernet data may also have problems and is no longer suitable for data analysis. At this time, TBOX can stop uploading the ADECU's Ethernet data to the data platform.

[0084] Similarly, TBOX can use the same rules for MPU Ethernet data: after replying in the handover response message that the MPU upload mode switch is successful, it uploads the MPU Ethernet data to the data platform through the corresponding data upload mode; after replying in the handover response message that the MPU upload mode switch failed or timed out, it stops uploading the MPU Ethernet data to the data platform.

[0085] This invention also discloses a method for switching vehicle data upload modes, applied to a data platform, combined with... Figure 2 Let's take a look. Figure 2 A flowchart illustrating another embodiment of the vehicle data upload mode switching method provided by the present invention includes steps S201 to S203, wherein:

[0086] In step S201, a data upload mode switching instruction is sent to the TBOX. The data upload mode switching instruction is used to instruct the TBOX to switch to the target data upload mode, which includes real-time mode or event mode.

[0087] In step S202, a switching response message sent by the TBOX is received. The switching response message is used to reply to the target data upload mode switching status of the ADECU and MPU.

[0088] In step S203, it is determined whether the target data upload mode has been successfully switched based on the switching response message.

[0089] During implementation, the data platform can send a data upload mode switching command to TBOX according to data analysis needs, instructing TBOX to switch to real-time mode or event mode.

[0090] For example, the default data upload mode after TBOX starts can be event mode. When the data platform has high requirements for data real-time performance, it can send a data upload mode switching command to TBOX, instructing TBOX to switch to real-time mode to upload vehicle data. When the data platform no longer needs high real-time data, it can send a data upload mode switching command to TBOX, instructing TBOX to switch to event mode to upload vehicle data, thus enabling reasonable switching of data upload mode according to data needs.

[0091] Next, the data platform can receive the switching response message sent by TBOX, determine the target data upload mode switching status of ADECU and MPU based on the switching response message, and then determine whether the target data upload mode has been successfully switched.

[0092] The vehicle data upload mode switching method provided by this invention can be applied to pre-delivery testing scenarios for commercial vehicles, as well as to operation monitoring scenarios for commercial vehicles. This invention does not specifically limit the application of this method.

[0093] Compared with existing technologies, the vehicle data upload mode switching method provided in this embodiment allows the data platform to send a data upload mode switching command to the TBOX according to data analysis needs, instructing the TBOX to switch to the corresponding data upload mode. The method then determines whether the corresponding data upload mode switch was successful based on the switching response message sent by the TBOX, ultimately achieving the switching of the vehicle data upload mode. This avoids continuously uploading vehicle data in real-time mode, which increases the cost of data analysis. The present invention can flexibly switch the vehicle data upload mode according to data analysis needs, avoiding resource waste and reducing the cost of data analysis.

[0094] For example, determining whether the target data upload mode has been successfully switched based on the switch response message includes:

[0095] If the switch response message replies that the ADECU upload mode switch is successful, and / or if the switch response message replies that the MPU upload mode switch is successful, it is determined that the target data upload mode switch is successful.

[0096] If the switch response message indicates that the ADECU upload mode switching failed or the ADECU upload mode switching timed out, and the switch response message also indicates that the MPU upload mode switching failed or the MPU upload mode switching timed out, then the target data upload mode switching is determined to have failed.

[0097] Specifically, when TBOX replies in the switch response message that the ADECU upload mode switch is successful, and / or that the MPU upload mode switch is successful, the data platform can determine that the target data upload mode switch is successful.

[0098] When TBOX replies in the switch response message that the ADECU upload mode switch failed or the ADECU upload mode switch timed out, and the MPU upload mode switch also failed or the MPU upload mode switch timed out, the data platform can determine that the target data upload mode switch failed.

[0099] For example, if TBOX replies in the switch response message that the ADECU upload mode switch was successful and the MPU upload mode switch failed, then the data platform can determine that the target data upload mode switch was successful.

[0100] For example, if TBOX replies in the switch response message that the ADECU upload mode switch timed out and the MPU upload mode switch was successful, then the data platform can determine that the target data upload mode switch was successful.

[0101] For example, if TBOX replies in the switch response message that the ADECU upload mode switch timed out and the MPU upload mode switch failed, then the data platform can determine that the target data upload mode switch failed.

[0102] Exemplarily, the method further includes:

[0103] If no switching response message is received within the second time period after the data upload mode switching command is sent to the TBOX, it is determined that the target data upload mode switching has failed.

[0104] Specifically, since data usually has time-sensitive requirements, if the data platform does not receive a switching response message from the TBOX within the second time period (e.g., 20 seconds) after sending the data upload mode switching command to the TBOX, it indicates that the TBOX may have malfunctioned, and it can be determined that the target data upload mode switching has failed.

[0105] The technical solution of the present invention will be better illustrated below with a specific embodiment:

[0106] Combination Figure 3 Let's take a look. Figure 3 This is a flowchart illustrating an embodiment of the vehicle data upload mode switching process provided by the present invention. The process includes the following steps:

[0107] 1. The data platform issues the data upload mode to TBOX.

[0108] 2. When the TBOX receives the mode switching command issued by the data platform, it sends the status mode message to the CAN bus according to the mode change issued by the platform. At the same time, it receives the status mode message sent by the ADECU to the CAN bus from the ADCU and the status mode message sent by the MPU to the CAN bus from the MPU on the bus.

[0109] a) If the "upload_mode" field in the status mode message sent by ADECU to the CAN bus in the last frame within 1 second is consistent with the download mode, TBOX responds "success" to the platform, switches the data upload status according to the platform's download mode, and uploads ADECU Ethernet data normally; if they are inconsistent, TBOX responds "failure" to the platform, and TBOX does not upload ADECU Ethernet data; if no status mode message is received from ADECU to the CAN bus within 1 second, TBOX responds "timeout" to the platform, and TBOX does not upload ADECU Ethernet data.

[0110] b. If the "upload_mode" field in the status mode message sent by the MPU to the CAN bus in the last frame within 1 second is consistent with the download mode, the TBOX responds to the platform with "success" and switches the data upload status according to the platform's download mode, and uploads the MPU Ethernet data normally; if they are inconsistent, the TBOX responds to the platform with "failure" and the TBOX does not upload the MPU Ethernet data; if no status mode message is received from the ADCU to the CAN bus within 1 second, the TBOX responds to the platform with "timeout" and the TBOX does not upload the MPU Ethernet data.

[0111] ADECU and MPU data are independent of each other and no correlation is made.

[0112] 3. TBOX sends a switching response to the platform.

[0113] 4. The platform determines whether the data upload mode was successfully sent based on the switch response.

[0114] When the data upload mode is successfully transmitted, the platform receives a TBOX response. If the ADECU mode switching status or MPU mode switching status in the "Data Upload Mode Response" is in a successful state, the mode switch is considered successful, and the platform displays the switched mode. If both the ADECU mode switching status and the MPU mode switching status are in a failed or timeout state, the mode switch is considered failed, and the platform mode remains unchanged.

[0115] If the data upload mode is successfully sent, but the platform does not receive a response from TBOX within 20 seconds, the mode switch fails, and the platform mode remains unchanged.

[0116] The Ethernet function will switch between two modes. The current mode is stored in a global variable, and the platform will decide which mode to use.

[0117] When a TBOX application is started, its default mode is event-driven. The Ethernet data receiving thread starts automatically with the application and is unaffected by the mode. The video-related pull thread is created and begins pulling the stream; the push thread is created when the platform issues the first push command and will continue to run, only changing its running state when the mode switches.

[0118] The video push and pull streaming threads in real-time mode are mainly created and destroyed by the push start and end commands issued by the platform. The packet sending thread in real-time mode is created after the first push command is issued and will continue to exist without exiting. It runs when the conditions are met and will be blocked when the conditions are not met.

[0119] Mode switching mainly involves the starting, stopping, blocking, and waking of threads created under the two modes mentioned above. It is managed through the following states:

[0120] Typedefenum

[0121] {

[0122] ETHTHRD_STATE_NULL,

[0123] ETHTHRD_STATE_RUNNABLE, / / This state is entered upon creation.

[0124] ETHTHRD_STATE_SUSPENDED, / / Suspended, enters this state when switching modes.

[0125] ETHTHRD_STATE_RUNNING, / / Executing, MA indicates that this state was entered when pfv_StartVideoPush was called.

[0126] ETHTHRD_STATE_DEAD, / / Enters this state after receiving a stop command from the platform.

[0127] ETHNET_THREAD_STATE_MAX,

[0128] }t_EthThrd_State;

[0129] After the platform issues a mode switching command, if the mode differs from the current mode, corresponding processing will be performed:

[0130] a. Switching the event to real-time:

[0131] (1) Block the event-driven packet sending thread and the video streaming and video pushing threads, that is:

[0132] ETHTHRD_STATE_RUNNING-ETHTHRD_STATE_SUSPENDED.

[0133] (2) Restore the packet sending thread in real-time mode, that is, the thread state:

[0134] ETHTHRD_STATE_SUSPENDED-ETHTHRD_STATE_RUNNING.

[0135] (3) Modify the global variable that saves the current mode to the real-time mode.

[0136] b. Switch to event in real time:

[0137] (1) Terminate the real-time pull and push streaming threads, and transition the thread state:

[0138] ETHTHRD_STATE_RUNNING-ETHTHRD_STATE_DEAD.

[0139] (2) Block the packet sending thread in real-time mode, and the thread state transitions:

[0140] ETHTHRD_STATE_RUNNING-ETHTHRD_STATE_SUSPENDED.

[0141] (3) Clear the data in each buffer of the previous event pattern.

[0142] Since the data has been transmitted in real time for some time, the previous data has expired and needs to be cached from the beginning.

[0143] (4) Restore the event-mode packet sending thread and the video streaming and video pushing threads, that is:

[0144] ETHTHRD_STATE_SUSPENDED-ETHTHRD_STATE_RUNNING.

[0145] (5) Modify the global variable that saves the current mode to the event mode.

[0146] This invention can meet different data acquisition needs while ensuring vehicle driving safety.

[0147] This invention also provides a vehicle data upload mode switching device, combined with Figure 4 Let's take a look. Figure 4This is a schematic diagram of an embodiment of the vehicle data upload mode switching device provided by the present invention. The vehicle data upload mode switching device 400 includes:

[0148] The first receiving module 401 is used to receive a data upload mode switching instruction issued by the data platform. The data upload mode switching instruction is used to instruct TBOX to switch to a target data upload mode, which includes a real-time mode or an event mode.

[0149] The first sending module 402 is used to send a state mode switching message to the ADECU and MPU, the state mode switching message being used to instruct the ADECU and MPU to switch to the target data upload mode.

[0150] The specific implementation methods of each module of the vehicle data upload mode switching device can be found in the description of the above-mentioned vehicle data upload mode switching method, which has similar beneficial effects and will not be repeated here.

[0151] This invention also provides a vehicle data upload mode switching device, combined with Figure 5 Let's take a look. Figure 5 This is a schematic diagram of another embodiment of the vehicle data upload mode switching device provided by the present invention. The vehicle data upload mode switching device 500 includes:

[0152] The second sending module 501 is used to send a data upload mode switching instruction to the TBOX. The data upload mode switching instruction is used to instruct the TBOX to switch to a target data upload mode, which includes a real-time mode or an event mode.

[0153] The second receiving module 502 is used to receive the switching response message sent by the TBOX, the switching response message being used to reply to the target data upload mode switching status of the ADECU and MPU;

[0154] The determination module 503 is used to determine whether the target data upload mode has been successfully switched based on the switch response message.

[0155] The specific implementation methods of each module of the vehicle data upload mode switching device can be found in the description of the above-mentioned vehicle data upload mode switching method, which has similar beneficial effects and will not be repeated here.

[0156] This invention discloses a method and apparatus for switching vehicle data upload modes. The data platform can send a data upload mode switching command to the TBOX according to data analysis needs, instructing the TBOX to switch to the corresponding data upload mode. The TBOX then sends a status mode switching message to the ADECU and MPU according to the data upload mode switching command, instructing the ADECU and MPU to switch to the corresponding data upload mode. This ultimately achieves the switching of vehicle data upload modes, avoiding the continuous real-time uploading of vehicle data and thus reducing data analysis costs. This invention can flexibly switch vehicle data upload modes according to data analysis needs, avoiding resource waste and reducing data analysis costs.

[0157] The above description is only a preferred embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any changes or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in the present invention should be included within the scope of protection of the present invention.

Claims

1. A method for switching vehicle data upload modes, characterized in that, Applied to TBOX, including: The system receives a data upload mode switching instruction from the data platform. The data upload mode switching instruction is used to instruct the TBOX to switch to the target data upload mode, which includes real-time mode or event mode. Send a state mode switching message to the ADECU and MPU, the state mode switching message being used to instruct the ADECU and MPU to switch to the target data upload mode; Receive a first status mode message sent by the ADECU and a second status mode message sent by the MPU. The first status mode message is used to provide feedback on the current data upload mode of the ADECU, and the second status mode message is used to provide feedback on the current data upload mode of the MPU. Based on the first status mode message and the second status mode message, a switching response message is sent to the data platform. The switching response message is used to reply to the target data upload mode switching status of ADECU and MPU. After replying in the switching response message that the ADECU upload mode switch was successful, the Ethernet data of the ADECU is uploaded to the data platform in the target data upload mode; The system either replies in the switching response message that the ADECU upload mode switching failed, or replies in the switching response message that the ADECU upload mode switching timed out, and then stops uploading the ADECU's Ethernet data to the data platform. After replying in the switching response message that the MPU upload mode switch was successful, the MPU's Ethernet data is uploaded to the data platform in the target data upload mode; The system either replies in the switching response message that the MPU upload mode switching failed, or replies in the switching response message that the MPU upload mode switching timed out, and then stops uploading Ethernet data of the MPU to the data platform.

2. The vehicle data upload mode switching method according to claim 1, characterized in that, The receiving of the first status mode message sent by the ADECU and the second status mode message sent by the MPU includes: After sending the state mode switching message to the ADECU and MPU, the first state mode message and the second state mode message are received within a first time period.

3. The vehicle data upload mode switching method according to claim 2, characterized in that, The step of sending a handover response message to the data platform based on the first state mode message and the second state mode message includes: If, within the first time period, the current data upload mode of ADECU reported in the last frame of the first state mode message is consistent with the target data upload mode, the ADECU is replied to in the switching response message that the upload mode switching is successful. If, within the first time period, the current data upload mode of ADECU reported in the last frame of the first state mode message is inconsistent with the target data upload mode, the ADECU will be replied with a message in the switching response message that the upload mode switching failed. If the first state mode message is not received within the first time period, reply with ADECU upload mode switching timeout in the switching response message; If, within the first time period, the current data upload mode of the MPU reported in the last frame of the second state mode message is consistent with the target data upload mode, the MPU upload mode switch is successfully replied in the switch response message. If, within the first time period, the current data upload mode of the MPU reported in the second state mode message of the last frame is inconsistent with the target data upload mode, the MPU upload mode switching failure will be replied in the switching response message. If the second state mode message is not received within the first time period, reply with an MPU upload mode switching timeout in the switching response message.

4. A method for switching vehicle data upload modes, characterized in that, Applied to data platforms, including: Send a data upload mode switching instruction to the TBOX. The data upload mode switching instruction is used to instruct the TBOX to switch to the target data upload mode, which includes real-time mode or event mode. Receive the switching response message sent by the TBOX, the switching response message being used to reply to the target data upload mode switching status of the ADECU and MPU; Based on the switching response message, determine whether the target data upload mode has been successfully switched; If the switch response message replies that the ADECU upload mode switch is successful, and / or if the switch response message replies that the MPU upload mode switch is successful, it is determined that the target data upload mode switch is successful. If the switch response message indicates that the ADECU upload mode switching failed or the ADECU upload mode switching timed out, and the switch response message also indicates that the MPU upload mode switching failed or the MPU upload mode switching timed out, then the target data upload mode switching is determined to have failed.

5. The vehicle data upload mode switching method according to claim 4, characterized in that, The method further includes: If no switching response message is received within the second time period after the data upload mode switching command is sent to the TBOX, it is determined that the target data upload mode switching has failed.

6. A vehicle data upload mode switching device, characterized in that, include: The first receiving module is used to receive a data upload mode switching instruction issued by the data platform. The data upload mode switching instruction is used to instruct the TBOX to switch to the target data upload mode, which includes real-time mode or event mode. The first sending module is used to send a state mode switching message to the ADECU and MPU, the state mode switching message being used to instruct the ADECU and MPU to switch to the target data upload mode; The first receiving module is also used to receive a first status mode message sent by the ADECU and a second status mode message sent by the MPU. The first status mode message is used to provide feedback on the current data upload mode of the ADECU, and the second status mode message is used to provide feedback on the current data upload mode of the MPU. The first sending module is further configured to send a switching response message to the data platform based on the first status mode message and the second status mode message, wherein the switching response message is used to reply to the target data upload mode switching status of the ADECU and MPU; After replying in the switching response message that the ADECU upload mode switch was successful, the Ethernet data of the ADECU is uploaded to the data platform in the target data upload mode; The system either replies in the switching response message that the ADECU upload mode switching failed, or replies in the switching response message that the ADECU upload mode switching timed out, and then stops uploading the ADECU's Ethernet data to the data platform. After replying in the switching response message that the MPU upload mode switch was successful, the MPU's Ethernet data is uploaded to the data platform in the target data upload mode; The system either replies in the switching response message that the MPU upload mode switching failed, or replies in the switching response message that the MPU upload mode switching timed out, and then stops uploading Ethernet data of the MPU to the data platform.

7. A vehicle data upload mode switching device, characterized in that, include: The second sending module is used to send a data upload mode switching instruction to the TBOX. The data upload mode switching instruction is used to instruct the TBOX to switch to the target data upload mode, which includes real-time mode or event mode. The second receiving module is used to receive the switching response message sent by the TBOX, which is used to reply to the target data upload mode switching status of the ADECU and MPU; The determination module is used to determine whether the target data upload mode has been successfully switched based on the switch response message; The determining module is further configured to determine that the target data upload mode has been successfully switched when the switching response message replies that the ADECU upload mode switch was successful, and / or when the switching response message replies that the MPU upload mode switch was successful. If the switch response message indicates that the ADECU upload mode switching failed or the ADECU upload mode switching timed out, and the switch response message also indicates that the MPU upload mode switching failed or the MPU upload mode switching timed out, then the target data upload mode switching is determined to have failed.

Citation Information

Patent Citations

  • Remote transmission method for vehicle-mounted T-box data

    CN114500502A

  • Intelligent driving automobile data uploading method and system

    CN115550350A