Vehicle remote control method, device, equipment, storage medium and program product

By analyzing and comparing the messages of control instructions in the on-board terminal, determining their priority, and interrupting low-priority instructions to execute high-priority instructions, the problems of slow response and inability to execute emergency instructions in the prior art caused by uninterruptible control instructions and the inability to execute emergency instructions in time are solved, and more flexible and efficient vehicle control is achieved.

CN119689910AActive Publication Date: 2025-03-25ROX MOTOR TECH CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202411848014.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-13
Publication Date
2025-03-25
Estimated Expiration
2044-12-13

AI Technical Summary

Technical Problem

In the existing vehicle control technology, the execution mode of the control command is uninterruptible, resulting in the inability to respond to the control commands issued by the user in a timely manner, especially when emergency commands are required, which may lead to vehicle damage.

Method used

By obtaining and parsing messages of control instructions of different priority levels in the vehicle terminal, determining their priority levels, and interrupting the executing control instructions when the control instructions with high priority levels arrive, ensuring that the high priority instructions can be executed in a timely manner.

Benefits of technology

It realizes the flexibly executed control instructions issued by users, improves the speed of the vehicle's response to emergency instructions, reduces the risk of vehicle damage, and improves the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119689910A_ABST
    Figure CN119689910A_ABST
Patent Text Reader

Abstract

The invention discloses a vehicle remote control method and device, equipment, a storage medium and a program product. The method comprises the steps of obtaining a first control instruction and a second control instruction, wherein the first control instruction is a control instruction which is being executed or is received before the second control instruction is received; respectively carrying out message analysis on the first control instruction and the second control instruction to obtain a first message corresponding to the first control instruction and a second message corresponding to the second control instruction; determining priorities of the first control instruction and the second control instruction based on the first message and the second message; when the second priority corresponding to the second control instruction is higher than the first priority corresponding to the first control instruction, interrupting the first control instruction; and executing the second control instruction to obtain an execution result. According to the embodiment of the invention, the execution sequence can be determined for the control instructions with different priorities, so that the control instructions are flexibly executed, and the user experience is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the technical field of vehicle control, and in particular, relates to a vehicle remote control method, device, equipment, storage medium and program product. Background Art

[0002] At present, the execution of control instructions in vehicles adopts an uninterruptible execution mode, that is, the next control instruction can only be executed after the currently executing control instruction is completed; for example, when the owner issues an automatic parking instruction, if the owner issues a shutdown instruction at this time, the automatic parking instruction cannot be terminated immediately. Instead, the shutdown instruction can be executed after the automatic parking instruction is executed.

[0003] In the above-mentioned related technologies, when the current control command is being executed, the control command is not interruptible, resulting in some control commands being unable to respond in time and unable to flexibly execute the control commands issued by the user. At the same time, when emergency commands need to be executed, if other control commands are currently being executed, the emergency commands cannot be executed in time, which may cause damage to the vehicle. Summary of the invention

[0004] The embodiments of the present application provide a vehicle remote control method, apparatus, device, storage medium and program product, which can determine the execution order for control instructions of different priorities, so as to flexibly execute control instructions and improve user experience.

[0005] On the one hand, an embodiment of the present application provides a vehicle remote control method, which is applied to a vehicle terminal and includes:

[0006] Acquire a first control instruction and a second control instruction, where the first control instruction is a control instruction being executed or received before the second control instruction is received;

[0007] Parsing the first control instruction and the second control instruction respectively to obtain a first message corresponding to the first control instruction and a second message corresponding to the second control instruction;

[0008] Determine the priority of the first control instruction and the second control instruction based on the first message and the second message;

[0009] When a second priority level corresponding to the second control instruction is higher than a first priority level corresponding to the first control instruction, interrupting the first control instruction;

[0010] Execute the second control instruction to obtain an execution result.

[0011] Optionally, the vehicle-mounted terminal includes an Internet of Things module, a serial interface module and a processor, the first message includes a first message identification number, and the second message includes a second message identification number;

[0012] The determining, based on the first message and the second message, the priorities of the first control instruction and the second control instruction includes:

[0013] Obtaining the communication types between the Internet of Things module and the serial interface module and the processor respectively;

[0014] When the communication type is a CAN bus type, respectively counting a first value of the first message identification number and a second value of the second message identification number;

[0015] When the second value is less than the first value, determining that the second priority is higher than the first priority;

[0016] In a case where the second value is greater than the first value, it is determined that the second priority is lower than the first priority.

[0017] Optionally, the second message further includes an instruction type used to characterize the second control instruction, and before determining the priority of the first control instruction and the second control instruction based on the first message and the second message, the method further includes:

[0018] Determining whether the instruction type of the second control instruction is a non-interruptible type;

[0019] When the instruction type of the second control instruction is a non-interruptible type, obtaining a first state identifier of the first control instruction;

[0020] determining a first execution state of the first control instruction based on the first state identifier;

[0021] When the first execution status is determined to be an executing status, sending the first execution status to a server;

[0022] When the first execution status is determined to be an execution completed status or an unexecuted status, obtaining a calling status of the first message by the serial interface module;

[0023] When the calling state is calling completed or calling in progress, stopping the serial interface module from calling the first message and deleting the first message;

[0024] Calling the second message to enable the processor to execute the second control instruction;

[0025] In a case where the instruction type of the second control instruction is an interruptible type, the step of determining the priorities of the first control instruction and the second control instruction based on the first message and the second message is performed.

[0026] Optionally, the second control instruction includes multiple stage commands, and the second message includes a third message;

[0027] In a case where the instruction type of the second control instruction is determined to be an interruptible type, and a second priority corresponding to the second control instruction is higher than a first priority corresponding to the first control instruction, executing the second control instruction includes:

[0028] Obtaining the number of interruptions of the second control instruction;

