Data transmission method and device of vehicle, vehicle and storage medium

By using MQTT and HTTP protocols in vehicle data transmission, combined with protobuf binary processing and two-way authentication mechanism, the insecurity, low performance and path confusion exist in the data interaction between the vehicle and the enterprise cloud and APP, and a safer, more efficient and standardized data transmission is achieved.

CN119996394APending Publication Date: 2025-05-13CHERY AUTOMOBILE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510130042.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-02-05
Publication Date
2025-05-13

AI Technical Summary

Technical Problem

There are problems such as insecurity, low transmission performance and confusing data transmission paths during data interaction between vehicles and enterprises and APP.

Method used

By obtaining login instructions from the vehicle terminal and/or application terminal, receiving the MQTT login information sent by the cloud based on the login instructions, determining whether there is data to be transmitted, and data transmission is carried out with the cloud through MQTT or HTTP according to the data type. Protobuf is used to perform binary processing of data, and the security of data transmission is enhanced through a two-way authentication mechanism.

Benefits of technology

It enhances the security of data transmission, improves transmission performance, standardizes data transmission paths, and solves the problems of insecurity, low performance and path confusion.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119996394A_ABST
    Figure CN119996394A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of vehicles, in particular to a data transmission method and device of a vehicle, the vehicle and a storage medium, and the method comprises the steps: obtaining a login instruction of a vehicle terminal and / or an application terminal; the in-vehicle terminal and / or the application terminal receives MQTT login information sent by the cloud based on the login instruction, and judges whether to-be-transmitted data exists in the in-vehicle terminal and / or the application terminal; and when the to-be-transmitted data exists in the in-vehicle terminal and / or the application terminal and the data type of the to-be-transmitted data is pushing data and / or real-time dynamic data, the in-vehicle terminal and / or the application terminal performs data transmission with the cloud through the MQTT based on the MQTT login information. Therefore, the problems of insecurity, low transmission performance and disordered data transmission paths of interaction among the vehicle terminal, the enterprise terminal and the cloud terminal are solved, the security of data transmission can be enhanced, the transmission performance can be improved, and the transmission path can be standardized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of vehicle technology, and in particular to a vehicle data transmission method, device, vehicle and storage medium. Background Art

[0002] In the era of Internet of Vehicles+, the interaction between vehicles, the Internet and people is becoming increasingly networked and close. However, there are still some significant problems in the interaction between vehicles and enterprise clouds and related apps. First, the risk of insecurity is particularly prominent, because the data interaction between vehicles and enterprise clouds often adopts one-way authentication or no authentication at all, and JSON format is generally used in plain text transmission in HTTP requests, which provides the possibility of data leakage and attack.

[0003] Secondly, low transmission performance is an urgent problem to be solved. At present, data exchange between cars and enterprise cloud and APP is mostly based on HTTP+JSON. Although this method is simple and direct, it has a large amount of data and occupies a lot of bandwidth, which brings huge pressure to the enterprise cloud. At the same time, due to different development periods and technical requirements, multiple data transmission methods coexist. For example, HTTP, MQTT, KAFKA, REDIS and other middleware are used for data transfer, resulting in a chaotic situation of data transmission and a lack of unified standard classification.

[0004] Finally, the problem of account inconsistency also troubles user experience and system integration. Currently, the APP and the car have their own independent account systems, which leads to inconsistency and complexity in the interaction between the two. It not only increases the difficulty of user operation, but also makes the background management and maintenance more complicated. In summary, it is particularly important to propose effective solutions to the above problems. Summary of the invention

[0005] The present application provides a vehicle data transmission method, device, electronic device and storage medium to solve the problems of insecurity, low transmission performance and chaotic data transmission path in the interaction between the vehicle end, the enterprise end and the cloud end. It can enhance the security of data transmission, improve transmission performance and standardize the transmission path.

[0006] A first aspect of the present application provides a vehicle data transmission method, comprising the following steps:

[0007] Obtain login instructions from the vehicle terminal and / or the application terminal;

