Remote vehicle control system and method based on MQTT protocol

By decoupling the vehicle control function and the MQTT communication function in the remote vehicle control system, and using the MQTT protocol and HTTP protocol to realize the transmission and configuration of vehicle equipment information and vehicle control services, the system complexity and tight functional coupling in the existing technology are solved. problems, improves system scalability and vehicle applicability, and meets the needs of remote vehicle control systems.

CN115914197BActive Publication Date: 2025-01-21CHONGQING CHANGAN TECH CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202211514808.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-11-29
Publication Date
2025-01-21
Estimated Expiration
2042-11-29

AI Technical Summary

Technical Problem

In the prior art, the remote vehicle control system is relatively complex, which increases the cost of the vehicle and the difficulty of implementation. The body control function is closely coupled with the MQTT communication function, reducing the expansion of the system function and the applicability of the vehicle, and cannot meet the remote vehicle control system. demand.

Method used

By designing a remote vehicle control system based on the MQTT protocol, including the vehicle TBOX, the vehicle cloud HTTP server and the vehicle cloud MQTT server, the vehicle control function and the MQTT communication function are decoupled, and the HTTP protocol and the MQTT protocol are used to realize vehicle equipment information and vehicle control. The transmission and configuration of services adapt to the in-vehicle communication architecture of Ethernet ring network + VIU.

Benefits of technology

It reduces system complexity and vehicle cost, improves the scalability of system functions and vehicle applicability, effectively meets the needs of remote vehicle control systems, and achieves high communication, high quality, and low-latency in-car communication.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115914197B_ABST
    Figure CN115914197B_ABST
Patent Text Reader

Abstract

The present application discloses a remote vehicle control system and method based on the MQTT protocol, wherein the system includes: a TBOX vehicle control module communicates with a VIU via an Ethernet ring network, and the MQTT communication module sends vehicle equipment information and vehicle control services to a vehicle cloud HTTP server via the HTTP protocol, and sends a request to obtain MQTT communication configuration information; the vehicle cloud HTTP server receives the vehicle control services and vehicle equipment information sent by the vehicle-mounted TBOX via the HTTP protocol, thereby allocating the MQTT communication configuration information and sending it to the vehicle-mounted TBOX; the vehicle cloud MQTT server can issue remote vehicle control instructions to the vehicle-mounted TBOX, so that the TBOX vehicle control module sends remote vehicle control instructions to the VIU. The embodiment of the present application can perform remote control based on the MQTT protocol, reduce vehicle cost and implementation difficulty, improve the scalability and applicability of system functions, and meet the needs of a remote vehicle control system.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communication technology, and in particular to a remote vehicle control system and method based on MQTT (Message Queuing Telemetry Transport). Background Art

[0002] In the related technology, the ECU (Electronic Control Unit) MQTT proxy unit in the vehicle-mounted T-Box device and the CC MQTT proxy unit set in the remote management system are connected through a bridge. The vehicle-mounted T-Box device with the ECUMQTT client unit and the ECU MQTT proxy unit securely forwards the response result of the remote control command to the remote management system, and the remote management system responds to the remote command request of the car owner or the vehicle manufacturer administrator.

[0003] However, the system in the related technology is relatively complex, which increases the vehicle cost and implementation difficulty. In addition, the body control function is tightly coupled with the MQTT communication function, which reduces the scalability of the system function and the applicability of the vehicle. It cannot meet the needs of the remote vehicle control system and needs to be solved urgently. Summary of the invention

[0004] The present application provides a remote vehicle control system and method based on the MQTT protocol to solve the technical problems in the related technology that the system is relatively complex, which increases the vehicle cost and implementation difficulty, and the body control function is tightly coupled with the MQTT communication function, which reduces the scalability of the system function and the applicability of the vehicle, and cannot meet the requirements of the remote vehicle control system.

[0005] The first aspect of the present application provides a remote vehicle control system based on the MQTT protocol, including: a vehicle-mounted TBOX, a vehicle-cloud HTTP server and a vehicle-cloud MQTT server, wherein the vehicle-mounted TBOX includes an MQTT communication module and a TBOX vehicle control module, the TBOX vehicle control module communicates with at least one VIU through an Ethernet ring network, and the MQTT communication module sends vehicle equipment information and vehicle control services to the vehicle-cloud HTTP server through the HTTP protocol, and sends a request to the vehicle-cloud HTTP server to obtain MQTT communication configuration information; the vehicle-cloud HTTP server is used to receive the vehicle control service and vehicle equipment information sent by the vehicle-mounted TBOX through the HTTP protocol, and allocate the MQTT communication configuration information according to the vehicle control service and vehicle equipment information, and send it to the vehicle-mounted TBOX; the vehicle-cloud MQTT server is used to issue remote vehicle control instructions to the vehicle-mounted TBOX based on the MQTT communication configuration information, so that the TBOX vehicle control module sends the remote vehicle control instructions to at least one vehicle identification unit VIU.