[0029] In the case where the interruption is the first time;

[0030] The third message corresponding to the current stage command is stored in the serial interface module, and the number of interruptions is updated;

[0031] Calling the third message to enable the processor to execute the current stage command;

[0032] After the execution of the multiple stage commands is completed, the execution result of the second control instruction is obtained.

[0033] Optionally, the second message further includes a fourth message, and when the number of interruptions is not the first time, the method further includes:

[0034] Clear the third message of the current stage command stored in the serial interface module;

[0035] After a preset delay period, storing a fourth message corresponding to the next stage command;

[0036] In the serial interface module, the fourth message is called to enable the processor to execute the next stage command and update the number of interruptions.

[0037] Optionally, the first message further includes a first instruction type used to characterize the real-time performance of the first control instruction, the second message further includes a second instruction type used to characterize the real-time performance of the second control instruction, and the determining the priority of the first control instruction and the second control instruction based on the first message and the second message further includes:

[0038] In the case where the first instruction type is determined to be a synchronization instruction, the first priority is higher than the second priority;

[0039] When the second instruction type is determined to be a synchronization instruction, the second priority is higher than the first priority.

[0040] Optionally, obtaining the second control instruction includes:

[0041] The second control instruction is obtained from the cloud server, where the second control instruction is a control instruction triggered in response to an operation of a user on a control terminal.

[0042] On the other hand, an embodiment of the present application provides a vehicle remote control device, the device comprising:

[0043] An acquisition module, configured to acquire a first control instruction and a second control instruction, wherein the first control instruction is a control instruction being executed or received before the second control instruction is received;

[0044] A parsing module, used to perform message parsing on the first control instruction and the second control instruction respectively, to obtain a first message corresponding to the first control instruction and a second message corresponding to the second control instruction;

[0045] A determination module, configured to determine the priority of the first control instruction and the second control instruction based on the first message and the second message;

[0046] An interrupt module, configured to interrupt the first control instruction when a second priority level corresponding to the second control instruction is higher than a first priority level corresponding to the first control instruction;

[0047] An execution module is used to execute the second control task and obtain an execution result.

[0048] In another aspect, an embodiment of the present application provides a vehicle-mounted terminal, the vehicle-mounted terminal comprising: a processor and a memory storing computer program instructions;

[0049] When the processor executes the computer program instructions, the vehicle remote control method as described in the first aspect is implemented.

[0050] On the other hand, an embodiment of the present application provides a computer storage medium, on which computer program instructions are stored. When the computer program instructions are executed by a processor, the vehicle remote control method as described in the first aspect is implemented.

[0051] On the other hand, an embodiment of the present application provides a computer program product. When the instructions in the computer program product are executed by the processor of the vehicle terminal, the vehicle terminal executes the vehicle remote control method as described in the first aspect.

[0052] The vehicle remote control method, apparatus, device, storage medium and program product of the embodiments of the present application can, when the first control instruction and the second control instruction exist in the vehicle terminal at the same time, determine the priority of the first control instruction and the second control instruction to determine the control instruction to be executed. In the vehicle terminal, the priority of the control instruction can be distinguished by the message. Specifically, the first control instruction and the second control instruction can be parsed respectively to obtain the first message and the second message, and then the priority of the first control instruction and the second control instruction can be determined by the first message and the second message. When the second priority of the second control instruction is higher than the first priority of the first control instruction, it indicates that the urgency of the second control instruction is higher than the first control instruction at this time. The terminal executes the first control instruction and then executes the second control instruction to obtain the execution result; that is, by judging the control instructions of different priorities, the execution order is determined to flexibly execute the control instructions and improve the user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0053] In order to more clearly illustrate the technical solution of the embodiments of the present application, the following is a brief introduction to the drawings required for use in the embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.

[0054] Figure 1 is a flow chart of a vehicle remote control method provided by an embodiment of the present application;

[0055] Figure 2 It is a flowchart of a method for determining the priority of a control instruction provided by an embodiment of the present application;

[0056] Figure 3 is a structural schematic diagram of a vehicle remote control device provided by another embodiment of the present application;

[0057] Figure 4 It is a structural diagram of a vehicle-mounted terminal provided in yet another embodiment of the present application. DETAILED DESCRIPTION

[0058] The features and exemplary embodiments of various aspects of the present application will be described in detail below. In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described herein are only intended to explain the present application, rather than to limit the present application. For those skilled in the art, the present application can be implemented without the need for some of these specific details. The following description of the embodiments is only to provide a better understanding of the present application by illustrating the examples of the present application.

[0059] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the statement "include..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.

[0060] In order to solve the problems of the prior art, the embodiments of the present application provide a vehicle remote control method, device, equipment, storage medium and program product. In the embodiments of the present application, when there are a first control instruction and a second control instruction in the vehicle terminal at the same time, it is necessary to judge the priority of the first control instruction and the second control instruction to determine the control instruction to be executed. In the vehicle terminal, the priority of the control instruction can be distinguished by the message. Specifically, the first control instruction and the second control instruction can be parsed respectively to obtain the first message and the second message, and then the priority of the first control instruction and the second control instruction can be determined by the first message and the second message. When the second priority of the second control instruction is higher than the first priority of the first control instruction, it indicates that the urgency of the second control instruction is higher than the first control instruction at this time, the terminal executes the first control instruction, and then executes the second control instruction to obtain the execution result; that is, by judging the control instructions of different priorities, the execution order is determined to flexibly execute the control instructions and improve the user experience.

[0061] The following first introduces the vehicle remote control method provided in the embodiment of the present application.

[0062] Figure 1 FIG. 1 is a flow chart of a vehicle remote control method provided by an embodiment of the present application. Figure 1 As shown, the vehicle remote control method may include S101-S105:

