Vehicle control method and device based on macro instruction and storage medium

Through the macro-controlled vehicle control method, recording and automatically executing macro-control sequences, the problem of lack of personalization of vehicle control strategies in the prior art is solved, personalized vehicle operation strategies are realized, and the convenience and safety of vehicle control are improved. sex.

CN119473393APending Publication Date: 2025-02-18江苏开沃汽车有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411616204.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-13
Publication Date
2025-02-18

AI Technical Summary

Technical Problem

In the prior art, vehicle control strategies lack personalization and cannot meet the differentiated needs of various users.

Method used

A vehicle control method based on macrosense is adopted to realize personalized vehicle operation strategies by recording and automatically executing macrosequences. The method includes activating the recording mode, forming a macro command sequence, judging to activate the macro function and responding to a user triggering operation to automatically control the vehicle.

Benefits of technology

It realizes personalized vehicle operation strategies to meet the needs of different users and improves the convenience and safety of vehicle control.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119473393A_ABST
    Figure CN119473393A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of vehicle control, in particular to a vehicle control method and device based on a macro instruction and a storage medium. The method comprises the steps of starting a recording mode in response to a recording operation on a macro instruction; the control instructions of the vehicle form a macro instruction sequence according to a time sequence; according to the current state of the vehicle and the current environment of the vehicle, whether a macro function is activated or not is judged; if the macro function is activated, the vehicle is controlled according to the macro instruction sequence in response to the triggering operation of the user on the macro instruction sequence, and a personalized vehicle operation strategy can be provided.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of vehicle control technology, and in particular to a vehicle control method, device and storage medium based on macro instructions. Background Art

[0002] With the rapid development of vehicle technology, vehicle systems and smart cockpits can be controlled according to user preferences. For example, the temperature of the air conditioner can be adjusted through the large car screen and the vehicle steering can be controlled by turning the steering wheel.

[0003] At present, the control strategy of vehicles is showing a trend of being more convenient and easier. Taking the control of the steering wheel as an example, the early automobile steering wheel was mainly a simple mechanical structure, and its basic principle was to directly connect to the steering mechanism of the front axle through the steering column. This mechanical connection method allows the driver to directly control the steering of the wheel. With the development of the automobile industry, in order to make driving easier, the hydraulic power steering system was born. It adds a hydraulic device between the steering wheel and the steering mechanism, and assists the driver in steering through hydraulic oil. When the driver turns the steering wheel, the hydraulic pump will provide assistance to reduce the force required to turn the steering wheel, especially in low-speed operations such as parking. Now, the electronic power steering system (EPS) is becoming more and more popular. It is provided by the motor to provide steering assistance, and the steering angle and torque of the steering wheel are sensed by the sensor. The size of the motor assistance is accurately controlled by the electronic control unit (ECU) according to factors such as vehicle speed and driving mode. This technology can not only further reduce driving fatigue, but also better adapt to different driving scenarios and the needs of automatic driving assistance systems.

[0004] At present, many control strategies or control methods are set when the vehicle leaves the factory, which makes the vehicle control strategy lack personalization and cannot meet the differentiated needs of various users.

[0005] In view of this, the present invention is proposed. Summary of the invention

[0006] The object of the present invention is to provide a vehicle control method, device and storage medium based on macro instructions to provide personalized vehicle operation strategy.

[0007] In order to achieve the above object, the present invention adopts the following technical solutions: In a first aspect, the present invention provides a vehicle control method based on macro instructions, comprising: In response to a recording operation of the macro instruction, starting a recording mode; The control instructions for the vehicle are formed into a macro instruction sequence in time sequence; Determining whether to activate a macro function according to the current state of the vehicle and the current environment in which the vehicle is located; If the macro function is activated, the vehicle is controlled according to the macro instruction sequence in response to a triggering operation of the macro instruction sequence by the user.

[0008] In a second aspect, the present invention provides an electronic device, comprising: at least one processor, and a memory communicatively coupled to at least one of the processors; The memory stores instructions that can be executed by at least one of the processors, and the instructions are executed by at least one of the processors so that at least one of the processors can execute the above-mentioned macro-instruction-based vehicle control method.

