Vehicle data uploading mode switching method and device

By introducing the data upload mode switching function in the vehicle data upload system, switching real-time mode and event mode according to the needs of the data platform, the problems of insufficient data transmission rate and waste of resources in the existing technology are solved, and a flexible data upload strategy is realized. Reduced data analysis costs.

CN119316308AActive Publication Date: 2025-01-14DONGFENG COMML VEHICLE CO LTD
View PDF 13 Cites 0 Cited by

Patent Information

Application Number
CN202411373900.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-29
Publication Date
2025-01-14
Estimated Expiration
2044-09-29

AI Technical Summary

Technical Problem

In the prior art, real-time upload of vehicle data and video data leads to limited data transmission rate, which is difficult to meet the needs of intelligent driving data analysis, and causes waste of resources and increases data analysis costs when real-time upload is not required.

Method used

Provide a vehicle data upload mode switching method, by receiving mode switching instructions issued by the data platform, TBOX switches to the target data upload mode (real-time mode or event mode), and sends status mode switching messages to ADECU and MPU to realize data Flexible switching of upload mode.

Benefits of technology

Flexible switching of vehicle data upload mode according to data analysis needs, avoiding resource waste, reducing data analysis costs, and improving data transmission efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119316308A_ABST
    Figure CN119316308A_ABST
Patent Text Reader

Abstract

The invention relates to a vehicle data upload mode switching method and device, and belongs to the technical field of data processing.The vehicle data upload mode switching method is applied to a TBOX and comprises the steps that a data upload mode switching instruction issued by a data platform is received, the data upload mode switching instruction is used for indicating the TBOX to be switched to a target data upload mode, and the data upload mode switching instruction is used for switching the TBOX to the target data upload mode; the target data uploading mode comprises a real-time mode or an event mode; and sending a state mode switching message to the ADECU and the MPU, wherein the state mode switching message is used for indicating the ADECU and the MPU to be switched to the target data uploading mode. According to the invention, the uploading mode of the vehicle data can be flexibly switched according to the data analysis demand, the waste of resources is avoided, and the cost of data analysis is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of data processing, and in particular to a method and device for switching a vehicle data upload mode. 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, which makes it difficult to meet the data volume requirements of intelligent driving data analysis. At the same time, maintaining real-time upload of vehicle data and video data will also incur high traffic charges. When real-time data upload is not required, it is easy to waste resources and increase the cost of data analysis. Summary of the invention

[0004] In view of this, it is necessary to provide a method and device for switching vehicle data upload mode to solve the current problem that maintaining real-time upload of vehicle data and video data will increase data analysis costs.

[0005] In order to solve the above problems, the present invention provides a vehicle data upload mode switching method, which is applied to TBOX, comprising: Receive a data upload mode switching instruction issued by the data platform, where the data upload mode switching instruction is used to instruct the TBOX to switch to a target data upload mode, where the target data upload mode includes a real-time mode or an event mode; A state mode switching message is sent to the ADECU and the MPU, wherein the state mode switching message is used to instruct the ADECU and the MPU to switch to the target data upload mode.

[0006] In a possible implementation, the method further includes: Receive a first state mode message sent by ADECU and a second state mode message sent by MPU, wherein the first state mode message is used to feedback the current data upload mode of ADECU, and the second state mode message is used to feedback the current data upload mode of MPU; Based on the first status mode message and the second status mode message, a switching response message is sent to the data platform, and the switching response message is used to reply to the target data upload mode switching status of ADECU and MPU.

[0007] In a possible implementation, the receiving the first state mode message sent by the ADECU and the second state mode message sent by the MPU includes: After sending the state mode switching message to ADECU and MPU, the first state mode message and the second state mode message are received within a first time period.