[0063] S101, obtaining a first control instruction and a second control instruction.

[0064] In an embodiment of the present application, in a vehicle-mounted terminal, when a corresponding control instruction is executed through the vehicle-mounted terminal, when the vehicle is not started, the processor can only execute one control instruction. Therefore, if the Internet of Things module in the vehicle-mounted terminal has already stored a first control instruction, if a second control instruction is received, then it is necessary to determine the control instruction that needs to be executed, that is, the first control instruction and the second control instruction can be obtained in the vehicle-mounted terminal.

[0065] As an example, the first control instruction is a control instruction being executed or received before the second control instruction is received, that is, the first control instruction is a control instruction to be executed or being executed by the vehicle terminal before the second control instruction is received.

[0066] It is worth noting that the first control instruction and the second control instruction are commands that the vehicle terminal can control autonomously, such as: automatic parking, remote vehicle search, automatic start and stop, automatic shutdown and unlocking of doors.

[0067] In some other embodiments, obtaining the second control instruction may include:

[0068] A second control instruction is obtained from the cloud server, where the second control instruction is an instruction triggered in response to an operation of a user on the control terminal.

[0069] In this embodiment, the user can issue a second control instruction through the application on the control terminal, the control terminal transmits the second control instruction to the cloud server, and then the cloud server transmits the second control instruction to the vehicle terminal through the network, so that the user can issue the control instruction remotely.

[0070] In some other embodiments, the first control instruction may also be sent by the user through a control terminal, and the transmission method is consistent with that of the second control instruction, which will not be elaborated here.

[0071] S102, respectively parse the first control instruction and the second control instruction to obtain a first message corresponding to the first control instruction and a second message corresponding to the second control instruction.

[0072] In some embodiments, after the vehicle terminal receives the first control instruction and the second control instruction, it is necessary to perform message parsing on the first control instruction and the second control instruction to obtain the first message and the second message to prepare for the subsequent execution of the control instruction.

[0073] S103: Determine priorities of the first control instruction and the second control instruction based on the first message and the second message.

[0074] In some embodiments, the first message includes a first message identification number, and the second message includes a second message identification number. The first message identification number can be used as an identity identifier of the first control instruction, and the second message identification number can be used as an identity identifier of the second control instruction, so that the vehicle-mounted terminal can identify the first control instruction or the second control instruction.

[0075] In some specific embodiments, the vehicle-mounted terminal may include an Internet of Things module, a serial interface module and a processor, and the Internet of Things module and the serial interface module are both connected to the processor, wherein the Internet of Things module can receive control instructions sent by the cloud server, and at the same time, can perform message parsing on the first control instruction and the second control instruction, and the serial interface module can be used to forward the first control instruction or the second control instruction to the processor so that the processor can execute the first control instruction or the second control instruction.

[0076] Reference Figure 2 In some other embodiments, S103 may specifically include:

[0077] S1031, obtaining the communication types between the Internet of Things module and the serial interface module and the processor respectively;

[0078] S1032, when the communication type is a CAN bus type, respectively counting a first value of the first message identification number and a second value of the second message identification number;

[0079] S1033, when the second value is less than the first value, determining that the second priority is higher than the first priority;

[0080] S1034: When the second value is greater than the first value, determine that the second priority is lower than the first priority.

[0081] In some embodiments, in determining the priority of the first control instruction and the second control instruction, it can be determined according to the communication type of the Internet of Things module, the serial interface module and the processor module, that is, for different communication types, the determination rule of the priority of the first control instruction and the second control instruction is determined by the communication type.

[0082] In some specific embodiments, taking the communication type of CAN bus as an example, in CAN bus communication, the priority of each control instruction can be determined by the character length of the first message identification number and the second message identification number.

[0083] Specifically, the first value of the first message identification number and the second value of the second message identification number can be counted, and then the first value and the second value can be compared. In the CAN bus, the smaller the length of the message identification number, the higher the priority. Therefore, when the second value is less than the first value, the second priority of the second control instruction is higher than the first priority of the first control instruction. On the contrary, when the second value is greater than the first value, the first priority is higher than the second priority.

[0084] In addition, it is worth noting that when the first value and the second value are equal, it means that the first control instruction and the second control instruction are at the same priority. At this time, the priority can be determined according to the order of timestamps, that is, the timestamp of the vehicle-mounted terminal receiving the first control instruction is earlier than the timestamp of receiving the second control instruction. At this time, the first priority of the first control instruction is higher than the second priority of the second control instruction.

[0085] In some other embodiments, the communication types of the physical network module, serial port communication module and processor may also adopt other bus types. There are different priority rules for each bus type, which can be determined by referring to the priority rules of the corresponding bus, and will not be elaborated here.

[0086] In some other embodiments, the second message may further include an instruction type used to characterize the second control instruction. Before S103, the method may further include:

[0087] Determining whether the instruction type of the second control instruction is a non-interruptible type;

[0088] When the instruction type of the second control instruction is a non-interruptible type, obtaining a first state identifier of the first control instruction;

[0089] Based on the first state identifier, determining a first execution state of the first control instruction;

[0090] When the first execution status is determined to be the executing status, sending the first execution status to the server;

[0091] When the first execution status is determined to be an execution completed status or an unexecuted status, obtaining a calling status of the serial interface module for the first message;

[0092] When the calling state is calling completed or calling in progress, stopping the serial interface module from calling the first message and deleting the first message;

[0093] Calling the second message to enable the processor to execute the second control instruction;

[0094] When the instruction type of the second control instruction is an interruptible type, S103 is executed.

[0095] In this embodiment, before determining the priorities of the first control instruction and the second control instruction, it is also necessary to determine the instruction type of the second control instruction, and to determine whether the second control instruction can be executed by referring to different instruction types.