[0008] The vehicle terminal and / or the application terminal receives the MQTT login information sent by the cloud based on the login instruction, and determines whether there is data to be transmitted on the vehicle terminal and / or the application terminal;

[0009] When the data to be transmitted exists on the vehicle side and / or the application side, and the data type of the data to be transmitted is push data and / or real-time dynamic data, the vehicle side and / or the application side transmits data with the cloud via MQTT based on the MQTT login information.

[0010] Optionally, in some embodiments, after determining whether there is data to be transmitted on the vehicle machine end and / or the application end, the method further includes:

[0011] When the data to be transmitted exists on the vehicle machine end and / or the application end, and the data type of the data to be transmitted is application data, the vehicle machine end and / or the application end performs data transmission with the cloud based on an HTTP request.

[0012] Optionally, in some embodiments, before the vehicle terminal and / or the application terminal transmits data with the cloud based on an HTTP request, the following steps are included:

[0013] The vehicle terminal and / or the application terminal sends an HTTP connection request to the cloud;

[0014] The cloud sends a cloud public key to the vehicle side and / or the application side based on the HTTP connection request. After the vehicle side and / or the application side verify the cloud public key, the vehicle side public key and / or the application side public key are sent to the cloud;

[0015] After the cloud verifies the vehicle-side public key and / or the application-side public key, the cloud generates a shared key with the vehicle-side and / or the application-side, and performs data transmission based on the shared key.

[0016] Optionally, in some embodiments, the vehicle terminal and / or the application terminal performs data transmission with the cloud based on an HTTP request, including:

[0017] Protobuf is used to perform binary processing on the data to be transmitted, and the processed data to be transmitted is transmitted to the cloud.

[0018] A second aspect of the present application provides a vehicle data transmission device, including:

[0019] An acquisition module is used to acquire login instructions from the vehicle terminal and / or the application terminal;

[0020] A judgment module, used for receiving, through the vehicle terminal and / or the application terminal, the MQTT login information sent by the cloud based on the login instruction, and judging whether there is data to be transmitted on the vehicle terminal and / or the application terminal;

[0021] A transmission module is used to transmit data with the cloud via MQTT based on the MQTT login information through the vehicle terminal and / or the application terminal when the data to be transmitted exists on the vehicle terminal and / or the application terminal and the data type of the data to be transmitted is push data and / or real-time dynamic data.

[0022] Optionally, in some embodiments, after determining whether there is data to be transmitted on the vehicle terminal and / or the application terminal, the determination module further includes:

[0023] A transmission unit is used to transmit data with the cloud based on an HTTP request through the vehicle terminal and / or the application terminal when the data to be transmitted exists on the vehicle terminal and / or the application terminal and the data type of the data to be transmitted is application data.

[0024] Optionally, in some embodiments, the transmission unit is used before the vehicle terminal and / or the application terminal transmits data with the cloud based on an HTTP request, and includes:

[0025] A first sending subunit, used for sending an HTTP connection request to the cloud through the vehicle terminal and / or the application terminal;

[0026] A second sending subunit is used to send a cloud public key to the vehicle side and / or the application side through the cloud based on the HTTP connection request, and after the vehicle side and / or the application side verify the cloud public key, send the vehicle side public key and / or the application side public key to the cloud;

[0027] The transmission subunit is used to generate a shared key between the cloud and the vehicle-side public key and / or the application-side public key after the cloud verifies the public key of the vehicle-side public key and / or the application-side public key, and transmit data based on the shared key.

[0028] Optionally, in some embodiments, the transmission unit includes:

[0029] The processing subunit is used to perform binary processing on the data to be transmitted using protobuf, and transmit the processed data to be transmitted to the cloud.

[0030] A third aspect of the present application provides an electronic device, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the vehicle data transmission method as described in the above embodiment.

[0031] The fourth aspect of the present application provides a computer-readable storage medium having a computer program stored thereon, which is executed by a processor to implement the vehicle data transmission method as described in the above embodiment.