[0008] In a possible implementation manner, the sending a switching response message to the data platform based on the first state mode message and the second state mode message includes: Within the first time period, if the current data upload mode of the ADECU fed back by the first state mode message in the last frame is consistent with the target data upload mode, reply in the switching response message that the upload mode switching of the ADECU is successful; Within the first time period, if the current data upload mode of the ADECU fed back by the first state mode message in the last frame is inconsistent with the target data upload mode, replying in the switching response message that the ADECU upload mode switching has failed; If the first state mode message is not received within the first time period, replying in the switching response message that the ADECU upload mode switching timeout; Within the first time period, if the current data upload mode of the MPU fed back by the second state mode message in the last frame is consistent with the target data upload mode, reply in the switching response message that the MPU upload mode switching is successful; Within the first time period, if the current data upload mode of the MPU fed back by the second state mode message in the last frame is inconsistent with the target data upload mode, reply in the switching response message that the MPU upload mode switching failed; If the second state mode message is not received within the first time period, the MPU upload mode switching timeout is replied in the switching response message.

[0009] In a possible implementation, the method further includes: After replying in the switching response message that the upload mode of the ADECU is successfully switched, uploading the Ethernet data of the ADECU to the data platform in the target data upload mode; Replying in the switching response message that the ADECU upload mode switching has failed, or, after replying in the switching response message that the ADECU upload mode switching has timed out, stopping uploading the Ethernet data of the ADECU to the data platform; After replying in the switching response message that the MPU upload mode is successfully switched, uploading the Ethernet data of the MPU to the data platform in the target data upload mode; After replying in the switching response message that the MPU upload mode switching has failed, or replying in the switching response message that the MPU upload mode switching has timed out, stop uploading the MPU's Ethernet data to the data platform.

[0010] The present invention also provides a vehicle data upload mode switching method, which is applied to a data platform and includes: Sending a data upload mode switching instruction to the TBOX, wherein the data upload mode switching instruction is used to instruct the TBOX to switch to a target data upload mode, wherein the target data upload mode includes a real-time mode or an event mode; Receiving a switching response message sent by the TBOX, wherein the switching response message is used to reply to the target data upload mode switching status of the ADECU and the MPU; Determine whether the target data upload mode is switched successfully based on the switching response message.

[0011] In a possible implementation manner, determining whether the target data upload mode is switched successfully based on the switching response message includes: When the switching response message replies that the ADECU upload mode switching is successful, and / or when the switching response message replies that the MPU upload mode switching is successful, determining that the target data upload mode switching is successful; When the switching response message replies that the ADECU upload mode switching has failed or the ADECU upload mode switching has timed out, and the switching response message replies that the MPU upload mode switching has failed or the MPU upload mode switching has timed out, it is determined that the target data upload mode switching has failed.

[0012] In a possible implementation, the method further includes: If the switching response message is not received within the second time period of sending the data upload mode switching instruction to the TBOX, it is determined that the target data upload mode switching fails.

[0013] The present invention also provides a vehicle data upload mode switching device, comprising: A first receiving module is used to receive a data upload mode switching instruction issued by the data platform, wherein the data upload mode switching instruction is used to instruct the TBOX to switch to a target data upload mode, wherein the target data upload mode includes a real-time mode or an event mode; The first sending module is used to send a state mode switching message to the ADECU and the MPU, and the state mode switching message is used to instruct the ADECU and the MPU to switch to the target data upload mode.

[0014] The present invention also provides a vehicle data upload mode switching device, comprising: A second sending module is used to send a data upload mode switching instruction to the TBOX, wherein the data upload mode switching instruction is used to instruct the TBOX to switch to a target data upload mode, wherein the target data upload mode includes a real-time mode or an event mode; A second receiving module is used to receive a switching response message sent by the TBOX, where the switching response message is used to reply the target data upload mode switching status of the ADECU and the MPU; A determination module is used to determine whether the target data upload mode is switched successfully based on the switching response message.