[0009] In a third aspect, the present invention provides a computer-readable storage medium having computer instructions stored thereon, wherein the computer instructions are used to enable the computer to execute the above-mentioned macro-instruction-based vehicle control method.

[0010] Compared with the prior art, the present invention has the following beneficial effects: The present invention innovatively applies the recording and automatic execution of macro instructions to vehicles. Specifically, a macro instruction is recorded on the vehicle and a recording mode is started. The control instructions for the vehicle are formed into a macro instruction sequence in chronological order to complete the recording of the macro instructions. In subsequent use, firstly, it is determined whether to activate the macro function based on the current state of the vehicle and the current environment in which the vehicle is located, that is, it is determined whether the execution of the macro instruction is allowed based on the vehicle itself and the external environmental conditions, so as to improve the safety during the execution of the macro instruction and avoid misoperation; if the macro function is activated, it will respond to the user's triggering operation on the macro instruction sequence and control the vehicle according to the macro instruction sequence, that is, no user operation is required, and the vehicle is automatically controlled according to the recorded macro instruction sequence. By recording and operating macro instructions, the present invention can record the user's personalized operations and meet the personalized control needs of the vehicle. BRIEF DESCRIPTION OF THE DRAWINGS

[0011] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0012] Figure 1 It is a flow chart of a vehicle control method based on macro instructions provided by the present invention; Figure 2 is a flow chart of another macro-instruction-based vehicle control method provided by the present invention; Figure 3This is a flow chart of another vehicle control method based on macro instructions provided by the present invention. Figure 4 It is a schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0013] The following is a description of exemplary embodiments of the present application in conjunction with the accompanying drawings, including various details of the embodiments of the present application to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications can be made to the embodiments described herein without departing from the scope and spirit of the present application. Similarly, for the sake of clarity and conciseness, the description of well-known functions and structures is omitted in the following description.

[0014] The present invention is further described in detail below with reference to the embodiments.

[0015] Example 1 Figure 1 It is a flow chart of a macro-instruction-based vehicle control method provided by the present invention. This embodiment is applicable to vehicles with power drive, steering and intelligent cockpit, and is not limited to energy type. It can be a fuel vehicle or a new energy vehicle; the vehicle can have an automatic driving function or not.

[0016] The vehicle in this embodiment has the functions of recording, editing and executing macro instructions. Specifically, the macro software is pre-installed in the electronic device (which can be a vehicle controller or other external controller), and the macro software can call the signal transmission interface of the vehicle controlled object controller, and can read the state and control instructions of the controlled object from the controller of the controlled object via the signal transmission interface; and the macro software records the control instructions received by the controlled object, and after responding to the user's triggering operation on the macro instruction sequence, sends the macro instruction sequence to the controller of the controlled object in time sequence to apply commands to the controlled object so that the passive object acts according to the macro instruction sequence. The macro software can also obtain the collected data of the vehicle sensor from the vehicle controller to obtain the current state of the vehicle and the current environment in which the vehicle is located, and judge whether to activate the macro function. In this embodiment, the controlled objects of the vehicle include but are not limited to steering wheels, windows, seats and air conditioners. Vehicle sensors include but are not limited to speed sensors, positioning devices, cameras and radars.

[0017] It should be noted that the method provided in this embodiment is executed by an electronic device, which reads the control instructions of the controlled object through the vehicle network communication, and transmits the control instructions to the controller of the controlled object, such as the air conditioning controller, the seat controller and the electronic control unit of the steering wheel, through the vehicle network communication. In the case of multiple controlled objects, the controllers of the controlled objects can be integrated into a domain controller, or a distributed mode can be adopted. This embodiment can be applied to vehicles with various controller layouts. It only needs to pre-write the physical address of the controller of the controlled object into the electronic device, so that the macro software in the electronic device can access the controller of the controlled object according to the physical address.

[0018] like Figure 1 As shown, this embodiment provides a vehicle control method based on macro instructions, comprising the following steps: S110 . In response to a recording operation on a macro instruction, a recording mode is started.