[0006] According to the above-mentioned technical means, the embodiment of the present application can decouple the vehicle control function from the MQTT communication function, facilitate system testing and maintenance, and adapt to the in-vehicle communication architecture of Ethernet ring network + VIU, reduce vehicle costs and implementation difficulties, improve the scalability of system functions, and improve the applicability of the vehicle, effectively meeting the needs of remote vehicle control systems.

[0007] Optionally, in one embodiment of the present application, the TBOX vehicle control module is further used to receive vehicle control service registration information of the at least one VIU.

[0008] According to the above technical means, the embodiment of the present application can receive the vehicle control service registration information of VIU and receive vehicle control instructions through the TBOX vehicle control module, so as to adapt to the in-vehicle communication architecture of Ethernet ring network + VIU and effectively meet the characteristics of high communication, high quality, low latency, etc.

[0009] Optionally, in one embodiment of the present application, the vehicle control service registration information includes the name of the current VIU, the address of the current VIU and the vehicle control service method supported by the current VIU.

[0010] According to the above technical means, the embodiment of the present application can connect the TBOX vehicle control module in the vehicle-mounted TBOX through an Ethernet ring network. After the connection is successful, the name of the current VIU, the address of the current VIU and the vehicle control service method supported by the current VIU are sent to the TBOX vehicle control module, which effectively reduces the complexity of the system and improves the intelligence level of the vehicle.

[0011] Optionally, in one embodiment of the present application, the vehicle-cloud MQTT server is also used to receive a connection request sent by the MQTT communication module before issuing remote vehicle control instructions to the vehicle-mounted TBOX, so as to receive the connection and MQTT topic subscription of the vehicle-mounted TBOX through the MQTT protocol.

[0012] According to the above technical means, the embodiment of the present application can receive the connection of the on-board TBOX and the MQTT topic subscription through the MQTT protocol, thereby issuing remote vehicle control instructions to the on-board TBOX through the MQTT topic, thereby effectively saving bandwidth, reducing overhead, and improving the applicability and reliability of the remote vehicle control system.

[0013] Optionally, in one embodiment of the present application, the vehicle equipment information includes a unique identification of the vehicle equipment, vehicle equipment signature information, a timestamp of the MQTT communication configuration information last acquired by the MQTT communication module, and a timestamp of the on-board TBOX system.

[0014] According to the above technical means, the embodiment of the present application can combine the vehicle equipment information and the vehicle control service registration information into vehicle information data through the MQTT communication module, thereby improving the accuracy and reliability of the remote vehicle control system.

[0015] Optionally, in one embodiment of the present application, the vehicle cloud HTTP server is also used to detect whether the vehicle equipment information meets preset legal conditions after receiving the vehicle control service and vehicle equipment information sent by the vehicle-mounted TBOX, so as to send the MQTT communication configuration information when the preset legal conditions are met, and send an error message to the MQTT communication module when the preset legal conditions are not met.

[0016] According to the above technical means, the embodiments of the present application can determine whether the vehicle equipment information meets the legal conditions, thereby effectively improving the reliability of the vehicle equipment information, reducing the complexity of vehicle implementation, and meeting the needs of the remote vehicle control system.

[0017] The second aspect of the present application provides a remote vehicle control method based on the message queue telemetry transmission protocol MQTT, adopting the remote vehicle control system based on the message queue telemetry transmission protocol MQTT as mentioned above, wherein the method includes the following steps: receiving the vehicle equipment information and the vehicle control service through the HTTP protocol; allocating the MQTT communication configuration information according to the vehicle control service and the vehicle equipment information, and sending it to the vehicle-mounted TBOX; based on the MQTT communication configuration information, issuing the remote vehicle control instruction to the vehicle-mounted TBOX, so that the TBOX vehicle control module sends the remote vehicle control instruction to at least one vehicle identification unit VIU.