[0015] The beneficial effects of the present invention are as follows: the vehicle data upload mode switching method and device provided by the present invention, the data platform can send a data upload mode switching instruction to TBOX according to data analysis requirements, instructing TBOX to switch to the corresponding data upload mode, and TBOX then sends a status mode switching message to ADECU and MPU according to the data upload mode switching instruction, instructing ADECU and MPU to the corresponding data upload mode, and finally realizes the switching of the vehicle data upload mode, avoiding the vehicle data being uploaded in real-time mode all the time, thereby increasing the cost of data analysis. The present invention can flexibly switch the upload mode of vehicle data according to data analysis requirements, avoiding waste of resources and reducing the cost of data analysis. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] Figure 1 A schematic diagram of a flow chart of an embodiment of a method for switching a vehicle data upload mode provided by the present invention; Figure 2 A schematic flow chart of another embodiment of the method for switching the vehicle data upload mode provided by the present invention; Figure 3 A schematic diagram of a process flow of an embodiment of a vehicle data upload mode switching process provided by the present invention; Figure 4 A schematic diagram of the structure of an embodiment of a vehicle data upload mode switching device provided by the present invention; Figure 5 This is a schematic structural diagram of another embodiment of the vehicle data upload mode switching device provided by the present invention. DETAILED DESCRIPTION

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

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

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

[0020] Currently, vehicle-side data upload is mainly in the form of CAN data, and is generally uploaded as a real-time data stream.

[0021] However, the data transmission rate supported by the CAN bus is limited, which makes it difficult to meet the data volume requirements of intelligent driving data analysis. At the same time, maintaining real-time upload of vehicle data and video data will also incur high traffic charges. When real-time data upload is not required, it is easy to waste resources and increase the cost of data analysis.

[0022] In order to solve the above problems, the present invention provides a method for switching vehicle data upload mode.

[0023] The specific embodiments are described in detail below: A specific embodiment of the present invention discloses a vehicle data upload mode switching method, which is applied to TBOX and combined with Figure 1 Come and see, Figure 1 The flowchart of an embodiment of the vehicle data upload mode switching method provided by the present invention includes step S101 and step S102, wherein: In step S101, a data upload mode switching instruction issued by a data platform is received, wherein the data upload mode switching instruction is used to instruct the TBOX to switch to a target data upload mode, wherein the target data upload mode includes a real-time mode or an event mode; In step S102, a state mode switching message is sent to the ADECU and the MPU, wherein the state mode switching message is used to instruct the ADECU and the MPU to switch to the target data upload mode.

[0024] During implementation, the telematics box (TBOX) on the vehicle can first receive a data upload mode switching instruction sent by a data platform. The data platform can be a platform used by an enterprise for vehicle testing and analysis, or other platforms that need to use vehicle data for data analysis. The data upload mode switching instruction can instruct the TBOX to switch to a target data upload mode, which can be a real-time mode or an event mode, which is different from the current data upload mode.

[0025] For example, the default data upload mode after TBOX is started can be the event mode. When the data platform has high requirements for data real-time performance, a data upload mode switching instruction can be sent to TBOX to instruct TBOX to switch to real-time mode to upload vehicle data. When the data platform no longer needs high real-time data, a data upload mode switching instruction can be sent to TBOX to instruct TBOX to switch to event mode to upload vehicle data, thereby being able to reasonably switch the data upload mode according to data requirements.

[0026] Since the data upload process also needs to obtain data from the Autonomous Driving Electronic Control Unit (ADECU) and the Microprocessor Unit (MPU), after receiving the data upload mode switching instruction, TBOX can also send a status mode switching message to the ADECU and MPU to instruct the ADECU and MPU to switch to the target data upload mode.

[0027] The vehicle data upload mode switching method provided by the present invention can be applied to the pre-factory 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.