[0019] A recording button is set on an electronic device, a certain location of a vehicle, or a large screen on the vehicle. When a user needs to record a macro, he clicks or touches the recording button. Then the macro software responds to the recording operation of the macro instruction and starts the recording mode, that is, starting from the current time t0, the control instruction of the vehicle is recorded.

[0020] Optionally, since there are many control commands for the vehicle, in order to distinguish different commands and avoid recording unnecessary commands. In this embodiment, multiple recording buttons can be preset, and each recording button corresponds to a different type of control command. For example, recording button 1 is used to record steering wheel control commands and vehicle speed control commands, and recording button 2 is used to record control commands for smart cockpits or electronic appliances. Users can also edit the correspondence between recording buttons and control command types.

[0021] S120, forming a macro instruction sequence according to the time sequence of the control instructions for the vehicle.

[0022] The macro software reads the control instructions by accessing the controller of the controlled object. Each control instruction carries a timestamp. Each macro instruction is recorded in chronological order and forms a macro instruction sequence (including the content of the macro instruction and the interval time between macro instructions obtained by subtracting the timestamps). For example, turn the steering wheel 2 degrees to the left, and turn the steering wheel 3 degrees to the left after 0.5s.

[0023] In response to the user clicking or touching the record button again, the recording operation is stopped and the recording mode is exited. The content of the macro sequence is displayed on the in-vehicle large screen, and the user clicks the OK button to save the recorded macro sequence. The user can also name the macro sequence on the in-vehicle large screen, such as a steering wheel control sequence.

[0024] Optionally, after S120, the macro instruction sequence can also be adjusted in sequence, delay and trigger operation. For example, after the user presses the recording button 1, the steering wheel control instruction and the vehicle speed control instruction are recorded to form a macro instruction sequence 1. The order of each macro instruction in the macro instruction sequence 1 is adjusted through the vehicle-mounted large screen, the delay between the macro instructions and the delay before the first macro instruction are adjusted, and the trigger operation of the macro instruction sequence is adjusted. For example, the macro instruction sequence 1 includes: turn the steering wheel 2 degrees to the left, turn the steering wheel 3 degrees to the left after 0.5s, and turn the steering wheel 2 degrees to the right after 0.2s. After the delay and sequence adjustment, the steering wheel can be turned 3 degrees to the left first, the steering wheel can be turned 2 degrees to the left after 0.2s, and the steering wheel can be turned 2 degrees to the right after 1s. The trigger operation includes the trigger operation of the macro button, the touch operation of the macro button icon on the vehicle-mounted large screen, the setting of gestures or the setting of voice. The user can choose the appropriate trigger operation according to his or her preferences and the functional configuration supported by the vehicle.

[0025] S130: Determine whether to activate the macro function according to the current state of the vehicle and the current environment in which the vehicle is located.

[0026] The current state of the vehicle includes, but is not limited to, the vehicle's power on and off state, energy (fuel / power) state, driving state, and gear state. The current environment of the vehicle includes, but is not limited to, the vehicle's road environment and the vehicle's non-road environment. The vehicle's road environment includes traffic lights, lane lines, obstacles on the road, etc. The vehicle's non-road environment includes buildings, weather, air, trees, green belts, etc.

[0027] The macro software obtains the collected data of the vehicle sensors from the vehicle controller to obtain the current state of the vehicle and the current environment the vehicle is in. For example, the image in front of the vehicle taken by the camera can be used to identify information such as traffic lights, lane lines, obstacles, etc.

[0028] The macro function is a function for automatically executing a macro sequence. The controller of the controlled object will execute in sequence according to the macro sequence. In order to improve the safety of control and avoid accidents. It is necessary to judge whether the activation conditions of a macro sequence are met, that is, whether to activate the macro function, based on the current state of the vehicle and the current environment of the vehicle. If the activation conditions of a macro sequence are met, the macro function provided by the macro sequence is in an activated state, allowing the user to trigger the macro sequence; otherwise, the macro function is not activated, and even if the user triggers the macro sequence, the vehicle cannot be automatically controlled.

[0029] S140: If the macro function is activated, in response to a triggering operation of a macro instruction sequence by a user, the vehicle is controlled according to the macro instruction sequence.