[0032] Therefore, by obtaining the login instruction of the vehicle side and / or the application side, the vehicle side and / or the application side receives the MQTT login information sent by the cloud based on the login instruction, and determines whether there is data to be transmitted on the vehicle side and / or the application side. When there is data to be transmitted on the vehicle side and / or the application side, and the data type of the data to be transmitted is push data and / or real-time dynamic data, the vehicle side and / or the application side transmits data with the cloud through MQTT based on the MQTT login information. In this way, the problems of insecurity, low transmission performance, and chaotic data transmission path in the interaction between the vehicle side, the enterprise side, and the cloud are solved, and the security of data transmission can be enhanced, the transmission performance can be improved, and the transmission path can be standardized.

[0033] Additional aspects and advantages of the present application will be given in part in the description below, and in part will become apparent from the description below, or will be learned through the practice of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] The above and / or additional aspects and advantages of the present application will become apparent and easily understood from the following description of the embodiments in conjunction with the accompanying drawings, in which:

[0035] Figure 1 A flowchart of a vehicle data transmission method provided according to an embodiment of the present application;

[0036] Figure 2 A schematic diagram of the principle of a vehicle data transmission method provided according to an embodiment of the present application;

[0037] Figure 3 A flowchart of a vehicle data transmission method provided according to an embodiment of the present application;

[0038] Figure 4 A block diagram of a vehicle data transmission device provided according to an embodiment of the present application;

[0039] Figure 5 It is a schematic diagram of the structure of an electronic device provided according to an embodiment of the present application. DETAILED DESCRIPTION

[0040] Embodiments of the present application are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present application, and should not be construed as limiting the present application.

[0041] The following describes the data transmission method, device, electronic device and storage medium of the vehicle of the embodiment of the present application with reference to the accompanying drawings. In view of the problems of insecurity, low transmission performance and chaotic data transmission path in the interaction between the vehicle side, the enterprise side and the cloud mentioned in the above background technology, the present application provides a vehicle data transmission method, in which the login instruction of the vehicle side and / or the application side is obtained, and the vehicle side and / or the application side receives the MQTT login information sent by the cloud based on the login instruction, and determines whether there is data to be transmitted on the vehicle side and / or the application side. When there is data to be transmitted on the vehicle side and / or the application side, and the data type of the data to be transmitted is push data and / or real-time dynamic data, the vehicle side and / or the application side transmits data with the cloud through MQTT based on the MQTT login information. In this way, the problems of insecurity, low transmission performance and chaotic data transmission path in the interaction between the vehicle side, the enterprise side and the cloud are solved, and the security of data transmission can be enhanced, the transmission performance can be improved, and the transmission path can be standardized.

[0042] Specifically, Figure 1 A flowchart of a vehicle data transmission method provided in an embodiment of the present application.

[0043] like Figure 1 As shown, the vehicle data transmission method includes the following steps:

[0044] In step S101, a login instruction from the vehicle terminal and / or the application terminal is obtained.

[0045] Among them, the application end is the car APP.

[0046] Specifically, the cloud obtains login instructions from the vehicle computer and the application end to ensure that the identity of the vehicle computer or the application end is verified, thereby enhancing the security of data transmission.

[0047] During the actual implementation process, the cloud receives login operations initiated by users through the vehicle system. The cloud will use a unified oauth2 login method for user logins on the APP and vehicle sides, and provide a unified token as a further data verification method. User logins on the application and vehicle sides will use Oauth2 for unified token management, forming a unified account system for the application and vehicle sides, thereby improving the consistency of interaction.

[0048] In step S102, the vehicle terminal and / or the application terminal receives the MQTT login information sent by the cloud based on the login instruction, and determines whether there is data to be transmitted on the vehicle terminal and / or the application terminal.

[0049] Among them, MQTT login information is used to establish an MQTT connection, including account information.

[0050] Specifically, after the vehicle and APP log in, the enterprise cloud will dynamically provide the MQTT login information to the vehicle and APP. If new data interaction methods are needed in the future, the relevant accounts will be issued uniformly by the enterprise cloud, and it will be determined whether there is data to be transmitted on the vehicle, application, or both.