[0028] Compared with the prior art, the vehicle data upload mode switching method provided in this embodiment is that the data platform can issue a data upload mode switching instruction to TBOX according to data analysis requirements, instructing TBOX to switch to the corresponding data upload mode. TBOX then sends a status mode switching message to ADECU and MPU according to the data upload mode switching instruction, instructing ADECU and MPU to the corresponding data upload mode, and finally realizes the switching of the vehicle data upload mode, avoiding the vehicle data being uploaded in real-time mode all the time, thereby increasing the cost of data analysis. The present invention can flexibly switch the upload mode of vehicle data according to data analysis requirements, avoids waste of resources, and reduces the cost of data analysis.

[0029] Exemplarily, the method further includes: Receive a first state mode message sent by ADECU and a second state mode message sent by MPU, wherein the first state mode message is used to feedback the current data upload mode of ADECU, and the second state mode message is used to feedback the current data upload mode of MPU; Based on the first status mode message and the second status mode message, a switching response message is sent to the data platform, and the switching response message is used to reply to the target data upload mode switching status of ADECU and MPU.

[0030] Specifically, after sending the state mode switching message to ADECU and MPU, TBOX can also receive the first state mode message sent by ADECU and the second state mode message sent by MPU. The first state mode message can be used to feedback the current data upload mode of ADECU, and the second state mode message can be used to feedback the current data upload mode of MPU.

[0031] According to the first status mode message and the second status mode message, TBOX can determine the current data upload mode of ADECU and MPU, and then send a switching response message to the data platform to feedback the data upload mode switching status of ADECU and MPU.

[0032] Exemplarily, the receiving the first state mode message sent by the ADECU and the second state mode message sent by the MPU includes: After sending the state mode switching message to ADECU and MPU, the first state mode message and the second state mode message are received within a first time period.

[0033] Specifically, since data usually has timeliness requirements, after TBOX sends the status mode switching message to ADECU and MPU, it needs to receive the first status mode message and the second status mode message within a first time period (for example, 1s) to promptly determine the current data upload mode of ADECU and MPU.

[0034] Exemplarily, the sending a switching response message to the data platform based on the first state mode message and the second state mode message includes: Within the first time period, if the current data upload mode of the ADECU fed back by the first state mode message in the last frame is consistent with the target data upload mode, reply in the switching response message that the upload mode switching of the ADECU is successful; Within the first time period, if the current data upload mode of the ADECU fed back by the first state mode message in the last frame is inconsistent with the target data upload mode, replying in the switching response message that the ADECU upload mode switching has failed; If the first state mode message is not received within the first time period, replying in the switching response message that the ADECU upload mode switching timeout; Within the first time period, if the current data upload mode of the MPU fed back by the second state mode message in the last frame is consistent with the target data upload mode, reply in the switching response message that the MPU upload mode switching is successful; Within the first time period, if the current data upload mode of the MPU fed back by the second state mode message in the last frame is inconsistent with the target data upload mode, reply in the switching response message that the MPU upload mode switching failed; If the second state mode message is not received within the first time period, the MPU upload mode switching timeout is replied in the switching response message.

[0035] Specifically, when the TBOX sends a switching response message to the data platform according to the first state mode message and the second state mode message, the TBOX may determine the message content to be replied to the data platform in the switching response message according to the above rules.

[0036] Exemplarily, the method further includes: After replying in the switching response message that the upload mode of the ADECU is successfully switched, uploading the Ethernet data of the ADECU to the data platform in the target data upload mode; Replying in the switching response message that the ADECU upload mode switching has failed, or, after replying in the switching response message that the ADECU upload mode switching has timed out, stopping uploading the Ethernet data of the ADECU to the data platform; After replying in the switching response message that the MPU upload mode is successfully switched, uploading the Ethernet data of the MPU to the data platform in the target data upload mode; After replying in the switching response message that the MPU upload mode switching has failed, or replying in the switching response message that the MPU upload mode switching has timed out, stop uploading the MPU's Ethernet data to the data platform.