[0030] When the user triggers a macro button (which can be set on the steering wheel or hand gear), touches the macro button icon on the vehicle's large screen, makes a set gesture (such as a grasping gesture), or issues a set voice (such as "execute steering wheel macro"), the macro software will send the macro command sequence to the controller of the controlled object and control the vehicle according to the macro command sequence.

[0031] The present invention innovatively applies the recording and automatic execution of macro instructions to vehicles. Specifically, a macro instruction is recorded on the vehicle and a recording mode is started. The control instructions for the vehicle are formed into a macro instruction sequence in chronological order to complete the recording of the macro instructions. In subsequent use, firstly, it is determined whether to activate the macro function based on the current state of the vehicle and the current environment in which the vehicle is located, that is, it is determined whether the execution of the macro instruction is allowed based on the vehicle itself and the external environmental conditions, so as to improve the safety during the execution of the macro instruction and avoid misoperation; if the macro function is activated, it will respond to the user's triggering operation on the macro instruction sequence and control the vehicle according to the macro instruction sequence, that is, no user operation is required, and the vehicle is automatically controlled according to the recorded macro instruction sequence. By recording and operating macro instructions, the present invention can record the user's personalized operations and meet the personalized control needs of the vehicle.

[0032] Example 2 This embodiment is applicable to the automatic control scenario of the steering wheel. Figure 2 , the method provided in this embodiment includes the following operations: S210: Adjust the steering sensitivity of the steering wheel through the in-vehicle large screen or the portable terminal.

[0033] The portable terminal can be a mobile phone or a tablet computer, which is connected to the vehicle computer for communication.

[0034] Steering sensitivity refers to the proportional relationship between the steering wheel rotation angle and the wheel rotation angle. When the steering wheel rotates, the sensor senses the steering angle and torque of the steering wheel and generates a digital electronic signal to transmit to the steering driver of the steering wheel. After a series of processing, the steering driver transmits the signal to the electronic control unit of the steering wheel. The electronic control unit accurately controls the size of the motor power to achieve the change of direction. Output different wheel steering force signals to drive the wheels to rotate at different amplitudes. Based on this, users can set the steering sensitivity of the steering wheel on a portable terminal or a large screen on the vehicle, and write the steering sensitivity into the steering driver of the steering wheel. The steering driver calculates the steering angle of the target after sensitivity conversion based on the sensitivity and the steering angle of the steering wheel. Then the electronic control unit of the steering wheel outputs the corresponding motor power and wheel steering force according to the steering angle of the target.

[0035] In actual application scenarios, if the user finds it troublesome to turn the steering wheel one and a half turns for the maximum steering range, the user can increase the sensitivity so that the steering wheel only needs to be turned at a smaller angle to achieve the maximum steering range (i.e., the steering angle of the steering wheel with a smaller steering range); if the user prefers to turn the steering wheel at a larger angle to achieve steering, or needs to turn a small range more accurately, the user can lower the sensitivity to achieve it. Different users have different preferences, and the needs of different users can be met by adjusting the sensitivity independently.

[0036] S220: In response to the recording operation of the macro instruction, start the recording mode.

[0037] S230, forming a macro instruction sequence according to the time sequence of the control instructions of the steering angle of the vehicle steering wheel.

[0038] S240: The steering sensitivity of the steering wheel during the recording operation and the environment in which the vehicle is located are used as auxiliary information of the macro instruction sequence.

[0039] The steering sensitivity and the vehicle's environment are the "environment" of the macro instruction sequence, which is used to determine whether the macro function is activated and to convert the steering angle. The vehicle's environment includes the vehicle's road environment and the vehicle's non-road environment.

[0040] S250: Collect the current state of the vehicle and the current road environment in which the vehicle is located.

[0041] The vehicle speed, gear position and other information are collected through on-board sensors to determine whether the vehicle is in driving state.

[0042] Information such as traffic lights, lane lines, and obstacle distances in front of the vehicle is collected through cameras, radars, and positioning systems.

[0043] S260: If the vehicle is in a driving state and the current road environment of the vehicle is consistent with the road environment of the vehicle in the auxiliary information, activate the macro function.

