Vehicle remote control method, electronic device, and storage medium
By establishing a long-term target communication connection between the vehicle and the cloud platform, the problem of connection interruption during vehicle sleep is solved, and efficient execution of vehicle remote control is achieved.
Patent Information
- Application Number
- CN202510035136.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-09
- Publication Date
- 2025-10-10
- Estimated Expiration
- 2045-01-09
AI Technical Summary
In the prior art, when a vehicle is in a dormant state, the connection with the cloud platform is interrupted, resulting in low efficiency in executing vehicle remote control.
Establish a target communication connection between the vehicle and the cloud platform, allowing the vehicle to maintain a long connection in sleep state, receive control information triggered by the cloud platform and wake up the vehicle, obtain remote control instructions and execute them.
By maintaining a long connection, the vehicle can directly receive and execute remote control commands without frequently re-establishing communication connections, thereby improving the execution efficiency of vehicle remote control.
Smart Images

Figure CN119987337B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of vehicle networking technology, and in particular to a vehicle remote control method, electronic equipment, and storage medium. Background Art
[0002] With the continuous development of Internet of Vehicles (IoV) technology, the application of vehicle remote control technology is becoming more and more popular. During the vehicle remote control process, the vehicle usually needs to interact with a cloud platform, such as a Telematics Service Provider (TSP) platform, to achieve remote control of the vehicle.
[0003] However, in existing technologies, when a vehicle is in sleep mode, the connection between the vehicle and the cloud platform is often interrupted. At this point, if a user needs to issue remote control commands through the cloud platform, the vehicle must re-establish a communication connection with the cloud platform, resulting in low efficiency in executing vehicle remote control. Therefore, improving the efficiency of executing vehicle remote control has become a pressing technical issue. Summary of the Invention
[0004] The present application provides a vehicle remote control method, electronic device and storage medium to solve the problem of low execution efficiency of existing vehicle remote control.
[0005] In a first aspect, an embodiment of the present application provides a vehicle remote control method, which is applied to a vehicle, and the method includes:
[0006] Establishing a target communication connection between the vehicle and the cloud platform, wherein the target communication connection allows the vehicle to be in a persistent connection with the cloud platform when the vehicle is in a dormant state;
[0007] receiving at least one control message triggered by the cloud platform, at least a portion of the at least one control message carrying a remote control instruction, and the control message carrying the remote control instruction being sent through the target communication connection;
[0008] Waking up the vehicle based on the at least one control information, and obtaining the remote control instruction from the at least one control information;
[0009] issuing the remote control instruction to a target electronic control unit, wherein the target electronic control unit is an electronic control unit on the vehicle that is associated with the remote control instruction;
[0010] The remote control result returned by the target electronic control unit in response to the remote control instruction is received, and the remote control result is sent to the cloud platform.
[0011] Optionally, the at least one control information includes a wake-up network data packet, and the wake-up network data packet carries the remote control instruction;
[0012] The waking up the vehicle based on the at least one control information and obtaining the remote control instruction from the at least one control information includes:
[0013] The vehicle is woken up based on the wake-up network data packet, and the remote control instruction is obtained from the wake-up network data packet.
[0014] Optionally, the at least one control message further includes a wake-up SMS message;
[0015] The waking up the vehicle based on the at least one control information and obtaining the remote control instruction from the at least one control information includes:
[0016] The vehicle is woken up based on the wake-up network data packet or the wake-up text message, and the remote control instruction is obtained from the wake-up network data packet.
[0017] Optionally, the at least one control message includes a wake-up text message and a common network data packet, and the common network data packet carries the remote control instruction;
[0018] The waking up the vehicle based on the at least one control information and obtaining the remote control instruction from the at least one control information includes:
[0019] The vehicle is woken up based on the wake-up text message, and the remote control instruction is obtained from the ordinary network data packet.
[0020] Optionally, establishing a target communication connection between the self and the cloud platform includes:
[0021] Obtaining identification information, pre-configured connection parameters, and a certificate signature of the vehicle;
[0022] Initiating a connection request to a target server, wherein the target server is a server using the same communication protocol as the vehicle, and the connection request carries the certificate signature;
[0023] receiving a verification result returned by the target server, and establishing a communication channel between itself and the cloud platform using the connection parameters if the verification result indicates that the certificate signature verification is successful;
[0024] Sending a login request to the cloud platform using the communication channel, and receiving a login result returned by the cloud platform, wherein the login request carries the identification information of the vehicle;
[0025] When the login result indicates that the identification information of the vehicle is successfully logged in, the target communication connection is established.
[0026] Optionally, after establishing the target communication connection between the user and the cloud platform, the method further includes:
[0027] Sending a heartbeat packet to the target server at a preset interval; and
[0028] When a power-off signal of the vehicle is detected, a heartbeat packet is sent to the target server, and a heartbeat packet is sent to the target server at preset time intervals.
[0029] Optionally, the at least one control message includes a wake-up text message. After waking up the vehicle based on the at least one control message, the method further includes:
[0030] If no network data packet carrying the remote vehicle control command is received from the cloud platform within a preset period of time, a connection request is re-initiated to the target server, and a login request is re-sent to the cloud platform after a connection is established with the target server;
[0031] When it is determined that the identification information of the vehicle indicates a login failure, the login request is repeatedly sent to the cloud platform until the number of login requests reaches a preset number and the sending is stopped.
[0032] In a second aspect, an embodiment of the present application further provides a vehicle remote control method, which is applied to a cloud platform, and the method includes:
[0033] Establishing a target communication connection between the vehicle and the vehicle, wherein the target communication connection allows the vehicle to be in a long-term connection state with the cloud platform when the vehicle is in a dormant state;
[0034] In response to acquiring the remote control instruction, sending at least one control message to the vehicle, at least a portion of the at least one control message carrying the remote control instruction, and the control message carrying the remote control instruction being sent via the target communication connection;
[0035] The remote control result is received, which is returned by the vehicle after being awakened based on the at least one control information and according to the remote control instruction.
[0036] In a third aspect, an embodiment of the present application further provides an electronic device, comprising a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other via the communication bus;
[0037] Memory for storing computer programs;
[0038] The processor is used to implement the vehicle remote control method described in the first aspect or the vehicle remote control method described in the second aspect when executing the program stored in the memory.
[0039] In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the vehicle remote control method described in the first aspect, or implements the vehicle remote control method described in the second aspect. The above technical solution provided by the embodiment of the present application has the following advantages over the prior art: the method provided by the embodiment of the present application establishes a target communication connection between itself and the cloud platform, wherein the target communication connection allows the vehicle to be in a long connection state with the cloud platform when it is in a dormant state; receives at least one control message triggered by the cloud platform, at least part of the at least one control message carries a remote control instruction, and the control message carrying the remote control instruction is sent through the target communication connection; wakes up the vehicle based on the at least one control message and obtains the remote control instruction from the at least one control message; issues the remote control instruction to a target electronic control unit, wherein the target electronic control unit is an electronic control unit on the vehicle that has an associated relationship with the remote control instruction; receives a remote control result returned by the target electronic control unit in response to the remote control instruction, and sends the remote control result to the cloud platform. Through the above method, when the vehicle is in a dormant state, the vehicle and the cloud platform are still in a long connection state. Therefore, each time the cloud platform receives a remote control instruction, it can directly send at least one control information carrying the remote control instruction to the vehicle. In this way, the vehicle can be awakened based on the at least one control information and execute the remote control instruction after awakening, without the cloud platform needing to re-establish a communication connection with the vehicle each time it receives a remote control instruction. Therefore, the interaction process between the cloud platform and the vehicle is saved, and the execution efficiency of vehicle remote control is improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.
[0041] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0042] One or more embodiments are exemplarily illustrated by pictures in the corresponding drawings. These exemplifications do not constitute limitations on the embodiments. Elements with the same reference numerals in the drawings are represented as similar elements. Unless otherwise stated, the figures in the drawings do not constitute proportional limitations.
[0043] Figure 1 A flow chart of a vehicle remote control method provided in an embodiment of the present application;
[0044] Figure 2 A schematic diagram of the interaction process between a user terminal, a cloud platform, an on-board terminal and a target electronic control unit provided by the prior art;
[0045] Figure 3 A schematic diagram of the interaction process between a user terminal, a cloud platform, an in-vehicle terminal, and a target electronic control unit provided in an embodiment of the present application;
[0046] Figure 4 A flowchart of another vehicle remote control method provided in an embodiment of the present application;
[0047] Figure 5 A schematic structural diagram of a vehicle remote control device provided in an embodiment of the present application;
[0048] Figure 6 A schematic structural diagram of another vehicle remote control device provided in an embodiment of the present application;
[0049] Figure 7 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0050] To make the purpose, technical solutions, and advantages of the embodiments of this application more clear, the technical solutions in the embodiments of this application will be clearly and completely described below in conjunction with the drawings in the embodiments of this application. Obviously, the described embodiments are part of the embodiments of this application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.
[0051] The disclosure below provides many different embodiments or examples for implementing different configurations of the present invention. To simplify the disclosure of the present invention, the components and configurations of specific examples are described below. Of course, these are merely examples and are not intended to limit the present invention. In addition, the present invention may repeat reference numerals and / or letters in different examples. Such repetition is for the purpose of simplicity and clarity and does not in itself indicate the relationship between the various embodiments and / or configurations discussed.
[0052] In order to solve the problem of low execution efficiency of vehicle remote control in the prior art, the present application provides a vehicle remote control method, electronic device and storage medium, which can improve the execution efficiency of vehicle remote control.
[0053] See also Figure 1 , Figure 1 A flowchart of a vehicle remote control method provided in an embodiment of the present application.
[0054] like Figure 1 As shown, the vehicle remote control method may include the following steps:
[0055] Step S101: Establish a target communication connection between the vehicle and the cloud platform, wherein the target communication connection allows the vehicle to be in a long connection state with the cloud platform when the vehicle is in a dormant state.
[0056] It should be noted that the vehicle remote control method provided in the embodiments of the present application is applied to the vehicle side. The terminal device on the vehicle has wireless communication capabilities, such as a telematics box (TBOX), and can communicate with the cloud platform. The cloud platform can be a TSP platform, etc., which can receive various remote control commands sent by the vehicle owner's application (Application, abbreviated as APP) on the user terminal, or various remote control commands triggered by its own timer, and forward the various remote control commands to the vehicle. In this way, the vehicle can then send the various remote control commands to the corresponding electronic control unit (ECU) to realize vehicle remote control.
[0057] Specifically, the above-mentioned target communication connection can be a communication connection implemented by the Message Queuing Telemetry Transport (MQTT) protocol, or a communication connection implemented based on the Secure Sockets Layer (SSL) protocol and the MQTT protocol, or a communication connection implemented based on the MQTT protocol and other network security protocols, which is not specifically limited in the embodiments of the present application. The target communication connection allows the vehicle to remain in a long connection with the cloud platform even when it is in a dormant state. That is to say, when the vehicle is in a dormant state, the vehicle, as an MQTT client, can periodically send heartbeat messages to the MQTT server to ensure that the MQTT connection between the vehicle and the cloud platform is not interrupted, thereby achieving a long connection between the vehicle and the cloud platform. The difference between this target communication connection and a traditional communication connection is that the target communication connection sends heartbeat messages at a longer interval (e.g., 10 minutes), while the traditional communication connection sends heartbeat messages at a shorter interval (e.g., 60 seconds); and the target communication connection continues to send heartbeat messages even after the vehicle enters sleep mode, while the traditional communication connection does not send heartbeat messages after the vehicle enters sleep mode. Therefore, for vehicles using a traditional communication connection, once the vehicle enters sleep mode, the vehicle will be disconnected from the cloud platform, while for vehicles using a target communication connection, even if the vehicle enters sleep mode, the vehicle can still maintain a communication connection with the cloud platform.
[0058] Step S102: receiving at least one control message triggered by the cloud platform, at least part of the at least one control message carrying a remote control instruction, and the control message carrying the remote control instruction is sent through the target communication connection.
[0059] After establishing a target communication connection between the vehicle and the cloud platform, the vehicle can receive at least one control message triggered by the cloud platform. At least a portion of the at least one control message carries a remote control command, and the control message carrying the remote control command is sent via the target communication connection. The remote control command can be any control command generated by the vehicle owner on a user terminal, such as a remote control command to turn on the air conditioning or seat heating.
[0060] Step S103: Wake up the vehicle based on at least one control information, and obtain a remote control instruction from the at least one control information.
[0061] Since at least one control message triggered by the cloud platform carries a remote control instruction, after receiving the at least one control message, the vehicle can wake up the vehicle based on the at least one control message and obtain the remote control instruction from the at least one control message.
[0062] Step S104: issuing a remote control instruction to a target electronic control unit, wherein the target electronic control unit is an electronic control unit on the vehicle that is associated with the remote control instruction.
[0063] Specifically, the target electronic control unit is an electronic control unit on the vehicle that is associated with the remote control command. That is, when the remote control command is an command to remotely control the air conditioner to turn on, the target electronic control unit is the electronic control unit corresponding to the air conditioner; when the remote control command is an command to remotely control the seat heating, the target electronic control unit is the electronic control unit corresponding to the seat.
[0064] Step S105: receiving a remote control result returned by the target electronic control unit in response to the remote control instruction, and sending the remote control result to the cloud platform.
[0065] After receiving the remote control instruction, the target electronic control unit can perform a control operation in response to the remote control instruction and obtain a remote control result, and then send the remote control result to the cloud platform so that the cloud platform can display or forward the remote control result to the user terminal.
[0066] For ease of understanding, the scenario of remotely controlling the air conditioner is used as an example. In the prior art, when the car owner remotely controls the air conditioner, the interaction process between the user terminal 201, the cloud platform 202, the vehicle 203 and the target electronic control unit 204 corresponding to the air conditioner is as follows: Figure 2As shown. Among them, vehicle 203 completes the registration of the vehicle identity identification number (Identity Document, referred to as ID) on the cloud platform 202 when it is produced on the production line. Vehicle 203 initializes and sets the relevant parameters of the MQTT client, and establishes an MQTT connection with the cloud platform 202. When the vehicle 203 is dormant, the MQTT connection is disconnected. After the cloud platform 202 receives the air-conditioning control instruction from the user terminal 201, it continuously monitors the online status of the vehicle 203. If it detects that the vehicle 203 is not online, it generates and sends a wake-up SMS. After the vehicle 203 receives the wake-up SMS sent by the cloud platform 202, it wakes up the vehicle 203 and keeps it awake for 3 minutes, and then checks whether the current MQTT connection is ready. If it detects that the current MQTT connection is not ready, it redials to connect to the cellular network, re-initiates the MQTT connection, and re-logins to the cloud platform. Once the MQTT connection between vehicle 203 and cloud platform 202 is established, cloud platform 202 sends air conditioning control instructions to vehicle 203. Vehicle 203 parses and obtains the air conditioning control instructions, then sends them to the target electronic control unit 204 responsible for controlling the air conditioning, and waits for the target electronic control unit 204's remote control result. After receiving the remote control result, vehicle 203 sends it to cloud platform 202 via the MQTT protocol. Finally, cloud platform 202 receives the remote control result reported by vehicle 203 and forwards it to user terminal 201, allowing the vehicle owner to know the on / off status of vehicle 203's air conditioning.
[0067] In the embodiment of the present application, when the owner remotely controls the air conditioner, the interaction process between the user terminal 201, the cloud platform 202, the vehicle 203 and the target electronic control unit 204 corresponding to the air conditioner is as follows: Figure 3 shown. Figure 2 and Figure 3 The difference is: Figure 2 The traditional communication connection is established between the vehicle 203 and the cloud platform 202, which will be disconnected after the vehicle 203 goes into sleep mode. Figure 3 The target communication connection established between the vehicle 203 and the cloud platform 202 will not be disconnected after the vehicle 203 goes into sleep mode, but will enter a long connection state. Figure 3 If the vehicle 203 receives a remote control command for the vehicle 203 after being in sleep mode, the vehicle 203 does not need to make a communication connection again, eliminating the need to redial the cellular network, re-initiate the MQTT connection, re-login to the TSP, etc., which can save 4-8 seconds and reduce the waiting time of the owner after operating the remote control.
[0068] In this embodiment, when the vehicle is in a dormant state, the vehicle and the cloud platform are still in a long connection state. Therefore, each time the cloud platform receives a remote control instruction, it can directly send at least one control information carrying the remote control instruction to the vehicle. In this way, the vehicle can be awakened based on the at least one control information and execute the remote control instruction after awakening without the cloud platform having to re-establish a communication connection with the vehicle each time it receives a remote control instruction. This saves the interaction process between the cloud platform and the vehicle and improves the execution efficiency of vehicle remote control.
[0069] In an optional embodiment, the at least one control information includes a wake-up network data packet, which carries a remote control instruction;
[0070] The above step S103, waking up the vehicle based on at least one control information and obtaining a remote control instruction from the at least one control information, includes:
[0071] The vehicle is woken up based on the wake-up network data packet, and remote control instructions are obtained from the wake-up network data packet.
[0072] As an optional embodiment, the at least one control message triggered by the cloud platform is a wake-up network packet. This packet differs from a standard network packet in that, in addition to carrying remote control instructions, it also has a wake-up function, whereas a standard network packet does not. This allows the vehicle to wake up directly based on the wake-up network packet after receiving it and retrieve the remote control instructions from it, further improving the efficiency of vehicle remote control.
[0073] In an optional embodiment, the at least one control message includes a wake-up network data packet, and the at least one control message also includes a wake-up text message;
[0074] The above step S103, waking up the vehicle based on at least one control information and obtaining a remote control instruction from the at least one control information, includes:
[0075] The vehicle is woken up based on a wake-up network data packet or a wake-up SMS, and remote control instructions are obtained from the wake-up network data packet.
[0076] As another optional embodiment, the at least one control message triggered by the cloud platform includes a wake-up network data packet and a wake-up SMS message. Both the wake-up SMS message and the wake-up network data packet can be used to wake the vehicle. The wake-up SMS message is a text message sent by the operator, while the wake-up network data packet is a network data packet sent by the cloud platform. The wake-up network data packet differs from a standard network data packet in that, in addition to carrying remote control instructions, it also has a wake-up function, whereas a standard network data packet does not.
[0077] In this way, after receiving the wake-up network data packet and the wake-up SMS, the vehicle can be awakened based on the wake-up network data packet or the wake-up SMS, and obtain remote control instructions from the wake-up network data packet. Since both the wake-up SMS and the wake-up network data packet can be used to wake up the vehicle, the vehicle can be awakened based on the wake-up SMS or the wake-up network data packet received first. Specifically, if the reception time of the wake-up SMS is earlier than the reception time of the wake-up network data packet, the vehicle is awakened based on the wake-up SMS; if the reception time of the wake-up SMS is later than the reception time of the wake-up network data packet, the vehicle is awakened based on the wake-up network data packet; if the reception time of the wake-up SMS is equal to the reception time of the wake-up network data packet, the vehicle is awakened based on the wake-up SMS or the wake-up network data packet.
[0078] This approach enhances the reliability and compatibility of communication between the vehicle and the cloud platform. From a reliability perspective, the vehicle can be awakened by either a wake-up SMS or a wake-up network packet. From a compatibility perspective, older vehicles only support wake-up via SMS, not network packets. Therefore, sending both SMS and network packets simultaneously ensures compatibility with older vehicles. This also ensures smooth upgrades to new versions, preventing the cloud platform from waking up without the vehicle having been updated synchronously.
[0079] In an optional embodiment, the at least one control message includes a wake-up SMS message and a common network data packet, wherein the common network data packet carries a remote control instruction;
[0080] The above step S103, waking up the vehicle based on at least one control information and obtaining a remote control instruction from the at least one control information, includes:
[0081] The vehicle is woken up based on a wake-up SMS message and remote control instructions are obtained from ordinary network data packets.
[0082] As another optional implementation, at least one control message triggered by the cloud platform includes a wake-up SMS and a normal network data packet, wherein the wake-up SMS can be used to wake up the vehicle, and the wake-up SMS is a SMS sent by the operator, and the normal network data packet is used to carry remote control instructions, and the normal network data packet is a network data packet sent by the cloud platform.
[0083] In this way, after receiving the wake-up network data packet and the wake-up SMS, the vehicle can be woken up based on the wake-up SMS and obtain remote control instructions from the ordinary network data packet.
[0084] In this way, the compatibility of communication between the vehicle and the cloud platform can be enhanced, because the old version of the vehicle only supports waking up the vehicle through wake-up SMS, and does not support waking up the vehicle through wake-up network data packets, so it can be compatible with the processing of old version vehicles. At the same time, this is also a strategy for smoothly upgrading the new version to prevent the situation where the vehicle cannot be woken up due to the new version being upgraded on the cloud platform side but the vehicle version is not upgraded synchronously.
[0085] In an optional embodiment, the above step S101, establishing a target communication connection between itself and the cloud platform, includes:
[0086] Obtain vehicle identification information, pre-configured connection parameters, and certificate signature;
[0087] Initiate a connection request to the target server, where the target server is a server that uses the same communication protocol as the vehicle, and the connection request carries a certificate signature;
[0088] Receive the verification result returned by the target server, and if the verification result indicates that the certificate signature verification is successful, use the connection parameters to establish a communication channel between itself and the cloud platform;
[0089] Using the communication channel to send a login request to the cloud platform and receive the login result returned by the cloud platform, wherein the login request carries the vehicle identification information;
[0090] When the login result indicates that the identification information of the vehicle is a successful login, a target communication connection is established.
[0091] Specifically, when establishing a target communication connection between the vehicle and the cloud platform, it can first obtain vehicle identification information (such as vehicle identification number, etc.), pre-configured connection parameters (such as client ID, server address, port, user name, password, heartbeat interval, etc.) and certificate signature, and then initiate a connection request to the target server. Since the connection request carries the certificate signature, the target server can verify the certificate signature after receiving the certificate signature, obtain the verification result, and send the verification result to the vehicle. After receiving the verification result returned by the target server, the vehicle can determine whether the vehicle has been successfully registered on the cloud platform based on the verification result. If the vehicle has been successfully registered on the cloud platform (that is, the verification result indicates that the certificate signature verification is successful), the connection parameters are used to establish a communication channel between itself and the cloud platform. Then the vehicle uses the communication channel to send a login request to the cloud platform, and if the login is successful, the target communication connection between the vehicle and the cloud platform is established.
[0092] In this way, the target communication connection process includes the process of establishing an MQTT connection and cloud platform login authentication. After each vehicle goes into sleep mode, the vehicle does not need to perform MQTT connection and cloud platform login authentication again, thereby achieving the purpose of saving processes.
[0093] In an optional embodiment, after the above step S101, in which the target communication connection between the method itself and the cloud platform is established, the method further includes:
[0094] Sending heartbeat packets to the target server at preset intervals; and
[0095] When a vehicle power-off signal is detected, a heartbeat packet is sent to the target server, and a heartbeat packet is sent to the target server every preset time.
[0096] Specifically, the above preset duration can be set according to actual conditions and is not limited here.
[0097] After the vehicle establishes the target communication connection between itself and the cloud platform, it can send heartbeat packets to the target server at preset intervals to ensure that the vehicle and the cloud platform are always in a long connection state. For example, after the target communication connection between the vehicle and the cloud platform is established, the vehicle can continue to send heartbeat packets to the target server at the same interval (such as 1 minute, etc.). In addition, when the vehicle detects a power-off signal, the vehicle can immediately send a heartbeat packet to the target server, and then send heartbeat packets to the target server at preset intervals. In this way, the power consumption of the vehicle in the dormant state can be reduced as much as possible.
[0098] In an optional embodiment, the at least one control message includes a wake-up text message. After waking up the vehicle based on the at least one control message in step S103, the method further includes:
[0099] If no network data packet carrying the remote vehicle control instruction sent by the cloud platform is received within a preset time period, a connection request is reinitiated to the target server, and after a connection with the target server is established, a login request is re-sent to the cloud platform.
[0100] In a case where the identification information of the vehicle is determined to be a login failure, the login request is repeatedly sent to the cloud platform until the number of times of sending the login request reaches a preset number of times.
[0101] Specifically, after the vehicle is woken up based on the wake-up short message, if no network data packet carrying the remote vehicle control instruction sent by the cloud platform is received within a preset time period, it indicates that the long connection between the vehicle and the cloud platform is disconnected, which may be caused by unstable network signals at the location of the vehicle or vehicle faults, etc. At this time, the vehicle can reinitiate a connection request to the target server, and after a connection with the target server is established, a login request is re-sent to the cloud platform. In a case where the identification information of the vehicle is determined to be a login failure, the login request can be repeatedly sent to the cloud platform until the number of times of sending the login request reaches a preset number of times.
[0102] In this way, when the long connection between the vehicle and the cloud platform is disconnected due to unstable network signals at the location of the vehicle or vehicle faults, etc., a connection request can be reinitiated to the target server and a login request can be re-sent to the cloud platform to reestablish the connection, thereby improving the stability of communication between the vehicle and the cloud platform.
[0103] Referring to Figure 4 , Figure 4 Another flowchart of a vehicle remote control method provided by the embodiments of the present application is shown in FIG. 4. As shown in FIG. 4, the vehicle remote control method can include the following steps: Figure 4
[0104] Step S401, a target communication connection between the vehicle and the vehicle is established, wherein the target communication connection allows the vehicle to be in a long connection state with the cloud platform in a sleep state.
[0105] It should be noted that the vehicle remote control method provided by the embodiments of the present application is applied to a cloud platform, which can be a TSP platform, etc. The cloud platform can be connected with the vehicle and the user terminal, used to receive various remote control instructions sent by the user terminal, and forward the various remote control instructions to the vehicle, so that the vehicle can send the various remote control instructions to the corresponding electronic control unit to realize vehicle remote control.
[0106] Specifically, the target communication connection can be a communication connection implemented based on the Secure Sockets Layer (SSL) protocol and the Message Queuing Telemetry Transport (MQTT) protocol. This target communication connection allows the vehicle to maintain a persistent connection with the cloud platform even when it is in a dormant state. That is, when the vehicle is in a dormant state, the vehicle, as an MQTT client, can periodically send heartbeat messages to the MQTT server to ensure that the MQTT connection between the vehicle and the cloud platform is not interrupted, thereby achieving a persistent connection between the vehicle and the cloud platform. The difference between this target communication connection and the traditional communication connection is that the heartbeat message sending interval of the target communication connection is longer (such as 10 minutes, etc.), while the heartbeat message sending interval of the traditional communication connection is shorter (such as 60 seconds, etc.); and the target communication connection continues to send heartbeat messages after the vehicle enters the dormant state, while the traditional communication connection does not send heartbeat messages after the vehicle enters the dormant state. Therefore, for a vehicle using a traditional communication connection, once the vehicle enters the dormant state, the vehicle will be disconnected from the cloud platform, while for a vehicle using a target communication connection, the vehicle can still maintain a communication connection with the cloud platform even if the vehicle enters the dormant state.
[0107] Step S402: In response to acquiring the remote control instruction, at least one control message is sent to the vehicle, at least a portion of the at least one control message carries the remote control instruction, and the control message carrying the remote control instruction is sent through the target communication connection.
[0108] After establishing a target communication connection between the cloud platform and the vehicle, the cloud platform can, in response to receiving a remote control command, send at least one control message to the vehicle. At least a portion of the at least one control message carries the remote control command, and the control message carrying the remote control command is sent via the target communication connection. The remote control command can be any control command triggered by the vehicle owner on the user terminal, such as a command to remotely control air conditioning or seat heating.
[0109] Step S403: receiving a remote control result returned by the vehicle after being awakened based on at least one control information and according to the remote control instruction.
[0110] After receiving at least one control information, the vehicle can wake up the vehicle based on the at least one control information, obtain remote control instructions from the at least one control information, and then send the remote control instructions to the target electronic control unit. In this way, the vehicle can receive the remote control result returned by the target electronic control unit in response to the remote control instruction, and send the remote control result to the cloud platform so that the cloud platform can display or forward the remote control result to the user terminal.
[0111] The target electronic control unit is an electronic control unit on the vehicle that has an association relationship with the remote control instruction, that is, when the remote control instruction is an instruction for remotely controlling the air conditioner to be turned on, the target electronic control unit is an electronic control unit corresponding to the air conditioner; and when the remote control instruction is an instruction for remotely controlling the seat to be heated, the target electronic control unit is an electronic control unit corresponding to the seat.
[0112] In this embodiment, when the vehicle is in the dormant state, the vehicle and the cloud platform are still in the long connection state, so that the cloud platform can directly send at least one control information carrying the remote control instruction to the vehicle each time the remote control instruction is received. In this way, the vehicle can be awakened based on the at least one control information, and the remote control instruction can be executed after the vehicle is awakened without the cloud platform reestablishing a communication connection with the vehicle each time the remote control instruction is received, thereby saving the interaction process between the cloud platform and the vehicle and improving the execution efficiency of the vehicle remote control.
[0113] Referring to Figure 5 , Figure 5 FIG. 1 is a structural schematic diagram of a vehicle remote control device provided by an embodiment of the present application.
[0114] As Figure 5 shown, the vehicle remote control device is applied to the vehicle side, and the device 500 includes:
[0115] A first establishing module 501 is configured to establish a target communication connection between the device and the cloud platform, wherein the target communication connection allows the vehicle to be in a long connection state with the cloud platform in the case that the vehicle is in a dormant state.
[0116] A receiving module 502 is configured to receive at least one control information triggered by the cloud platform, at least part of the at least one control information carries a remote control instruction, and the control information carrying the remote control instruction is sent through the target communication connection.
[0117] An awakening and obtaining module 503 is configured to awaken the vehicle based on the at least one control information, and obtain the remote control instruction from the at least one control information.
[0118] A first sending module 504 is configured to send the remote control instruction to a target electronic control unit, wherein the target electronic control unit is an electronic control unit on the vehicle that has an association relationship with the remote control instruction.
[0119] A second sending module 505 is configured to receive a remote control result returned by the target electronic control unit in response to the remote control instruction, and send the remote control result to the cloud platform.
[0120] Furthermore, at least one control information includes a wake-up network data packet, which carries a remote control instruction; the wake-up and acquisition module 503 includes:
[0121] The first wake-up and acquisition submodule is used to wake up the vehicle based on the wake-up network data packet and obtain the remote control instruction from the wake-up network data packet.
[0122] Furthermore, at least one control message also includes a wake-up SMS message; the wake-up and acquisition module 503 includes:
[0123] The second wake-up and acquisition submodule is used to wake up the vehicle based on the wake-up network data packet or the wake-up SMS, and obtain the remote control instruction from the wake-up network data packet.
[0124] Furthermore, at least one control message includes a wake-up SMS and a common network data packet, wherein the common network data packet carries a remote control instruction; the wake-up and acquisition module 503 includes:
[0125] The third wake-up and acquisition submodule is used to wake up the vehicle based on the wake-up SMS and obtain remote control instructions from ordinary network data packets.
[0126] Furthermore, the first establishing module 501 includes:
[0127] The acquisition submodule is used to obtain the vehicle's identification information, pre-configured connection parameters and certificate signature;
[0128] An initiating submodule, configured to initiate a connection request to a target server, where the target server is a server using the same communication protocol as the vehicle, and the connection request carries a certificate signature;
[0129] The first establishment submodule is used to receive the verification result returned by the target server, and when the verification result indicates that the certificate signature verification is successful, establish a communication channel between itself and the cloud platform using the connection parameters;
[0130] The sending submodule is used to send a login request to the cloud platform using the communication channel and receive the login result returned by the cloud platform, wherein the login request carries the identification information of the vehicle;
[0131] The second establishing submodule is configured to establish a target communication connection when the login result indicates that the vehicle identification information indicates that the login is successful.
[0132] Furthermore, the vehicle remote control device 500 further includes:
[0133] A third sending module is configured to send a heartbeat packet to the target server at a preset interval; and
[0134] The fourth sending module is used to send a heartbeat packet to the target server when a power-off signal of the vehicle is detected, and to send the heartbeat packet to the target server every preset time period.
[0135] Furthermore, the at least one control message includes a wake-up text message, and the vehicle remote control device 500 further includes:
[0136] a fifth sending module, configured to re-initiate a connection request to the target server if no network data packet carrying the remote vehicle control command is received from the cloud platform within a preset period of time, and re-send a login request to the cloud platform after establishing a connection with the target server;
[0137] The sixth sending module is used to repeatedly send login requests to the cloud platform when it is determined that the vehicle identification information indicates a login failure, and stop sending the login requests when the number of times the login requests are sent reaches a preset number.
[0138] It should be noted that the vehicle remote control device 500 provided in the embodiment of the present application can achieve the above Figure 1 The steps of the vehicle remote control method in the method embodiment shown in the figure achieve the same technical effect and are not described in detail here.
[0139] See also Figure 6 , Figure 6 This is a structural diagram of another vehicle remote control device provided in an embodiment of the present application. Figure 6 As shown, the vehicle remote control device is applied to a cloud platform, and the device 600 includes:
[0140] The second establishing module 601 is used to establish a target communication connection between itself and the vehicle, wherein the target communication connection allows the vehicle to be in a long connection state with the cloud platform when in a dormant state;
[0141] a seventh sending module 602, configured to send at least one control message to the vehicle in response to obtaining the remote control command, wherein at least a portion of the at least one control message carries the remote control command, and the control message carrying the remote control command is sent via the target communication connection;
[0142] The return module 603 is configured to receive a remote control result returned by the vehicle after being awakened based on at least one control information and according to the remote control instruction.
[0143] It should be noted that the vehicle remote control device 600 provided in the embodiment of the present application can achieve the above Figure 4 The steps of the vehicle remote control method in the method embodiment shown in the figure achieve the same technical effect and are not described in detail here.
[0144] like Figure 7As shown, the embodiment of the present application further provides an electronic device, including a processor 711, a communication interface 712, a memory 713 and a communication bus 714, wherein the processor 711, the communication interface 712, and the memory 713 communicate with each other through the communication bus 714.
[0145] Memory 713, for storing computer programs;
[0146] In one embodiment of the present application, the processor 711 is configured to implement the vehicle remote control method provided by any one of the aforementioned method embodiments when executing the program stored in the memory 713 .
[0147] An embodiment of the present application also provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the vehicle remote control method provided by any one of the aforementioned method embodiments is implemented.
[0148] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of the modules may be selected based on actual needs to achieve the objectives of this embodiment.
[0149] Through the description of the above embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus a general hardware platform, or of course, by hardware. Based on this understanding, the above technical solution, in essence, or the part that contributes to the relevant technology, can be embodied in the form of a software product. The computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a magnetic disk, an optical disk, etc., and includes a number of instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or certain parts of the embodiment.
[0150] It is to be understood that the terminology used herein is for the purpose of describing particular example embodiments only and is not intended to be limiting. As used herein, the singular forms "a", "an" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. The terms "comprises", "comprising", "includes", "including" and "has" are inclusive and therefore specify the presence of stated features, steps, operations, elements, and / or components, but do not preclude the presence or addition of one or more other features, steps, operations, elements, components, and / or groups thereof. The method steps, processes, and operations described herein are not to be construed as necessarily requiring their performance in the particular order
[0151] The above description is merely that of the specific embodiments of the application and as such is not to be taken in a limiting sense. Various modifications and alterations of the embodiments described herein will become apparent to those skilled in the art from the foregoing description, which does not limit the generality presented. It is the intention that all such modifications and alterations be considered equaliy by the spirit and scope of this application. It is therefore intended to cover in the appended claims all such changes and alterations that come within the scope of this application.
Claims
1. A vehicle remote control method, characterized in that: Applied to the vehicle side, the method includes: Establishing a target communication connection between the vehicle and the cloud platform, wherein the target communication connection allows the vehicle to be in a persistent connection with the cloud platform when the vehicle is in a dormant state; receiving at least one control message triggered by the cloud platform, at least a portion of the at least one control message carrying a remote control instruction, and the control message carrying the remote control instruction being sent through the target communication connection; Waking up the vehicle based on the at least one control information, and obtaining the remote control instruction from the at least one control information; issuing the remote control instruction to a target electronic control unit, wherein the target electronic control unit is an electronic control unit on the vehicle that is associated with the remote control instruction; The remote control result returned by the target electronic control unit in response to the remote control instruction is received, and the remote control result is sent to the cloud platform.
2. The method according to claim 1, characterized in that The at least one control information includes a wake-up network data packet, and the wake-up network data packet carries the remote control instruction; The waking up the vehicle based on the at least one control information and obtaining the remote control instruction from the at least one control information includes: The vehicle is woken up based on the wake-up network data packet, and the remote control instruction is obtained from the wake-up network data packet.
3. The method according to claim 2, characterized in that The at least one control message further includes a wake-up text message; The waking up the vehicle based on the at least one control information and obtaining the remote control instruction from the at least one control information includes: The vehicle is woken up based on the wake-up network data packet or the wake-up text message, and the remote control instruction is obtained from the wake-up network data packet.
4. The method according to claim 1, wherein The at least one control message includes a wake-up text message and a common network data packet, wherein the common network data packet carries the remote control instruction; The waking up the vehicle based on the at least one control information and obtaining the remote control instruction from the at least one control information includes: The vehicle is woken up based on the wake-up text message, and the remote control instruction is obtained from the ordinary network data packet.
5. The method according to any one of claims 1 to 4, characterized in that The establishing of a target communication connection between the self and the cloud platform includes: Obtaining identification information, pre-configured connection parameters, and a certificate signature of the vehicle; Initiating a connection request to a target server, wherein the target server is a server using the same communication protocol as the vehicle, and the connection request carries the certificate signature; receiving a verification result returned by the target server, and establishing a communication channel between itself and the cloud platform using the connection parameters if the verification result indicates that the certificate signature verification is successful; Sending a login request to the cloud platform using the communication channel, and receiving a login result returned by the cloud platform, wherein the login request carries the identification information of the vehicle; When the login result indicates that the identification information of the vehicle is successfully logged in, the target communication connection is established.
6. The method according to claim 5, characterized in that After establishing the target communication connection between the method itself and the cloud platform, the method further includes: Sending a heartbeat packet to the target server at a preset interval; and When a power-off signal of the vehicle is detected, a heartbeat packet is sent to the target server, and a heartbeat packet is sent to the target server at preset time intervals.
7. The method according to any one of claims 1 to 4, characterized in that The at least one control message includes a wake-up text message. After waking up the vehicle based on the at least one control message, the method further includes: If no network data packet carrying the remote vehicle control command is received from the cloud platform within a preset period of time, a connection request is re-initiated to the target server, and a login request is re-sent to the cloud platform after a connection is established with the target server; When it is determined that the identification information of the vehicle indicates a login failure, the login request is repeatedly sent to the cloud platform until the number of login requests reaches a preset number and the sending is stopped.
8. A vehicle remote control method, characterized in that: Applied to a cloud platform, the method includes: Establishing a target communication connection between the vehicle and the vehicle, wherein the target communication connection allows the vehicle to be in a long-term connection state with the cloud platform when the vehicle is in a dormant state; In response to acquiring the remote control instruction, sending at least one control message to the vehicle, at least a portion of the at least one control message carrying the remote control instruction, and the control message carrying the remote control instruction being sent via the target communication connection; Receive a remote control result returned by the vehicle after being awakened based on the at least one control information and according to the remote control instruction.
9. An electronic device, characterized in that: It includes a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus; Memory for storing computer programs; The processor is configured to implement the vehicle remote control method according to any one of claims 1 to 7, or the vehicle remote control method according to claim 8, when executing the program stored in the memory.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, it implements the vehicle remote control method according to any one of claims 1 to 7, or implements the vehicle remote control method according to claim 8.
Citation Information
Patent Citations
Vehicle-mounted terminal awakening system, awakening method, vehicle-mounted terminal, vehicle and server
CN107295025A
Method for keeping long connection with low power consumption and computer readable storage medium
CN113038425A