[0051] In the actual execution process, after the vehicle and APP are logged in, the enterprise cloud will dynamically provide the MQTT login information to the vehicle and APP to ensure that the vehicle or application can correctly connect to the MQTT server in the cloud, check whether there is data to be transmitted, avoid unnecessary data transmission operations, and save resources and bandwidth.

[0052] In step S103, when there is data to be transmitted on the vehicle side and / or the application side, and the data type of the data to be transmitted is push data and / or real-time dynamic data, the vehicle side and / or the application side transmits data with the cloud via MQTT based on the MQTT login information.

[0053] It should be noted that if Figure 2 As shown, the embodiment of the present application standardizes the data transmission path into two modes: HTTP and MQTT. When the data to be transmitted is push data or real-time dynamic data, it will be transmitted through MQTT. When the data to be transmitted is application data, it will be transmitted based on HTTP.

[0054] Specifically, after the vehicle logs in, the enterprise cloud returns the dynamic MQTT account information to the vehicle, and the vehicle pushes or collects MQTT data based on the account information; the APP also obtains the MQTT account information from the enterprise cloud after logging in, and the APP pushes or collects MQTT data based on the account information, so as to achieve low-latency and high-reliability data transmission through the MQTT protocol, which is suitable for scenarios where real-time data updates are required.

[0055] Optionally, in some embodiments, after determining whether there is data to be transmitted on the vehicle side and / or the application side, it also includes: when there is data to be transmitted on the vehicle side and / or the application side, and the data type of the data to be transmitted is application data, the vehicle side and / or the application side transmits data with the cloud based on an HTTP request.

[0056] Furthermore, in some embodiments, the vehicle terminal and / or the application terminal transmits data with the cloud based on HTTP requests, including: using protobuf to perform binary processing on the data to be transmitted, and transmitting the processed data to be transmitted to the cloud.

[0057] Specifically, the data under the protobuf protocol has higher serialization and deserialization performance, and is lighter in size than JSON. The data is binary-encoded, which consumes less bandwidth during data interaction and has faster system parsing efficiency. In the embodiment of the present application, when the data to be transmitted is application data, the embodiment of the present application interacts based on HTTP requests and protobuf serialized data arrangement to achieve efficient data transmission, which is suitable for scenarios that require efficient transmission of large amounts of data.

[0058] Optionally, in some embodiments, before the vehicle side and / or the application side transmits data with the cloud side based on an HTTP request, the following steps are performed: the vehicle side and / or the application side sends an HTTP connection request to the cloud side; the cloud side sends a cloud public key to the vehicle side and / or the application side based on the HTTP connection request, and after the vehicle side and / or the application side verifies the cloud public key, it sends the vehicle side public key and / or the application side public key to the cloud side; after the cloud side verifies the vehicle side public key and / or the application side public key, the cloud side generates a shared key with the vehicle side and / or the application side, and transmits data based on the shared key.

[0059] Specifically, when the vehicle or application side transmits data with the cloud based on HTTP requests, it is necessary to authorize the certificates of both parties for two-way authentication. The vehicle or application side sends an HTTP connection request to the cloud to establish a connection. After the cloud receives the public key of the vehicle and / or application side, it verifies it. The cloud and the vehicle / application side generate a shared key based on their own private keys and the other party's public key. Once the shared key is generated, the vehicle and / or application side and the cloud can use symmetric encryption to transmit data. This method not only ensures the security of data transmission, but also improves transmission efficiency.

[0060] In summary, combined Figure 3 As shown, there are only two data interaction methods between the vehicle and the enterprise cloud, and between the APP and the enterprise cloud. When based on HTTP requests, both parties need to authorize certificates for two-way authentication, and the data needs to be encoded in the protobuf protocol before binary data transmission; user logins on both the APP and vehicle sides will use Oauth2 for unified token management; after the vehicle is started, the vehicle will obtain dynamic MQTT login information through the enterprise cloud, and then push and receive information for processing through MQTT; after the user logs in, the APP will also obtain dynamic MQTT login information through the enterprise cloud, and then push and receive information for processing through MQTT; when the APP and vehicle sides share data, information synchronization can be performed by the enterprise cloud based on MQTT.