[0018] Optionally, in one embodiment of the present application, after receiving the vehicle equipment information and the vehicle control service, it also includes: detecting whether the vehicle equipment information meets preset legal conditions, so as to send the MQTT communication configuration information when the preset legal conditions are met, and send an error message to the MQTT communication module when the preset legal conditions are not met.

[0019] Optionally, in one embodiment of the present application, before issuing the remote vehicle control command to the vehicle-mounted TBOX, it also includes: receiving a connection request sent by the MQTT communication module to receive the connection of the vehicle-mounted TBOX and the MQTT topic subscription through the MQTT protocol.

[0020] Optionally, in one embodiment of the present application, the vehicle equipment information includes a unique identification of the vehicle equipment, vehicle equipment signature information, a timestamp of the MQTT communication configuration information last acquired by the MQTT communication module, and a timestamp of the on-board TBOX system.

[0021] The third aspect of the present application provides a server, including: 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 remote vehicle control method based on the MQTT protocol as described in the above embodiment.

[0022] The fourth aspect of the present application provides a computer-readable storage medium, which stores a computer program. When the program is executed by a processor, it implements the above-mentioned remote vehicle control method based on the MQTT protocol.

[0023] Beneficial effects of this application:

[0024] (1) The embodiment of the present application can receive the connection of the vehicle-mounted TBOX and the MQTT topic subscription through the MQTT protocol, thereby sending remote vehicle control instructions to the vehicle-mounted TBOX through the MQTT topic, thereby effectively saving bandwidth, reducing overhead, and improving the applicability and reliability of the remote vehicle control system.

[0025] (2) The embodiment of the present application can receive the vehicle control service registration information of VIU and receive the vehicle control instructions through the TBOX vehicle control module, so as to adapt to the in-vehicle communication architecture of Ethernet ring network + VIU and effectively meet the characteristics of high communication, high quality, low latency, etc.

[0026] (3) The embodiments of the present application can determine whether the vehicle equipment information meets the legal conditions, thereby effectively improving the reliability of the vehicle equipment information, reducing the complexity of vehicle implementation, and meeting the needs of the remote vehicle control system.

[0027] (4) The embodiments of the present application can decouple the vehicle control function from the MQTT communication function, which is convenient for system testing and maintenance, and adapts to the in-vehicle communication architecture of Ethernet ring network + VIU, thereby reducing vehicle costs and implementation difficulties, improving the scalability of system functions, and improving the applicability of the vehicle, effectively meeting the needs of the remote vehicle control system.

[0028] 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

[0029] 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:

[0030] Figure 1 Schematic diagram of the structure of a remote vehicle control system based on the MQTT protocol according to an embodiment of the present application;

[0031] Figure 2 This is a structural diagram of a remote vehicle control system based on the MQTT protocol according to a specific embodiment of the present application;

[0032] Figure 3 A flowchart of a remote vehicle control method based on the MQTT protocol provided according to an embodiment of the present application;

[0033] Figure 4 Schematic diagram of the structure of a server according to an embodiment of the present application.

[0034] Among them, 10-remote vehicle control system based on MQTT protocol; 100-vehicle-mounted TBOX, 200-vehicle-cloud HTTP server and 300-vehicle-cloud MQTT server; 101-MQTT communication module and 102-TBOX vehicle control module; 401-memory, 402-processor and 403-communication interface. DETAILED DESCRIPTION

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

[0036] The following describes a schematic diagram of the structure of a remote vehicle control system based on the MQTT protocol proposed in an embodiment of the present application with reference to the accompanying drawings. Figure 1 It is a structural diagram of a remote vehicle control system based on the MQTT protocol in an embodiment of the present application.

[0037] like Figure 1As shown, the remote vehicle control system 10 based on the MQTT protocol includes: a vehicle-mounted TBOX 100, a vehicle-cloud HTTP server 200 and a vehicle-cloud MQTT server 300.

[0038] Among them, the vehicle-mounted TBOX100 includes an MQTT communication module 101 and a TBOX vehicle control module 102. The TBOX vehicle control module 102 communicates with at least one VIU through an Ethernet ring network, and the MQTT communication module 101 sends vehicle equipment information and vehicle control services to the vehicle cloud HTTP server 200 through the HTTP protocol, and sends an acquisition request to the vehicle cloud HTTP server 200 to obtain MQTT communication configuration information.