[0044] In a specific implementation, the current road environment of the vehicle includes: the signal light state is green, the lane is a left turn lane, the intersection is located at longitude s, latitude n, and there is no obstacle ahead. It can be seen that the current road meets the left turn requirement. After comparison, it is found that the current road environment of the vehicle is consistent with the road environment of the vehicle in the auxiliary information, and the macro function is activated.

[0045] If the vehicle is in a parked state, or the current road environment of the vehicle is inconsistent with the road environment of the vehicle in the auxiliary information (for example, the lanes are inconsistent, the traffic lights are inconsistent, or the intersection positioning is inconsistent), the operation is terminated.

[0046] S270: Collect the current non-road environment of the vehicle.

[0047] Environmental images are collected through the on-board camera, and non-road factors are identified from the environmental images, including but not limited to buildings, weather (rain, snow, etc.), air (smog, visibility), trees, green belts, etc.

[0048] S280, calculating the difference between the current non-road environment of the vehicle and the non-road environment of the vehicle in the auxiliary information; if the difference is greater than a set threshold, adding a delay before the macro instruction sequence; if the current steering sensitivity of the steering wheel is inconsistent with the steering sensitivity in the auxiliary information, correcting the macro instruction sequence according to the current steering sensitivity of the steering wheel.

[0049] Although the non-road environment does not directly affect the passage of vehicles, it may change the turning strategy. For example, when a building is added to the roadside, the user may change the previous left turn strategy. When the roadside green belt changes, a new road may appear, and the user may turn to the new road. Based on this, a delay is added before the macro instruction sequence (that is, before the first macro instruction), for example, 2s or 3s, to give the user a certain amount of time to choose whether to continue using the macro instruction sequence.

[0050] Specifically, the non-road factors in the current non-road environment where the vehicle is located are compared with the non-road factors in the non-road environment where the vehicle is located in the auxiliary information, and the number of non-road factors in different positions and different types is counted as the difference. If the difference exceeds 5 (i.e., the set threshold), a delay is added before the macro instruction sequence (i.e., before the first macro instruction). If the difference is less than the set threshold, no delay is added.

[0051] If the current steering sensitivity of the steering wheel is 8:1, which is different from the sensitivity of 7:1 in the auxiliary information, the steering angle in the macro instruction sequence is corrected to 8:1. For example, if the macro instruction sequence records that the steering angle is 3 degrees at a sensitivity of 7:1, then when converted to a sensitivity of 8:1, the steering angle is 24 / 7 degrees.

[0052] S290: In response to a triggering operation of a macro instruction sequence by a user, controlling the vehicle according to the macro instruction sequence.

[0053] The user triggers the macro button, or touches the macro button icon on the large screen of the vehicle, makes a set gesture, or issues a set voice to complete the triggering operation of the macro instruction sequence. From this moment on, there is a delay of, for example, 2s or 3s. If the user does not operate, the macro software sends the macro instruction sequence to the steering driver of the steering wheel. The steering driver calculates the steering angle of the target after sensitivity conversion based on the current steering sensitivity and the steering angle of the steering wheel. Then the electronic control unit of the steering wheel outputs the corresponding motor assist and wheel steering force according to the steering angle of the target and the time interval between the steering angles of the target.

[0054] Example 3 This embodiment is applicable to the automatic control scenarios of smart cockpits and electronic appliances. Figure 3 , the method provided in this embodiment includes the following operations: S310: In response to a recording operation on a macro instruction, a recording mode is started.

[0055] S320, forming a macro instruction sequence according to the time sequence for the control instructions of the vehicle's intelligent cockpit and electronic appliances.

[0056] After starting the recording mode, users can control the smart cockpit and electronic appliances by sending control instructions to the corresponding controllers through the vehicle computer system, such as turning on the air conditioner's 24℃ low-speed wind internal circulation mode, turning on the rear seat lighting, and adjusting the seat to a specified position angle. The macro software records these control instructions (i.e. macro instructions) in chronological order and marks the time intervals between macro instructions.

[0057] S330: Collect the current state of the vehicle and the current road environment in which the vehicle is located.