[0061] Therefore, the embodiments of the present application have the following beneficial effects:

[0062] (1) Security: The vehicle side and the enterprise cloud side use a two-way authentication mechanism and issue certificates to both parties. When the vehicle side and the cloud side make HTTP requests, protobuf will be used to process the data in binary format before transmission.

[0063] (2) Transmission performance: Data under the protobuf protocol has higher serialization and deserialization performance and is lighter in size than JSON. In addition, the data is binary-encoded, which consumes less bandwidth during data interaction and improves system parsing efficiency.

[0064] (3) Uniformity: In the data transmission between car, cloud and APP, the data transmission path is standardized to HTTP and MQTT, and the protobuf protocol is used under the HTTP protocol to perform lightweight data processing, which solves the problem of mixed use of various middleware and different data formats in the early stage.

[0065] (4) Account consistency: In the early days, accounts for various interaction paths were not managed in a unified manner and were basically hard-coded, which was neither safe nor very convenient. In the data transmission between car, cloud and APP, the enterprise cloud will provide Oauth2 authentication to the APP and car. After the car and APP log in, the enterprise cloud will dynamically provide the MQTT account information. If new data interaction methods are needed in the future, the relevant accounts will be issued uniformly by the enterprise cloud.

[0066] According to the vehicle data transmission method proposed in the embodiment of the present application, by obtaining the login instruction of the vehicle terminal and / or the application terminal, the vehicle terminal and / or the application terminal receives the MQTT login information sent by the cloud based on the login instruction, and determines whether there is data to be transmitted on the vehicle terminal and / or the application terminal. When there is data to be transmitted on the vehicle terminal and / or the application terminal, and the data type of the data to be transmitted is push data and / or real-time dynamic data, the vehicle terminal and / or the application terminal transmits data with the cloud through MQTT based on the MQTT login information. In this way, the problems of insecurity, low transmission performance, and chaotic data transmission path in the interaction between the vehicle terminal, the enterprise terminal, and the cloud are solved, and the security of data transmission can be enhanced, the transmission performance can be improved, and the transmission path can be standardized.

[0067] Next, a data transmission device for a vehicle according to an embodiment of the present application will be described with reference to the accompanying drawings.

[0068] Figure 4 It is a block diagram of a data transmission device for a vehicle according to an embodiment of the present application.

[0069] like Figure 4 As shown, the vehicle data transmission device 10 includes: an acquisition module 100 , a judgment module 200 and a transmission module 300 .

[0070] The acquisition module 100 is used to acquire login instructions from the vehicle terminal and / or the application terminal.

[0071] The judgment module 200 is used to receive the MQTT login information sent by the cloud based on the login instruction through the vehicle terminal and / or the application terminal, and judge whether there is data to be transmitted on the vehicle terminal and / or the application terminal.

[0072] The transmission module 300 is used to transmit data with the cloud via MQTT based on MQTT login information through the vehicle side and / or the application side when there is data to be transmitted on the vehicle side and / or the application side, and the data type of the data to be transmitted is push data and / or real-time dynamic data.

[0073] Optionally, in some embodiments, after determining whether there is data to be transmitted on the vehicle machine end and / or the application end, the determination module 200 further includes: a transmission unit.

[0074] Among them, the transmission unit is used to transmit data with the cloud based on HTTP requests through the vehicle side and / or the application side when there is data to be transmitted on the vehicle side and / or the application side, and the data type of the data to be transmitted is application data.

[0075] Optionally, in some embodiments, the transmission unit, used before the vehicle side and / or the application side transmits data with the cloud based on an HTTP request, includes: a first sending subunit, a second sending subunit and a transmission subunit.

[0076] Among them, the first sending subunit is used to send an HTTP connection request to the cloud through the vehicle terminal and / or the application terminal.

