Background
The voice control function in the field of automobiles is single at present, only partial function control of seats and air conditioners is achieved, and convenience and intelligence are not achieved.
In the prior art, the control of the power system of the automobile is usually operated by a start button or a key, such as starting and stopping of the engine. In the process of implementing the invention, the inventor finds that the control of the power system is difficult to directly realize through voice due to higher safety requirements of the power system, and the control method is used for searching the key position or the key socket position when the control is carried out by adopting the existing method, so that the control convenience of the power system of the automobile is not high, and the intelligent degree of the automobile is lower.
Disclosure of Invention
The embodiment of the invention aims to provide a method, a device, a storage medium and a system for controlling an engine of an automobile, which can safely and effectively realize voice control on the engine of the automobile, thereby providing convenience for a user to control the engine of the automobile and improving the intelligent degree of the automobile.
In order to achieve the above object, an embodiment of the present invention provides an engine control method for an automobile, including:
determining an engine control instruction corresponding to the voice instruction according to the received voice instruction;
judging whether a preset execution condition of the engine control instruction is met or not according to the current vehicle state information;
when the current vehicle state is judged not to meet the preset execution condition, sending an execution failure signal;
and when the current vehicle state is judged to meet the preset execution condition, sending the engine control instruction.
As an improvement of the scheme, the vehicle state information comprises power supply gear information, PEPS state information and vehicle speed information.
As an improvement of the above scheme, the engine control command corresponding to the voice command comprises an engine shutdown command; the preset execution conditions of the engine-off command include:
according to the power supply gear information, the power supply gear is in an ON gear; according to the PEPS state information, the PEPS is not in a remote mode; according to the speed information, the speed of the automobile is zero;
and when the PEPS anti-theft authentication passes, the PEPS is considered to be in a remote mode.
As an improvement of the above scheme, the engine control instruction corresponding to the voice instruction comprises an engine starting instruction; the vehicle state information also comprises engine state information and brake state information; the preset execution conditions of the engine start instruction include:
according to the power supply gear information, the power supply gear is in an OFF gear, an ACC gear or an ON gear; according to the PEPS state information, the PEPS is not in a remote mode; according to the speed information, the speed of the automobile is zero; according to the engine state information, the engine is in a starting state; according to the brake state information, the brake state is treaded;
and when the PEPS anti-theft authentication passes, the PEPS is considered to be in a remote mode.
An embodiment of the present invention further provides an engine control device for an automobile, including:
the instruction analysis module is used for determining an engine control instruction corresponding to the voice instruction according to the received voice instruction;
the state judgment module is used for judging whether a preset execution condition of the engine control instruction is met or not according to the current vehicle state information;
the failure feedback module is used for sending out an execution failure signal when judging that the current vehicle state does not meet the preset execution condition;
and the instruction sending module is used for sending the engine control instruction when the current vehicle state is judged to meet the preset execution condition.
An embodiment of the present invention further provides an engine control apparatus for an automobile, including a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, where the processor implements the engine control method according to any one of the above items when executing the computer program.
The embodiment of the invention also provides a computer readable storage medium, which comprises a stored computer program, wherein when the computer program runs, the device where the computer readable storage medium is located is controlled to execute the engine control method.
The embodiment of the invention also provides an engine control system of the automobile, which is characterized by comprising a voice device, an engine control device and a PEPS device;
the voice device is used for collecting voice information sent by a user, converting the voice information into a voice command and sending the voice command to the engine control device;
the engine control device is used for executing the engine control method to send out an execution failure signal or send out an engine control command to the PEPS device;
the PEPS device is used for adjusting the working state of the engine according to the engine control command.
As an improvement of the engine control system, the PEPS device adjusts the working state of the engine and comprises the following steps:
judging whether a preset execution condition of the engine control instruction is met or not according to the current vehicle state information;
when the current vehicle state is judged not to meet the preset execution condition, the current working state of the engine is kept, and an execution failure signal is sent out;
and when the current vehicle state is judged to meet the preset execution condition, adjusting the engine to a corresponding working state according to the engine control instruction.
Compared with the prior art, the automobile engine control method, the automobile engine control device, the automobile engine control storage medium and the automobile engine control system judge whether the preset execution condition of the engine control instruction is met or not by determining the engine control instruction corresponding to the voice instruction and according to the current vehicle state information, and send out the execution failure signal under the condition that the preset execution condition is not met; and under the condition that the preset execution condition is met, the engine control instruction is sent out. The current vehicle state information is judged before the engine control instruction is sent, so that the state of the vehicle reaches the instruction execution condition when the engine control instruction is sent, the safety problem of a voice control power system is solved, the voice control on the engine of the automobile is safely and effectively realized, the convenience of a user for controlling the engine of the automobile is provided, and the intelligent degree of the automobile is improved.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1, a schematic flow chart of an engine control method for an automobile according to embodiment 1 of the present invention is shown. The engine control method includes step S110 to step S140.
And S110, determining an engine control instruction corresponding to the voice instruction according to the received voice instruction.
The voice command may be received from a corresponding device configured on the vehicle. For example, when a voice device is disposed in the automobile, the voice device may receive a voice command issued by a user and transmit the voice command to a device for executing the method, such as an Electronic Control Unit (ECU) disposed in the automobile. It can be understood that the voice device and the ECU are only examples, and in practical applications, the source of the voice command and the device for executing the present invention may be adjusted according to specific situations, without affecting the beneficial effects obtainable by the present invention.
As a preferred embodiment of step S110, the engine control command may be an engine start command or an engine stop command. And determining that the voice command corresponds to the engine starting command or corresponds to the engine closing command according to the received voice command so as to perform subsequent operation. By way of example, the association of the voice message to the engine control command may be established by recognizing a particular vocabulary or other characteristic information in the voice command. For example, according to the 'engine starting' in the voice command, determining the corresponding engine control command as the engine starting command; and determining a corresponding engine control instruction as the engine closing instruction according to the engine closing instruction in the voice instruction. It can be understood that the above-mentioned manner for constructing the association between the voice message and the engine control command is only an example, and does not constitute a limitation on the implementation process of the method, and in practical applications, the method may be adjusted according to specific situations, without affecting the beneficial effects obtainable by the present invention.
And S120, judging whether the preset execution condition of the engine control instruction is met or not according to the current vehicle state information.
By judging whether the current vehicle state information meets the corresponding preset execution condition or not, the danger caused by the fact that the engine control instruction is executed by mistake when the current vehicle state information is not met, namely the automobile is not suitable for executing the engine control instruction at present, is avoided, and the safety of a voice control power system is improved.
Preferably, the vehicle state information may include power position information, PEPS state information, and vehicle speed information. More preferably, in combination with the above-mentioned preferred embodiment of step S110, the preset execution conditions may include a preset execution condition of an engine off command and a preset execution condition of an engine on command.
Further, the preset execution condition of the engine off command may be a judgment including the content of the vehicle state information, such as: according to the power supply gear information, the power supply gear is in an ON gear; according to the PEPS state information, the PEPS is not in a remote mode; and the speed of the automobile is zero according to the speed information.
When the PEPS anti-theft authentication passes, the PEPS is considered to be in a remote mode; otherwise, the PEPS is not considered to be in the remote mode. For example, the T-BOX of the vehicle may initiate the anti-theft authentication, and the PEPS of the vehicle receives an anti-theft message sent by the smart key to perform the anti-theft authentication. When the received anti-theft message meets the requirement of the anti-theft authentication, the PEPS passes the anti-theft authentication, and the PEPS is considered to be in a remote mode at the moment; and when the PEPS does not receive the anti-theft message or the anti-theft message does not meet the requirement of the anti-theft authentication and the PEPS does not pass the anti-theft authentication, the PEPS is not considered to be in a remote mode. In practical application, the initiation mode of the anti-theft authentication and the mode of the PEPS through the anti-theft authentication may be adjusted according to different vehicle models, which does not affect the beneficial effects obtained by the present invention.
In addition, for the judgment that the PEPS is in the remote mode, when the PEPS passes the anti-theft authentication, the power supply gear information is in the OFF gear, and the automobile is stationary and locked, the PEPS is considered to be in the remote mode; when one or more of the above conditions are not met, the PEPS is deemed not to be in remote mode.
Specifically, in the case where the engine control instruction corresponding to the voice instruction determined in step S110 is the engine off instruction, referring to fig. 2, the execution of step S120 may be completed by the flow shown in steps S121a to S123 a.
S121a, judging whether the power supply gear is in an ON gear or not according to the power supply gear information; if yes, go to step S122 a; if not, judging that the current vehicle state does not meet the preset execution condition;
s122a, judging whether the PEPS is in a remote mode or not according to the PEPS state information; if not, the flow proceeds to step S123 a; if so, judging that the current vehicle state does not meet the preset execution condition;
s123a, judging whether the vehicle speed is zero or not according to the vehicle speed information; if so, judging that the current vehicle state meets the preset execution condition; if not, judging that the current vehicle state does not meet the preset execution condition.
The preset execution condition of the engine start instruction may also be a judgment including the content of the vehicle state information, such as: according to the power supply gear information, the power supply gear is in an OFF gear, an ACC gear or an ON gear; according to the PEPS state information, the PEPS is not in a remote mode; and the speed of the automobile is zero according to the speed information. Wherein, under the condition that the vehicle state information further includes engine state information and brake state information, the preset execution condition of the engine start instruction may further include: according to the engine state information, the engine is in a starting state; and according to the brake state information, the brake state is treaded. Thereby further improving the safety of the voice control of the engine.
When the PEPS anti-theft authentication passes, the PEPS is considered to be in a remote mode; otherwise, the PEPS is not considered to be in the remote mode. For example, the T-BOX of the vehicle may initiate the anti-theft authentication, and the PEPS of the vehicle receives an anti-theft message sent by the smart key to perform the anti-theft authentication. When the received anti-theft message meets the requirement of the anti-theft authentication, the PEPS passes the anti-theft authentication, the PEPS is considered to be in a remote mode at the moment, and the communication connection between the PEPS and the T-BOX is established; and when the PEPS does not receive the anti-theft message or the anti-theft message does not meet the requirement of the anti-theft authentication and the PEPS does not pass the anti-theft authentication, the PEPS is not considered to be in a remote mode. In practical application, the initiation mode of the anti-theft authentication and the mode of the PEPS through the anti-theft authentication may be adjusted according to different vehicle models, which does not affect the beneficial effects obtained by the present invention.
In addition, for the judgment that the PEPS is in the remote mode, when the PEPS passes the anti-theft authentication, the power supply gear information is in the OFF gear, and the automobile is stationary and locked, the PEPS is considered to be in the remote mode; when one or more of the above conditions are not met, the PEPS is deemed not to be in remote mode.
Specifically, in the case where the engine control instruction corresponding to the voice instruction determined in step S110 is the engine start instruction, referring to fig. 3, the execution of step S120 may be completed by the flow shown in steps S121b to S123 b.
S121b, judging whether the power supply gear is in an OFF gear, a BCC gear or an ON gear according to the power supply gear information, and judging that the engine is in an un-started state according to the engine state information; if yes, go to step S122 b; if any one of the vehicle states is not the preset execution condition, judging that the current vehicle state does not meet the preset execution condition;
s122b, judging whether the PEPS is in a remote mode or not according to the PEPS state information; if not, the flow proceeds to step S123 b; if so, judging that the current vehicle state does not meet the preset execution condition;
s123b, judging whether the vehicle speed is zero or not according to the vehicle speed information; if yes, go to step S124 b; if not, judging that the current vehicle state does not meet the preset execution condition;
s124, 124b, judging whether the brake state is treaded or not according to the brake state information; if so, judging that the current vehicle state meets the preset execution condition; if not, judging that the current vehicle state does not meet the preset execution condition.
It is understood that the preset execution condition of the engine shutdown command and the preset execution condition of the engine start command are only taken as preferred examples, and in practical application, the preset execution conditions can be adjusted according to the specific conditions of the automobile, without affecting the beneficial effects obtainable by the present invention.
More specifically, the relevant messages may be acquired through a CAN bus to acquire one or more of the power shift information, the PEPS state information, the vehicle speed information, the engine state information, and the brake state information. For example, if the method is executed by an ECU configured on the vehicle, the ECU may obtain a power shift message, a vehicle speed message, an engine state message, a brake state message, and the like through a CAN bus to obtain the current vehicle state information, so as to determine whether the preset execution condition of the engine control command is satisfied.
And S130, when the current vehicle state is judged not to meet the preset execution condition, sending an execution failure signal.
Preferably, the user may be reminded according to the execution failure signal, for example, the user may be reminded by voice according to the execution failure signal.
And S140, when the current vehicle state is judged to meet the preset execution condition, sending the engine control command.
Specifically, the engine control command may be sent to a processing device of a next stage, such as an engine control device of the automobile.
In the method for controlling the engine of the automobile disclosed in embodiment 1 of the present invention, an engine control instruction corresponding to a voice instruction is determined, and according to current vehicle state information, whether a preset execution condition of the engine control instruction is satisfied is determined, and an execution failure signal is sent out when the preset execution condition is not satisfied; and under the condition that the preset execution condition is met, the engine control instruction is sent out. The current vehicle state information is judged before the engine control instruction is sent, so that the state of the vehicle reaches the instruction execution condition when the engine control instruction is sent, the safety problem of a voice control power system is solved, the voice control on the engine of the automobile is safely and effectively realized, the convenience of a user for controlling the engine of the automobile is provided, and the intelligent degree of the automobile is improved.
The embodiment 2 of the invention also provides an engine control device of the automobile. Referring to fig. 4, the engine control apparatus 20 includes a command parsing module 21, a state determination module 22, a failure feedback module 23, and a command transmission module 24.
And the instruction analysis module 21 is configured to determine an engine control instruction corresponding to the voice instruction according to the received voice instruction.
The state determining module 22 is configured to determine whether a preset execution condition of the engine control instruction is met according to the current vehicle state information.
The failure feedback module 23 is configured to send an execution failure signal when it is determined that the current vehicle state does not meet the preset execution condition.
The instruction sending module 24 is configured to send the engine control instruction when it is determined that the current vehicle state meets the preset execution condition.
The operation of the engine control device 20 is the engine control method according to embodiment 1, and details thereof are not repeated here.
In the engine control device for the automobile disclosed in embodiment 2 of the present invention, an engine control instruction corresponding to a voice instruction is determined, and according to current vehicle state information, whether a preset execution condition of the engine control instruction is satisfied is determined, and an execution failure signal is sent out when the preset execution condition is not satisfied; and under the condition that the preset execution condition is met, the engine control instruction is sent out. The current vehicle state information is judged before the engine control instruction is sent, so that the state of the vehicle reaches the instruction execution condition when the engine control instruction is sent, the safety problem of a voice control power system is solved, the voice control on the engine of the automobile is safely and effectively realized, the convenience of a user for controlling the engine of the automobile is provided, and the intelligent degree of the automobile is improved.
Embodiment 3 of the present invention provides an engine control device for an automobile. Referring to fig. 5, engine control device 30 includes: a processor 31, a memory 32, and a computer program, such as an engine control program, stored in the memory and executable on the processor. The processor 31, when executing the computer program, implements the steps in the above-described embodiments of the testing method, such as step S120 shown in fig. 1. Alternatively, the processor implements the functions of the modules in the device embodiments described above, for example, the engine control device described in embodiment 2, when the processor executes the computer program.
Illustratively, the computer program may be divided into one or more modules, which are stored in the memory 32 and executed by the processor 31 to accomplish the present invention. The one or more modules may be a series of computer program instruction segments capable of performing specific functions, which are used to describe the execution of the computer program in the engine control device 30. For example, the computer program may be divided into an instruction parsing module, a state determining module, a failure feedback module and an instruction sending module, and the specific functions of each module are as follows: the instruction analysis module is used for determining an engine control instruction corresponding to the voice instruction according to the received voice instruction; the state judgment module is used for judging whether a preset execution condition of the engine control instruction is met or not according to the current vehicle state information; the failure feedback module is used for sending out an execution failure signal when judging that the current vehicle state does not meet the preset execution condition; and the instruction sending module is used for sending the engine control instruction when the current vehicle state is judged to meet the preset execution condition.
The engine control device 30 may be a desktop computer, a notebook computer, a palm computer, a cloud server, or other computing devices. The engine control device 30 may include, but is not limited to, a processor 31, a memory 32. It will be appreciated by those skilled in the art that the schematic diagram is merely an example of an image enhancement device and does not constitute a limitation on engine control 30, and may include more or fewer components than shown, or some components in combination, or different components, e.g., engine control 30 may also include input and output devices, network access devices, buses, etc.
The Processor 31 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components, etc. The general-purpose processor may be a microprocessor or the processor may be any conventional processor, etc., and the processor 31 is a control center of the engine control device 30 and connects various parts of the entire engine control device 30 by using various interfaces and lines.
The memory 32 may be used to store the computer programs and/or modules, and the processor 31 may implement various functions of the engine control device 30 by running or executing the computer programs and/or modules stored in the memory 32 and invoking data stored in the memory 32. The memory 32 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 32 may include high speed random access memory, and may also include non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), at least one magnetic disk storage device, a Flash memory device, or other volatile solid state storage device.
The integrated module of the engine control device 30 may be stored in a computer-readable storage medium if it is implemented in the form of a software functional unit and sold or used as a separate product. Based on such understanding, all or part of the flow of the method according to the embodiments of the present invention may also be implemented by a computer program, which may be stored in a computer-readable storage medium, and when the computer program is executed by a processor, the steps of the method embodiments may be implemented. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, and the like.
In the engine control device and the readable storage medium for the automobile disclosed in embodiment 3 of the present invention, it is determined whether a preset execution condition of an engine control instruction is satisfied by determining the engine control instruction corresponding to a voice instruction and according to current vehicle state information, and an execution failure signal is sent out when the preset execution condition is not satisfied; and under the condition that the preset execution condition is met, the engine control instruction is sent out. The current vehicle state information is judged before the engine control instruction is sent, so that the state of the vehicle reaches the instruction execution condition when the engine control instruction is sent, the safety problem of a voice control power system is solved, the voice control on the engine of the automobile is safely and effectively realized, the convenience of a user for controlling the engine of the automobile is provided, and the intelligent degree of the automobile is improved.
Embodiment 4 of the invention provides an engine control system of an automobile. Referring to fig. 6, the engine control system 40 includes a speech device 41, an engine control device 42, and a PEPS device 43.
The voice device 41 is configured to collect voice information sent by a user, convert the voice information into a voice command, and send the voice command to the engine control device 42.
Specifically, the speech device 41 may process the speech information, for example, extract instruction content therein, or perform feature extraction on the speech information. Preferably, the voice device 41 can also recognize the voice message to determine that the voice source is the user with the engine control authority, for example, perform voiceprint recognition on the voice message.
The engine control device 42 is used to execute the engine control method according to embodiment 1, and may be the engine control device according to any of embodiments 2 or 3 to issue an execution failure signal or an engine control command to the PEPS device 43.
Preferably, the execution failure signal may be sent to the voice device 41, and a voice prompt is issued through the voice device 41 to prompt the user to instruct the execution failure.
The PEPS device 43 is configured to adjust the operating state of the engine according to the engine control command.
Preferably, after the PEPS device 43 completes the adjustment of the operating state of the engine, a voice prompt may also be issued by the voice device 41 to prompt the user that the instruction has been successfully executed.
As a preferred embodiment, referring to fig. 7, the PEPS device 43 may also perform the adjustment of the operating state of the engine through steps S431 to S433.
And S431, judging whether a preset execution condition of the engine control instruction is met or not according to the current vehicle state information.
The detailed description of step S431 can be as described above for step S120, and is not repeated herein.
And S432, when the current vehicle state is judged not to meet the preset execution condition, keeping the current working state of the engine, and sending an execution failure signal.
Preferably, the user may also be reminded according to the execution failure signal, for example, the execution failure signal is sent to the voice device 41, and the voice device 41 reminds the user with voice.
And S433, when the current vehicle state is judged to meet the preset execution condition, adjusting the engine to a corresponding working state according to the engine control instruction.
On the basis that the engine control device 42 judges the current state of the automobile, the PEPS device 43 also judges the current state of the automobile for the second time, and therefore the safety of controlling the power system through voice is further improved.
In the engine control system of the automobile disclosed in embodiment 4 of the present invention, by determining an engine control instruction corresponding to a voice instruction, and according to current vehicle state information, it is determined whether a preset execution condition of the engine control instruction is satisfied, and if the preset execution condition is not satisfied, an execution failure signal is sent; and under the condition that the preset execution condition is met, the engine control instruction is sent out. The current vehicle state information is judged before the engine control instruction is sent, so that the state of the vehicle reaches the instruction execution condition when the engine control instruction is sent, the safety problem of a voice control power system is solved, the voice control on the engine of the automobile is safely and effectively realized, the convenience of a user for controlling the engine of the automobile is provided, and the intelligent degree of the automobile is improved.
While the foregoing is directed to the preferred embodiment of the present invention, it will be understood by those skilled in the art that various changes and modifications may be made without departing from the spirit and scope of the invention.