Combined instruction vehicle control method, cloud server, system, equipment and medium
Through cloud servers, the real-time status of the vehicle is monitored and compared with the expected results, the execution results of the combined instructions are promptly feedback, which solves the problem that the user side cannot obtain the execution of the combined instructions in a timely manner, and improves the user experience and feedback speed.
Patent Information
- Application Number
- CN202411049918.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-01
- Publication Date
- 2024-11-26
AI Technical Summary
After issuing combined instructions, the user side cannot promptly feedback the execution results of all equipment on the vehicle side, resulting in poor user experience.
The cloud server receives combined instructions from the user side, monitors the real-time status of the vehicle, filters out the device status of each control object, and compares it with the expected results, and promptly feedbacks the execution results to the user side. For instructions that have not been executed successfully, a forced query request is triggered until the timeout ends to ensure that the feedback is complete.
Improve the feedback speed and accuracy of combined instructions, fully grasp the execution progress of all control instructions, and improve user experience.
Smart Images

Figure CN119024822A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of vehicle remote control, and in particular to a method for controlling a vehicle with combined instructions, a cloud server, a system, a computer device and a storage medium. Background Art
[0002] Regarding vehicle remote control technology, the user usually uses a mobile phone APP to click multiple command buttons to send a combination command to the vehicle. The combination command is a command of two or more to control the vehicle's air conditioning, seats, steering wheel and other devices to work. However, since the execution time of each electronic controller (ECU) on the vehicle side is different, and when a device on the vehicle side executes successfully, it will report the successful execution of the command. A pop-up box will appear in the mobile phone APP to prompt the user that the command execution is successful, but in fact not all devices' commands are executed successfully. Even if other devices are executed later, the execution status of the corresponding devices will not be reported to the APP immediately. It will take 60 seconds for the APP to uniformly notify the current vehicle status, resulting in different delays in the feedback time of the command finally received by the user, which gives the user a poor user experience.
[0003] What users want to see is that after clicking the command button on the mobile APP, a combined command is sent to the vehicle side, and the user can see the feedback of the successful execution of the command in the mobile APP in a timely manner. This should be the expected change in the status of the corresponding devices, rather than only one of the device states changing. It takes another 60 seconds to display the status of the other device states. Therefore, how to solve the problem of timely feedback of the execution results of all commands after the user side sends the combined command to the vehicle side has become an urgent problem to be solved. Summary of the invention
[0004] Based on this, a method for controlling a vehicle using a combination of commands, a cloud server, a system, a computer device and a storage medium are provided, which can solve the technical problem that the user end cannot promptly feedback the execution results of all commands after issuing a combination of commands to the vehicle end.
[0005] In one aspect, a method for controlling a vehicle by using a combined command is provided, the method comprising:
[0006] Obtaining a combined instruction uploaded by a user terminal for controlling a vehicle, and identifying a control instruction contained in the combined instruction;
[0007] Acquire a control object of each control instruction, take a device state corresponding to the control object when the control instruction is successfully executed as an expected result, and store the expected result;
[0008] The combined command is sent to the vehicle end, the real-time status of the vehicle is monitored and acquired, and the real-time status of the device of each control object is filtered out from the real-time status of the vehicle according to the control object of each control command;
[0009] The real-time status of the device of the controlled object is compared with the expected result to determine whether there is a control instruction that is successfully executed. If there is a control instruction that is successfully executed, the execution results of all control instructions in the combined instruction and the real-time status of the vehicle are fed back to the user end.
[0010] In one embodiment, the combined command control vehicle method further includes:
[0011] Compare the real-time status of the device of the control object with the expected result to determine whether there is a control instruction that has not been successfully executed, and if there is a control instruction that has not been successfully executed, obtain the control instruction that has not been successfully executed in the combined instruction;
[0012] The control instruction that has not been successfully executed is used as a target control instruction, and a query request for forcing the vehicle end to report the latest vehicle status is triggered for the target control instruction at intervals of a second time period within the first time period;
[0013] The execution results of all control instructions in the combined instruction and the real-time status of the vehicle are updated according to the latest vehicle status fed back after each query request that forces the vehicle end to report the latest vehicle status is triggered.
[0014] In one embodiment, the step of updating the execution results of all control instructions in the combined instruction and the real-time status of the vehicle according to the latest vehicle status after each triggering of the query request forcing the vehicle end to report the latest vehicle status includes:
[0015] The target control object of the target control instruction filters out the real-time status of the device of the target control object from the latest vehicle status;
[0016] Compare the real-time status of the device of the target control object with the expected result to determine whether the target control instruction is executed successfully;
[0017] If the target control instruction is executed successfully, the successful execution of the target control instruction is fed back to the user end, and the query request for forcing the vehicle end to report the latest vehicle status is terminated;
[0018] If the target control instruction is not executed successfully, the target control instruction will be triggered again to force the vehicle end to report the latest vehicle status query request, until the total duration of triggering the query request to force the vehicle end to report the latest vehicle status is greater than the first duration, and the query request to force the vehicle end to report the latest vehicle status will be ended.
[0019] In one embodiment, the combined command control vehicle method further includes:
[0020] Determining whether the user terminal is online or offline according to the connection status between the user terminal and the cloud server;
[0021] If the user terminal is online and the target control instruction is executed successfully, the real-time status of the vehicle and the execution result of the successful execution of the target control instruction are fed back to the user terminal, and the query request for forcing the vehicle terminal to report the latest vehicle status is terminated;
[0022] If the user terminal is offline and the target control instruction is executed successfully, the real-time status of the vehicle and the execution result of the successful execution of the target control instruction are not fed back to the user terminal, and the query request for forcing the vehicle terminal to report the latest vehicle status is terminated, and the execution results of all control instructions in the combined instruction are stored;
[0023] If the user terminal is switched from offline to online, the last executed combined instruction is obtained, and the execution results of all control instructions in the combined instruction and the real-time status of the vehicle are fed back to the user terminal.
[0024] In one embodiment, the combined command control vehicle method further includes:
[0025] Monitoring the execution time of the combined instruction;
[0026] Determining whether all control instructions in the combined instruction are executed successfully within the first time period;
[0027] If yes, the vehicle end is controlled to terminate the combined instruction, and feedback is given to the user end that all control instructions in the combined instruction are successfully executed;
[0028] If not, then when the execution time of the combined instruction exceeds the first time length, the vehicle end is controlled to terminate the combined instruction.
[0029] In one embodiment, the combined command control vehicle method further includes:
[0030] Detect in real time whether the user terminal triggers a forced refresh request;
[0031] If a forced refresh request is triggered, the control instructions that have not been successfully executed in the combined instructions are obtained, and the control instructions that have not been successfully executed are used as target control instructions. A query request for forcing the vehicle end to report the latest vehicle status is triggered for the target control instructions at intervals of a second time period within the first time period, and the execution results of all control instructions in the combined instructions and the real-time status of the vehicle are updated according to the latest vehicle status fed back after each query request for forcing the vehicle end to report the latest vehicle status is triggered.
[0032] In another aspect, a cloud server is provided, the cloud server comprising:
[0033] A combined instruction acquisition module, used to acquire a combined instruction uploaded by a user terminal for controlling a vehicle, and identify a control instruction contained in the combined instruction;
[0034] An expected result storage module, used to obtain a control object of each control instruction, take a device state corresponding to the control object when the control instruction is successfully executed as an expected result, and store the expected result;
[0035] The command execution result acquisition module is used to send the combined command to the vehicle end, monitor and acquire the real-time status of the vehicle, and filter the real-time status of the device of each control object from the real-time status of the vehicle according to the control object of each control command;
[0036] The status feedback module is used to compare the real-time status of the device of the controlled object with the expected result to determine whether there is a control instruction that is successfully executed. If there is a control instruction that is successfully executed, the execution results of all control instructions in the combined instruction and the real-time status of the vehicle are fed back to the user end.
[0037] On the other hand, a combined instruction control vehicle system is provided, which includes the cloud server mentioned above, and the combined instruction control vehicle system also includes a user end and a vehicle end, and a communication connection is established between the cloud server and the vehicle end; the user end includes a remote vehicle control APP, and the user end is used to select control instructions to form combined instructions, issue combined instructions, and query and display the status of issuing combined instructions. The cloud server is used to receive the combined instructions issued by the user end, track the execution progress and execution results of the combined instructions, and forward the combined instructions to the vehicle end to obtain the device status of the control object of the control instruction on the vehicle end. The vehicle end is used to execute the combined instructions issued by the cloud server, and report the real-time status of the vehicle to the cloud server.
[0038] In another aspect, a computer device is provided, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the following steps are implemented:
[0039] Obtaining a combined instruction uploaded by a user terminal for controlling a vehicle, and identifying a control instruction contained in the combined instruction;
[0040] Acquire a control object of each control instruction, take a device state corresponding to the control object when the control instruction is successfully executed as an expected result, and store the expected result;
[0041] The combined command is sent to the vehicle end, the real-time status of the vehicle is monitored and acquired, and the real-time status of the device of each control object is filtered out from the real-time status of the vehicle according to the control object of each control command;
[0042] The real-time status of the device of the controlled object is compared with the expected result to determine whether there is a control instruction that is successfully executed. If there is a control instruction that is successfully executed, the execution results of all control instructions in the combined instruction and the real-time status of the vehicle are fed back to the user end.
[0043] In another aspect, a computer-readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:
[0044] Obtaining a combined instruction uploaded by a user terminal for controlling a vehicle, and identifying a control instruction contained in the combined instruction;
[0045] Acquire a control object of each control instruction, take a device state corresponding to the control object when the control instruction is successfully executed as an expected result, and store the expected result;
[0046] The combined command is sent to the vehicle end, the real-time status of the vehicle is monitored and acquired, and the real-time status of the device of each control object is filtered out from the real-time status of the vehicle according to the control object of each control command;
[0047] The real-time status of the device of the controlled object is compared with the expected result to determine whether there is a control instruction that is successfully executed. If there is a control instruction that is successfully executed, the execution results of all control instructions in the combined instruction and the real-time status of the vehicle are fed back to the user end.
[0048] The above-mentioned combined instruction control vehicle method, cloud server, system, computer equipment and storage medium receive the combined instruction issued by the user end through the cloud server, track the execution progress and execution results of the combined instruction, and forward the combined instruction to the vehicle end to obtain the real-time status of the device of the control object of the control instruction on the vehicle end, compare the real-time status of the device of the control object with the expected result to determine whether there is a control instruction that has been successfully executed, and can feedback the execution results of all control instructions in the combined instruction and the real-time status of the vehicle to the user end when any control instruction is successfully executed, thereby improving the feedback speed of the combined instruction, and can feedback the execution results of all control instructions in the combined instruction, so as to fully grasp the execution progress of all control instructions in the combined instruction and improve the user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0049] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0050] Figure 1 This is an application environment diagram of a method for controlling a vehicle by combining instructions in one embodiment of the present application;
[0051] Figure 2 This is a flow chart of a method for controlling a vehicle by combining instructions in one embodiment of the present application;
[0052] Figure 3 A flowchart of the steps of updating the execution results of all control instructions in the combined instruction and the real-time status of the vehicle according to the latest vehicle status fed back after each triggering of a query request forcing the vehicle end to report the latest vehicle status in one embodiment of the present application;
[0053] Figure 4 A flowchart of the step of comparing the real-time status of the device of the control object with the expected result in one embodiment of the present application;
[0054] Figure 5 A flowchart of the step of sending the combined instruction to the vehicle end in one embodiment of the present application;
[0055] Figure 6 A flowchart of a method for controlling a vehicle by combining commands between a user terminal, a cloud server and a vehicle terminal in one embodiment of the present application;
[0056] Figure 7 This is a structural block diagram of a cloud server in one embodiment of the present application;
[0057] Figure 8 A schematic flow chart of a method for implementing a combined command control vehicle method in a combined command control vehicle system in one embodiment of the present application;
[0058] Fig. 9 This is a diagram of the internal structure of a computer device in one embodiment of the present application. DETAILED DESCRIPTION
[0059] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0060] The combined command control vehicle method provided in this application can be applied to Figure 1In the application environment shown. Among them, the user terminal 1, the cloud server 2 and the vehicle terminal 3 are connected by communication through the network. Among them, the user terminal 1 can be but not limited to various personal computers, laptops, smart phones, tablet computers and portable wearable devices. The user terminal 1 includes a remote vehicle control APP. In the remote vehicle control APP, the control instructions for the vehicle can be selected to form a combined instruction, and the combined instruction can be issued and the combined instruction issuance status can be queried and displayed. The cloud server 2 can be implemented by an independent server or a server cluster composed of multiple servers. The cloud server 2 is used to receive the combined instruction issued by the user terminal, track the execution progress and execution results of the combined instruction, and forward the combined instruction to the vehicle terminal to obtain the device status of the control object of the control instruction at the vehicle terminal. The vehicle terminal 3 is used to execute the combined instruction issued by the cloud server 2, and report the device status of the control object of each control instruction in the combined instruction to the cloud server 2. The cloud server 2 determines whether the control instruction is successfully executed by tracking the device status of the control object of each control instruction, and summarizes the execution results of the combined instruction, and promptly feedbacks the execution progress and execution results of the combined instruction to the user terminal 1.
[0061] In one embodiment, Figure 2 As shown, a combined command control vehicle method is provided, and the method is applied to Figure 1 Taking the cloud server 2 in the example as an example, the following steps are included:
[0062] Step S1, obtaining a combination instruction uploaded by a user terminal for controlling a vehicle, and identifying a control instruction contained in the combination instruction;
[0063] Step S2, obtaining a control object of each control instruction, taking a device state corresponding to the control object when the control instruction is successfully executed as an expected result, and storing the expected result;
[0064] Step S3, sending the combined instruction to the vehicle end, monitoring and acquiring the real-time status of the vehicle, and filtering the real-time status of the device of each control object from the real-time status of the vehicle according to the control object of each control instruction;
[0065] Step S4, comparing the real-time status of the device of the controlled object with the expected result to determine whether there is a successfully executed control instruction. If there is a successfully executed control instruction, the execution results of all control instructions in the combined instruction and the real-time status of the vehicle are fed back to the user end.
[0066] When the execution results of all control instructions in the combined instruction are fed back to the user terminal, the execution results include the control instructions that were successfully executed and the control instructions that were not successfully executed. The execution results show the execution progress of all control instructions in the combined instruction, and the execution progress includes completed and successful, completed and unsuccessful, not executed, and being executed. The real-time status of the vehicle can also feedback whether the expected result after the user executes the combined instruction is achieved.
[0067] When in use, the user end is preferably a mobile phone. On the mobile phone APP end, multiple command buttons can be clicked to summarize the combined command and send it, or a button can be clicked to send the combined command, and then the combined command is sent to the vehicle end to control the air conditioner, seat, steering wheel and other different devices on the vehicle end to work. The air conditioner, seat, steering wheel and other different devices are the control objects. Steps S1-S4 are executed in the cloud server, and the combined command issued by the user end is received through the cloud server, and the execution progress and execution results of the combined command are tracked, and the combined command is forwarded to the vehicle end to obtain the device status of the control object of the control command on the vehicle end. When any control command is successfully executed, the execution results of all control commands in the combined command and the real-time status of the vehicle can be fed back to the user end, which improves the feedback speed of the combined command, and can feed back the execution results of all control commands in the combined command, so that the execution progress of all control commands in the combined command can be fully grasped, and the user experience is improved.
[0068] like Figure 2 As shown, in this embodiment, the combined instruction control vehicle method further includes:
[0069] Step S5, comparing the real-time status of the device of the control object with the expected result to determine whether there is a control instruction that has not been successfully executed, and if there is a control instruction that has not been successfully executed, obtaining the control instruction that has not been successfully executed in the combined instruction;
[0070] Step S6, taking the control instruction that has not been successfully executed as the target control instruction, and triggering a query request for forcing the vehicle end to report the latest vehicle status for the target control instruction at intervals of a second time period within the first time period;
[0071] Step S7, updating the execution results of all control instructions in the combined instruction and the real-time status of the vehicle according to the latest vehicle status fed back after each query request forcing the vehicle end to report the latest vehicle status is triggered.
[0072] The first duration is preferably the product of the number of control instructions in the combined instruction and the preset completion time of each control instruction. For example, the combined instruction includes four control instructions, and the preset completion time of each control instruction is 10s, then the first duration is 40s. The second duration is less than the first duration, and preferably the second duration is 4s.
[0073] The above steps S5 to S7 are mainly for the cloud server to control the control instructions that have not been successfully executed, realize the continuous activation and execution of the control instructions that have not been successfully executed, and track the execution progress and results of the combined instructions. This embodiment can feedback the successful execution of the combined instruction to the user end and feedback the real-time status of the vehicle when the control instruction is successfully executed, and can trigger a query request to force the vehicle end to report the latest vehicle status when any control instruction is not successfully executed, send the unsuccessful control instruction to the vehicle end and re-acquire the device status of the control object on the vehicle end, realize timely feedback of the execution results of all instructions, and ensure that the execution results of the combined instruction are complete.
[0074] like Figure 3 As shown, in this embodiment, the step of updating the execution results of all control instructions in the combined instruction and the real-time status of the vehicle according to the latest vehicle status after each triggering of the query request forcing the vehicle end to report the latest vehicle status includes:
[0075] Step S71, filtering out the real-time status of the device of the target control object from the latest vehicle status according to the target control object of the target control instruction;
[0076] Step S72, comparing the real-time status of the device of the target control object with the expected result to determine whether the target control instruction is executed successfully;
[0077] Step S73, if the target control instruction is executed successfully, then the successful execution of the target control instruction is fed back to the user end, and the query request for forcing the vehicle end to report the latest vehicle status is terminated;
[0078] Step S74, if the target control instruction is not executed successfully, the target control instruction is triggered again to force the vehicle end to report the latest vehicle status query request, until the total duration of triggering the query request to force the vehicle end to report the latest vehicle status is greater than the first duration, and then the query request to force the vehicle end to report the latest vehicle status is ended.
[0079] This embodiment triggers a query request for forcing the vehicle end to report the latest vehicle status when a control instruction is not executed successfully, sends the unsuccessfully executed control instruction to the vehicle end and re-acquires the device status of the control object on the vehicle end until the unsuccessfully executed control instruction is executed successfully, and controls the query request for forcing the vehicle end to report the latest vehicle status to be triggered within a first time period, and terminates the query request forcing the vehicle end to report the latest vehicle status after the first time period has expired, thereby avoiding the cyclic execution of unsuccessfully executed control instructions.
[0080] In this embodiment, the combined instruction control vehicle method further includes:
[0081] Determining whether the user terminal is online or offline according to the connection status between the user terminal and the cloud server;
[0082] If the user terminal is online and the target control instruction is executed successfully, the real-time status of the vehicle and the execution result of the successful execution of the target control instruction are fed back to the user terminal, and the query request for forcing the vehicle terminal to report the latest vehicle status is terminated;
[0083] If the user terminal is offline and the target control instruction is executed successfully, the real-time status of the vehicle and the execution result of the successful execution of the target control instruction are not fed back to the user terminal, and the query request for forcing the vehicle terminal to report the latest vehicle status is terminated, and the execution results of all control instructions in the combined instruction are stored;
[0084] If the user terminal is switched from offline to online, the last executed combined instruction is obtained, and the execution results of all control instructions in the combined instruction and the real-time status of the vehicle are fed back to the user terminal.
[0085] This embodiment determines in real time whether the user terminal is online. The cloud server can control whether to feed back the device status of the control object of the combined instruction and the real-time status of the vehicle based on whether the user terminal is online or offline. The cloud server can also track the execution progress and results of the combined instruction even when the user terminal is offline, so that the user terminal does not need to control the acquisition of the execution results of the combined instruction. Even if the user terminal is offline, the execution results of the combined instruction can be stored. After the user terminal is back online, the device status of the control object of the last executed combined instruction and the real-time status of the vehicle can be fed back to the user terminal in a timely manner, thereby improving the user experience. Moreover, such a setting can also achieve seamless operation when the connection network between the user terminal and the cloud server and between the user terminal and the vehicle terminal is poor, avoiding the loss of control instructions in the combined instruction caused by controlling the vehicle terminal only by the user terminal.
[0086] In order to avoid the infinite loop execution of control instructions that cannot be successfully executed in the combined instructions, in this embodiment, the combined instruction control method for a vehicle further includes:
[0087] Monitoring the execution time of the combined instruction;
[0088] Determining whether all control instructions in the combined instruction are executed successfully within the first time period;
[0089] If yes, the vehicle end is controlled to terminate the combined instruction, and feedback is given to the user end that all control instructions in the combined instruction are successfully executed;
[0090] If not, then when the execution time of the combined instruction exceeds the first time length, the vehicle end is controlled to terminate the combined instruction.
[0091] Preferably, the first duration is one of 30s, 40s, 50s, and 60s. The first duration can also be set according to the number of control instructions in the combination instruction, for example, each control instruction corresponds to a duration of 10s, and the first duration corresponding to the combination instruction composed of four control instructions is 40s. That is, by setting the first duration, the real-time state of the vehicle after the combination instruction is sent to the vehicle end is monitored within the first duration. The real-time state of the vehicle is the state of the whole vehicle, so as to avoid the vehicle end from identifying and processing the vehicle state of the control object of each control instruction in the combination instruction, and prevent the increase of the processor load on the vehicle end. The cloud server monitors the device state of the control object of each control instruction on the vehicle end instead of the vehicle end, which can reduce the processor load on the user end or the vehicle end. The cloud server monitors whether all control instructions in the combination instruction are executed successfully within the first duration. When the execution duration of the combination instruction exceeds the first duration, the vehicle end ends the execution of the combination instruction to avoid the vehicle end from getting stuck.
[0092] It is understandable that the cloud server identifies the control command corresponding to the command button in the user terminal, and pre-stores the control object corresponding to the control command and the expected result after the control command is executed. The expected result is the state of the control object corresponding to the vehicle when the control command is completed. Therefore, by comparing the state of the control object with the expected result, it is possible to know whether the control command is executed successfully. Specifically, Figure 4 As shown, in this embodiment, the step of comparing the real-time status of the device of the control object with the expected result includes:
[0093] Step S31, comparing the device state of the control object of each control instruction at the vehicle end with the expected result, and determining whether the device state of the control object is the same as the expected result;
[0094] Step S32: if they are the same, it is determined that the control instruction is executed successfully;
[0095] Step S33: If they are different, it is determined that the control instruction is not executed successfully.
[0096] like Figure 5 As shown, in this embodiment, the step of sending the combined instruction to the vehicle end includes:
[0097] Step S41, obtaining the control instructions included in the combined instruction, and identifying whether there is an execution order restriction between the control instructions;
[0098] Step S42, if there is an execution order restriction between the control instructions, sort the control instructions according to the execution order;
[0099] Step S43: sending the control instructions to the vehicle end in sequence according to the sorting result.
[0100] When in use, the user clicks multiple command buttons. If the control commands corresponding to the multiple command buttons are to turn on the air conditioner, set the air conditioner air volume to the highest, set the air conditioner temperature to 18 degrees, and turn on the air circulation in the car. You can also click a command button, which corresponds to a preset combination command, which is to turn on the air conditioner, set the air conditioner air volume to the highest, set the air conditioner temperature to 18 degrees, and turn on the air circulation in the car. Therefore, you need to turn on the air conditioner first and then set the air conditioner air volume and temperature and the air circulation in the car. Therefore, you need to sort and execute the control commands contained in the combination command, so that all the control commands in the combination command can be completed smoothly.
[0101] Since all control instructions in the combined instruction can be executed synchronously, even if there is an execution order of the control instructions, by obtaining the control instructions that have not been successfully executed in the combined instruction, taking the control instructions that have not been successfully executed as the target control instructions, triggering a query request for the target control instructions to force the vehicle end to report the latest vehicle status within the first time period and at an interval of the second time period, the requirement of completing the execution of all control instructions can be met. However, the disorderly execution method will also require further judgment on the processing time of the control instructions that have not been successfully executed. Therefore, the instruction processing efficiency can be further improved by first sorting the control instructions and then sending the control instructions to the vehicle end in sequence according to the sorting results.
[0102] In this embodiment, the combined instruction control vehicle method further includes:
[0103] Detect in real time whether the user terminal triggers a forced refresh request;
[0104] If a forced refresh request is triggered, the control instructions that have not been successfully executed in the combined instructions are obtained, and the control instructions that have not been successfully executed are used as target control instructions. A query request for forcing the vehicle end to report the latest vehicle status is triggered for the target control instructions at intervals of a second time period within the first time period, and the execution results of all control instructions in the combined instructions and the real-time status of the vehicle are updated according to the latest vehicle status fed back after each query request for forcing the vehicle end to report the latest vehicle status is triggered.
[0105] In this way, the cloud server can automatically trigger multiple forced refresh requests within the first time period to send unsuccessful control instructions to the vehicle end and re-acquire the device status of the control object on the vehicle end, and can also trigger forced refresh requests through the user end within the first time period to send unsuccessful control instructions to the vehicle end and re-acquire the device status of the control object on the vehicle end. The user can update the execution results of all control instructions in the combined instruction and the real-time status of the vehicle by triggering a forced refresh request, which improves the user experience.
[0106] Preferably, the first duration is 40 seconds and the second duration is 4 seconds. In response to any control instruction in the combination instruction not being executed successfully, a forced refresh request is automatically triggered every 4 seconds. If there is still a control instruction that is not executed successfully after 10 times, the forced refresh request is terminated, and the device status of the control object of the combination instruction and the real-time status of the vehicle are fed back to the user end to avoid an infinite loop.
[0107] The user end of this embodiment is a mobile phone APP. When the mobile phone APP receives the report from the vehicle end and the combination command is successfully executed, the mobile phone APP sends a request to the cloud server to force the vehicle end to report the current latest vehicle status, and requests once every 4 seconds within 40 seconds. After the vehicle end receives the request command, it immediately reports the current latest vehicle to the mobile phone APP. After the cloud server determines that the device status of the previously issued combination command has reached the expected result, it ends the request to force the vehicle end to report the latest vehicle status, and feeds back the successful execution of the combination command to the mobile phone APP. In this way, the mobile phone APP can display the device status of the object controlled by the command, and can achieve synchronous changes, and can also obtain the latest vehicle status as soon as possible to show it to the user, thereby improving the user's functional experience.
[0108] like Figure 6 As shown, Figure 6 The process of implementing a combined command control method for a vehicle between a user terminal 1, a cloud server 2 and a vehicle terminal 3 is shown.
[0109] In the above-mentioned method of controlling a vehicle by combined instructions, the cloud server receives the combined instructions issued by the user end, tracks the execution progress and results of the combined instructions, and forwards the combined instructions to the vehicle end to obtain the real-time status of the device of the control object of the control instruction on the vehicle end, compares the real-time status of the device of the control object with the expected result to determine whether there is a control instruction that has been successfully executed, and can feedback the execution results of all control instructions in the combined instructions and the real-time status of the vehicle to the user end when any control instruction is successfully executed, thereby improving the feedback speed of the combined instructions, and can feedback the execution results of all control instructions in the combined instructions, so that the execution progress of all control instructions in the combined instructions can be fully grasped, thereby improving the user experience.
[0110] It should be understood that although Figure 2-Figure 6 The steps in the flowchart are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, Figure 2-Figure 6At least part of the steps may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be executed in turn or alternately with other steps or at least part of the sub-steps or stages of other steps.
[0111] In one embodiment, Figure 7 As shown, a cloud server 2 is provided, and the cloud server 2 can be implemented by an independent server or a server cluster composed of multiple servers.
[0112] like Figure 7 As shown, the cloud server 2 includes: a combined instruction acquisition module 21, an expected result storage module 22, an instruction execution result acquisition module 23 and a state feedback module 24.
[0113] The combined instruction acquisition module 21 is used to acquire the combined instruction uploaded by the user end for controlling the vehicle, and identify the control instruction contained in the combined instruction.
[0114] The expected result storage module 22 is used to obtain the control object of each control instruction, take the device state corresponding to the control object when the control instruction is successfully executed as the expected result, and store the expected result.
[0115] The instruction execution result acquisition module 23 is used to send the combined instruction to the vehicle end, monitor and acquire the real-time status of the vehicle, and filter out the real-time status of the device of each control object from the real-time status of the vehicle according to the control object of each control instruction.
[0116] The status feedback module 24 is used to compare the real-time status of the device of the controlled object with the expected result to determine whether there is a control instruction that is successfully executed. If there is a control instruction that is successfully executed, the execution results of all control instructions in the combined instruction and the real-time status of the vehicle are fed back to the user end.
[0117] like Figure 7 As shown, in this embodiment, the cloud server 2 also includes: an instruction tracking processing module 25.
[0118] The instruction tracking and processing module 25 is used to: compare the real-time status of the device of the control object with the expected result to determine whether there is a control instruction that has not been successfully executed. If there is a control instruction that has not been successfully executed, obtain the control instruction that has not been successfully executed in the combined instruction; use the control instruction that has not been successfully executed as the target control instruction, and trigger a query request for the target control instruction to force the vehicle end to report the latest vehicle status at intervals of a second time period within a first time period; update the execution results of all control instructions in the combined instruction and the real-time status of the vehicle according to the latest vehicle status fed back after each query request for forcing the vehicle end to report the latest vehicle status is triggered.
[0119] In this embodiment, the instruction tracking processing module 25 is used to update the execution results of all control instructions in the combined instruction and the real-time status of the vehicle according to the latest vehicle status after each triggering of the query request forcing the vehicle end to report the latest vehicle status:
[0120] The target control object of the target control instruction filters out the real-time status of the device of the target control object from the latest vehicle status;
[0121] Compare the real-time status of the device of the target control object with the expected result to determine whether the target control instruction is executed successfully;
[0122] If the target control instruction is executed successfully, the successful execution of the target control instruction is fed back to the user end, and the query request for forcing the vehicle end to report the latest vehicle status is terminated;
[0123] If the target control instruction is not executed successfully, the target control instruction will be triggered again to force the vehicle end to report the latest vehicle status query request, until the total duration of triggering the query request to force the vehicle end to report the latest vehicle status is greater than the first duration, and the query request to force the vehicle end to report the latest vehicle status will be ended.
[0124] like Figure 7 As shown, in this embodiment, the cloud server 2 also includes: an instruction execution result push control module 26.
[0125] The instruction execution result push control module 26 is used to: determine whether the user terminal is online or offline according to the connection status between the user terminal and the cloud server; if the user terminal is online and the target control instruction is executed successfully, the real-time status of the vehicle and the execution result of the successful execution of the target control instruction are fed back to the user terminal, and the query request for forcing the vehicle terminal to report the latest vehicle status is terminated; if the user terminal is offline and the target control instruction is executed successfully, the real-time status of the vehicle and the execution result of the successful execution of the target control instruction are not fed back to the user terminal, the query request for forcing the vehicle terminal to report the latest vehicle status is terminated, and the execution results of all control instructions in the combined instruction are stored; if the user terminal changes from offline to online, the last executed combined instruction is obtained, and the execution results of all control instructions in the combined instruction and the real-time status of the vehicle are fed back to the user terminal.
[0126] like Figure 7 As shown, in this embodiment, the cloud server 2 also includes: a combined instruction end control module 27.
[0127] The combination instruction termination control module 27 is used to: monitor the execution time of the combination instruction; determine whether all the control instructions in the combination instruction are successfully executed within a first time period; if so, control the vehicle end to terminate the combination instruction and feedback to the user end that all the control instructions in the combination instruction are successfully executed; if not, control the vehicle end to terminate the combination instruction when the execution time of the combination instruction exceeds the first time period.
[0128] like Figure 7 As shown, in this embodiment, the cloud server 2 further includes: a forced refresh control module 28.
[0129] The forced refresh control module 28 is used to: detect in real time whether the user end triggers a forced refresh request; if the forced refresh request is triggered, obtain the control instructions that have not been successfully executed in the combined instructions, use the control instructions that have not been successfully executed as target control instructions, trigger a query request for forcing the vehicle end to report the latest vehicle status for the target control instructions at intervals of a second time period within a first time period, and update the execution results of all control instructions in the combined instructions and the real-time status of the vehicle according to the latest vehicle status fed back after each query request for forcing the vehicle end to report the latest vehicle status is triggered.
[0130] In the above-mentioned cloud server, the cloud server receives the combination instructions issued by the user end, tracks the execution progress and execution results of the combination instructions, and forwards the combination instructions to the vehicle end to obtain the real-time status of the device of the control object of the control instruction on the vehicle end, compares the real-time status of the device of the control object with the expected result to determine whether there is a control instruction that has been successfully executed, and can feedback the execution results of all control instructions in the combination instruction and the real-time status of the vehicle to the user end when any control instruction is successfully executed, thereby improving the feedback speed of the combination instruction, and can feedback the execution results of all control instructions in the combination instruction, so as to fully grasp the execution progress of all control instructions in the combination instruction and improve the user experience.
[0131] For the specific definition of the cloud server, please refer to the definition of the combined instruction control vehicle method above, which will not be repeated here. Each module in the above cloud server can be implemented in whole or in part by software, hardware and their combination. The above modules can be embedded in or independent of the processor in the computer device in hardware form, or stored in the memory of the computer device in software form, so that the processor can call and execute the operations corresponding to the above modules.
[0132] In one embodiment, Figure 1 , Figure 6 As shown, a combined command control vehicle system is provided, including a user terminal 1, a cloud server 2 and a vehicle terminal 3. A communication connection is established between the cloud server 2 and the vehicle terminal 3; the user terminal 1 includes a remote vehicle control APP, the user terminal 1 is used to select control instructions to form combined instructions, issue combined instructions, and query and display the status of combined instruction issuance, the cloud server 2 is used to receive the combined instructions issued by the user terminal 1, track the execution progress and execution results of the combined instructions, and forward the combined instructions to the vehicle terminal 3 for status feedback, and the vehicle terminal 3 is used to execute the combined instructions issued by the cloud server 2, and report the device status of the controlled object to the cloud server 2.
[0133] Among them, the user terminal 1 can be but not limited to various personal computers, laptops, smart phones, tablet computers and portable wearable devices, and the cloud server 2 can be implemented with an independent server or a server cluster composed of multiple servers. The cloud server 2 tracks the device status of the control object of each control instruction, determines whether the control instruction is executed successfully, summarizes the execution results of the combined instructions, and promptly feedbacks the execution progress and execution results of the combined instructions to the user terminal 1. If all control instructions are executed successfully, the cloud server 2 will feedback the successful execution of the combined instruction to the user terminal 1 and feedback the real-time status of the vehicle; if any of the control instructions in the combined instruction is not executed successfully, the device status of the control object of the combined instruction and the real-time status of the vehicle will be fed back to the user terminal 1, and the cloud server 2 triggers a forced refresh request, sends the unsuccessful control instruction to the vehicle terminal 3 and re-acquires the device status of the control object at the vehicle terminal 3.
[0134] Specifically, Figure 8 As shown in the figure, the mobile phone APP sends a combination command to control the operation of multiple devices, that is, the mobile phone APP sends a combination command to the cloud server to control multiple devices on the vehicle to work simultaneously. Vehicle devices such as air conditioners, windows, seats, steering wheels and sunroofs can all be controlled objects, and the cloud server then transparently transmits the combination command to the vehicle. After receiving the combination command, the vehicle sends work requests to multiple devices at the same time. However, after one device executes the corresponding function, the vehicle will immediately feedback the command result to the cloud server as soon as possible to feedback the status of the device execution. Because if the vehicle waits until all devices are executed before reporting the command result and the status of multiple devices, it does not know when all these devices can be executed, and it will take a long time. Therefore, the vehicle needs to feedback the processed command result and the status of the device that is executed the fastest to the cloud server, and then feedback to the mobile phone APP, so that users can perceive the working status of the vehicle-side devices more quickly.
[0135] When the cloud server determines in real time whether the user terminal is online:
[0136] If the mobile phone APP is online and detects that the status reported by these devices does not meet the expected results, it will automatically trigger a command to force the vehicle side to report the latest vehicle status to the cloud server. At this time, the cloud server needs to establish a long link channel with the mobile phone APP to determine the online status of the mobile phone APP. It also needs to remember the expected results corresponding to the control commands issued by the mobile phone APP, and send the command to force the vehicle side to report the latest vehicle status to the vehicle side. The command is sent every 4 seconds for 40 seconds. After receiving the command, the vehicle side will feedback the current latest vehicle status to the cloud server, and the cloud server will determine whether the device status mentioned above is the expected result.
[0137] If it is the expected result and the mobile phone APP is online, the latest vehicle status will be fed back, ending the query request process that forces the vehicle to report the latest vehicle status.
[0138] If the result is as expected but the mobile phone APP is offline, no feedback will be given and the query request process forcing the vehicle to report the latest vehicle status will be terminated.
[0139] If the result is not as expected, the query request process of forcing the vehicle to report the latest vehicle status will end until 40 seconds expires.
[0140] If the mobile APP is offline at this time, there will be no subsequent process in the mobile APP. The execution progress and results of the combined instructions are continuously tracked in the cloud server.
[0141] Compared with control instructions that can only control a single device, the advantage of combined instructions for controlling multiple devices is that multiple devices can be operated simultaneously with one control instruction, which allows the vehicle to notify the mobile APP as quickly as possible, giving users the best experience. If there is no instruction to control multiple devices to work simultaneously, users need to click multiple instruction buttons one by one to execute the desired functional experience. For example, they must first click the air conditioning button on the mobile APP, and only after receiving feedback from the vehicle that the execution is complete can they click the window button again. Similarly, they must receive feedback from the vehicle before they can use subsequent functions again. This takes a long time. The more devices you want to execute, the more time it takes, and the user experience is very poor.
[0142] In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as follows: Fig. 9 As shown. The computer device includes a processor, a memory, a network interface and a database connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store combined instruction control vehicle data. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a combined instruction control vehicle method is implemented.
[0143] Those skilled in the art will understand that Fig. 9 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0144] In one embodiment, a computer device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the following steps when executing the computer program:
[0145] Obtaining a combined instruction uploaded by a user terminal for controlling a vehicle, and identifying a control instruction contained in the combined instruction;
[0146] Acquire a control object of each control instruction, take a device state corresponding to the control object when the control instruction is successfully executed as an expected result, and store the expected result;
[0147] The combined command is sent to the vehicle end, the real-time status of the vehicle is monitored and acquired, and the real-time status of the device of each control object is filtered out from the real-time status of the vehicle according to the control object of each control command;
[0148] The real-time status of the device of the controlled object is compared with the expected result to determine whether there is a control instruction that is successfully executed. If there is a control instruction that is successfully executed, the execution results of all control instructions in the combined instruction and the real-time status of the vehicle are fed back to the user end.
[0149] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0150] The combined command control vehicle method further includes:
[0151] Determine in real time whether the user terminal is online;
[0152] If the user terminal is online, the device status of the control object of the combined instruction and the real-time status of the vehicle are fed back to the user terminal;
[0153] If the user terminal is offline, the device status of the control object of the combined instruction is stored, and the device status of the control object of the combined instruction and the real-time status of the vehicle are fed back to the user terminal;
[0154] If the user terminal is online again after being offline, the last executed combined instruction is obtained, and the device status of the control object of the combined instruction and the real-time status of the vehicle are fed back to the user terminal.
[0155] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0156] The step of obtaining the control object of each control instruction, taking the device state corresponding to the control object when the control instruction is successfully executed as the expected result, and storing the expected result includes:
[0157] Storing the control instructions contained in the combined instructions;
[0158] Obtaining and storing the expected result when the control instruction is successfully executed;
[0159] Acquire the real-time status of the vehicle in real time within the first time period, and identify the device status of the control object of each control instruction at the vehicle end according to the control object of each control instruction;
[0160] If the first time period is exceeded, the acquisition of the vehicle real-time status is terminated.
[0161] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0162] The step of sending the combined instruction to the vehicle end, monitoring and acquiring the real-time status of the vehicle, and filtering the real-time status of the device of each control object from the real-time status of the vehicle according to the control object of each control instruction comprises:
[0163] Comparing the device state of the control object of each control instruction at the vehicle end with the expected result, and determining whether the device state of the control object is the same as the expected result;
[0164] If they are the same, it is determined that the control instruction is executed successfully;
[0165] If they are different, it is determined that the control instruction is not executed successfully.
[0166] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0167] The step of obtaining the control object of each control instruction, taking the device state corresponding to the control object when the control instruction is successfully executed as the expected result, and storing the expected result includes:
[0168] Obtaining the control instructions included in the combined instruction, and identifying whether there is an execution order restriction between the control instructions;
[0169] If there is an execution order restriction between the control instructions, the control instructions are sorted according to the execution order;
[0170] The control instructions are sent to the vehicle end in sequence according to the sorting results.
[0171] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0172] The combined command control vehicle method further includes:
[0173] Detect in real time whether the cloud server triggers a forced refresh request;
[0174] If a forced refresh request is triggered, detecting the number of times the cloud server triggers a forced refresh request within the first time period;
[0175] If the number of times the cloud server has triggered a forced refresh request within the first time period is less than or equal to a first threshold, the device status of the control object of the combined instruction and the real-time status of the vehicle are fed back to the user end, otherwise the process ends.
[0176] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0177] The step of sending the unsuccessfully executed control instruction to the vehicle end and reacquiring the device status of the control object at the vehicle end includes:
[0178] Acquire the control instruction that has not been successfully executed in the combined instruction, and resend the control instruction that has not been successfully executed to the vehicle end as the target control instruction;
[0179] Acquire the real-time state of the vehicle at periodic intervals of a third time period within the second time period, and identify the device state of the control object of the target control instruction at the vehicle end according to the control object of the target control instruction;
[0180] Obtaining a target expected result when the target control instruction is successfully executed, comparing the device state of the control object of the target control instruction at the vehicle end with the target expected result, and determining whether the device state of the control object is the same as the target expected result;
[0181] If they are the same, it is determined that the target control instruction is executed successfully;
[0182] If they are different, it is determined that the target control instruction is not executed successfully;
[0183] If the second time period is exceeded, the acquisition of the real-time status of the vehicle is terminated, and it is determined that the execution of the target control instruction is unsuccessful.
[0184] For the specific limitations on the steps implemented when the processor executes the computer program, please refer to the limitations on the method of controlling the vehicle with combined instructions above, which will not be repeated here.
[0185] In one embodiment, a computer readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:
[0186] Obtaining a combined instruction uploaded by a user terminal for controlling a vehicle, and identifying a control instruction contained in the combined instruction;
[0187] Acquire a control object of each control instruction, take a device state corresponding to the control object when the control instruction is successfully executed as an expected result, and store the expected result;
[0188] The combined command is sent to the vehicle end, the real-time status of the vehicle is monitored and acquired, and the real-time status of the device of each control object is filtered out from the real-time status of the vehicle according to the control object of each control command;
[0189] The real-time status of the device of the controlled object is compared with the expected result to determine whether there is a control instruction that is successfully executed. If there is a control instruction that is successfully executed, the execution results of all control instructions in the combined instruction and the real-time status of the vehicle are fed back to the user end.
[0190] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0191] The combined command control vehicle method further includes:
[0192] Determine in real time whether the user terminal is online;
[0193] If the user terminal is online, the device status of the control object of the combined instruction and the real-time status of the vehicle are fed back to the user terminal;
[0194] If the user terminal is offline, the device status of the control object of the combined instruction is stored, and the device status of the control object of the combined instruction and the real-time status of the vehicle are fed back to the user terminal;
[0195] If the user terminal is online again after being offline, the last executed combined instruction is obtained, and the device status of the control object of the combined instruction and the real-time status of the vehicle are fed back to the user terminal.
[0196] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0197] The step of obtaining the control object of each control instruction, taking the device state corresponding to the control object when the control instruction is successfully executed as the expected result, and storing the expected result includes:
[0198] Storing the control instructions contained in the combined instructions;
[0199] Obtaining and storing the expected result when the control instruction is successfully executed;
[0200] Acquire the real-time status of the vehicle in real time within the first time period, and identify the device status of the control object of each control instruction at the vehicle end according to the control object of each control instruction;
[0201] If the first time period is exceeded, the acquisition of the vehicle real-time status is terminated.
[0202] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0203] The step of sending the combined instruction to the vehicle end, monitoring and acquiring the real-time status of the vehicle, and filtering the real-time status of the device of each control object from the real-time status of the vehicle according to the control object of each control instruction comprises:
[0204] Comparing the device state of the control object of each control instruction at the vehicle end with the expected result, and determining whether the device state of the control object is the same as the expected result;
[0205] If they are the same, it is determined that the control instruction is executed successfully;
[0206] If they are different, it is determined that the control instruction is not executed successfully.
[0207] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0208] The step of obtaining the control object of each control instruction, taking the device state corresponding to the control object when the control instruction is successfully executed as the expected result, and storing the expected result includes:
[0209] Obtaining the control instructions included in the combined instruction, and identifying whether there is an execution order restriction between the control instructions;
[0210] If there is an execution order restriction between the control instructions, the control instructions are sorted according to the execution order;
[0211] The control instructions are sent to the vehicle end in sequence according to the sorting results.
[0212] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0213] The combined command control vehicle method further includes:
[0214] Detect in real time whether the cloud server triggers a forced refresh request;
[0215] If a forced refresh request is triggered, detecting the number of times the cloud server triggers a forced refresh request within the first time period;
[0216] If the number of times the cloud server has triggered a forced refresh request within the first time period is less than or equal to a first threshold, the device status of the control object of the combined instruction and the real-time status of the vehicle are fed back to the user end, otherwise the process ends.
[0217] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0218] The step of sending the unsuccessfully executed control instruction to the vehicle end and reacquiring the device status of the control object at the vehicle end includes:
[0219] Acquire the control instruction that has not been successfully executed in the combined instruction, and resend the control instruction that has not been successfully executed to the vehicle end as the target control instruction;
[0220] Acquire the real-time state of the vehicle at periodic intervals of a third time period within the second time period, and identify the device state of the control object of the target control instruction at the vehicle end according to the control object of the target control instruction;
[0221] Obtaining a target expected result when the target control instruction is successfully executed, comparing the device state of the control object of the target control instruction at the vehicle end with the target expected result, and determining whether the device state of the control object is the same as the target expected result;
[0222] If they are the same, it is determined that the target control instruction is executed successfully;
[0223] If they are different, it is determined that the target control instruction is not executed successfully;
[0224] If the second time period is exceeded, the acquisition of the real-time status of the vehicle is terminated, and it is determined that the execution of the target control instruction is unsuccessful.
[0225] For the specific limitations on the steps implemented when the computer program is executed by the processor, please refer to the limitations on the method of controlling a vehicle with combined instructions above, which will not be repeated here.
[0226] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
[0227] The technical features of the above embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0228] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.
Claims
1. A method for controlling a vehicle by combining commands, It is characterized in that Applied to a cloud server, the combined instruction control vehicle method includes: Obtaining a combined instruction uploaded by a user terminal for controlling a vehicle, and identifying a control instruction contained in the combined instruction; Acquire a control object of each control instruction, take a device state corresponding to the control object when the control instruction is successfully executed as an expected result, and store the expected result; The combined command is sent to the vehicle end, the real-time status of the vehicle is monitored and acquired, and the real-time status of the device of each control object is filtered out from the real-time status of the vehicle according to the control object of each control command; The real-time status of the device of the controlled object is compared with the expected result to determine whether there is a control instruction that is successfully executed. If there is a control instruction that is successfully executed, the execution results of all control instructions in the combined instruction and the real-time status of the vehicle are fed back to the user end.
2. The combined command control vehicle method according to claim 1, It is characterized in that The combined command control vehicle method further includes: Compare the real-time status of the device of the control object with the expected result to determine whether there is a control instruction that has not been successfully executed, and if there is a control instruction that has not been successfully executed, obtain the control instruction that has not been successfully executed in the combined instruction; The control instruction that has not been successfully executed is used as a target control instruction, and a query request for forcing the vehicle end to report the latest vehicle status is triggered for the target control instruction at intervals of a second time period within the first time period; The execution results of all control instructions in the combined instruction and the real-time status of the vehicle are updated according to the latest vehicle status fed back after each query request that forces the vehicle end to report the latest vehicle status is triggered.
3. The combined command control vehicle method according to claim 2, It is characterized in that The step of updating the execution results of all control instructions in the combined instruction and the real-time status of the vehicle according to the latest vehicle status after each triggering of the query request forcing the vehicle end to report the latest vehicle status comprises: The target control object of the target control instruction filters out the real-time status of the device of the target control object from the latest vehicle status; Compare the real-time status of the device of the target control object with the expected result to determine whether the target control instruction is executed successfully; If the target control instruction is executed successfully, the successful execution of the target control instruction is fed back to the user end, and the query request for forcing the vehicle end to report the latest vehicle status is terminated; If the target control instruction is not executed successfully, the target control instruction will be triggered again to force the vehicle end to report the latest vehicle status query request, until the total duration of triggering the query request to force the vehicle end to report the latest vehicle status is greater than the first duration, and the query request to force the vehicle end to report the latest vehicle status will be ended.
4. The combined command control vehicle method according to claim 3, It is characterized in that The combined command control vehicle method further includes: Determining whether the user terminal is online or offline according to the connection status between the user terminal and the cloud server; If the user terminal is online and the target control instruction is executed successfully, the real-time status of the vehicle and the execution result of the successful execution of the target control instruction are fed back to the user terminal, and the query request for forcing the vehicle terminal to report the latest vehicle status is terminated; If the user terminal is offline and the target control instruction is executed successfully, the real-time status of the vehicle and the execution result of the successful execution of the target control instruction are not fed back to the user terminal, and the query request for forcing the vehicle terminal to report the latest vehicle status is terminated, and the execution results of all control instructions in the combined instruction are stored; If the user terminal is switched from offline to online, the last executed combined instruction is obtained, and the execution results of all control instructions in the combined instruction and the real-time status of the vehicle are fed back to the user terminal.
5. The combined command control vehicle method according to claim 1, It is characterized in that The combined command control vehicle method further includes: Monitoring the execution time of the combined instruction; Determining whether all control instructions in the combined instruction are executed successfully within the first time period; If yes, the vehicle end is controlled to terminate the combined instruction, and feedback is given to the user end that all control instructions in the combined instruction are successfully executed; If not, then when the execution time of the combined instruction exceeds the first time length, the vehicle end is controlled to terminate the combined instruction.
6. The combined command control vehicle method according to claim 1, It is characterized in that The combined command control vehicle method further includes: Detect in real time whether the user terminal triggers a forced refresh request; If a forced refresh request is triggered, the control instructions that have not been successfully executed in the combined instructions are obtained, and the control instructions that have not been successfully executed are used as target control instructions. A query request for forcing the vehicle end to report the latest vehicle status is triggered for the target control instructions at intervals of a second time period within the first time period, and the execution results of all control instructions in the combined instructions and the real-time status of the vehicle are updated according to the latest vehicle status fed back after each query request for forcing the vehicle end to report the latest vehicle status is triggered.
7. A cloud server, It is characterized in that The cloud server comprises: A combined instruction acquisition module, used to acquire a combined instruction uploaded by a user terminal for controlling a vehicle, and identify a control instruction contained in the combined instruction; An expected result storage module, used to obtain a control object of each control instruction, take a device state corresponding to the control object when the control instruction is successfully executed as an expected result, and store the expected result; The command execution result acquisition module is used to send the combined command to the vehicle end, monitor and acquire the real-time status of the vehicle, and filter the real-time status of the device of each control object from the real-time status of the vehicle according to the control object of each control command; The status feedback module is used to compare the real-time status of the device of the controlled object with the expected result to determine whether there is a control instruction that is successfully executed. If there is a control instruction that is successfully executed, the execution results of all control instructions in the combined instruction and the real-time status of the vehicle are fed back to the user end.
8. A combined command control vehicle system, It is characterized in that The combined instruction control vehicle system includes the cloud server described in claim 7, and the combined instruction control vehicle system also includes a user end and a vehicle end, and a communication connection is established between the cloud server and the vehicle end; the user end includes a remote vehicle control APP, and the user end is used to select control instructions to form combined instructions, issue combined instructions, and query and display the status of issuing combined instructions. The cloud server is used to receive the combined instructions issued by the user end, track the execution progress and execution results of the combined instructions, and forward the combined instructions to the vehicle end to obtain the device status of the control object of the control instruction on the vehicle end. The vehicle end is used to execute the combined instructions issued by the cloud server and report the real-time status of the vehicle to the cloud server.
9. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, It is characterized in that When the processor executes the computer program, the steps of the method for controlling a vehicle by combined instructions as claimed in any one of claims 1 to 6 are implemented.
10. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.