[0077] The second sending subunit is used to send the cloud public key to the vehicle side and / or the application side through the cloud based on an HTTP connection request. After the vehicle side and / or the application side verifies the cloud public key, it sends the vehicle side public key and / or the application side public key to the cloud.

[0078] The transmission subunit is used to generate a shared key between the cloud and the vehicle and / or application after verifying the vehicle public key and / or application public key through the cloud, and to transmit data based on the shared key.

[0079] Optionally, in some embodiments, the transmission unit includes: a processing subunit.

[0080] The processing subunit is used to perform binary processing on the data to be transmitted using protobuf, and transmit the processed data to be transmitted to the cloud.

[0081] It should be noted that the above explanation of the embodiment of the vehicle data transmission method is also applicable to the vehicle data transmission device of this embodiment, which will not be repeated here.

[0082] According to the vehicle data transmission device proposed in the embodiment of the present application, by obtaining the login instruction of the vehicle terminal and / or the application terminal, the vehicle terminal and / or the application terminal receives the MQTT login information sent by the cloud based on the login instruction, and determines whether there is data to be transmitted on the vehicle terminal and / or the application terminal. When there is data to be transmitted on the vehicle terminal and / or the application terminal, and the data type of the data to be transmitted is push data and / or real-time dynamic data, the vehicle terminal and / or the application terminal transmits data to the cloud through MQTT based on the MQTT login information. In this way, the problems of insecurity, low transmission performance, and chaotic data transmission path in the interaction between the vehicle terminal, the enterprise terminal, and the cloud are solved, and the security of data transmission can be enhanced, the transmission performance can be improved, and the transmission path can be standardized.

[0083] Figure 5 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. The electronic device may include:

[0084] A memory 501 , a processor 502 , and a computer program stored in the memory 501 and executable on the processor 502 .

[0085] When the processor 502 executes the program, the vehicle data transmission method provided in the above embodiment is implemented.

[0086] Furthermore, the electronic device further comprises:

[0087] The communication interface 503 is used for communication between the memory 501 and the processor 502 .

[0088] The memory 501 is used to store computer programs that can be executed on the processor 502 .

[0089] The memory 501 may include a high-speed RAM (Random Access Memory) memory, and may also include a non-volatile memory, such as at least one disk memory.

[0090] If the memory 501, the processor 502 and the communication interface 503 are implemented independently, the communication interface 503, the memory 501 and the processor 502 can be connected to each other through a bus and communicate with each other. The bus can be an ISA (Industry Standard Architecture) bus, a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus, etc. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 5Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.

[0091] Optionally, in a specific implementation, if the memory 501, the processor 502 and the communication interface 503 are integrated on a chip, the memory 501, the processor 502 and the communication interface 503 can communicate with each other through an internal interface.

[0092] The processor 502 may be a CPU (Central Processing Unit), or an ASIC (Application Specific Integrated Circuit), or one or more integrated circuits configured to implement the embodiments of the present application.

[0093] An embodiment of the present application also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the above-mentioned vehicle data transmission method.

[0094] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic representations of the above terms are not necessarily directed to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or N embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, without contradiction.

[0095] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Therefore, a feature defined as "first" or "second" may explicitly or implicitly include at least one of the features. In the description of this application, "N" means at least two, such as two, three, etc., unless otherwise clearly and specifically defined.

[0096] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, fragment or portion of code comprising one or more executable instructions for implementing the steps of a custom logical function or process, and the scope of the preferred embodiments of the present application includes alternative implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in reverse order depending on the functions involved, which should be understood by technicians in the technical field to which the embodiments of the present application belong.

[0097] It should be understood that the various parts of the present application can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiment, the N steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array, a field programmable gate array, etc.

[0098] A person skilled in the art may understand that all or part of the steps in the method for implementing the above-mentioned embodiment may be completed by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, which, when executed, includes one or a combination of the steps of the method embodiment.

