Vehicle remote control method, electronic equipment and storage medium
By establishing a target communication connection between the vehicle and the cloud platform, allowing the vehicle to maintain a long connection in a dormant state, the problem of low efficiency in vehicle remote control execution is solved and more efficient remote control execution is achieved.
Patent Information
- Application Number
- CN202510035136.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-09
- Publication Date
- 2025-05-13
- Estimated Expiration
- 2045-01-09
Smart Images

Figure CN119987337A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of vehicle networking, 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 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 the prior art, when the vehicle is in a dormant state, the connection between the vehicle and the cloud platform is usually interrupted. At this time, if the user needs to issue a remote control command through the cloud platform, the vehicle needs to re-establish a communication connection with the cloud platform, resulting in low efficiency in executing the vehicle remote control. Therefore, how to improve the efficiency of executing the vehicle remote control has become a technical problem that needs to be solved urgently. Summary of the invention
[0004] The present application provides a vehicle remote control method, an electronic device and a 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 side, 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 long connection state 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 part 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 acquiring the remote control instruction from the at least one control information;
[0009] Sending 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 acquiring 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;
[0015] The waking up the vehicle based on the at least one control information and acquiring 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 information 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 acquiring 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 common network data packet.
[0020] Optionally, establishing a target communication connection between itself and the cloud platform includes:
[0021] Obtaining identification information, pre-configured connection parameters and certificate signature of the vehicle;
[0022] Initiate 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] 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;
[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 itself 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 a preset time interval.
[0029] Optionally, the at least one control information includes a wake-up text message, and after waking up the vehicle based on the at least one control information, the method further includes:
[0030] If no network data packet carrying the remote vehicle control command sent by the cloud platform is received 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] In the case where it is determined that the identification information of the vehicle is a login failure, a login request is repeatedly sent to the cloud platform until the number of login requests reaches a preset number and then stops sending.
[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 itself and the vehicle, 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;
[0034] In response to acquiring the remote control instruction, sending at least one control message to the vehicle, at least part 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, including 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, used to store 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, the embodiment of the present application further provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the vehicle remote control method described in the first aspect is implemented, or when executed, the vehicle remote control method described in the second aspect is implemented. 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, by establishing 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; receiving 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; 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 the 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; receiving the 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. 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 command, it can directly send at least one control information carrying the remote control command to the vehicle. In this way, the vehicle can be awakened based on the at least one control information and execute the remote control command after awakening without the cloud platform re-establishing a communication connection with the vehicle each time it receives a remote control command. 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 drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. 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 described by pictures in the corresponding drawings, and these exemplified descriptions do not constitute limitations on the embodiments. Elements with the same reference numerals in the drawings represent similar elements, and unless otherwise stated, the figures in the drawings do not constitute proportional limitations.
[0043] Figure 1 A schematic diagram of 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, a vehicle terminal and a target electronic control unit provided by the prior art;
[0045] Figure 3 A schematic diagram of an interaction process between a user terminal, a cloud platform, a 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 diagram of the structure of a vehicle remote control device provided in an embodiment of the present application;
[0048] Figure 6 A schematic diagram of the structure 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] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.
[0051] The disclosure below provides many different embodiments or examples to implement different structures of the present invention. In order to simplify the disclosure of the present invention, the parts and settings of specific examples are described below. Of course, they are only examples, and the purpose is not to limit the present invention. In addition, the present invention can repeat reference numbers and / or letters in different examples. This repetition is for the purpose of simplification and clarity, and does not itself indicate the relationship between the various embodiments and / or settings 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, an electronic device and a 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 embodiment of the present application is applied to the vehicle side, and the terminal device on the vehicle has wireless communication capability, such as a telematics box (TBOX), etc., so it can communicate with the cloud platform. Among them, the cloud platform can be a TSP platform, etc., which can receive various remote control instructions sent by the owner's application (Application, APP) on the user terminal, or various remote control instructions triggered by itself at a fixed time, and forward various remote control instructions to the vehicle, so that the vehicle can then send various remote control instructions 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 a message queuing telemetry transport (MQTT) protocol, or a communication connection implemented based on a secure sockets layer (SSL) protocol and an MQTT protocol, or a communication connection implemented based on an 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. In other words, 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 the target communication connection and the traditional communication connection is that the heartbeat message of the target communication connection is sent at a longer interval (such as 10 minutes, etc.), while the heartbeat message of the traditional communication connection is sent at a shorter interval (such as 60 seconds, etc.); and the target communication connection still sends heartbeat messages after the vehicle enters the sleep state, while the traditional communication connection does not send heartbeat messages after the vehicle enters the sleep state. Therefore, for vehicles using traditional communication connections, once the vehicle enters the sleep state, the vehicle will be disconnected from the cloud platform, while for vehicles using target communication connections, even if the vehicle enters the sleep state, 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 the 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 part of the at least one control message here carries a remote control instruction, and the control message carrying the remote control instruction is sent through the target communication connection. The remote control instruction here can be any control instruction triggered and generated by the vehicle owner on the user terminal, such as remote control air conditioning on, remote control seat heating, etc.
[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: sending 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 air conditioner, 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 displays or forwards the remote control result to the user terminal.
[0066] For ease of understanding, the scenario of remotely controlling an air conditioner is used as an example for explanation. In the prior art, when a car owner remotely controls an 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, when the vehicle 203 was produced on the production line, the vehicle identity document (ID) was registered on the cloud platform 202. The vehicle 203 initialized and set the relevant parameters of the MQTT client, and established 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 command from the user terminal 201, it continuously monitors the online status of the vehicle 203. If it is detected that the vehicle 203 is not online, a wake-up SMS is generated and sent. After the vehicle 203 receives the wake-up SMS sent by the cloud platform 202, the vehicle 203 is awakened and remains awake for 3 minutes, and then checks whether the current MQTT connection is ready. If it is detected 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. When the MQTT connection between the vehicle 203 and the cloud platform 202 is ready, the cloud platform 202 sends the air conditioning control command to the vehicle 203. The vehicle 203 parses and obtains the air conditioning control command, and then sends it to the target electronic control unit 204 responsible for controlling the air conditioning, and waits for the remote control result of the target electronic control unit 204. After receiving the remote control result, the vehicle 203 sends the remote control result to the cloud platform 202 through the MQTT protocol. Finally, the cloud platform 202 receives the remote control result reported by the vehicle 203 and forwards it to the user terminal 201, so that the owner can know the on / off status of the air conditioning of the vehicle 203.
[0067] In the embodiment of the present application, 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 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 of the vehicle 203 after being in sleep mode, the vehicle 203 does not need to make a communication connection again, eliminating the operations of redialing to connect to the cellular network, re-initiating the MQTT connection, and re-logging in to the TSP, 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 command, it can directly send at least one control message carrying the remote control command to the vehicle. In this way, the vehicle can be awakened based on the at least one control message and execute the remote control command after awakening without the cloud platform re-establishing a communication connection with the vehicle each time it receives a remote control command. 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, at least one control message includes a wake-up network data packet, and the wake-up network data packet 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 at least one control information, includes:
[0071] The vehicle is woken up based on the wake-up network data packet, and a remote control instruction is obtained from the wake-up network data packet.
[0072] As an optional implementation, at least one control information triggered by the cloud platform is a wake-up network data packet. The difference between the wake-up network data packet and the ordinary network data packet is that the wake-up network data packet not only carries the remote control instruction, but also has a wake-up function, while the ordinary network data packet does not have a wake-up function. In this way, after receiving the wake-up network data packet, the vehicle can be directly woken up based on the wake-up network data packet and obtain the remote control instruction from the wake-up network data packet, thereby further improving the execution efficiency of the 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 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 implementation, at least one control information triggered by the cloud platform includes a wake-up network data packet and a wake-up SMS, wherein both the wake-up SMS and the wake-up network data packet can be used to wake up the vehicle, the wake-up SMS is a SMS sent by the operator, and the wake-up network data packet is a network data packet sent by the cloud platform. The difference between the wake-up network data packet and the ordinary network data packet is that in addition to carrying the remote control instruction, the wake-up network data packet also has a wake-up function, while the ordinary network data packet does not have a wake-up function.
[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 that is received first. Specifically, when 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; when 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; when 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] In this way, the reliability and compatibility of communication between the vehicle and the cloud platform can be enhanced. From the perspective of reliability, the vehicle can be awakened when either the wake-up SMS or the wake-up network data packet arrives at the vehicle. From the perspective of compatibility, vehicles with older versions only support waking up via a wake-up SMS message, but not via a wake-up network data packet. Therefore, the method of sending both the wake-up SMS and the wake-up network data packet simultaneously can be compatible with the processing of vehicles with older versions. At the same time, this is also a strategy for smoothly upgrading the new version, preventing the situation where the vehicle cannot be awakened due to the failure to synchronize the upgrade version after the cloud platform upgrades the new version.
[0079] In an optional embodiment, the at least one control message includes a wake-up SMS and a common network data packet, and the common network data packet carries the 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 at least one control information, includes:
[0081] The vehicle is woken up based on the wake-up SMS 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 the remote control instruction 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 text messages, but does not support waking up the vehicle through wake-up network data packets, it can be compatible with the processing of the old version of the vehicle. 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 failure to synchronize the upgraded version after the cloud platform upgrades the new version.
[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 when 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 receiving the login result returned by the cloud platform, wherein the login request carries the identification information of the vehicle;
[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, the vehicle 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 it, 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 is successfully registered on the cloud platform based on the verification result. If the vehicle is 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 the vehicle 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 time the 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, establishing the target communication connection between itself and the cloud platform, the method further includes:
[0094] Sending heartbeat packets to the target server at preset intervals; and,
[0095] 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 a preset time interval.
[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 a heartbeat packet 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 information includes a wake-up text message. After the above step S103, the vehicle is woken up based on the at least one control information, the method further includes:
[0099] If the network data packet carrying the remote vehicle control command sent by the cloud platform is not received within the 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 the connection with the target server is established;
[0100] When it is determined that the vehicle identification information indicates a login failure, a login request is repeatedly sent to the cloud platform until the number of login requests reaches a preset number and then stops sending.
[0101] Specifically, after the vehicle is awakened based on the wake-up SMS, if the network data packet carrying the remote vehicle control command is not received from the cloud platform within the preset time period, it means that the long connection between the vehicle and the cloud platform is disconnected. This situation may be caused by unstable network signals at the vehicle's location or vehicle failure. At this time, the vehicle can re-initiate a connection request to the target server and re-send a login request to the cloud platform after establishing a connection with the target server. If the vehicle's identification information is determined to be a login failure, the login request can be repeatedly sent to the cloud platform until the number of login requests reaches the preset number and stops sending.
[0102] In this way, when the long connection between the vehicle and the cloud platform is disconnected due to unstable network signals at the vehicle's location or vehicle faults, a connection request can be re-initiated to the target server and a login request can be re-sent to the cloud platform to re-establish the connection, thereby improving the stability of communication between the vehicle and the cloud platform.
[0103] See also Figure 4 , Figure 4 A flow chart of another vehicle remote control method provided in an embodiment of the present application. Figure 4 As shown, the vehicle remote control method may include the following steps:
[0104] Step S401: 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 it is in a dormant state.
[0105] It should be noted that the vehicle remote control method provided in the embodiment of the present application is applied to a cloud platform, which may be a TSP platform, etc. The cloud platform may be connected to the vehicle and the user terminal, and is 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 then send the various remote control instructions to the corresponding electronic control unit to realize the remote control of the vehicle.
[0106] Specifically, the target communication connection can be a communication connection based on the Secure Sockets Layer (SSL) protocol and the Message Queue Telemetry Transmission (MQTT) protocol. The target communication connection allows the vehicle to be 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 achieve an uninterrupted MQTT connection between the vehicle and the cloud platform, thereby achieving a long connection between the vehicle and the cloud platform. The difference between the target communication connection and the traditional communication connection is that the heartbeat message of the target communication connection is sent at a longer interval (such as 10 minutes, etc.), while the heartbeat message of the traditional communication connection is sent at a shorter interval (such as 60 seconds, etc.); and the target communication connection still sends heartbeat messages after the vehicle enters a dormant state, while the traditional communication connection does not send heartbeat messages after the vehicle enters a dormant state. Therefore, for vehicles using traditional communication connections, once the vehicle enters a dormant state, the vehicle will be disconnected from the cloud platform, while for vehicles using target communication connections, even if the vehicle enters a dormant state, the vehicle can still maintain a communication connection with the cloud platform.
[0107] Step S402: in response to acquiring the remote control instruction, at least one control message is sent to the vehicle, at least part 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 the target communication connection between the cloud platform and the vehicle, the cloud platform can send at least one control message to the vehicle in response to obtaining the remote control command. At least part of the at least one control message here carries the remote control command, and the control message carrying the remote control command is sent through the target communication connection. The remote control command here can be any control command triggered and generated by the vehicle owner on the user terminal, such as remote control air conditioning on, remote control seat heating, etc.
[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] Among them, 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 instruction 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 instruction to remotely control the seat heating, the target electronic control unit is the electronic control unit corresponding to the seat.
[0112] 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 command, it can directly send at least one control message carrying the remote control command to the vehicle. In this way, the vehicle can be awakened based on the at least one control message and execute the remote control command after awakening without the cloud platform re-establishing a communication connection with the vehicle each time it receives a remote control command. This saves the interaction process between the cloud platform and the vehicle and improves the execution efficiency of vehicle remote control.
[0113] See also Figure 5 , Figure 5 A schematic diagram of the structure of a vehicle remote control device provided in an embodiment of the present application.
[0114] like Figure 5 As shown, the vehicle remote control device is applied to the vehicle side, and the device 500 includes:
[0115] The first establishing module 501 is used to 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;
[0116] The receiving module 502 is used 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] A wake-up and acquisition module 503, configured to wake up the vehicle based on at least one control information and acquire a remote control instruction from at least one control information;
[0118] A first sending module 504 is used to send 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 has an associated relationship with the remote control instruction;
[0119] The second sending module 505 is used to 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.
[0120] Furthermore, at least one control information includes a wake-up network data packet, and the wake-up network data packet 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 information also includes a wake-up SMS; 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 text message, 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, and 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 the remote control instruction from the ordinary network data packet.
[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, used to initiate 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 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, use the connection parameters to establish a communication channel between itself and the cloud platform;
[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 used to establish a target communication connection when the login result indicates that the vehicle identification information is a successful login.
[0132] Furthermore, the vehicle remote control device 500 further includes:
[0133] A third sending module is used to send a heartbeat packet to the target server at a preset time 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 a heartbeat packet to the target server at a preset time interval.
[0135] Furthermore, 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 a target server if no network data packet carrying a 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 a login request to the cloud platform when it is determined that the vehicle identification information indicates a login failure, and stop sending the login request until the number of times the login request is 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 will not be repeated here.
[0139] See also Figure 6 , Figure 6 This is a schematic diagram of the structure 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 it is in a dormant state;
[0141] a seventh sending module 602, configured to send at least one control message to the vehicle in response to acquiring 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 used to receive the 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 will not be repeated 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, used for storing computer programs;
[0146] In one embodiment of the present application, the processor 711 is used 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 on which a computer program is stored. When the computer program is executed by a processor, the vehicle remote control method provided by any of the aforementioned method embodiments is implemented.
[0148] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0149] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a general hardware platform, and of course, by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the relevant technology can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for 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 some parts of the embodiments.
[0150] It should be understood that the terms used herein are only for the purpose of describing specific example embodiments and are not intended to be limiting. Unless the context clearly indicates otherwise, the singular forms "one", "an" and "said" as used herein may also be meant to include plural forms. The terms "include", "comprise", "contain", and "have" are inclusive, and therefore specify the existence of stated features, steps, operations, elements and / or parts, but do not exclude the existence or addition of one or more other features, steps, operations, elements, parts, and / or combinations thereof. The method steps, processes, and operations described herein are not interpreted as necessarily requiring them to be performed in the specific order described or illustrated, unless the execution order is clearly indicated. It should also be understood that additional or alternative steps may be used.
[0151] The foregoing is merely a specific embodiment of the present invention, which enables those skilled in the art to understand or implement the present invention. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features claimed herein.
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 long connection state 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 part 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; Sending 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 acquiring 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 also includes a wake-up text message; The waking up the vehicle based on the at least one control information and acquiring 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, characterized in that The at least one control information includes a wake-up SMS 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 acquiring 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 common 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 certificate signature of the vehicle; Initiate 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; 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; 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 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 a preset time interval.
7. The method according to any one of claims 1 to 4, characterized in that: The at least one control information includes a wake-up text message. After waking up the vehicle based on the at least one control information, 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; In the case where it is determined that the identification information of the vehicle is a login failure, a login request is repeatedly sent to the cloud platform until the number of login requests reaches a preset number and then stops sending.
8. A vehicle remote control method, characterized in that: Applied to a cloud platform, the method includes: Establishing 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 it is in a dormant state; In response to acquiring the remote control instruction, sending at least one control message to the vehicle, at least part 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; 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.
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 through the communication bus; Memory, used to store computer programs; The processor is used to implement the vehicle remote control method described in any one of claims 1 to 7, or the vehicle remote control method described in 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
Remote control method, vehicle-mounted equipment, remote control equipment and vehicle
CN116886739A
Vehicle control method and device, vehicle and server
CN119094564A
Remote control method, vehicle and storage medium
CN119211314A