Disclosure of Invention
The embodiment of the application provides a gear switching method and device of a vehicle ignition switch, which can determine a target gear of the ignition switch according to a number statistic and state information of a vehicle.
The application provides a gear switching method of a vehicle ignition switch, which comprises the following steps:
counting the times of receiving the trigger signal, generating a time counting value, and acquiring the state information of the vehicle;
and determining a target gear of the ignition switch according to the times counting value and the state information of the vehicle so as to switch the current gear of the ignition switch to the target gear.
Optionally, in a specific embodiment of the present application, the gear of the ignition switch includes: a first gear which is an initial gear of the ignition switch; a second gear for controlling a power source to supply power to a first component of the vehicle; a third gear for controlling the power source to supply power to a second component of the vehicle; a fourth gear for controlling the power source to power a third component of the vehicle, the third component comprising an engine.
Optionally, in a specific embodiment of the present application, the state information of the vehicle includes: the current gear, the authorization state, the engine running state, the transmission gear and the brake state of the ignition switch.
Optionally, in a specific embodiment of the present application, the obtaining the state information of the vehicle includes:
obtaining the authorization state of the vehicle in a remote communication mode so as to carry out remote authorization processing on the vehicle;
obtaining the current gear, the authorization state, the engine running state, the transmission gear and the brake state of the ignition switch from a vehicle bus.
Optionally, in a specific embodiment of the present application, the determining the target gear of the ignition switch according to the count value of times and the state information of the vehicle includes:
if the number counting value is 1, the current gear of the ignition switch is the first gear, and the target gear is set to be the second gear;
if the number counting value is 2, the current gear of the ignition switch is the second gear, and the target gear is set to be the third gear;
and if the number statistic value is larger than 2, indicating that the current gear of the ignition switch is the third gear or the fourth gear, determining a target gear of the ignition switch according to the authorization state, the engine running state, the transmission gear and the brake state.
Optionally, in a specific embodiment of the present application, the determining the target gear of the ignition switch according to the authorization status, the engine operating status, the transmission gear and the brake status includes:
judging whether the authorization state is a forbidden state, if so, setting the target gear to be the first gear;
if not, further judging whether the running state of the engine is a starting state, if so, setting the target gear to be the first gear;
if not, further judging that the gear position of the transmission is a parking gear or a neutral gear, and the brake state is a brake state, if so, setting the target gear position as the fourth gear position;
otherwise, the target gear is set to the first gear.
Optionally, in a specific embodiment of the present application, after the switching the shift position of the ignition switch from the current shift position to the target shift position, the method includes:
if the target gear is the first gear, resetting the times counting value to a times counting initial value;
and if the target gear is the fourth gear, automatically switching the ignition switch to the third gear after a preset time period.
Optionally, in a specific embodiment of the present application, the trigger signal is generated according to a shift instruction of the ignition switch;
optionally, in a specific embodiment of the present application, the trigger signal is a digital signal.
The embodiment of the application provides a gear auto-change over device of vehicle ignition switch, includes:
the information acquisition module is used for counting the times of receiving the trigger signal, generating a time counting value and acquiring the state information of the vehicle;
and the gear determining module is used for determining a target gear of the ignition switch according to the times counting value and the state information of the vehicle so as to switch the current gear of the ignition switch to the target gear.
According to the technical scheme, the number of times of receiving the trigger signal is counted, a number counting value is generated, and the state information of the vehicle is obtained; and determining a target gear of the ignition switch according to the times counting value and the state information of the vehicle so as to switch the current gear of the ignition switch to the target gear. The embodiment of the application replaces the gear switching of the traditional vehicle key ignition switch, realizes the remote leasing of the vehicle, and avoids the defect that the gear switching of the ignition switch cannot be carried out due to the loss of the vehicle key.
Detailed Description
The application counts the number of times of receiving trigger signal to obtain the state information of vehicle, reaches according to the number of times statistics the state information of vehicle confirms ignition switch's target gear will ignition switch's current gear switch extremely target gear has thereby realized carrying out the function of switching according to trigger signal to the ignition switch of vehicle to simplified ignition switch operation step when carrying out the gear switching, improved the security when the vehicle uses.
Of course, implementing any aspect of the embodiments of the present application does not necessarily require achieving all of the above advantages at the same time.
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present invention, but not all 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.
FIG. 1 is a schematic flow chart illustrating a method for shifting gears of a vehicle ignition switch according to an embodiment of the present disclosure; as shown in fig. 1, it includes:
s101, counting the times of receiving the trigger signal, generating a time counting value, and acquiring the state information of the vehicle.
In this embodiment, the gear of the ignition switch includes:
the first gear is an initial gear of the ignition switch, at which the power supply stops supplying power to power consuming components on the vehicle, and may specifically be an OFF gear;
the second gear is used for controlling the power supply to supply power to a first component of the vehicle, the second gear can be specifically an ACC gear, and the first component can comprise a radio, a vehicle lamp and the like;
the third gear is used for controlling the power supply to supply power to a second component of the vehicle, and the third gear can be specifically an ON gear, and the second component comprises all power consumption components except an engine, such as an air conditioner and the like;
and a fourth gear for controlling the power source to supply power to a third component of the vehicle, the third component comprising an engine, and the fourth gear may be a START gear.
Specifically, in the present embodiment, the trigger signal is generated according to a shift position switching instruction of an ignition switch. The switching instruction may be obtained by an ignition switch key on the vehicle. For example, when the shift position of the ignition switch needs to be switched, the ignition switch key is pressed, and a trigger signal is generated according to a pressing instruction of the ignition switch key. In particular, the trigger signal may be a digital signal. Specifically, the ignition switch key is disposed inside the vehicle, so that the vehicle key can be prevented from being illegally copied, thereby improving the safety of the vehicle.
In this embodiment, the state information of the vehicle includes: the current gear, the authorization state, the engine running state, the transmission gear and the brake state of the ignition switch.
In an alternative scheme of the application, the obtained vehicle state information is uploaded to a server side in real time in a remote communication mode, the server side determines whether the vehicle is authorized or not after judgment processing is carried out on the vehicle state information, and the authorization information is fed back to the vehicle in the remote communication mode. In this step, the remote communication mode may be a 2G (second generation mobile phone mobile communication standard), a 3G (third generation mobile phone mobile communication standard), a 4G (fourth generation mobile phone mobile communication standard) or a higher-level communication mode.
S202, determining a target gear of the ignition switch according to the times counting value and the state information of the vehicle so as to switch the current gear of the ignition switch to the target gear.
In this embodiment, the number of times statistic and the gear of the vehicle ignition switch have a corresponding relationship, and the target gear can be determined accordingly. For example, if the count value of the number of times is 1, indicating that the ignition switch is in the OFF gear for the first time the trigger signal is received at this time, the target gear is set to the ACC gear.
In this embodiment, the target gear may be determined according to the number statistics and the state information of the vehicle. For example, when the number of times statistic is 3, the gear of the ignition switch may be an ON gear, the state information of the vehicle is determined, and if the state information meets the vehicle START condition, the target gear is set to a START gear, otherwise, the target gear is set to an OFF gear.
In the present embodiment, the shift position of the ignition switch is controlled by different circuits ON the vehicle, including an ACC circuit corresponding to the ACC position of the ignition switch, an IG1 circuit and an IG2 circuit corresponding to the ON position of the ignition switch, and a START circuit corresponding to the START position of the ignition switch. The power supply provides a supply Voltage (VBAT), and the ignition switch controls the VBAT to be connected to or disconnected from different circuits, so as to supply power to different power consuming components on the vehicle.
Specifically, the current gear of the ignition switch is switched to the target gear, and the connection and disconnection of the power supply and the circuit can be controlled through a relay or a MOS tube to realize that:
when the ignition switch is in an OFF gear, the VBAT and the circuit are in a disconnected state; when the ignition switch is switched to an ACC gear, the VBAT is communicated with the ACC circuit, other circuits are kept disconnected, and the power supply supplies power to the first component; when the ignition switch is switched to an ON gear, the VBAT is communicated with the ACC circuit, the IG1 circuit and the IG2 circuit, other circuits are kept disconnected, and the power supply supplies power to the second component; when the ignition switch is switched to the START gear, VBAT is communicated with the ACC circuit, the IG1 circuit, the IG2 circuit, and the START circuit, the engine is powered by the power source, and the vehicle enters a START state.
The embodiment of the application replaces the gear switching of a traditional vehicle key ignition switch, realizes the remote renting of the vehicle, and avoids the defect that the gear switching of the ignition switch cannot be carried out due to the fact that a vehicle key is lost.
As shown in fig. 2, in a specific implementation of the present application, the step S102 includes:
s112, if the number counting value is 1, the current gear of the ignition switch is a first gear, and the target gear is set to be the second gear;
specifically, the step is that a trigger signal is received for the first time, when the trigger signal is received for the first time, the current gear is an OFF gear, and at this time, the target gear is set to an ACC gear.
S122, if the number counting value is 2, the current gear of the ignition switch is a second gear, and the target gear is set to be the third gear;
specifically, the step is to receive the trigger signal for the second time, where the current gear is the ACC gear, and at this time, the target gear is set to the ON gear.
And S132, if the number statistic value is larger than 2, the current gear of the ignition switch is a third gear or a fourth gear, and a target gear of the ignition switch is determined according to the authorization state, the engine running state, the transmission gear and the brake state.
Specifically, the current gear is an ON gear or a START gear, and if the vehicle is authorized, the engine is in an un-started state, the transmission gear is in a parking gear or a neutral gear, and the brake state is in a braking state, the target gear is set to the START gear, and the vehicle can be started; if the vehicle is authorized and the engine is in the started state, the target gear is set to the OFF gear, and the vehicle can be shut down at this time.
As shown in fig. 3, in a specific implementation of the present application, on the basis of the embodiment shown in fig. 2, the step S132 includes:
s1321, judging whether the authorization state is a forbidden state.
This step is intended to determine whether the current vehicle is authorized, and of course, whether the authorization status is authorized, so as to implement the same function.
If the vehicle is not authorized, the ignition switch needs to be switched to the OFF position, and the process proceeds to step S2322. If the vehicle is authorized, the following step S1323 is performed.
And S1322, setting the target gear to be the first gear.
In the present embodiment, the first gear is an OFF gear, and entering this step indicates that the target gear is set to the OFF gear when the vehicle does not satisfy the condition for starting the vehicle or the vehicle needs to be switched from the starting state to the key-OFF state.
S1323, further judging whether the engine running state is a starting state.
In this embodiment, the operating state of the engine may be obtained from a CAN bus of the vehicle.
When the engine running state is not started, and the trigger signal is received at the moment to indicate that the vehicle needs to be enabled to enter the starting state, the following step S2324 is performed for further judgment.
When the engine is started and the ignition switch of the vehicle is in the ON position, the trigger signal indicating that the vehicle needs to be put into the key-OFF state, that is, the ignition switch needs to be set to the OFF position, is received, and step S1322 is performed.
S1324, further judging that the gear position of the transmission is a parking gear position or a neutral gear position, and the brake state is a brake state.
In this embodiment, the transmission gear may be derived from a transmission gear signal of an on-board signal source of the vehicle, and the brake state may be derived from a brake signal of an on-board signal source of the vehicle. When the transmission range signal or the brake signal cannot be obtained from the vehicle-mounted signal source, the ignition switch needs to be set to the OFF range at this time, i.e., the above step S1322 is performed.
In the embodiment, the vehicle is an automatic transmission vehicle, and the vehicle can be started only when the transmission gear is in the parking gear or the neutral gear and the brake state is the braking state. Specifically, the parking position P, the neutral position N, and the brake are in a braking state, that is, the brake of the vehicle is pressed. If the result of the determination in this step is yes, the vehicle can enter the start state, and the following step S1325 is performed, otherwise, the above step S1322 is performed.
And S1325, setting the target gear to be the fourth gear.
In this embodiment, the fourth gear is a START gear, and the gear of the ignition switch is a third gear, that is, an ON gear, and it is necessary to switch the vehicle from the non-START state to the START state, so the target gear is set to the START gear.
According to the embodiment of the application, whether the vehicle is authorized or not is judged firstly, and when the authorization state is forbidden, further operation cannot be performed, so that the safety of the vehicle in remote renting is improved. According to the embodiment of the application, the accuracy and the stability of the ignition switch in gear shifting are ensured by comprehensively judging the state information of the vehicle.
As shown in fig. 4, in a specific implementation of the present application, on the basis of the embodiment shown in fig. 2, the method includes:
s101, counting the times of receiving the trigger signal, generating a time counting value, and acquiring the state information of the vehicle;
s102, determining a target gear of the ignition switch according to the times counting value and the state information of the vehicle, so as to switch the current gear of the ignition switch to the target gear.
Steps S101 and S102 are the same as those in the embodiment of fig. 1, and are not described herein again.
S103, if the target gear is the first gear, resetting the signal frequency statistic value to a frequency statistic initial value; and if the target gear is the fourth gear, automatically switching the ignition switch to the third gear after a preset time period.
In this embodiment, the ignition switch is switched to the OFF range, and at this time, VBAT is disconnected from the ACC circuit, the IG1 circuit, the IG2 circuit, and the START circuit, and the vehicle enters a stall state, and the counted number of times is reset to the counted number of times initial value, so that when the START key is pressed next time, the number of times of receiving signals is counted again, and the accuracy of the ignition switch in switching the gear is ensured. Specifically, the number-of-times statistic initial value may be 0.
In this embodiment, the ignition switch is switched to the ON position, at this time, VBAT is communicated with the ACC circuit, the IG1 circuit, the IG2 circuit and the START circuit, the power supply supplies power to the engine, the vehicle enters the starting state, at this time, the working current ON the START circuit is large, the power supply is not communicated with the circuit for a long time, and therefore the ignition switch is switched to the ON position after a preset time period. Specifically, the preset time may be 1 second, and the preset time may be adaptively modified according to actual application.
In this embodiment, after the current gear of the ignition switch is switched to the target gear, the count value of times and the gear of the ignition switch are further processed if necessary, so as to ensure the accuracy and stability of processing of the ignition switch when the gear is switched.
FIG. 5 is a schematic structural diagram of a shift position switching device of a vehicle ignition switch according to an embodiment of the present application; as shown in fig. 5, it includes:
the information obtaining module 501 is configured to count the number of times of receiving the trigger signal, generate a number-of-times statistic value, and obtain the state information of the vehicle.
In this embodiment, the gear of the ignition switch includes:
the first gear is an initial gear of the ignition switch, at which the power supply stops supplying power to power consuming components on the vehicle, and may specifically be an OFF gear;
the second gear is used for controlling the power supply to supply power to a first component of the vehicle, the second gear can be specifically an ACC gear, and the first component can comprise a radio, a vehicle lamp and the like;
the third gear is used for controlling the power supply to supply power to a second component of the vehicle, and the third gear can be specifically an ON gear, and the second component comprises all power consumption components except an engine, such as an air conditioner and the like;
and a fourth gear for controlling the power source to supply power to a third component of the vehicle, the third component comprising an engine, and the fourth gear may be a START gear.
Specifically, in the present embodiment, the trigger signal is generated according to a shift position switching instruction of an ignition switch. The switching instruction may be obtained by an ignition switch key on the vehicle. For example, when the shift position of the ignition switch needs to be switched, the ignition switch key is pressed, and a trigger signal is generated according to a pressing instruction of the ignition switch key. In particular, the trigger signal may be a digital signal. Specifically, the ignition switch key is provided inside the vehicle, so that the vehicle key can be prevented from being illegally copied, thereby improving the safety of the vehicle.
In this embodiment, the state information of the vehicle includes: the current gear, the authorization state, the engine running state, the transmission gear and the brake state of the ignition switch.
In an alternative scheme of the application, the obtained vehicle state information is uploaded to a server side in real time in a remote communication mode, the server side determines whether the vehicle is authorized or not after judgment processing is carried out on the vehicle state information, and the authorization information is fed back to the vehicle in the remote communication mode. In this step, the remote communication mode may be a 2G (second generation mobile phone mobile communication standard), a 3G (third generation mobile phone mobile communication standard), a 4G (fourth generation mobile phone mobile communication standard) or a higher-level communication mode.
A gear determining module 502, configured to determine a target gear of the ignition switch according to the number statistics and the state information of the vehicle, so as to switch a current gear of the ignition switch to the target gear.
In this embodiment, the number of times statistic and the gear of the vehicle ignition switch have a corresponding relationship, and the target gear can be determined accordingly. For example, if the count value of the number of times is 1, indicating that the ignition switch is in the OFF gear for the first time the trigger signal is received at this time, the target gear is set to the ACC gear.
In this embodiment, the target gear may be determined according to the number statistics and the state information of the vehicle. For example, when the number of times statistic is 3, the gear of the ignition switch may be an ON gear, the state information of the vehicle is determined, and if the state information meets the vehicle START condition, the target gear is set to a START gear, otherwise, the target gear is set to an OFF gear.
In the present embodiment, the shift position of the ignition switch is controlled by different circuits ON the vehicle, including an ACC circuit corresponding to the ACC position of the ignition switch, an IG1 circuit and an IG2 circuit corresponding to the ON position of the ignition switch, and a START circuit corresponding to the START position of the ignition switch. The power supply provides a VBAT (Voltage of power) ignition switch that controls the VBAT to be connected to or disconnected from various circuits, thereby supplying power to various power consuming components on the vehicle.
Specifically, the current gear of the ignition switch is switched to the target gear, and the connection and disconnection of the power supply and the circuit can be controlled through a relay or a MOS tube to realize that:
when the ignition switch is in an OFF gear, the VBAT and the circuit are in a disconnected state; when the ignition switch is switched to an ACC gear, the VBAT is communicated with the ACC circuit, other circuits are kept disconnected, and the power supply supplies power to the first component; when the ignition switch is switched to an ON gear, the VBAT is communicated with the ACC circuit, the IG1 circuit and the IG2 circuit, other circuits are kept disconnected, and the power supply supplies power to the second component; when the ignition switch is switched to the START gear, VBAT is communicated with the ACC circuit, the IG1 circuit, the IG2 circuit, and the START circuit, the engine is powered by the power source, and the vehicle enters a START state.
The embodiment of the application replaces the gear switching of a traditional vehicle key ignition switch, realizes the remote renting of the vehicle, and avoids the defect that the gear switching of the ignition switch cannot be carried out due to the fact that a vehicle key is lost.
Fig. 6 is a hardware configuration diagram of some electronic devices that execute the range switching method of the vehicle ignition switch according to the present application. According to fig. 6, the apparatus comprises:
one or more processors 610 and a memory 620, with one processor 610 being an example in fig. 6.
The apparatus for performing the range switching method of the ignition switch of the vehicle may further include: an input device 630 and an output device 630.
The processor 610, the memory 620, the input device 630, and the output device 640 may be connected by a bus or other means, such as the bus connection in fig. 6.
The memory 620, as a non-volatile computer-readable storage medium, may be used to store non-volatile software programs, non-volatile computer-executable programs, and modules, such as program instructions/modules corresponding to the shift range switching method of the vehicle ignition switch in the embodiments of the present application. The processor 610 executes various functional applications of the server and data processing by running nonvolatile software programs, instructions and modules stored in the memory 620, that is, implements the shift range switching method of the vehicle ignition switch in the above-described method embodiments.
The memory 620 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the stored data area may store data created according to use of a shift position switching device of a vehicle ignition switch, and the like. Further, the memory 620 may include high speed random access memory 620, and may also include non-volatile memory 620, such as at least one piece of disk memory 620, flash memory devices, or other non-volatile solid state memory 620. In some embodiments, the memory 620 optionally includes memory 620 located remotely from the processor 610, and these remote memories 620 may be connected to the range shifting devices of the vehicle ignition switches via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input device 630 may receive input numeric or character information and generate key signal inputs related to user settings and function control of the gearshift of the vehicle ignition switch. The input device 630 may include a pressing module or the like.
The one or more modules are stored in the memory 620 and, when executed by the one or more processors 610, perform a method of gear shifting a vehicle ignition switch in any of the method embodiments described above.
The product can execute the method provided by the embodiment of the application, and has the corresponding functional modules and beneficial effects of the execution method. For technical details that are not described in detail in this embodiment, reference may be made to the methods provided in the embodiments of the present application.
The electronic device of the embodiments of the present application exists in various forms, including but not limited to:
(1) mobile communication devices, which are characterized by mobile communication capabilities and are primarily targeted at providing voice and data communications. Such terminals include smart phones (e.g., iphones), multimedia phones, functional phones, and low-end phones, among others.
(2) The ultra-mobile personal computer equipment belongs to the category of personal computers, has calculation and processing functions and generally has the characteristic of mobile internet access. Such terminals include PDA, MID, and UMPC devices, such as ipads.
(3) Portable entertainment devices such devices may display and play multimedia content. Such devices include audio and video players (e.g., ipods), handheld game consoles, electronic books, as well as smart toys and portable car navigation devices.
(4) The server is similar to a general computer architecture, but has higher requirements on processing capability, stability, reliability, safety, expandability, manageability and the like because of the need of providing highly reliable services.
(5) And other electronic devices with data interaction functions.
The above-described embodiments of the apparatus are merely illustrative, wherein the modules described as separate parts may or may not be physically separate, and the parts displayed as modules may or may not be physical modules, may be located in one place, or may be distributed on a plurality of network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. With this understanding in mind, the above-described technical solutions and/or portions thereof that contribute to the prior art may be embodied in the form of a software product that can be stored on a computer-readable storage medium including any mechanism for storing or transmitting information in a form readable by a computer (e.g., a computer). For example, a machine-readable medium includes Read Only Memory (ROM), Random Access Memory (RAM), magnetic disk storage media, optical storage media, flash memory storage media, electrical, optical, acoustical or other form of propagated signals (e.g., carrier waves, infrared signals, digital signals, etc.), and others, and the computer software product includes instructions for causing a computing device (which may be a personal computer, server, or network device, etc.) to perform the methods described in the various embodiments or portions of the embodiments.
Finally, it should be noted that: the above embodiments are only used for illustrating the technical solutions of the embodiments of the present application, and are not limited thereto; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions in the embodiments of the present application.