[0099] Although the embodiments of the present application have been shown and described above, it can be understood that the above embodiments are exemplary and cannot be understood as limitations on the present application. Ordinary technicians in this field can change, modify, replace and modify the above embodiments within the scope of the present application.

Claims

1. A vehicle data transmission method, characterized in that: The following steps are involved: Obtain login instructions from the vehicle terminal and / or the application terminal; The vehicle terminal and / or the application terminal receives the MQTT login information sent by the cloud based on the login instruction, and determines whether there is data to be transmitted on the vehicle terminal and / or the application terminal; When the data to be transmitted exists on the vehicle side and / or the application side, and the data type of the data to be transmitted is push data and / or real-time dynamic data, the vehicle side and / or the application side transmits data with the cloud via MQTT based on the MQTT login information.

2. The method according to claim 1, characterized in that After determining whether there is data to be transmitted on the vehicle terminal and / or the application terminal, the method further includes: When the data to be transmitted exists on the vehicle machine end and / or the application end, and the data type of the data to be transmitted is application data, the vehicle machine end and / or the application end performs data transmission with the cloud based on an HTTP request.

3. The method according to claim 1, characterized in that Before the vehicle terminal and / or the application terminal transmit data with the cloud based on the HTTP request, the following steps are included: The vehicle terminal and / or the application terminal sends an HTTP connection request to the cloud; The cloud sends a cloud public key to the vehicle side and / or the application side based on the HTTP connection request. After the vehicle side and / or the application side verify the cloud public key, the vehicle side public key and / or the application side public key are sent to the cloud; After the cloud verifies the vehicle-side public key and / or the application-side public key, the cloud generates a shared key with the vehicle-side and / or the application-side, and performs data transmission based on the shared key.

4. The method according to claim 2, characterized in that: The vehicle terminal and / or the application terminal perform data transmission with the cloud based on HTTP request, including: Protobuf is used to perform binary processing on the data to be transmitted, and the processed data to be transmitted is transmitted to the cloud.

5. A vehicle data transmission device, characterized in that: include: An acquisition module is used to acquire login instructions from the vehicle terminal and / or the application terminal; A judgment module, used for receiving, through the vehicle terminal and / or the application terminal, the MQTT login information sent by the cloud based on the login instruction, and judging whether there is data to be transmitted on the vehicle terminal and / or the application terminal; A transmission module is used to transmit data with the cloud via MQTT based on the MQTT login information through the vehicle terminal and / or the application terminal when the data to be transmitted exists on the vehicle terminal and / or the application terminal and the data type of the data to be transmitted is push data and / or real-time dynamic data.

6. The device according to claim 5, characterized in that After determining whether there is data to be transmitted on the vehicle terminal and / or the application terminal, the determination module further includes: A transmission unit is used to transmit data with the cloud based on an HTTP request through the vehicle terminal and / or the application terminal when the data to be transmitted exists on the vehicle terminal and / or the application terminal and the data type of the data to be transmitted is application data.

7. The device according to claim 5, characterized in that The transmission unit is used before the vehicle terminal and / or the application terminal transmits data with the cloud based on an HTTP request, and includes: A first sending subunit, used for sending an HTTP connection request to the cloud through the vehicle terminal and / or the application terminal; A second sending subunit is used to send a cloud public key to the vehicle side and / or the application side through the cloud based on the HTTP connection request, and after the vehicle side and / or the application side verify the cloud public key, send the vehicle side public key and / or the application side public key to the cloud; The transmission subunit is used to generate a shared key between the cloud and the vehicle-side public key and / or the application-side public key after the cloud verifies the public key of the vehicle-side public key and / or the application-side public key, and transmit data based on the shared key.

8. The device according to claim 6, characterized in that The transmission unit comprises: The processing subunit is used to perform binary processing on the data to be transmitted using protobuf, and transmit the processed data to be transmitted to the cloud.

9. An electronic device, characterized in that: include: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the vehicle data transmission method as described in any one of claims 1 to 4.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: The program is executed by a processor to implement the vehicle data transmission method as described in any one of claims 1 to 4.