[0096] Specifically, in the second message, a variable may be set to characterize the instruction type of the second control instruction. For example, the instruction type may be represented by a variable value in the second message, such as 0 for an interruptible type and 1 for a non-interruptible type.

[0097] When the instruction type of the second control instruction is a non-interruptible type, the first state identifier of the first control instruction can be obtained, and then the first execution state of the first control instruction can be determined based on the first state identifier. For example, in the vehicle-mounted terminal, a variable "Breakflag" can be set in the first message to represent the first execution state of the first control instruction. The value corresponding to Breakflag represents the first execution state, for example, 0 represents an execution state of not being executed or completed, and 1 represents an execution state being executed.

[0098] The first execution state of the first control instruction is determined by identifying the value of the above variable. In some embodiments, when the first control instruction is determined to be in the execution state, the vehicle terminal can send the first execution state to the server, so that the server displays the first execution state to the control terminal and reminds the user of the instruction being executed by the vehicle terminal.

[0099] In some other embodiments, when the first execution status is determined to be completed or not executed, it means that the vehicle-mounted terminal is in an idle period and the first control instruction may not be executed due to delay, so it is also necessary to obtain the calling status of the serial interface module for the first message. When the calling status is determined to be completed or calling, it is necessary to stop the serial interface module from calling the first message, delete the first message, and store the second message in the serial interface module to prepare for the processor to execute the second control instruction.

[0100] In some other embodiments, when the call status is determined to be not called, a busy prompt message is returned to the server.

[0101] In this embodiment, when the instruction type of the second control instruction is an interruptible type, it means that the second control instruction and the first control instruction are both asynchronous commands, and the control instruction to be executed can be determined by judging the priority of the first control instruction and the second control instruction.

[0102] In some other embodiments, when the instruction type of the second control instruction is an interruptible type, the method may further include:

[0103] When the first message identification number and the second message identification number are consistent and the first execution state is being executed, the first state identifier is adjusted to a second state identifier, and the second state identifier is used to indicate that the first execution state corresponding to the first control instruction is a suspended execution state; and / or;

[0104] When the first message identification number and the second message identification number are consistent and the first execution state is a suspended execution state, the second state identifier is adjusted to a third state identifier, and the third state identifier is used to indicate that the first execution state corresponding to the first control instruction is changed from a suspended execution state to a resumed execution state.

[0105] In some other embodiments, the first message further includes a first instruction type for characterizing the real-time performance of the first control instruction, and the second message further includes a second instruction type for characterizing the real-time performance of the second control instruction. S103 may further include:

[0106] In the case where the first instruction type is determined to be a synchronization instruction, the first priority is higher than the second priority;

[0107] In the case where the second instruction type is determined to be a synchronization instruction, the second priority is higher than the first priority.

[0108] In this embodiment, during the process of remote control of the vehicle, the vehicle terminal needs to execute some real-time control instructions to ensure the execution of the remote control.

[0109] Therefore, when determining the priority of the first control instruction and the second control instruction, it is necessary to consider the instruction type of the control instruction. When the first instruction type is a synchronous instruction, it means that the first control instruction needs to be executed in real time, and the vehicle-mounted terminal needs to return the execution result to the control terminal. Therefore, regardless of whether the second instruction type of the second control instruction is a synchronous instruction, the first priority is higher than the second priority.

[0110] It is worth noting that, when the instruction type of the first control instruction is a synchronous instruction, even if the second control instruction is a synchronous instruction, at this time the first priority is higher than the second priority, the first control instruction is executed, and the first control instruction cannot be interrupted.

[0111] Correspondingly, if the first instruction type of the first control instruction is determined to be an asynchronous instruction and the second instruction type of the second control instruction is determined to be a synchronous instruction, the second priority is higher than the first priority. At this time, regardless of whether the first control instruction is executed, an interrupt is required.

[0112] As an example, the control instructions corresponding to the basic functions to ensure the operation of the vehicle can be set as synchronous instructions, and the remaining additional functions can be set as asynchronous instructions. For example, turning off the engine and locking the vehicle can be set as synchronous instructions, and parking and searching for the vehicle can be set as asynchronous instructions.

[0113] In some other embodiments, before S103, the following steps may also be included:

[0114] Counting the length value of the second message identification number;

[0115] When the length value is greater than the preset length, the preset prompt information is transmitted to the server.

[0116] In this embodiment, since the second control instruction may be sent through the cloud server, it may be interfered by noise, which may affect the second message of the second control instruction, causing the length value to be greater than the preset length. At this time, it means that the second control instruction is wrong, and it is necessary to transmit preset prompt information to the server. The preset prompt information is used to prompt that the second control instruction has an error, so as to remind the user.

[0117] S104: When the second priority level corresponding to the second control instruction is higher than the first priority level corresponding to the first control instruction, interrupt the first control instruction.

[0118] In this embodiment, when the second priority is higher than the first priority, it means that the second control instruction needs to be executed at this time, but in order to reduce the impact of the first control instruction on the second control instruction, the first control instruction can be interrupted at this time.

[0119] It is worth noting that no matter which control instruction is executed, the time period from receiving the control instruction to completing the execution of the control instruction can be divided into three stages: preparing for execution, executing, and completing execution. No matter which stage the first control instruction is in among the three stages, the execution of the first control instruction must be interrupted.

[0120] S105, executing the second control instruction to obtain an execution result.

[0121] In some embodiments, after determining the control instruction that needs to be executed, the processor reads the corresponding message to execute the corresponding control instruction. For example, when the second priority of the second control instruction is higher than the priority of the first control instruction, the processor executes the second control instruction and obtains the execution result, and then transmits the execution result to the server through the serial interface module and the physical network module, so that the user can understand the execution result of the control instruction through the control terminal.