[0039] In the actual implementation process, Figure 2 As shown, the vehicle-mounted TBOX 100 can be provided with an MQTT communication module 101 and a TBOX vehicle control module 102. The TBOX vehicle control module 102 communicates with at least one VIU via an Ethernet ring network. The MQTT communication module 101 sends the vehicle equipment information and vehicle control services in the following steps, i.e., remote control service information, to the vehicle cloud HTTP server 200 in the following steps via the HTTP protocol, and sends an acquisition request to the vehicle cloud HTTP server 200 to obtain the MQTT communication configuration information, thereby improving the executability of the remote vehicle control system.

[0040] Among them, the MQTT communication configuration information includes but is not limited to the address of the vehicle-cloud MQTT server 300 in the following steps, the MQTT topic information for the vehicle control command and the configuration information timestamp, and can be in JSON format.

[0041] Among them, the MQTT topic contains one or more MQTT sub-topics, and each MQTT sub-topic has its own methods, pubTopicName and subTopicName.

[0042] Among them, methods is the name of the vehicle control service;

[0043] pubTopicName is the topic used by the MQTT server 300 of the car cloud in the following steps to publish the car control service command in methods to the MQTT communication module 101, and the MQTT communication module 101 subscribes to this topic to receive the car control service command published by the MQTT server 300 of the car cloud in the following steps;

[0044] subTopicName is the topic used by the MQTT communication module 101 to send the return information of the vehicle control service command to the vehicle cloud MQTT server 300 in the following steps. The vehicle cloud MQTT server 300 subscribes to this topic and receives the return information of the vehicle control service command sent by the MQTT communication module 101.

[0045] Optionally, in one embodiment of the present application, the TBOX vehicle control module 102 is further configured to receive vehicle control service registration information of at least one VIU.

[0046] In some embodiments, Figure 2 As shown, the TBOX vehicle control module 102 can receive the vehicle control service registration information of at least one VIU in the following steps. In other words, the VIU can register the vehicle control service to the TBOX vehicle control module 102 in the vehicle-mounted TBOX100 through the Ethernet ring network and receive the vehicle control instructions. In addition, the TBOX vehicle control module 102 can receive the vehicle control service registration information of multiple VIUs, thereby adapting to the in-vehicle communication architecture of the Ethernet ring network + VIU, and effectively meeting the characteristics of high communication, high quality, and low latency.

[0047] In one embodiment of the present application, the vehicle control service registration information includes the name of the current VIU, the address of the current VIU and the vehicle control service method supported by the current VIU.

[0048] For example, Figure 2 As shown, the vehicle control service registration information of the VIU may include but is not limited to the name of the current VIU, the address of the current VIU and the vehicle control service methods supported by the current VIU, and there is one or more VIUs inside the vehicle, the VIU and the TBOX vehicle control module 102 in the vehicle-mounted TBOX 100 are connected via an Ethernet ring network and are in the same intranet segment, and the intranet addresses of the TBOX vehicle control module 102 and the VIU are pre-agreed.

[0049] Next, after VIU is started, it will connect to the TBOX vehicle control module 102 in the on-board TBOX100 through the Ethernet ring network. When the connection fails, it will repeat the connection at a fixed time until the connection is successful. After the connection is successful, the VIU sends the name of the current VIU, the address of the current VIU and the vehicle control service method supported by the current VIU to the TBOX vehicle control module 102. After the TBOX vehicle control module 102 successfully receives the information sent by the VIU, it returns a service registration success message to the VIU, and synchronizes the service information to the MQTT communication module 101 of the on-board TBOX100, which effectively reduces the complexity of the system and improves the intelligence level of the vehicle.

[0050] Among them, in one embodiment of the present application, the vehicle equipment information includes the vehicle equipment unique identification, the vehicle equipment signature information, the MQTT communication configuration information timestamp last acquired by the MQTT communication module 101, and the vehicle-mounted TBOX100 system timestamp.

[0051] For example, the vehicle equipment information in the embodiment of the present application includes but is not limited to the vehicle equipment unique identification, vehicle equipment signature information, the MQTT communication configuration information timestamp last obtained by the MQTT communication module 101, and the vehicle-mounted TBOX100 system timestamp. The MQTT communication module 101 can combine the vehicle equipment information and the vehicle control service registration information into vehicle information data, and send the vehicle information data to the HTTP server 200 of the vehicle cloud in the following steps via the HTTP protocol, thereby improving the accuracy and reliability of the remote vehicle control system.