[0037] Specifically, when TBOX replies in the switching response message that the upload mode switch of ADECU is successful, it can upload the Ethernet data of ADECU to the data platform through the corresponding data upload mode; and when TBOX replies in the switching response message that the upload mode switch of ADECU fails or the switch times out, it indicates that there is a problem with the data upload mode of ADECU, and there may also be a problem with the Ethernet data of ADECU, which is no longer suitable for data analysis. At this time, TBOX can stop uploading the Ethernet data of ADECU to the data platform.

[0038] Similarly, for the Ethernet data of the MPU, TBOX can also adopt the same rules, that is, after replying in the switching response message that the MPU upload mode is switched successfully, the Ethernet data of the MPU is uploaded to the data platform through the corresponding data upload mode; after replying in the switching response message that the MPU upload mode switch fails or the switch times out, the Ethernet data of the MPU is stopped from being uploaded to the data platform.

[0039] The present invention also discloses a vehicle data upload mode switching method, which is applied to a data platform and combined with Figure 2 Come and see, Figure 2 A flowchart of another embodiment of the vehicle data upload mode switching method provided by the present invention includes steps S201 to S203, wherein: In step S201, a data upload mode switching instruction is issued to the TBOX, wherein the data upload mode switching instruction is used to instruct the TBOX to switch to a target data upload mode, wherein the target data upload mode includes a real-time mode or an event mode; In step S202, a switching response message sent by the TBOX is received, where the switching response message is used to reply the target data upload mode switching status of the ADECU and the MPU; In step S203, it is determined whether the target data upload mode is switched successfully based on the switching response message.

[0040] During implementation, the data platform can send data upload mode switching instructions to TBOX according to data analysis requirements, instructing TBOX to switch to real-time mode or event mode.

[0041] For example, the default data upload mode after TBOX is started can be the event mode. When the data platform has high requirements for data real-time performance, a data upload mode switching instruction can be sent to TBOX to instruct TBOX to switch to real-time mode to upload vehicle data. When the data platform no longer needs high real-time data, a data upload mode switching instruction can be sent to TBOX to instruct TBOX to switch to event mode to upload vehicle data, thereby being able to reasonably switch the data upload mode according to data requirements.

[0042] Next, the data platform may receive the switching response message sent by TBOX, determine the switching status of the target data upload mode of ADECU and MPU according to the switching response message, and further determine whether the target data upload mode is switched successfully.

[0043] The vehicle data upload mode switching method provided by the present invention can be applied to the pre-factory 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.

[0044] Compared with the prior art, the vehicle data upload mode switching method provided in this embodiment is that the data platform can send a data upload mode switching instruction to TBOX according to data analysis requirements, instructing TBOX to switch to the corresponding data upload mode, and determine whether the corresponding data upload mode is switched successfully according to the switching response message sent by TBOX, thereby finally realizing the switching of the vehicle data upload mode, avoiding the vehicle data being uploaded in real-time mode all the time, thereby increasing the cost of data analysis. The present invention can flexibly switch the upload mode of vehicle data according to data analysis requirements, avoiding waste of resources and reducing the cost of data analysis.

[0045] Exemplarily, determining whether the target data upload mode is switched successfully based on the switching response message includes: When the switching response message replies that the ADECU upload mode switching is successful, and / or when the switching response message replies that the MPU upload mode switching is successful, determining that the target data upload mode switching is successful; When the switching response message replies that the ADECU upload mode switching has failed or the ADECU upload mode switching has timed out, and the switching response message replies that the MPU upload mode switching has failed or the MPU upload mode switching has timed out, it is determined that the target data upload mode switching has failed.

[0046] Specifically, when TBOX replies in the switching response message that the ADECU upload mode is switched successfully, and / or that the MPU upload mode is switched successfully, the data platform can determine that the target data upload mode is switched successfully.

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

[0048] For example, if TBOX replies in the switching response message that the ADECU upload mode switching is successful and the MPU upload mode switching is failed, the data platform can determine that the target data upload mode switching is successful.

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