[0122] In some other embodiments, the second control instruction may include multiple stage commands, the second message may include a third message, and when the instruction type of the second control instruction is determined to be an interruptible type, and the second priority corresponding to the second control instruction is higher than the first priority corresponding to the first control instruction, S105 may include:

[0123] Obtaining the number of interruptions of the second control instruction;

[0124] In the case where the interruption is the first time;

[0125] The third message corresponding to the current stage command is stored in the serial interface module, and the number of interruptions is updated;

[0126] Calling the third message to enable the processor to execute the current stage command;

[0127] After the execution of the multiple stage commands is completed, the execution result of the second control instruction is obtained.

[0128] In this embodiment, when it is determined that the second control instruction is to be executed, since the second control instruction is a multi-stage command, during the execution of the second control instruction, the execution of the second control instruction can only be indicated as completed after the multi-stage commands are normally executed.

[0129] In some other embodiments, the second message may include a fourth message, and when the number of interruptions is not the first time, the method may further include:

[0130] Clearing the third message of the current stage command stored in the serial interface module;

[0131] After a preset delay period, storing a fourth message corresponding to the next stage command;

[0132] In the serial interface module, the fourth message is called to enable the processor to execute the next stage command and update the number of interruptions.

[0133] In this embodiment, since the second control instruction has multiple stage commands, it is necessary to determine which stage command to execute when executing the second control instruction. In this embodiment, the stage command to be executed can be determined by judging the number of interruptions of the second control instruction.

[0134] It is worth noting that, in the case where the second control instruction includes multiple stage commands, the second message may include a message corresponding to each stage command, that is, when sending the second control instruction, the messages corresponding to the multiple stage commands may be packaged into one second message and sent together to the serial interface module, or the messages corresponding to each stage command may be sent separately.

[0135] For example, with respect to the second control instruction for automatic parking, automatic parking may include three stage commands: start parking, pause parking, and resume parking. When executing the stage command for start parking, the third message corresponding to start parking may be sent separately to execute the stage command for start parking, or the second message corresponding to parking may be directly sent, wherein the second message includes the third message corresponding to start parking, the fourth message corresponding to pause parking, and the fifth message corresponding to resume parking. Then, by responding to the stage command selected by the user, the message consistent with the selected stage command is directly retrieved from the second message to execute the corresponding stage command.

[0136] For example, taking automatic car search as the first control instruction and automatic parking as the second control instruction, when the first control instruction of automatic car search is being executed, the user sends the second control instruction of automatic parking. At this time, it is necessary to interrupt the automatic car search and start executing the automatic parking command.

[0137] In this process, automatic parking can be divided into three stages of commands, namely, start parking, pause parking and resume parking. In the process of executing the first stage command of start parking, since it is the first interruptible command, it is necessary to delete the first message stored in the serial interface module, that is, the first message corresponding to the automatic vehicle search. Then, after a preset delay period, the third message corresponding to start parking is stored. Then, in the serial interface module, the first state identifier is modified to the second state identifier in the second message. The second state identifier is used to indicate the start of the first stage command of the second control instruction. Since the first stage command has been started, the number of interrupts of the second control instruction needs to be updated at this time. For example, the number of interrupts can be adjusted to 2.

[0138] As an example, the preset delay period may be 100 ms, and the initial interruption number of the second control instruction is 1.

[0139] In this embodiment, when executing the first stage command of start parking, the user sends the second stage command of pause parking. At this time, since the number of interruptions is not the first time, it is necessary to interrupt the first stage command of start parking, that is, to clear the third message corresponding to the first stage command of start parking, and then store the fourth message corresponding to the second stage command of pause parking in the serial interface module, update the number of interruptions to 3 times, and call the fourth message at the same time to start executing the pause parking command.

[0140] When executing the pause parking command, the user now issues the third stage command of resuming parking. At this time, since the number of interruptions is 3 times, it is necessary to interrupt the second stage command of pause parking, and then store the fifth message corresponding to resuming parking in the serial interface module, update the number of interruptions to 4 times, and call the message corresponding to resuming parking at the same time, and start executing the command of resuming parking until the automatic parking is completed and the second control instruction is executed, and the execution result corresponding to the successful execution is obtained.

[0141] To facilitate understanding of the above method, a specific example is used for explanation.

[0142] In this example, taking the case where the first control instruction is automatic car search and the second control instruction is automatic parking, the automatic car search instruction and the automatic parking instruction are first obtained. At this time, it is determined whether the format of the second message corresponding to the automatic parking instruction is correct, that is, whether the Buff tag in the format is empty. If it is empty, an invalid format is returned to the user. If it is not empty, it is also necessary to determine whether the length value of the second message identification number is greater than the preset length. If it is greater than the preset length, a preset prompt message is transmitted to the server. If it is not greater than the preset length, the second instruction type of the automatic parking instruction can be determined. If the second instruction type of the automatic parking is a synchronous instruction and the first instruction type of the automatic car search is an asynchronous instruction, it can be determined that the second priority of the automatic parking is higher than the first priority of the automatic car search, and the automatic parking instruction is executed.

[0143] If the second instruction type of automatic parking is an asynchronous instruction and the first instruction type of automatic car search is a synchronous instruction, it is necessary to continue to determine whether the instruction type of automatic parking is an interruptible type. If the instruction type of automatic parking is a non-interruptible type, it is necessary to determine whether the execution status of automatic car search is 1, that is, whether automatic car search is being executed. If automatic car search is being executed, the current command status is sent to the server. If the instruction of automatic car search has been executed or not executed at this time, the calling status of the serial interface module for the first message corresponding to the automatic car search can be obtained. When the calling status is not called, the information that the serial interface module is busy can be returned to the server. When the calling status is completed or calling, the serial interface module stops calling the first message and deletes the first message. Then the serial interface module calls the third message corresponding to the automatic parking so that the processor executes the automatic parking instruction.