[0052] The vehicle cloud HTTP server 200 is used to receive the vehicle control service and vehicle equipment information sent by the vehicle-mounted TBOX100 through the HTTP protocol, and allocate MQTT communication configuration information according to the vehicle control service and vehicle equipment information, and send it to the vehicle-mounted TBOX100.

[0053] As a possible way to achieve this, Figure 2 As shown, the vehicle cloud HTTP server 200 can receive the vehicle control service and vehicle equipment information sent by the vehicle-mounted TBOX100 through the HTTP protocol, and allocate MQTT communication configuration information according to the received vehicle control service and vehicle equipment information, and return it to the MQTT communication module 101 in the vehicle-mounted TBOX100 through the HTTP protocol, wherein the vehicle cloud HTTP server 200 stores the vehicle cloud MQTT server 300 information, legal vehicle equipment information and vehicle control service information in the following steps that can be used, thereby reducing the complexity of the system and improving the scalability of the system functions.

[0054] Optionally, in one embodiment of the present application, the vehicle cloud HTTP server 200 is also used to detect whether the vehicle equipment information meets the preset legal conditions after receiving the vehicle control service and vehicle equipment information sent by the on-board TBOX100, so as to send MQTT communication configuration information when the preset legal conditions are met, and send an error message to the MQTT communication module 101 when the preset legal conditions are not met.

[0055] In some embodiments, Figure 2 As shown, after the vehicle cloud HTTP server 200 receives the vehicle control service and vehicle equipment information sent by the vehicle-mounted TBOX100, it can detect whether the vehicle equipment information meets certain legal conditions. When it meets certain legal conditions, it sends MQTT communication configuration information, and when it does not meet certain legal conditions, it sends an error message to the MQTT communication module 101, thereby effectively improving the reliability of vehicle equipment information, reducing the complexity of vehicle implementation, and meeting the needs of the remote vehicle control system.

[0056] It should be noted that the preset legal conditions are set by technical personnel in this field according to actual conditions and are not specifically limited here.

[0057] For example, when the car cloud HTTP server 200 receives the vehicle equipment information and vehicle control service information sent by the on-board TBOX100, it first verifies the legitimacy of the vehicle equipment information. After the verification, it allocates MQTT communication configuration information to the MQTT communication module 101 of the on-board TBOX100 and returns it to the MQTT communication module 101. When the device information verification fails or there is no available MQTT communication configuration information, an error message is returned to the MQTT communication module 101, and the error message uses the JSON format.

[0058] In addition, the MQTT communication module 101 can determine whether to update the local MQTT communication configuration information of the vehicle-mounted TBOX100 according to the configuration information timestamp. When the configuration information timestamp is less than the local MQTT communication configuration information timestamp, it indicates that the configuration information does not need to be changed. Otherwise, the local MQTT communication configuration information is changed.

[0059] The vehicle-to-cloud MQTT server 300 is used to send remote vehicle control instructions to the vehicle-mounted TBOX 100 based on the MQTT communication configuration information, so that the TBOX vehicle control module 102 sends the remote vehicle control instructions to at least one vehicle identification unit VIU.

[0060] In the actual implementation process, Figure 2 As shown, the vehicle-cloud MQTT server 300 can issue remote vehicle control instructions to the vehicle-mounted TBOX100 based on the MQTT communication configuration information, so that the TBOX vehicle control module 102 sends remote vehicle control instructions to the vehicle identification unit VIU through the Ethernet ring network, so that the vehicle-mounted TBOX100 can communicate with the ECU through the CAN (Controller Area Network) bus to realize the vehicle control function, and can adapt to the in-vehicle communication architecture of the Ethernet ring network + VIU to achieve high-speed communication, high quality, low latency and other characteristics.

[0061] Optionally, in one embodiment of the present application, the vehicle-cloud MQTT server 300 is also used to receive a connection request sent by the MQTT communication module 101 before issuing remote vehicle control instructions to the vehicle-mounted TBOX100, so as to receive the connection and MQTT topic subscription of the vehicle-mounted TBOX100 through the MQTT protocol.