[0050] For another example, TBOX replies in the switching response message that the ADECU upload mode switching has timed out and the MPU upload mode switching has failed, then the data platform can determine that the target data upload mode switching has failed.

[0051] Exemplarily, the method further includes: If the switching response message is not received within the second time period of sending the data upload mode switching instruction to the TBOX, it is determined that the target data upload mode switching fails.

[0052] Specifically, since data usually has timeliness requirements, if the data platform has not received the switching response message sent by TBOX within the second time period (for example, 20s) after sending the data upload mode switching instruction to TBOX, it means that TBOX may have a fault. At this time, it can be determined that the target data upload mode switching has failed.

[0053] The technical solution of the present invention is better described below with reference to a specific embodiment: Combination Figure 3 Come and see, Figure 3 This is a flow chart of an embodiment of a vehicle data upload mode switching process provided by the present invention, and the process includes the following steps: 1. The data platform sends the data upload mode to TBOX.

[0054] 2. When TBOX receives the mode switching command issued by the data platform, it changes the mode content of the TBOX to the CAN bus according to the platform, and at the same time receives the ADCU sends the status mode message to the CAN bus sent by ADECU on the bus and the MPU sends the status mode message to the CAN bus sent by MPU on the bus.

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

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

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

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

[0059] 4. The platform determines whether the data upload mode is successful based on the switching response.

[0060] When the data upload mode is successfully sent, the platform receives a TBOX response. If the ADECU mode switching status or the MPU mode switching status in the "data upload mode response" is a success status, the mode switching is judged to be successful, and the platform displays the switched mode; if the ADECU mode switching status and the MPU mode switching status are both failure or timeout status, the mode switching is judged to have failed, and the platform mode remains unchanged.

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

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

[0063] The default mode of TBOX application is event mode. The Ethernet data receiving thread will start with the application startup by default and will not be affected by the mode. The video-related stream pulling thread will be created and start streaming; the stream pushing thread will be created when the platform sends the first stream pushing instruction and will continue to run, but the running state will change when the mode is switched.

[0064] The video push-pull streaming threads in real-time mode are mainly created and destroyed by the platform issuing push streaming start and end instructions. The real-time mode packet sending thread will be created after the first push streaming instruction is issued, and will always exist and will not exit. It will run when the conditions are met and will be blocked if the conditions are not met.

[0065] Mode switching mainly involves the start, stop, block, and wake-up operations of each thread created in the above two modes. It is managed through the following states: Typedefenum { ETHTHRD_STATE_NULL, ETHTHRD_STATE_RUNNABLE, / / Enter this state when creating ETHTHRD_STATE_SUSPENDED, / / Suspended, enter this state when switching modes ETHTHRD_STATE_RUNNING, / / Executing, MA enters this state when calling pfv_StartVideoPush ETHTHRD_STATE_DEAD, / / Enter this state after receiving the stop command from the platform ETHNET_THREAD_STATE_MAX, }t_EthThrd_State; After the platform issues a mode switching instruction, if it is different from the current mode, it will perform corresponding processing: a. Event switching to real-time: (1) Block the event mode packet sending thread and the video streaming and video streaming threads, that is: ETHTHRD_STATE_RUNNING-ETHTHRD_STATE_SUSPENDED.

[0066] (2) Restore the real-time mode packet sending thread, that is, the thread state: ETHTHRD_STATE_SUSPENDED-ETHTHRD_STATE_RUNNING.

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

[0068] b. Switch to events in real time: (1) Terminate the real-time mode streaming thread and change the thread state: ETHTHRD_STATE_RUNNING-ETHTHRD_STATE_DEAD.

[0069] (2) Block the real-time mode packet sending thread and change the thread state: ETHTHRD_STATE_RUNNING-ETHTHRD_STATE_SUSPENDED.