[0144] In this example, the execution of the first control instruction or the second control instruction can be determined by the instruction type. After determining the control instruction to be executed by the instruction type, it is also necessary to determine the priority of the second control instruction and the first control instruction. If the second priority of automatic parking is lower than the first priority of automatic car search, the command priority of automatic parking is returned to the server at this time, and the control instruction of automatic car search continues to be executed. In this example, the second priority of automatic parking is set higher than the first priority of automatic car search.

[0145] In the case where it is determined that the second priority of automatic parking is higher than the first priority of automatic vehicle search, it can be determined that the control instruction of automatic parking is to be executed.

[0146] In the process of executing the control command of automatic parking, since automatic parking can be divided into three stage commands of starting parking, pausing parking and resuming parking, when executing automatic parking, the number of interruptions of automatic parking can be obtained to determine which stage command is currently executed. For example, the number of interruptions corresponding to driving parking is 1, which is the first interruption. At this time, it is necessary to delete the first message corresponding to automatic car search, and then store the third message corresponding to starting parking in the serial interface module to execute the command of starting parking, and update the number of interruptions to 2. In the case of executing the control command of starting parking, the user issues the stage command of pausing parking. Since the number of interruptions is not the first time, it is necessary to interrupt the execution of the stage command of starting parking, and store the fourth message corresponding to pausing parking in the serial interface module to execute the stage command of pausing parking; in the process of executing the stage command of pausing parking, the user issues the stage command of resuming parking. At this time, the execution of the stage command of pausing parking can be interrupted, and then the fifth message corresponding to resuming parking is stored in the serial interface module to execute the stage command of resuming parking, until parking is completed, the execution of the second control command is completed, and the execution result is obtained.

[0147] Reference Figure 3 The embodiment of the present application further provides a vehicle remote control device, which may include:

[0148] An acquisition module 301 is used to acquire a first control instruction and a second control instruction, where the first control instruction is a control instruction being executed or received before the second control instruction is received;

[0149] The parsing module 302 is used to parse the first control instruction and the second control instruction respectively to obtain a first message corresponding to the first control instruction and a second message corresponding to the second control instruction;

[0150] A determination module 303, configured to determine the priority of the first control instruction and the second control instruction based on the first message and the second message;

[0151] An interrupt module 304, configured to interrupt the first control instruction when a second priority level corresponding to the second control instruction is higher than a first priority level corresponding to the first control instruction;

[0152] The execution module 305 is used to execute the second control task and obtain an execution result.

[0153] As an optional implementation manner, the vehicle terminal includes an Internet of Things module, a serial interface module and a processor, the first message includes a first message identification number, and the second message includes a second message identification number; the determination module 303 can be specifically used to:

[0154] Determining priorities of the first control instruction and the second control instruction based on the first message and the second message includes:

[0155] Obtain the communication types between the IoT module and the serial interface module and the processor respectively;

[0156] When the communication type is a CAN bus type, respectively counting a first value of the first message identification number and a second value of the second message identification number;

[0157] When the second value is less than the first value, determining that the second priority is higher than the first priority;

[0158] In the case where the second value is greater than the first value, it is determined that the second priority is lower than the first priority.

[0159] As an optional implementation manner, the second message further includes an instruction type used to characterize the second control instruction, and the determination module 303 may be specifically used to:

[0160] When the instruction type is a non-interruptible type, obtaining a first state identifier of the first control instruction;

[0161] Based on the first state identifier, determining a first execution state of the first control instruction;

[0162] When the first execution status is determined to be the executing status, sending the first execution status to the server;

[0163] When the first execution status is determined to be an execution completed status or an unexecuted status, obtaining a calling status of the serial interface module for the first message;

[0164] When the calling state is calling completed or calling in progress, stopping the serial interface module from calling the first message and deleting the first message;

[0165] The second message is called to enable the processor to execute the second control instruction.

[0166] As an optional implementation manner, the second control instruction includes multiple stage commands, and the second message includes a third message; when the instruction type of the second control instruction is determined to be an interruptible type, and the second priority corresponding to the second control instruction is higher than the first priority corresponding to the first control instruction, the execution module 305 can be specifically used to:

[0167] Obtaining the number of interruptions of the second control instruction;

[0168] When the number of interruptions is the first time, the third message corresponding to the command of the current stage is stored in the serial interface module, and the number of interruptions is updated;

[0169] Calling the third message to make the processor execute the current stage command;

[0170] After the execution of multiple stage commands is completed, the execution result of the second control instruction is obtained.

[0171] As an optional implementation manner, the second message further includes a fourth message, and the execution module 305 may also be specifically configured to:

[0172] Clear the third message of the current stage command stored in the serial interface module;

[0173] After a preset delay period, storing a fourth message corresponding to the next stage command;

[0174] In the serial interface module, the fourth message is called to enable the processor to execute the next stage command and update the interruption number.

[0175] As an optional implementation manner, the first message further includes a first instruction type for characterizing the real-time performance of the first control instruction, and the second message further includes a second instruction type for characterizing the real-time performance of the second control instruction. The determination module 303 may be specifically used to:

[0176] In the case where the first instruction type is determined to be a synchronization instruction, the first priority is higher than the second priority;

[0177] In the case where the second instruction type is determined to be a synchronization instruction, the second priority is higher than the first priority.

[0178] As an optional implementation, the acquisition module 301 may be specifically used for:

[0179] A second control instruction is obtained from the cloud server, where the second control instruction is a control instruction triggered in response to an operation of a user on the control terminal.

[0180] As an optional implementation manner, the determination module 303 may be specifically configured to:

[0181] Counting the length value of the second message identification number;

[0182] When the length value is greater than a preset length, a preset prompt message is transmitted to the server, where the preset prompt message is used to prompt that an error occurs in the second control instruction.