[0062] In some embodiments, Figure 2As shown, before sending remote vehicle control instructions to the on-board TBOX100, the vehicle-cloud MQTT server 300 can also connect to the vehicle-cloud MQTT server 300 through the MQTT protocol and receive the connection request sent by the MQTT communication module 101, so as to receive the connection and MQTT topic subscription of the on-board TBOX100 through the MQTT protocol, and send remote vehicle control instructions to the on-board TBOX100 through the MQTT topic, thereby effectively saving bandwidth, reducing overhead, and improving the applicability and reliability of the remote vehicle control system.

[0063] For example, the MQTT communication module 101 in the vehicle-mounted TBOX100 can connect to the vehicle-cloud MQTT server 300 and subscribe to the MQTT topic through the MQTT protocol according to the received MQTT communication configuration information, wherein the MQTT communication module 101 uses the url and port in the MQTT communication configuration information to connect to the vehicle-cloud MQTT server 300 and subscribe to the pubTopicName of all subtopics in transRules.

[0064] Next, the vehicle-to-cloud MQTT server 300 receives the connection of the MQTT communication module 101 in the vehicle-mounted TBOX100 and the MQTT topic subscription through the MQTT protocol, and sends the vehicle control command to the MQTT communication module 101 through the topic described by the pubTopicName field of the sub-topic in transRules.

[0065] Finally, the MQTT communication module 101 in the vehicle-mounted TBOX100 receives the vehicle control command and forwards it to the TBOX vehicle control module 102. The TBOX vehicle control module 102 sends the vehicle control command to the VIU through the Ethernet ring network. The VIU converts the received vehicle control command into a CAN message and sends it to the ECU through the CAN bus. In this way, the vehicle-mounted TBOX100 can communicate with the ECU through the CAN bus to realize the vehicle control function, and can adapt to the in-vehicle communication architecture of the Ethernet ring network + VIU to achieve high-speed communication, high quality, low latency and other characteristics, reducing the cost of installation and testing.

[0066] In summary, the embodiment of the present application can realize remote vehicle control based on the MQTT protocol through the MQTT communication module 101, the TBOX vehicle control module 102, the vehicle cloud HTTP server 200 and the vehicle cloud MQTT server 300, which effectively reduces the complexity of the system, and the system is simple and easy to implement. The vehicle control function is decoupled from the MQTT communication function, which is convenient for system testing, maintenance and expansion, and effectively adapts to the in-vehicle communication architecture of Ethernet ring network + VIU.

[0067] According to the remote vehicle control system based on the MQTT protocol proposed in the embodiment of the present application, the TBOX vehicle control module in the vehicle-mounted TBOX can be set to communicate with the VIU through the Ethernet ring network, and the MQTT communication module sends the vehicle equipment information and vehicle control service to the vehicle cloud HTTP server through the HTTP protocol, and sends a request to obtain the MQTT communication configuration information. The vehicle cloud HTTP server can receive the vehicle control service and vehicle equipment information sent by the vehicle-mounted TBOX through the HTTP protocol, thereby allocating the MQTT communication configuration information and sending it to the vehicle-mounted TBOX. The vehicle cloud MQTT server can issue remote vehicle control instructions to the vehicle-mounted TBOX, so that the TBOX vehicle control module sends remote vehicle control instructions to the vehicle identification unit VIU, effectively reducing the cost and implementation difficulty of the vehicle, improving the scalability of the system function, and improving the applicability of the vehicle, effectively meeting the needs of the remote vehicle control system. Thus, the problems in the related technology that the system is relatively complex, the cost and implementation difficulty of the vehicle are increased, and the body control function is tightly coupled with the MQTT communication function, which reduces the scalability of the system function and reduces the applicability of the vehicle, and cannot meet the needs of the remote vehicle control system are solved.

[0068] in, Figure 3 A flowchart of a remote vehicle control method based on the MQTT protocol provided in an embodiment of the present application.

[0069] like Figure 3 As shown, the remote vehicle control method based on the MQTT protocol includes the following steps:

[0070] In step S301, vehicle equipment information and vehicle control services are received via HTTP protocol.

[0071] Optionally, in one embodiment of the present application, after receiving vehicle equipment information and vehicle control services, it also includes: detecting whether the vehicle equipment information meets preset legal conditions, so as to send MQTT communication configuration information when the preset legal conditions are met, and sending error information to the MQTT communication module when the preset legal conditions are not met.

[0072] In step S302, MQTT communication configuration information is allocated according to the vehicle control service and vehicle equipment information, and sent to the vehicle-mounted TBOX.