[0058] The current state of the vehicle includes vehicle speed, driving state / parking state and energy state (fuel level / battery power). The current road environment of the vehicle includes the traffic volume and road type on the road.

[0059] S340: Determine whether the safety requirements are met based on the current state of the vehicle and the current road environment in which the vehicle is located. If the safety requirements are met, execute S350. If not, execute S351 and end the operation.

[0060] The safety of the vehicle can be judged by the vehicle status and the current road environment. If the vehicle is driving at high speed, or the traffic is heavy, or the energy is about to run out, or it is on a bumpy road, it does not meet the safety requirements, the user needs to concentrate on driving, and the vehicle energy should be provided to the power system first. Therefore, in order to avoid user distraction and save energy, and ensure that the vehicle drives safely to the destination, the operation is terminated when the vehicle does not meet the safety requirements; when the vehicle meets the safety requirements, the macro function can be activated to allow the user to perform the trigger operation of the macro instruction sequence.

[0061] S350, activating a macro function; in response to a user's triggering operation on a macro instruction sequence, controlling the vehicle according to the macro instruction sequence.

[0062] Example 4 like Figure 4 As shown, this embodiment provides an electronic device, including: at least one processor; and a memory communicatively connected to at least one of the processors; wherein, The memory stores instructions executable by at least one of the processors, and the instructions are executed by at least one of the processors to enable at least one of the processors to execute the above-mentioned vehicle control method based on macro instructions. At least one processor in the electronic device can execute the above-mentioned method, and thus has at least the same advantages as the above-mentioned method.

[0063] Optionally, the electronic device also includes interfaces for connecting various components, including high-speed interfaces and low-speed interfaces. The various components are connected to each other using different buses and can be installed on a common mainboard or installed in other ways as needed. The processor can process instructions executed in the electronic device, including instructions stored in or on a memory to display graphical information of a GUI (Graphical User Interface) on an external input / output device (such as a display device coupled to an interface). In other embodiments, if necessary, multiple processors can be used together with multiple memories, and / or multiple buses can be used together with multiple memories. Similarly, multiple electronic devices can be connected (for example, as a server array, a group of blade servers, or a multi-processor system), and each device provides some necessary operations. Figure 4 A processor 301 is taken as an example.

[0064] The memory 302 is a computer-readable storage medium that can be used to store software programs, computer executable programs and modules, such as program instructions / modules corresponding to the macro-instruction-based vehicle control method in the embodiment of the present invention. The processor 301 executes various functional applications and data processing of the device by running the software programs, instructions and modules stored in the memory 302, that is, realizing the above-mentioned macro-instruction-based vehicle control method.

[0065] The memory 302 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system and at least one application required for a function; the data storage area may store data created according to the use of the terminal, etc. In addition, the memory 302 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some instances, the memory 302 may further include a memory remotely arranged relative to the processor 301, and these remote memories may be connected to the device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0066] The electronic device may further include: an input device 303 and an output device 304. The processor 301, the memory 302, the input device 303 and the output device 304 may be connected via a bus or other means. Figure 4 The example of connecting through bus is taken in the following.

[0067] The input device 303 can receive input digital or character information, and the output device 304 can include a display device, an auxiliary lighting device (e.g., LED), and a tactile feedback device (e.g., a vibration motor), etc. The display device can include, but is not limited to, a liquid crystal display (LCD), a light emitting diode (LED) display, and a plasma display. In some embodiments, the display device can be a touch screen.

[0068] Example 5 This embodiment provides a computer-readable storage medium, on which computer instructions are stored, and the computer instructions are used to enable the computer to execute the above method. The computer instructions on the computer-readable storage medium are used to enable the computer to execute the above method, and thus have at least the same advantages as the above method.

[0069] The medium in the present invention may adopt any combination of one or more computer-readable media. The medium may be a computer-readable signal medium or a computer-readable storage medium. The medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination thereof. More specific examples of the medium (a non-exhaustive list) include: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In this document, the medium may be any tangible medium containing or storing a program that may be used by or in combination with an instruction execution system, device, or device.

[0070] Computer-readable signal media may include data signals propagated in baseband or as part of a carrier wave, which carry computer-readable program code. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.