[0070] (3) Clear the data in each buffer of the previous round of event mode Since the real-time transmission has been going on for a while, the previous data has expired and needs to be cached from scratch.

[0071] (4) Restore the event mode packet sending thread and the video streaming and video streaming threads, that is: ETHTHRD_STATE_SUSPENDED-ETHTHRD_STATE_RUNNING.

[0072] (5) Change the global variable that saves the current mode to event mode.

[0073] The present invention can meet different data acquisition requirements while ensuring vehicle driving safety.

[0074] The embodiment of the present invention also provides a vehicle data upload mode switching device, combined with Figure 4 Come and see, Figure 4 This is a structural diagram of an embodiment of a vehicle data upload mode switching device provided by the present invention. The vehicle data upload mode switching device 400 includes: A first receiving module 401 is used to receive a data upload mode switching instruction issued by a data platform, wherein the data upload mode switching instruction is used to instruct the TBOX to switch to a target data upload mode, wherein the target data upload mode includes a real-time mode or an event mode; The first sending module 402 is used to send a state mode switching message to the ADECU and the MPU, and the state mode switching message is used to instruct the ADECU and the MPU to switch to the target data upload mode.

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

[0076] The embodiment of the present invention also provides a vehicle data upload mode switching device, combined with Figure 5 Come and see, Figure 5 This is a structural 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: The second sending module 501 is used to send a data upload mode switching instruction to the TBOX, wherein the data upload mode switching instruction is used to instruct the TBOX to switch to a target data upload mode, wherein the target data upload mode includes a real-time mode or an event mode; The second receiving module 502 is used to receive a switching response message sent by the TBOX, where the switching response message is used to reply the target data upload mode switching status of the ADECU and the MPU; The determination module 503 is configured to determine whether the target data upload mode is switched successfully based on the switching response message.

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

[0078] The present invention discloses a vehicle data upload mode switching method and device. The data platform can send a data upload mode switching instruction to TBOX according to data analysis requirements, instructing TBOX to switch to the corresponding data upload mode. TBOX then sends a status mode switching message to ADECU and MPU according to the data upload mode switching instruction, instructing ADECU and MPU to the corresponding data upload mode, and finally realizes the switching of the vehicle data upload mode, avoiding the vehicle data being uploaded in real-time mode all the time, thereby increasing the cost of data analysis. The present invention can flexibly switch the upload mode of vehicle data according to data analysis requirements, avoiding waste of resources and reducing the cost of data analysis.

[0079] 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 method for switching a vehicle data upload mode, characterized in that: Applied to TBOX, including: Receive a data upload mode switching instruction issued by the data platform, where the data upload mode switching instruction is used to instruct the TBOX to switch to a target data upload mode, where the target data upload mode includes a real-time mode or an event mode; A state mode switching message is sent to the ADECU and the MPU, wherein the state mode switching message is used to instruct the ADECU and the MPU to switch to the target data upload mode.

2. The vehicle data upload mode switching method according to claim 1, characterized in that: The method further comprises: Receive a first state mode message sent by ADECU and a second state mode message sent by MPU, wherein the first state mode message is used to feedback the current data upload mode of ADECU, and the second state mode message is used to feedback the current data upload mode of MPU; Based on the first status mode message and the second status mode message, a switching response message is sent to the data platform, and the switching response message is used to reply to the target data upload mode switching status of ADECU and MPU.

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

4. The vehicle data upload mode switching method according to claim 3, characterized in that: The sending a switching response message to the data platform based on the first state mode message and the second state mode message includes: Within the first time period, if the current data upload mode of the ADECU fed back by the first state mode message in the last frame is consistent with the target data upload mode, reply in the switching response message that the upload mode switching of the ADECU is successful; Within the first time period, if the current data upload mode of the ADECU fed back by the first state mode message in the last frame is inconsistent with the target data upload mode, replying in the switching response message that the ADECU upload mode switching has failed; If the first state mode message is not received within the first time period, replying in the switching response message that the ADECU upload mode switching timeout; Within the first time period, if the current data upload mode of the MPU fed back by the second state mode message in the last frame is consistent with the target data upload mode, reply in the switching response message that the MPU upload mode switching is successful; Within the first time period, if the current data upload mode of the MPU fed back by the second state mode message in the last frame is inconsistent with the target data upload mode, reply in the switching response message that the MPU upload mode switching failed; If the second state mode message is not received within the first time period, the MPU upload mode switching timeout is replied in the switching response message.