[0073] Optionally, in one embodiment of the present application, the vehicle equipment information includes the vehicle equipment unique identification, the vehicle equipment signature information, the MQTT communication configuration information timestamp last acquired by the MQTT communication module, and the vehicle-mounted TBOX system timestamp.

[0074] In step S303, based on the MQTT communication configuration information, a remote vehicle control command is issued to the vehicle-mounted TBOX, so that the TBOX vehicle control module sends the remote vehicle control command to at least one vehicle identification unit VIU.

[0075] Optionally, in one embodiment of the present application, before sending the remote vehicle control command to the vehicle-mounted TBOX, it also includes: receiving a connection request sent by the MQTT communication module to receive the connection of the vehicle-mounted TBOX and MQTT topic subscription through the MQTT protocol.

[0076] It should be noted that the aforementioned explanation of the embodiment of the remote vehicle control system based on the MQTT protocol is also applicable to the remote vehicle control method based on the MQTT protocol of this embodiment, and will not be repeated here.

[0077] According to the remote vehicle control method based on the MQTT protocol proposed in the embodiment of the present application, the TBOX vehicle control module in the vehicle-mounted TBOX can be set to communicate with the VIU through the Ethernet ring network, and the MQTT communication module sends the vehicle equipment information and vehicle control service to the vehicle cloud HTTP server through the HTTP protocol, and sends a request to obtain the MQTT communication configuration information. The vehicle cloud HTTP server can receive the vehicle control service and vehicle equipment information sent by the vehicle-mounted TBOX through the HTTP protocol, thereby allocating the MQTT communication configuration information and sending it to the vehicle-mounted TBOX. The vehicle cloud MQTT server can issue remote vehicle control instructions to the vehicle-mounted TBOX, so that the TBOX vehicle control module sends remote vehicle control instructions to the vehicle identification unit VIU, effectively reducing the vehicle cost and implementation difficulty, improving the scalability of the system function, and improving the applicability of the vehicle, effectively meeting the needs of the remote vehicle control system. Thus, the system in the related technology is relatively complex, which increases the cost and implementation difficulty of the vehicle, and the body control function is tightly coupled with the MQTT communication function, which reduces the scalability of the system function and reduces the applicability of the vehicle, and cannot meet the needs of the remote vehicle control system.

[0078] Figure 4 A schematic diagram of the structure of a server provided in an embodiment of the present application. The server may include:

[0079] Memory 401 , processor 402 , and a computer program stored in the memory 401 and executable on the processor 402 .

[0080] When the processor 402 executes the program, the remote vehicle control method based on the MQTT protocol provided in the above embodiment is implemented.

[0081] Furthermore, the server also includes:

[0082] The communication interface 403 is used for communication between the memory 401 and the processor 402 .

[0083] The memory 401 is used to store computer programs that can be executed on the processor 402 .

[0084] The memory 401 may include a high-speed RAM memory, and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory.

[0085] If the memory 401, the processor 402 and the communication interface 403 are implemented independently, the communication interface 403, the memory 401 and the processor 402 can be connected to each other through a bus and communicate with each other. The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component (PCI) bus or an Extended Industry Standard Architecture (EISA) bus. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 4 Only 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.

[0086] Optionally, in a specific implementation, if the memory 401, the processor 402 and the communication interface 403 are integrated on a chip, the memory 401, the processor 402 and the communication interface 403 can communicate with each other through an internal interface.

[0087] The processor 402 may be a central processing unit (CPU), or an application specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present application.

[0088] This embodiment also provides a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the remote vehicle control method based on the MQTT protocol as described above is implemented.

[0089] 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 do not necessarily refer 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.

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

[0091] 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 N 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.

[0092] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as an ordered list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute instructions), or in combination with these instruction execution systems, devices or apparatuses. For the purpose of this specification, "computer-readable medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in combination with these instruction execution systems, devices or apparatuses. More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection with one or N wirings (electronic devices), a portable computer disk box (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), a fiber optic device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be paper or other suitable medium on which the program is printed, since the program may be obtained electronically by optically scanning the paper or other medium and then editing, interpreting or processing in other suitable ways as necessary and then storing it in a computer memory.

[0093] 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 (PGA), a field programmable gate array (FPGA), etc.

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

[0095] In addition, each functional unit in each embodiment of the present application may be integrated into a processing module, or each unit may exist physically separately, or two or more units may be integrated into one module. The above-mentioned integrated module may be implemented in the form of hardware or in the form of a software functional module. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it may also be stored in a computer-readable storage medium.