[0183] Figure 4 A schematic diagram of the hardware structure of the vehicle-mounted terminal provided in an embodiment of the present application is shown.

[0184] The vehicle-mounted terminal may include a processor 401 and a memory 402 storing computer program instructions.

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

[0186] The memory 402 may include a large capacity memory for data or instructions. By way of example and not limitation, the memory 502 may include a hard disk drive (HDD), a floppy disk drive, a flash memory, an optical disk, a magneto-optical disk, a magnetic tape, or a universal serial bus (USB) drive or a combination of two or more of these. In one example, the memory 402 may include a removable or non-removable (or fixed) medium, or the memory 402 is a non-volatile solid-state memory. The memory 402 may be inside or outside the integrated gateway disaster recovery device.

[0187] In one example, the memory 402 may be a read-only memory (ROM). In one example, the ROM may be a mask-programmed ROM, a programmable ROM (PROM), an erasable PROM (EPROM), an electrically erasable PROM (EEPROM), an electrically rewritable ROM (EAROM), or a flash memory, or a combination of two or more of these.

[0188] The memory 402 may include a read-only memory (ROM), a random access memory (RAM), a magnetic disk storage medium device, an optical storage medium device, a flash memory device, an electrical, optical or other physical / tangible memory storage device. Thus, typically, the memory includes one or more tangible (non-transitory) computer-readable storage media (e.g., a memory device) encoded with software including computer-executable instructions, and when the software is executed (e.g., by one or more processors), it is operable to perform the operations described with reference to the vehicle remote control method according to the first aspect of the present disclosure.

[0189] The processor 401 reads and executes the computer program instructions stored in the memory 402 to implement Figure 1 A vehicle remote control method in the illustrated embodiment.

[0190] In one example, the vehicle terminal may further include a communication interface 403 and a bus 404. Figure 4 As shown, the processor 401, the memory 402, and the communication interface 403 are connected via a bus 404 and communicate with each other.

[0191] The communication interface 403 is mainly used to implement communication between various modules, devices, units and / or equipment in the embodiments of the present application.

[0192] Bus 404 includes hardware, software or both, and the components of the vehicle-mounted terminal are coupled to each other. For example, but not limitation, bus may include accelerated graphics port (Accelerated Graphics Port, AGP) or other graphics bus, enhanced industry standard architecture (Extended Industry Standard Architecture, EISA) bus, front side bus (Front Side Bus, FSB), Hyper Transport (Hyper Transport, HT) interconnection, industry standard architecture (Industry Standard Architecture, ISA) bus, infinite bandwidth interconnection, low pin count (LPC) bus, memory bus, micro channel architecture (MCA) bus, peripheral component interconnection (PCI) bus, PCI-Express (PCI-X) bus, serial advanced technology attachment (SATA) bus, video electronics standard association local (VLB) bus or other suitable bus or two or more of these combinations. In appropriate cases, bus 404 may include one or more buses. Although the present application embodiment describes and shows a specific bus, the application considers any suitable bus or interconnection.

[0193] The vehicle terminal can execute the vehicle remote control method in the embodiment of the present application, thereby realizing the combination Figure 1-Figure 3 A vehicle remote control method and device are described.

[0194] In addition, in combination with the vehicle remote control method in the above embodiments, the present application embodiment can provide a computer storage medium to implement. The computer storage medium stores computer program instructions; when the computer program instructions are executed by a processor, any one of the vehicle remote control methods in the above embodiments is implemented.

[0195] In an optional embodiment, in combination with the vehicle remote control method in the above embodiments, the embodiment of the present application can provide a computer program product for implementation, and the instructions in the computer program product are executed by the processor of the vehicle terminal, so that the vehicle terminal can implement any one of the vehicle remote control methods in the above embodiments.

[0196] It should be clear that the present application is not limited to the specific configuration and processing described above and shown in the figures. For the sake of simplicity, a detailed description of the known method is omitted here. In the above embodiments, several specific steps are described and shown as examples. However, the method process of the present application is not limited to the specific steps described and shown, and those skilled in the art can make various changes, modifications and additions, or change the order between the steps after understanding the spirit of the present application.

[0197] The functional blocks shown in the above block diagram can be implemented as hardware, software, firmware or a combination thereof. When implemented in hardware, it can be, for example, an electronic circuit, an application specific integrated circuit (ASIC), appropriate firmware, a plug-in, a function card, etc. When implemented in software, the elements of the present application are programs or code segments that are used to perform the required tasks. The program or code segment can be stored in a machine-readable medium, or transmitted on a transmission medium or a communication link by a data signal carried in a carrier wave. "Machine-readable medium" can include any medium capable of storing or transmitting information. Examples of machine-readable media include electronic circuits, semiconductor memory devices, ROM, flash memory, erasable ROM (EROM), floppy disks, CD-ROMs, optical disks, hard disks, optical fiber media, radio frequency (RF) links, etc. The code segment can be downloaded via a computer network such as the Internet, an intranet, etc.

[0198] It should also be noted that the exemplary embodiments mentioned in this application describe some methods or systems based on a series of steps or devices. However, this application is not limited to the order of the above steps, that is, the steps can be performed in the order mentioned in the embodiment, or in a different order from the embodiment, or several steps can be performed simultaneously.

[0199] Aspects of the present disclosure are described above with reference to the flowchart and / or block diagram of the method, device (system) and computer program product according to the embodiment of the present disclosure. It should be understood that each box in the flowchart and / or block diagram and the combination of each box in the flowchart and / or block diagram can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device to produce a machine so that these instructions executed by the processor of the computer or other programmable data processing device enable the implementation of the function / action specified in one or more boxes of the flowchart and / or block diagram. Such a processor can be, but is not limited to, a general-purpose processor, a special-purpose processor, a special application processor, or a field programmable logic circuit. It can also be understood that each box in the block diagram and / or flowchart and the combination of boxes in the block diagram and / or flowchart can also be implemented by dedicated hardware that performs a specified function or action, or can be implemented by a combination of dedicated hardware and computer instructions.