5. The vehicle data upload mode switching method according to claim 4, characterized in that: The method further comprises: After replying in the switching response message that the upload mode of the ADECU is successfully switched, uploading the Ethernet data of the ADECU to the data platform in the target data upload mode; Replying in the switching response message that the ADECU upload mode switching has failed, or, after replying in the switching response message that the ADECU upload mode switching has timed out, stopping uploading the Ethernet data of the ADECU to the data platform; After replying in the switching response message that the MPU upload mode is successfully switched, uploading the Ethernet data of the MPU to the data platform in the target data upload mode; After replying in the switching response message that the MPU upload mode switching has failed, or replying in the switching response message that the MPU upload mode switching has timed out, stop uploading the MPU's Ethernet data to the data platform.

6. A method for switching a vehicle data upload mode, characterized in that: Applied to data platforms, including: Sending a data upload mode switching instruction to the TBOX, wherein the data upload mode switching instruction is used to instruct the TBOX to switch to a target data upload mode, wherein the target data upload mode includes a real-time mode or an event mode; Receiving a switching response message sent by the TBOX, wherein the switching response message is used to reply to the target data upload mode switching status of the ADECU and the MPU; Determine whether the target data upload mode is switched successfully based on the switching response message.

7. The vehicle data upload mode switching method according to claim 6, characterized in that: The determining whether the target data upload mode is switched successfully based on the switching response message includes: When the switching response message replies that the ADECU upload mode switching is successful, and / or when the switching response message replies that the MPU upload mode switching is successful, determining that the target data upload mode switching is successful; When the switching response message replies that the ADECU upload mode switching has failed or the ADECU upload mode switching has timed out, and the switching response message replies that the MPU upload mode switching has failed or the MPU upload mode switching has timed out, it is determined that the target data upload mode switching has failed.

8. The vehicle data upload mode switching method according to claim 7, characterized in that: The method further comprises: If the switching response message is not received within the second time period of sending the data upload mode switching instruction to the TBOX, it is determined that the target data upload mode switching fails.

9. A vehicle data upload mode switching device, characterized in that: include: A first receiving module is used to receive a data upload mode switching instruction issued by the data platform, wherein the data upload mode switching instruction is used to instruct the TBOX to switch to a target data upload mode, wherein the target data upload mode includes a real-time mode or an event mode; The first sending module is used to send a state mode switching message to the ADECU and the MPU, and the state mode switching message is used to instruct the ADECU and the MPU to switch to the target data upload mode.

10. A vehicle data upload mode switching device, characterized in that: include: A second sending module is used to send a data upload mode switching instruction to the TBOX, wherein the data upload mode switching instruction is used to instruct the TBOX to switch to a target data upload mode, wherein the target data upload mode includes a real-time mode or an event mode; A second receiving module is used to receive a switching response message sent by the TBOX, where the switching response message is used to reply the target data upload mode switching status of the ADECU and the MPU; A determination module is used to determine whether the target data upload mode is switched successfully based on the switching response message.

Citation Information

Patent Citations

  • IoT data reporting method, device and system

    CN108667870A

  • Vehicle data acquisition and uploading method capable of being remotely and dynamically configured and storage medium

    CN111447128A

  • Data analysis system and method suitable for Internet of Vehicles data of commercial vehicles

    CN113709106A

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

    CN114500502A

  • Intelligent driving automobile data uploading method and system

    CN115550350A