[0096] The storage medium mentioned above may be a read-only memory, a magnetic disk or an optical disk, etc. 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 limiting the present application. A person of ordinary skill in the art may change, modify, replace and modify the above embodiments within the scope of the present application.

Claims

1. A remote vehicle control system based on the message queue telemetry transmission protocol MQTT, characterized in that: include: On-board TBOX, vehicle-to-cloud HTTP server and vehicle-to-cloud MQTT server, among which, The vehicle-mounted TBOX includes an MQTT communication module and a TBOX vehicle control module. The TBOX vehicle control module communicates with at least one VIU via an Ethernet ring network, and the MQTT communication module sends vehicle equipment information and vehicle control services to the vehicle cloud HTTP server via the HTTP protocol, and sends a request to the vehicle cloud HTTP server to obtain MQTT communication configuration information. The TBOX vehicle control module is also used to receive vehicle control service registration information of the at least one VIU; The vehicle cloud HTTP server is used to receive the vehicle control service and vehicle equipment information sent by the vehicle-mounted TBOX through the HTTP protocol, and allocate the MQTT communication configuration information according to the vehicle control service and the vehicle equipment information, and send it to the vehicle-mounted TBOX; The vehicle-to-cloud MQTT server receives the connection request sent by the MQTT communication module, receives the connection of the vehicle-mounted TBOX and the MQTT topic subscription through the MQTT protocol, and issues a remote vehicle control instruction to the vehicle-mounted TBOX, so that the TBOX vehicle control module sends the remote vehicle control instruction to at least one vehicle identification unit VIU; The vehicle cloud HTTP server is also used to detect whether the vehicle equipment information meets the preset legal conditions after receiving the vehicle control service and vehicle equipment information sent by the on-board TBOX, so as to send the MQTT communication configuration information when the preset legal conditions are met, and send an error message to the MQTT communication module when the preset legal conditions are not met.

2. The system according to claim 1, characterized in that The vehicle control service registration information includes the name of the current VIU, the address of the current VIU, and the vehicle control service method supported by the current VIU.

3. The system according to claim 1, characterized in that The vehicle equipment information includes a unique identification of the vehicle equipment, vehicle equipment signature information, a timestamp of the MQTT communication configuration information last acquired by the MQTT communication module, and a timestamp of the vehicle-mounted TBOX system.

4. A remote vehicle control method based on message queue telemetry transmission protocol MQTT, characterized in that: A remote vehicle control system based on the message queue telemetry transmission protocol MQTT as described in any one of claims 1 to 3 is adopted, wherein the method comprises the following steps: Receiving the vehicle equipment information and the vehicle control service through the HTTP protocol; Allocating the MQTT communication configuration information according to the vehicle control service and the vehicle equipment information, and sending it to the vehicle-mounted TBOX; and Based on the MQTT communication configuration information, the remote vehicle control instruction is sent to the vehicle-mounted TBOX, so that the TBOX vehicle control module sends the remote vehicle control instruction to at least one vehicle identification unit VIU.

5. The method according to claim 4, characterized in that After receiving the vehicle equipment information and the vehicle control service, the method further includes: Detect whether the vehicle equipment information meets the preset legal conditions, so as to send the MQTT communication configuration information when the preset legal conditions are met, and send an error message to the MQTT communication module when the preset legal conditions are not met.

6. The method according to claim 5, characterized in that Before sending the remote vehicle control command to the vehicle-mounted TBOX, the method further includes: Receive the connection request sent by the MQTT communication module to receive the connection of the vehicle-mounted TBOX and the MQTT topic subscription through the MQTT protocol.

7. The method according to claim 6, characterized in that The vehicle equipment information includes a unique identification of the vehicle equipment, vehicle equipment signature information, a timestamp of the MQTT communication configuration information last acquired by the MQTT communication module, and a timestamp of the vehicle-mounted TBOX system.

8. A server, 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 remote vehicle control method based on the MQTT protocol as described in any one of claims 4 to 7.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that: The program is executed by a processor to implement the remote vehicle control method based on the MQTT protocol as described in any one of claims 4 to 7.

Citation Information

Patent Citations

  • Vehicle control method and device

    CN110682918A

  • Intelligent parking system, method and equipment and computer readable storage medium

    CN113479190A

  • MQTT connection system and connection method thereof, server and storage medium

    CN113992735A