[0200] The above are only specific implementation methods of the present application. Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working processes of the systems, modules and units described above can refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here. It should be understood that the protection scope of the present application is not limited to this. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed in this application, and these modifications or replacements should be included in the protection scope of this application.

Claims

1. A vehicle remote control method, characterized in that: Applied to vehicle terminals, including: Acquire a first control instruction and a second control instruction, where the first control instruction is a control instruction being executed or received before the second control instruction is received; Parsing the first control instruction and the second control instruction respectively to obtain a first message corresponding to the first control instruction and a second message corresponding to the second control instruction; Determine the priority of the first control instruction and the second control instruction based on the first message and the second message; When a second priority level corresponding to the second control instruction is higher than a first priority level corresponding to the first control instruction, interrupting the first control instruction; Execute the second control instruction to obtain an execution result.

2. The method according to claim 1, characterized in that The vehicle-mounted terminal includes an Internet of Things module, a serial interface module and a processor, the first message includes a first message identification number, and the second message includes a second message identification number; The determining, based on the first message and the second message, the priorities of the first control instruction and the second control instruction includes: Obtaining the communication types between the Internet of Things module and the serial interface module and the processor respectively; In the case where the communication type is a CAN bus type, respectively determining a first value of the first message identification number and a second value of the second message identification number; When the second value is less than the first value, determining that the second priority is higher than the first priority; In a case where the second value is greater than the first value, it is determined that the second priority is lower than the first priority.

3. The method according to claim 2, characterized in that The second message also includes an instruction type used to characterize the second control instruction. Before determining the priorities of the first control instruction and the second control instruction based on the first message and the second message, the method also includes: Determining whether the instruction type of the second control instruction is a non-interruptible type; When the instruction type of the second control instruction is a non-interruptible type, obtaining a first state identifier of the first control instruction; determining a first execution state of the first control instruction based on the first state identifier; When the first execution status is determined to be an executing status, sending the first execution status to a server; When the first execution status is determined to be an execution completed status or an unexecuted status, obtaining a calling status of the first message by the serial interface module; When the calling state is calling completed or calling in progress, stopping the serial interface module from calling the first message and deleting the first message; Calling the second message to enable the processor to execute the second control instruction; In a case where the instruction type of the second control instruction is an interruptible type, the step of determining the priorities of the first control instruction and the second control instruction based on the first message and the second message is performed.

4. The method according to claim 3, characterized in that The second control instruction includes a plurality of stage commands, and the second message includes a third message; In a case where the instruction type of the second control instruction is determined to be an interruptible type, and a second priority corresponding to the second control instruction is higher than a first priority corresponding to the first control instruction, executing the second control instruction includes: Obtaining the number of interruptions of the second control instruction; When the number of interruptions is the first time, storing the third message corresponding to the command of the current stage into the serial interface module, and updating the number of interruptions; Calling the third message to enable the processor to execute the current stage command; After the execution of the multiple stage commands is completed, the execution result of the second control instruction is obtained.

5. The method according to claim 4, characterized in that The second message also includes a fourth message, and when the number of interruptions is not the first time, the method further includes: Clear the third message of the current stage command stored in the serial interface module; After a preset delay period, storing a fourth message corresponding to the next stage command; In the serial interface module, the fourth message is called to enable the processor to execute the next stage command and update the number of interruptions.

6. The method according to claim 2, characterized in that The first message further includes a first instruction type for characterizing the real-time performance of the first control instruction, the second message further includes a second instruction type for characterizing the real-time performance of the second control instruction, and the determining the priority of the first control instruction and the second control instruction based on the first message and the second message further includes: In the case where the first instruction type is determined to be a synchronization instruction, the first priority is higher than the second priority; When the second instruction type is determined to be a synchronization instruction, the second priority is higher than the first priority.

7. The method according to claim 1, characterized in that Obtain the second control instruction, including: The second control instruction is obtained from the cloud server, where the second control instruction is a control instruction triggered in response to an operation of a user on a control terminal.

8. A vehicle remote control device, characterized in that: The device comprises: An acquisition module, configured to acquire a first control instruction and a second control instruction, wherein the first control instruction is a control instruction being executed or received before the second control instruction is received; A parsing module, used to perform message parsing on the first control instruction and the second control instruction respectively, to obtain a first message corresponding to the first control instruction and a second message corresponding to the second control instruction; A determination module, configured to determine the priority of the first control instruction and the second control instruction based on the first message and the second message; An interrupt module, configured to interrupt the first control instruction when a second priority level corresponding to the second control instruction is higher than a first priority level corresponding to the first control instruction; An execution module is used to execute the second control task and obtain an execution result.

9. A vehicle-mounted terminal, characterized in that: The vehicle-mounted terminal includes: a processor and a memory storing computer program instructions; When the processor executes the computer program instructions, the vehicle remote control method according to any one of claims 1 to 7 is implemented.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer program instructions, and when the computer program instructions are executed by a processor, the vehicle remote control method according to any one of claims 1 to 7 is implemented.

11. A computer program product, characterized in that When the instructions in the computer program product are executed by the processor of the vehicle terminal, the vehicle terminal executes the vehicle remote control method as claimed in any one of claims 1 to 7.

Citation Information

Patent Citations

  • Instruction processing method of vehicle

    CN108710506A

  • Service message processing method, system and equipment and storage medium

    CN114448865A

  • Hardware interface signal generation method and device and electronic equipment

    CN116848519A

  • Vehicle diagnosis method and system and storage medium

    CN117389254A

  • Control method and device

    CN118732615A