[0071] The program code contained on the computer-readable medium can be transmitted using any appropriate medium, including but not limited to wireless, wire, optical cable, RF (Radio Frequency), etc., or any suitable combination of the above.

[0072] Computer program code for performing the operations of the present invention may be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., through the Internet using an Internet service provider).

[0073] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this application can be executed in parallel, sequentially or in different orders, as long as the expected results of the technical solution disclosed in this application can be achieved, and this document is not limited here.

[0074] The above specific implementations do not constitute a limitation on the protection scope of this application. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of this application should be included in the protection scope of this application.

Claims

1. A vehicle control method based on macro instructions, characterized in that: include: In response to a recording operation of the macro instruction, starting a recording mode; The control instructions for the vehicle are formed into a macro instruction sequence in time sequence; Determining whether to activate a macro function according to the current state of the vehicle and the current environment in which the vehicle is located; If the macro function is activated, the vehicle is controlled according to the macro instruction sequence in response to a triggering operation of the macro instruction sequence by the user.

2. The method according to claim 1, characterized in that The control instructions for the vehicle are formed into a macro instruction sequence in chronological order, including: The control instructions of the steering angle of the vehicle steering wheel are formed into a macro instruction sequence in time sequence; The steering sensitivity of the steering wheel, the vehicle speed and the environment in which the vehicle is located during the recording operation are used as the auxiliary information of the macro instruction sequence; The vehicle environment includes a road environment in which the vehicle is located and a non-road environment in which the vehicle is located.

3. The method according to claim 2, characterized in that Determining whether to activate a macro function according to the current state of the vehicle and the current environment in which the vehicle is located includes: Collect the current status of the vehicle and the current road environment in which the vehicle is located; If the vehicle is in a driving state and the current road environment of the vehicle is consistent with the road environment of the vehicle in the auxiliary information, the macro function is activated.

4. The method according to claim 3, characterized in that After activating the macro function, it also includes: Collect the current non-road environment of the vehicle; Calculating the difference between the current non-road environment of the vehicle and the non-road environment of the vehicle in the auxiliary information; If the difference is greater than a set threshold, adding a delay before the macro instruction sequence; If the current steering sensitivity of the steering wheel is inconsistent with the steering sensitivity in the auxiliary information, the macro instruction sequence is corrected according to the current steering sensitivity of the steering wheel.

5. The method according to claim 1, characterized in that In response to a user triggering operation on a macro instruction sequence, controlling the vehicle according to the macro instruction sequence includes: In response to a user's triggering operation on a macro button, a touch operation on a macro button icon on a large vehicle screen, a set gesture, or a set voice, the vehicle is controlled according to the macro instruction sequence.

6. The method according to claim 1, characterized in that The control instructions for the vehicle are formed into a macro instruction sequence in chronological order, including: The control instructions of the vehicle's smart cockpit and electronic appliances are formed into a macro instruction sequence in chronological order.

7. The method according to claim 6, characterized in that Determining whether to activate a macro function according to the current state of the vehicle and the current environment in which the vehicle is located includes: Collect the current status of the vehicle and the current road environment in which the vehicle is located; Determining whether safety requirements are met based on the current state of the vehicle and the current road environment in which the vehicle is located; If the safety requirements are met, the macro function is activated.

8. The method according to any one of claims 1 to 7, characterized in that: After the control instructions for the vehicle are formed into a macro instruction sequence in time sequence, the method further includes: adjusting the sequence, delay and trigger operation of the macro instruction sequence; In response to the recording operation of the macro instruction, before starting the recording mode, the method further includes: adjusting the steering sensitivity of the steering wheel through the vehicle-mounted large screen or the portable terminal.

9. An electronic device, characterized in that: include: at least one processor, and a memory communicatively coupled to at least one of the processors; Wherein, the memory stores instructions executable by at least one of the processors, and the instructions are executed by at least one of the processors so that at least one of the processors can execute the macro-instruction-based vehicle control method described in any one of claims 1-8.

10. A computer-readable storage medium, characterized in that: The medium stores computer instructions, and the computer instructions are used to enable the computer to execute the vehicle control method based on macro instructions according to any one of claims 1-8.