CN113928455B - Vehicle control method and device, vehicle and computer storage medium - Google Patents

Vehicle control method and device, vehicle and computer storage medium Download PDF

Info

Publication number
CN113928455B
CN113928455B CN202010607547.3A CN202010607547A CN113928455B CN 113928455 B CN113928455 B CN 113928455B CN 202010607547 A CN202010607547 A CN 202010607547A CN 113928455 B CN113928455 B CN 113928455B
Authority
CN
China
Prior art keywords
target operation
target
time length
user
determining
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010607547.3A
Other languages
Chinese (zh)
Other versions
CN113928455A (en
Inventor
陈可
王灿
韦活成
许愿
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ninebot Changzhou Technology Co Ltd
Original Assignee
Ninebot Changzhou Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ninebot Changzhou Technology Co Ltd filed Critical Ninebot Changzhou Technology Co Ltd
Priority to CN202010607547.3A priority Critical patent/CN113928455B/en
Priority to PCT/CN2021/099101 priority patent/WO2022001603A1/en
Publication of CN113928455A publication Critical patent/CN113928455A/en
Application granted granted Critical
Publication of CN113928455B publication Critical patent/CN113928455B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • BPERFORMING OPERATIONS; TRANSPORTING
    • B62LAND VEHICLES FOR TRAVELLING OTHERWISE THAN ON RAILS
    • B62JCYCLE SADDLES OR SEATS; AUXILIARY DEVICES OR ACCESSORIES SPECIALLY ADAPTED TO CYCLES AND NOT OTHERWISE PROVIDED FOR, e.g. ARTICLE CARRIERS OR CYCLE PROTECTORS
    • B62J25/00Foot-rests; Knee grips; Passenger hand-grips
    • B62J25/04Floor-type foot rests
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B62LAND VEHICLES FOR TRAVELLING OTHERWISE THAN ON RAILS
    • B62JCYCLE SADDLES OR SEATS; AUXILIARY DEVICES OR ACCESSORIES SPECIALLY ADAPTED TO CYCLES AND NOT OTHERWISE PROVIDED FOR, e.g. ARTICLE CARRIERS OR CYCLE PROTECTORS
    • B62J45/00Electrical equipment arrangements specially adapted for use as accessories on cycles, not otherwise provided for
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B62LAND VEHICLES FOR TRAVELLING OTHERWISE THAN ON RAILS
    • B62JCYCLE SADDLES OR SEATS; AUXILIARY DEVICES OR ACCESSORIES SPECIALLY ADAPTED TO CYCLES AND NOT OTHERWISE PROVIDED FOR, e.g. ARTICLE CARRIERS OR CYCLE PROTECTORS
    • B62J6/00Arrangement of optical signalling or lighting devices on cycles; Mounting or supporting thereof; Circuits therefor
    • B62J6/01Electric circuits
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B62LAND VEHICLES FOR TRAVELLING OTHERWISE THAN ON RAILS
    • B62LBRAKES SPECIALLY ADAPTED FOR CYCLES
    • B62L3/00Brake-actuating mechanisms; Arrangements thereof
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B62LAND VEHICLES FOR TRAVELLING OTHERWISE THAN ON RAILS
    • B62LBRAKES SPECIALLY ADAPTED FOR CYCLES
    • B62L3/00Brake-actuating mechanisms; Arrangements thereof
    • B62L3/02Brake-actuating mechanisms; Arrangements thereof for control by a hand lever
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B62LAND VEHICLES FOR TRAVELLING OTHERWISE THAN ON RAILS
    • B62LBRAKES SPECIALLY ADAPTED FOR CYCLES
    • B62L3/00Brake-actuating mechanisms; Arrangements thereof
    • B62L3/02Brake-actuating mechanisms; Arrangements thereof for control by a hand lever
    • B62L3/026Brake-actuating mechanisms; Arrangements thereof for control by a hand lever actuation by a turning handle or handlebar

Abstract

The application discloses a control method and device of a vehicle, the vehicle and a computer storage medium, wherein the method comprises the following steps: determining the number of times of target operation executed by a user; determining a target controllable component corresponding to the number of times from among at least one controllable component of the vehicle; generating a control instruction corresponding to the target controllable component; controlling the state of the target controllable component based on the control instruction.

Description

Vehicle control method and device, vehicle and computer storage medium
Technical Field
The present application relates to the field of vehicles, and in particular, to a method and an apparatus for controlling a vehicle, and a computer storage medium.
Background
At present, for various types of vehicles, such as a scooter and a balance vehicle, various types of controllable components are generally included on the vehicle, such as: headlights, foot pedals, atmosphere lights, brake assemblies, and throttle assemblies. For each of a plurality of controllable components on a vehicle, a single key, a toggle switch, or other physical control manner is usually set on the vehicle for the controllable component to implement control of the controllable component, and setting a corresponding key or switch for each controllable component increases hardware cost for vehicle design and production, is not favorable for miniaturization of relevant components (such as a handlebar or a head) of the vehicle, and is not intelligent enough for control of the controllable component on the vehicle.
Disclosure of Invention
In order to solve the technical problem, embodiments of the present application provide a method and an apparatus for controlling a vehicle, and a computer storage medium.
The embodiment of the application provides a control method of a vehicle, which comprises the following steps:
determining the times of target operation executed by a user;
determining a target controllable component corresponding to the number of times from among at least one controllable component of the vehicle;
generating a control instruction corresponding to the target controllable component;
controlling a state of the target controllable component based on the control instruction.
In an implementation manner of this application, the determining the number of times that the user performs the target operation includes:
detecting whether a user executes a first target operation; under the condition that the user is detected to execute the first target operation, determining the time length of the user for executing the first target operation; if the time length of the user for executing the first target operation belongs to a first time length range, determining that the first target operation is effective operation;
detecting whether a user executes the second target operation within a first time length after the first target operation is executed; and if the target operation is not executed, or the time length for executing the second target operation does not belong to the second time length range, determining that the number of times of executing the target operation by the user is 1.
In an embodiment of the application, the determining the target controllable component corresponding to the number of times includes:
in a case where the number of times the user performs the target operation is 1, determining that the target controllable component is an illumination lamp of a vehicle;
the controlling the state of the target controllable component includes:
if the initial state of the illuminating lamp is an on state, controlling the illuminating lamp to be switched to an off state;
if the initial state of the illuminating lamp is the closing state, the illuminating lamp is controlled to be switched to the opening state.
In an implementation manner of this application, the determining the number of times that the user performs the target operation includes:
detecting whether a user executes a first target operation; under the condition that the user is detected to execute the first target operation, determining the time length of the user for executing the first target operation; if the time length of the user for executing the first target operation belongs to a first time length range, determining that the first target operation is effective operation;
detecting whether a user executes the second target operation within a first time length after the first target operation is executed; if the second target operation is executed and the time length for executing the second target operation belongs to a second time length range, determining that the second target operation is effective operation;
detecting whether the user executes the third target operation within a second time length after the second target operation is executed; if the target operation is not executed, or the time length for executing the target operation for the third time does not belong to a third time length range, determining that the number of times of executing the target operation by the user is 2.
In an embodiment of the application, the determining the target controllable component corresponding to the number of times includes:
in the case where the number of times the user performs the target operation is 2, determining that the target controllable component is a pedal of a vehicle;
the controlling the state of the target controllable component includes:
if the initial state of the pedal is an open state and the pedal is in an unpopulated state, controlling the pedal to be switched to a closed state;
and if the initial state of the pedal is a closed state, controlling the pedal to be switched to an open state.
In an implementation manner of this application, the determining the number of times that the user performs the target operation includes:
detecting whether a user executes a first target operation; under the condition that the user is detected to execute the first target operation, determining the time length of the user for executing the first target operation; if the time length of the first time target operation executed by the user belongs to a first time length range, determining that the first time target operation is effective operation;
detecting whether a user executes the second target operation within a first time length after the execution of the first target operation is finished; if the second target operation is executed and the time length for executing the second target operation belongs to a second time length range, determining that the second target operation is effective operation;
detecting whether the user executes the third target operation within a second time length after the second target operation is executed; and if the third target operation is executed and the time length for executing the third target operation belongs to a third time length range, determining that the number of times of executing the target operation by the user is 3.
In an embodiment of the application, the determining the target controllable component corresponding to the number of times includes:
in the case where the number of times of the target operation performed by the user is 3, determining that the target controllable component is an ambience lamp of the vehicle; the atmosphere lamp supports at least two operating modes;
the controlling the state of the target controllable component includes:
if the initial working mode of the atmosphere lamp is a first working mode, controlling the atmosphere lamp to be switched to a second working mode; the second working mode is one of the at least two working modes and is different from the first working mode.
In one embodiment of the present application, the target operation is a braking operation.
In an implementation manner of this application, the method further includes:
determining a running speed of the vehicle before the control of the state of the target controllable component is performed;
if the running speed is greater than a speed threshold, not executing the operation of controlling the state of the target controllable component; otherwise, the operation of controlling the state of the target controllable component is performed.
An embodiment of the present application further provides a control apparatus for a vehicle, the apparatus including:
a first determination unit configured to determine the number of times a user performs a target operation;
a second determining unit configured to determine a target controllable component corresponding to the number of times from among at least one controllable component of the vehicle;
the generating unit is used for generating a control instruction corresponding to the target controllable component;
a control unit for controlling the state of the target controllable component based on the control instruction.
In an implementation manner of the present application, the first determining unit is specifically configured to detect whether a user performs a first target operation; under the condition that the user is detected to execute the first target operation, determining the time length of the user for executing the first target operation; if the time length of the first time target operation executed by the user belongs to a first time length range, determining that the first time target operation is effective operation; detecting whether a user executes the second target operation within a first time length after the first target operation is executed; and if the target operation is not executed or the time length for executing the second target operation does not belong to the second time length range, determining that the number of times of executing the target operation by the user is 1.
In an embodiment of the application, the second determining unit is specifically configured to determine that the target controllable component is an illumination lamp of a vehicle when the number of times that the user performs the target operation is 1;
the control unit is specifically used for controlling the illuminating lamp to be switched to a closed state if the initial state of the illuminating lamp is an on state; and if the initial state of the illuminating lamp is the closing state, controlling the illuminating lamp to be switched to the opening state.
In an implementation manner of the present application, the first determining unit is specifically configured to detect whether a user performs a first target operation; under the condition that the user is detected to execute the first target operation, determining the time length of the user for executing the first target operation; if the time length of the first time target operation executed by the user belongs to a first time length range, determining that the first time target operation is effective operation; detecting whether a user executes the second target operation within a first time length after the first target operation is executed; if the second target operation is executed and the time length for executing the second target operation belongs to a second time length range, determining that the second target operation is effective operation; detecting whether the user executes the third target operation within a second time length after the second target operation is executed; if the target operation is not executed, or the time length for executing the target operation for the third time does not belong to a third time length range, determining that the number of times of executing the target operation by the user is 2.
In an embodiment of the application, the second determining unit is specifically configured to determine that the target controllable component is a pedal of a vehicle when the number of times of target operations performed by the user is 2;
the control unit is specifically used for controlling the pedal to be switched to a closed state if the initial state of the pedal is an open state and the pedal is in an unpopulated state; and if the initial state of the pedal is a closed state, controlling the pedal to be switched to an open state.
In an implementation manner of this application, the first determining unit is specifically configured to detect whether a user performs a first target operation; under the condition that the user is detected to execute the first target operation, determining the time length of the user for executing the first target operation; if the time length of the user for executing the first target operation belongs to a first time length range, determining that the first target operation is effective operation; detecting whether a user executes the second target operation within a first time length after the execution of the first target operation is finished; if the second target operation is executed and the time length for executing the second target operation belongs to a second time length range, determining that the second target operation is effective operation; detecting whether the user executes the third target operation within a second time length after the second target operation is executed; and if the third target operation is executed and the time length for executing the third target operation belongs to a third time length range, determining that the number of times of executing the target operation by the user is 3.
In an embodiment of the application, the second determining unit is specifically configured to determine that the target controllable component is an atmosphere lamp of a vehicle when the number of times of target operations performed by the user is 3; the atmosphere lamp supports at least two operating modes;
the control unit is specifically configured to control the atmosphere lamp to switch to a second working mode if the initial working mode of the atmosphere lamp is a first working mode; the second working mode is one of the at least two working modes and is different from the first working mode.
In one embodiment of the present application, the target operation is a braking operation.
In an implementation manner of this application, the apparatus further includes:
a third determination unit configured to determine a traveling speed of the vehicle before the control of the state of the target controllable component is performed; if the running speed is greater than a speed threshold, not executing the operation of controlling the state of the target controllable component; otherwise, the operation of controlling the state of the target controllable component is performed.
The embodiment of the application further provides a vehicle, and the vehicle comprises the device in the embodiment.
The embodiment of the present application further provides a computer-readable storage medium for storing a computer program, where the computer program enables a computer to execute the method described in the above embodiment.
According to the technical scheme, the times of target operation executed by a user are determined; determining a target controllable component corresponding to the number of times from among at least one controllable component of the vehicle; generating a control instruction corresponding to the target controllable component; controlling a state of the target controllable component based on the control instruction. Therefore, the control method and the control device can determine the target controllable component to be controlled according to the operation times of the same operation component on the vehicle and control the state of the target controllable component, reduce the hardware cost for controlling different controllable components by respectively operating a plurality of controllable components on the vehicle, are favorable for the miniaturization of related components (such as a handlebar or a headstock) of the vehicle, and are more intelligent for the control of the controllable components on the vehicle.
Drawings
Fig. 1 is a schematic overall structure diagram of a scooter according to an embodiment of the present application;
FIG. 2 is a schematic flow chart illustrating a control method for a vehicle according to an embodiment of the present disclosure;
FIG. 3 is a schematic view of a vehicle brake operating member provided in an embodiment of the present application;
FIG. 4 is a schematic view of a vehicle brake detection assembly provided in an embodiment of the present application;
FIG. 5 is a block diagram of a control system of a vehicle according to an embodiment of the present disclosure;
fig. 6 is a schematic structural diagram of a control device of a vehicle according to an embodiment of the present application.
Detailed Description
So that the manner in which the features and aspects of the present application can be understood in detail, a more particular description of the invention, briefly summarized above, may be had by reference to embodiments, some of which are illustrated in the appended drawings.
The vehicle control method of the embodiment of the present application can be applied to various types of vehicles having pedals, for example: balance car and scooter. Use the vehicle as the scooter for example, fig. 1 is the overall structure schematic diagram of the scooter that this application embodiment provided, the scooter in fig. 1 includes: a handle bar 10, a stem 11, a headlight 12, a front wheel 13, a frame 14, an atmosphere lamp 15, a pedal 16, and a rear wheel 17; wherein the content of the first and second substances,
and a handle bar 10 installed at one end of the stem 11, the handle bar 10 including a left handle bar and a right handle bar, the left and right handle bars being respectively held when a user uses the scooter. In one embodiment, the left and right handlebars are further provided with brake components, respectively, and the scooter can be braked by kneading the brake components on the left and right handlebars.
The other end of the handle 11 is connected with a front wheel 13 for connecting the scooter body and the handlebar 10.
And a front lamp 12 mounted on the handlebar 11 for illuminating when the user uses the scooter.
The front wheel 13 and the rear wheel 17, the front wheel 13 and the rear wheel 17 are connected with a motor, and the motor drives the front wheel 13 and the rear wheel 17 to rotate, so that the scooter is driven to run.
And a frame 14 for connecting the front wheel 13 and the rear wheel 17 of the scooter.
Atmosphere lamp 15 for the demand according to different scenes provides different scene light pattern, creates the atmosphere for the user, promotes the science and technology sense of scooter.
A pedal 16, on which a user can stand and hold the handlebar 10 to drive the scooter.
Fig. 1 illustrates an electric scooter having various components, but it is to be understood that not all illustrated components are required to be implemented. More or fewer components may alternatively be implemented. The vehicle of the embodiment of the present application is not limited to the above-described scooter, and may be another type of vehicle.
Fig. 2 is a schematic flowchart of a control method for a vehicle according to an embodiment of the present application, and as shown in fig. 2, the control method includes the following steps:
step 201: the number of times the user performs the target operation is determined.
In the embodiment of the application, the target operation can be directed at the common operation of the vehicle, such as brake operation, whistle operation, on/off lamp operation and the like, and also can be a functional component which is independently arranged for realizing the technical scheme of the application, and the functional component can be in the form of a button or a toggle switch and the like. The present application is not particularly limited to the target operation. In a specific embodiment, the target operation is a braking operation.
FIG. 3 is a schematic view of a brake operating member of a vehicle according to an embodiment of the present invention, wherein the brake operating member includes a brake assembly 30, and a user can perform a braking operation by operating the brake operating member.
Fig. 4 is a schematic view of a vehicle braking detection component provided in an embodiment of the present application, and as shown in fig. 4, the vehicle braking detection component includes: brake cable 40, guide rail 41, slider 42, first magnet 43, hall module 44, second magnet 45, jackscrew 46. Wherein the content of the first and second substances,
the first magnet 43 and the second magnet 45 are mounted on the slider 42 and fixed to the brake cable 40 by the jackscrew 46, with the N-pole of the first magnet 43 facing downward and the S-pole of the second magnet 45 facing downward.
A hall module 44 is disposed below the first magnet 43 and the second magnet 45. When the user does not perform a braking operation, the first magnet 43 is located directly above the hall module 44. When the user performs a braking operation, the brake cable 40 drives the slider 42 to move, and the second magnet 45 is located right above the hall module 44.
After the user performs the braking operation, the hall module 44 can detect the change of the magnetic field and send a signal to the controller of the vehicle, and the controller can confirm that the user performs the braking operation after receiving the signal sent by the hall module 44.
In an optional embodiment of the present application, the determining the number of times that the user performs the target operation includes:
detecting whether a user executes a first target operation; under the condition that the user is detected to execute the first target operation, determining the time length of the user for executing the first target operation; if the time length of the user for executing the first target operation belongs to a first time length range, determining that the first target operation is effective operation;
detecting whether a user executes the second target operation within a first time length after the execution of the first target operation is finished; and if the target operation is not executed, or the time length for executing the second target operation does not belong to the second time length range, determining that the number of times of executing the target operation by the user is 1.
Specifically, taking the target operation as the braking operation as an example, the controller determines the time length for pressing the brake lever when the user performs the first braking operation after detecting that the user performs the first braking operation by the brake detection means shown in fig. 4, and for example, if the time length for pressing the brake lever when the user performs the first braking operation is 200 milliseconds, and the first time length range set by the present application is 50 milliseconds to 1000 milliseconds, the controller of the vehicle confirms that the first braking operation is the valid operation. Here, if the controller detects that the time for which the user presses the lever is less than 50 msec or more than 1000 msec through the brake detecting part, it is considered that the first braking operation is not effective.
Further, the controller can detect whether the user performs the second effective braking operation within the first time after the first braking operation is finished after confirming that the first braking operation of the user is effective. For example, the first time period may be set to 400 ms, and if it is not detected that the user performs the second effective braking operation within 400 ms after the user performs the first braking operation, it is confirmed that the user performs the braking operation only 1 time. Here, the second braking operation is effectively embodied as: the duration of the second time that the user presses the brake lever belongs to the second duration range. For example, the second time period range may be set to 50 milliseconds to 1000 milliseconds.
In an optional embodiment of the present application, the determining the number of times that the user performs the target operation includes:
detecting whether a user executes a first target operation; under the condition that the target operation for the first time is detected to be executed by the user, determining the time length of the target operation for the first time executed by the user; if the time length of the first time target operation executed by the user belongs to a first time length range, determining that the first time target operation is effective operation;
detecting whether a user executes the second target operation within a first time length after the execution of the first target operation is finished; if the second target operation is executed and the time length for executing the second target operation belongs to a second time length range, determining that the second target operation is effective operation;
detecting whether the user executes the third target operation within a second time length after the second target operation is executed; and if the target operation is not executed, or the time length for executing the third target operation does not belong to a third time length range, determining that the number of times of executing the target operation by the user is 2.
Specifically, taking the target operation as the braking operation as an example, the controller determines the time length for pressing the brake lever when the user performs the first braking operation after detecting that the user performs the first braking operation by the brake detection means shown in fig. 4, and for example, if the time length for pressing the brake lever when the user performs the first braking operation is 200 milliseconds, and the first time length range set by the present application is 50 milliseconds to 1000 milliseconds, the controller of the vehicle confirms that the first braking operation is the valid operation. Here, if the controller detects that the time for which the user presses the lever is less than 50 msec or more than 1000 msec through the brake detecting part, it is considered that the first braking operation is not effective.
Further, after confirming that the first braking operation of the user is effective, the controller may further detect whether the second effective braking operation is performed within a first time period after the first braking operation is performed by the user, for example, the first time period may be set to 400 milliseconds, and if it is detected that the second effective braking operation is performed by the user within 400 milliseconds after the first braking operation is performed by the user, further detect whether the third effective braking operation is performed within a second time period after the second braking operation is performed by the user, for example, the second time period may also be set to 400 milliseconds, and if it is not detected that the third effective braking operation is performed by the user within 400 milliseconds after the second braking operation is performed by the user, confirm that the user performs only the 2 braking operations. Here, the second braking operation is effectively embodied as: the duration for pressing the brake crank for the second time by the user belongs to a second duration range; the third brake operation is effective and specific: the duration for which the user presses the brake lever for the third time belongs to the third duration range. For example, the second and third time length ranges may each be set to 50 milliseconds to 1000 milliseconds.
In an optional embodiment of the present application, the determining the number of times that the user performs the target operation includes:
detecting whether a user executes a first target operation; under the condition that the user is detected to execute the first target operation, determining the time length of the user for executing the first target operation; if the time length of the user for executing the first target operation belongs to a first time length range, determining that the first target operation is effective operation;
detecting whether a user executes the second target operation within a first time length after the first target operation is executed; if the second target operation is executed and the time length for executing the second target operation belongs to a second time length range, determining that the second target operation is effective operation;
detecting whether the user executes the third target operation within a second time length after the second target operation is executed; and if the third target operation is executed and the time length for executing the third target operation belongs to a third time length range, determining that the number of times of executing the target operation by the user is 3.
Specifically, taking the target operation as the braking operation as an example, the controller determines the time length for pressing the brake lever when the user performs the first braking operation after detecting that the user performs the first braking operation by the brake detection means shown in fig. 4, and for example, if the time length for pressing the brake lever when the user performs the first braking operation is 200 milliseconds, and the first time length range set by the present application is 50 milliseconds to 1000 milliseconds, the controller of the vehicle confirms that the first braking operation is the valid operation. Here, if the controller detects that the time for which the user presses the lever is less than 50 msec or more than 1000 msec through the brake detecting part, it is considered that the first braking operation is not effective.
Further, after confirming that the first braking operation of the user is effective, the controller may detect whether the second effective braking operation is performed within a first time period after the first braking operation is performed by the user, for example, the first time period may be set to 400 milliseconds, and if it is detected that the second effective braking operation is performed by the user within 400 milliseconds after the first braking operation is performed by the user, further detect whether the third effective braking operation is performed within a second time period after the second braking operation is performed by the user, for example, the second time period may also be set to 400 milliseconds, and if it is detected that the third effective braking operation is performed by the user within 400 milliseconds after the second braking operation is performed by the user, confirm that the braking operation is performed by the user for 3 times. Here, the second braking operation is effectively embodied as: the duration for pressing the brake crank for the second time by the user belongs to a second duration range; the third brake operation is effective and specific: the duration for which the user presses the brake lever for the third time belongs to the third duration range. For example, the second and third time length ranges may each be set to 50 milliseconds to 1000 milliseconds.
Step 202: from among the at least one controllable component of the vehicle, a target controllable component corresponding to the number of times is determined.
In the embodiment of the application, the vehicle comprises a plurality of controllable components, such as a front light component, a rear light component, an alarm device, a brake component, an atmosphere lamp, a pedal and the like.
In the embodiment of the present application, the following three controllable components may be specifically selected as the controllable components corresponding to the number of times of the target operation: light, footboard, atmosphere lamp. Fig. 5 is a block diagram of a control system of a vehicle according to an embodiment of the present application, and as shown in fig. 5, a controller 50 of the vehicle may control an illumination lamp 51, a pedal 52, and an atmosphere lamp 53.
In one embodiment, in a case where the number of times the user performs the target operation is 1, it is determined that the target controllable component is an illumination lamp of a vehicle.
Specifically, if the target operation is a braking operation, the controller will determine the illumination lamp of the vehicle as the target controllable component in a case where it is determined that the user has performed only 1 braking operation.
In still another embodiment, in a case where the number of times the user performs the target operation is 2, it is determined that the target controllable component is a pedal of the vehicle.
Specifically, if the target operation is a braking operation, the controller will determine the pedal of the vehicle as the target controllable member in a case where it is determined that the user performs the braking operation twice.
In another embodiment, in a case where the number of times the user performs the target operation is 3, it is determined that the target controllable component is an atmosphere lamp of a vehicle; the atmosphere lamp supports at least two operating modes;
specifically, if the target operation is a braking operation, the controller will determine the ambience lamp of the vehicle as the target controllable component in case it is determined that the user performs the braking operation 3 times.
It should be noted that the manner of determining the target controllable component based on the number of target operations in the embodiments of the present application is not limited to the above 3 forms. Also, the correspondence between the number of target operations enumerated above and the controllable components may be replaced. For example, the controller may also determine the pedal of the vehicle as the target controllable component in the case where it is determined that the user has performed only 1 braking operation; in the case where it is determined that the user performs the braking operation twice, regarding an atmosphere lamp of the vehicle as a target controllable component; and in the case where it is determined that the user performs the braking operation 3 times, the illumination lamp of the vehicle will be determined as the target controllable component. In addition, the number of times of executing the target operation and the corresponding target controllable component in the embodiment of the present application may be arbitrarily replaced, as long as there is a specific correspondence between the number of times of executing the target operation and the target controllable component.
Step 203: and generating a control instruction corresponding to the target controllable component.
Specifically, in the embodiment of the present application, after determining the number of times that a user performs a target operation and determining a target controllable component corresponding to the number of times that the user performs the target operation, the controller directly generates a control instruction for the determined target controllable component, thereby implementing control over a state of the target controllable component.
For example, in one embodiment, the controller will generate a control instruction for the illumination lamp if it is determined that the user has performed only 1 braking operation and the corresponding target controllable component when performing one braking operation is determined to be the illumination lamp.
In one embodiment, the controller generates a control command for the pedal in the case where it is determined that the user performed two braking operations and the corresponding target controllable component at the time of performing the two braking operations is determined to be the pedal.
In one embodiment, the controller will generate a control instruction for the ambience lamp in a case where it is determined that the user performed 3 times of braking operations and the corresponding target controllable component when performing 3 times of braking operations is determined to be the ambience lamp.
Step 204: controlling the state of the target controllable component based on the control instruction.
Here, the controller may directly control the determined state of the target controllable component based on the control instruction.
In one embodiment, in a case where it is determined that the user has performed only 1 braking operation and the corresponding target controllable component when performing one braking operation is determined as the illumination lamp, the controlling the state of the target controllable component includes:
if the initial state of the illuminating lamp is an on state, controlling the illuminating lamp to be switched to an off state;
and if the initial state of the illuminating lamp is the closing state, controlling the illuminating lamp to be switched to the opening state.
Specifically, in the case where the user performs only 1 braking operation, the controller can detect the current state of the illumination lamp and switch the illumination lamp between the off state and the on state.
In one embodiment, in a case where it is determined that the user performs two braking operations and a corresponding target controllable device at the time of performing the two braking operations is determined as a pedal, the controlling the state of the target controllable device includes:
if the initial state of the pedal is an open state and the pedal is in an unloaded state, controlling the pedal to be switched to a closed state;
and if the initial state of the pedal is a closed state, controlling the pedal to be switched to an open state.
Specifically, in the case where the user performs the braking operation twice, the controller can detect the current state of the pedal, and switch the state of the pedal between the closed state and the open state.
When the pedal is switched from the open state to the closed state, the manned state of the pedal needs to be combined, if the initial state of the pedal is detected to be the open state after the brake operation is performed twice, the manned state of the pedal needs to be further combined, and the operation of switching the pedal from the open state to the closed state is performed only if the pedal is further determined to be in the unpopulated state; if the initial state of the pedal is detected to be the open state after the braking operation is performed twice, but the pedal is in the manned state, the operation of switching the pedal from the open state to the closed state is not performed.
In one embodiment, in the case where it is determined that the user performed the braking operation 3 times and the corresponding target controllable component when the braking operation 3 times was performed is determined to be the atmosphere lamp, the controlling the state of the target controllable component includes:
if the initial working mode of the atmosphere lamp is a first working mode, controlling the atmosphere lamp to be switched to a second working mode; the second working mode is one of the at least two working modes and is different from the first working mode.
Here, the operation modes of the atmosphere lamp may include, but are not limited to, the following: full-color running water, full-color breathing, colorful neon, a warning light mode, a double-color flashing and light-off mode.
In the case where the user performs the braking operation 3 times, the controller can detect the current operation mode of the atmosphere lamp and switch the operation mode of the atmosphere lamp. For example, if the current operating mode of the ambience lamp is a full-flow water lamp, the controller may switch the operating mode of the ambience lamp to a glare neon operating mode.
In a preferred embodiment, the method of the embodiment of the present application further includes: determining a running speed of the vehicle before the control of the state of the target controllable component is performed; if the running speed is greater than a speed threshold, not executing the operation of controlling the state of the target controllable component; otherwise, the operation of controlling the state of the target controllable component is performed.
Specifically, if the target operation is specifically a brake operation, in order to realize timely braking under the condition that the vehicle running speed is relatively high, according to the technical scheme of the embodiment of the application, the current running speed of the vehicle can be determined before the state of the target controllable component is controlled, and if the current running speed of the vehicle exceeds a set speed threshold, for example, for a scooter, the speed threshold can be specifically set to be 3 kilometers per hour, the brake operation is only used for realizing braking, so that the situation that a user performs the brake operation when the running speed of the vehicle is relatively high is avoided, and the controller misjudges the brake operation as the purpose of changing the state of the target controllable component, so that the brake cannot be performed according to the intention of the user, and potential safety hazards are brought to the user.
According to the technical scheme, the target controllable component to be controlled can be determined according to the times of operating the same operating component on the vehicle and the state of the target controllable component can be controlled, so that the hardware cost for controlling different controllable components by respectively operating a plurality of controllable components on the vehicle is reduced, the miniaturization of related components (such as a handlebar or a vehicle head) of the vehicle is facilitated, and the control of the controllable components on the vehicle is more intelligent.
An embodiment of the present application further provides a control apparatus for a vehicle, the apparatus including:
a first determination unit 60 for determining the number of times the user performs the target operation;
a second determining unit 61 for determining a target controllable component corresponding to the number of times from among at least one controllable component of the vehicle;
a generating unit 62, configured to generate a control instruction corresponding to the target controllable component;
a control unit 63 for controlling the state of the target controllable component based on the control instruction.
In an implementation manner of the present application, the first determining unit 60 is specifically configured to detect whether a user performs a first target operation; under the condition that the user is detected to execute the first target operation, determining the time length of the user for executing the first target operation; if the time length of the first time target operation executed by the user belongs to a first time length range, determining that the first time target operation is effective operation; detecting whether a user executes the second target operation within a first time length after the first target operation is executed; and if the target operation is not executed or the time length for executing the second target operation does not belong to the second time length range, determining that the number of times of executing the target operation by the user is 1.
In an embodiment of the application, the second determining unit 61 is specifically configured to determine that the target controllable component is an illumination lamp of a vehicle when the number of times of target operations performed by the user is 1;
the control unit is specifically used for controlling the illuminating lamp to be switched to a closed state if the initial state of the illuminating lamp is an on state; and if the initial state of the illuminating lamp is the closing state, controlling the illuminating lamp to be switched to the opening state.
In an implementation manner of the present application, the first determining unit 60 is specifically configured to detect whether a user performs a first target operation; under the condition that the target operation for the first time is detected to be executed by the user, determining the time length of the target operation for the first time executed by the user; if the time length of the user for executing the first target operation belongs to a first time length range, determining that the first target operation is effective operation; detecting whether a user executes the second target operation within a first time length after the first target operation is executed; if the second target operation is executed and the time length for executing the second target operation belongs to a second time length range, determining that the second target operation is effective operation; detecting whether the user executes the third target operation within a second time length after the second target operation is executed; and if the target operation is not executed, or the time length for executing the third target operation does not belong to a third time length range, determining that the number of times of executing the target operation by the user is 2.
In an embodiment of the application, the second determining unit 61 is specifically configured to determine that the target controllable component is a pedal of a vehicle when the number of times that the user performs the target operation is 2;
the control unit 63 is specifically configured to control the pedal to switch to the closed state if the initial state of the pedal is the open state and the pedal is in the non-manned state; and if the initial state of the pedal is a closed state, controlling the pedal to be switched to an open state.
In an implementation manner of the present application, the first determining unit 60 is specifically configured to detect whether a user performs a first target operation; under the condition that the user is detected to execute the first target operation, determining the time length of the user for executing the first target operation; if the time length of the first time target operation executed by the user belongs to a first time length range, determining that the first time target operation is effective operation; detecting whether a user executes the second target operation within a first time length after the first target operation is executed; if the second target operation is executed and the time length for executing the second target operation belongs to a second time length range, determining that the second target operation is effective operation; detecting whether the user executes the third target operation within a second time length after the second target operation is executed; and if the third target operation is executed and the time length for executing the third target operation belongs to a third time length range, determining that the number of times of executing the target operation by the user is 3.
In an embodiment of the application, the second determining unit 61 is specifically configured to determine that the target controllable component is an atmosphere lamp of a vehicle when the number of times of target operations performed by the user is 3; the atmosphere lamp supports at least two operating modes;
the control unit 63 is specifically configured to control the atmosphere lamp to switch to a second operating mode if the initial operating mode of the atmosphere lamp is the first operating mode; the second working mode is one of the at least two working modes and is different from the first working mode.
In one embodiment of the present application, the target operation is a braking operation.
In an implementation manner of this application, the apparatus further includes:
a third determining unit 64 for determining a traveling speed of the vehicle before the control of the state of the target controllable component is performed; if the running speed is greater than a speed threshold, not executing the operation of controlling the state of the target controllable component; otherwise, the operation of controlling the state of the target controllable component is performed.
Those skilled in the art will appreciate that the functions implemented by the respective units in the vehicle control apparatus shown in fig. 6 can be understood with reference to the foregoing description of the control method of the vehicle. The functions of the respective units in the control device of the vehicle shown in fig. 6 may be realized by a program running on a processor, or may be realized by a specific logic circuit.
The embodiment of the application also provides a vehicle, and the vehicle comprises the device in the embodiment.
The embodiment of the present application further provides a computer-readable storage medium for storing a computer program, where the computer program enables a computer to execute the method described in the above embodiment.
The technical solutions described in the embodiments of the present application may be arbitrarily combined without conflict.
In the several embodiments provided in the present application, it should be understood that the disclosed method and intelligent device may be implemented in other ways. The above-described device embodiments are merely illustrative, for example, the division of the unit is only a logical functional division, and there may be other division ways in actual implementation, such as: multiple units or components may be combined, or may be integrated into another system, or some features may be omitted, or not implemented. In addition, the coupling, direct coupling or communication connection between the components shown or discussed may be through some interfaces, and the indirect coupling or communication connection between the devices or units may be electrical, mechanical or other forms.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed on a plurality of network units; some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, all functional units in the embodiments of the present application may be integrated into one second processing unit, or each unit may be separately regarded as one unit, or two or more units may be integrated into one unit; the integrated unit may be implemented in the form of hardware, or in the form of hardware plus a software functional unit.
The above description is only for the specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present application, and shall be covered by the scope of the present application.

Claims (18)

1. A control method of a vehicle, characterized by comprising:
determining the number of times of target operation executed by a user;
determining a target controllable component corresponding to the number of times from among at least one controllable component of the vehicle;
generating a control instruction corresponding to the target controllable component;
controlling the state of the target controllable component based on the control instruction; wherein the method further comprises:
determining a running speed of the vehicle before the control of the state of the target controllable component is performed;
if the running speed is greater than a speed threshold, not executing the operation of controlling the state of the target controllable component; otherwise, the operation of controlling the state of the target controllable component is performed.
2. The method of claim 1, wherein determining the number of times the user performs the target operation comprises:
detecting whether a user executes a first target operation; under the condition that the target operation for the first time is detected to be executed by the user, determining the time length of the target operation for the first time executed by the user; if the time length of the user for executing the first target operation belongs to a first time length range, determining that the first target operation is effective operation;
detecting whether a user executes the second target operation within a first time length after the first target operation is executed; and if the target operation is not executed, or the time length for executing the second target operation does not belong to the second time length range, determining that the number of times of executing the target operation by the user is 1.
3. The method of claim 2, wherein the determining the target controllable component corresponding to the number of times comprises:
in a case where the number of times the user performs the target operation is 1, determining that the target controllable component is an illumination lamp of a vehicle;
the controlling the state of the target controllable component includes:
if the initial state of the illuminating lamp is an on state, controlling the illuminating lamp to be switched to an off state;
and if the initial state of the illuminating lamp is the closing state, controlling the illuminating lamp to be switched to the opening state.
4. The method of claim 1, wherein determining the number of times the user performs the target operation comprises:
detecting whether a user executes a first target operation; under the condition that the user is detected to execute the first target operation, determining the time length of the user for executing the first target operation; if the time length of the user for executing the first target operation belongs to a first time length range, determining that the first target operation is effective operation;
detecting whether a user executes the second target operation within a first time length after the first target operation is executed; if the second target operation is executed and the time length for executing the second target operation belongs to a second time length range, determining that the second target operation is effective operation;
detecting whether the user executes the third target operation within a second time length after the second target operation is executed; if the target operation is not executed, or the time length for executing the target operation for the third time does not belong to a third time length range, determining that the number of times of executing the target operation by the user is 2.
5. The method of claim 4, wherein determining the target controllable component corresponding to the number of times comprises:
in a case where the number of times of the user performing the target operation is 2, determining that the target controllable component is a pedal of a vehicle;
the controlling the state of the target controllable component includes:
if the initial state of the pedal is an open state and the pedal is in an unpopulated state, controlling the pedal to be switched to a closed state;
and if the initial state of the pedal is a closed state, controlling the pedal to be switched to an open state.
6. The method of claim 1, wherein determining the number of times the user performs the target operation comprises:
detecting whether a user executes a first target operation; under the condition that the user is detected to execute the first target operation, determining the time length of the user for executing the first target operation; if the time length of the user for executing the first target operation belongs to a first time length range, determining that the first target operation is effective operation;
detecting whether a user executes the second target operation within a first time length after the first target operation is executed; if the second target operation is executed and the time length for executing the second target operation belongs to a second time length range, determining that the second target operation is effective operation;
detecting whether the user executes the third target operation within a second time length after the second target operation is executed; and if the third target operation is executed and the time length for executing the third target operation belongs to a third time length range, determining that the number of times of executing the target operation by the user is 3.
7. The method of claim 6, wherein determining the target controllable component corresponding to the number of times comprises:
in the case where the number of times the user performed the target operation is 3, determining that the target controllable component is an atmosphere lamp of a vehicle; the atmosphere lamp supports at least two operating modes;
the controlling the state of the target controllable component includes:
if the initial working mode of the atmosphere lamp is a first working mode, controlling the atmosphere lamp to be switched to a second working mode; the second working mode is one of the at least two working modes and is different from the first working mode.
8. The method of any one of claims 1 to 7, wherein the target operation is a braking operation.
9. A control apparatus of a vehicle, characterized by comprising:
a first determination unit configured to determine the number of times a user performs a target operation;
a second determination unit configured to determine a target controllable component corresponding to the number of times from among at least one controllable component of the vehicle;
the generating unit is used for generating a control instruction corresponding to the target controllable component;
a control unit configured to control a state of the target controllable component based on the control instruction;
a third determination unit configured to determine a traveling speed of the vehicle before the control of the state of the target controllable component is performed; if the running speed is greater than a speed threshold, not executing the operation of controlling the state of the target controllable component; otherwise, the operation of controlling the state of the target controllable component is performed.
10. The apparatus according to claim 9, wherein the first determining unit is specifically configured to detect whether a user performs a first target operation; under the condition that the user is detected to execute the first target operation, determining the time length of the user for executing the first target operation; if the time length of the user for executing the first target operation belongs to a first time length range, determining that the first target operation is effective operation; detecting whether a user executes the second target operation within a first time length after the first target operation is executed; and if the target operation is not executed, or the time length for executing the second target operation does not belong to the second time length range, determining that the number of times of executing the target operation by the user is 1.
11. The apparatus of claim 10,
the second determining unit is specifically configured to determine that the target controllable component is an illumination lamp of a vehicle, when the number of times of target operations performed by the user is 1;
the control unit is specifically used for controlling the illuminating lamp to be switched to a closed state if the initial state of the illuminating lamp is an on state; if the initial state of the illuminating lamp is the closing state, the illuminating lamp is controlled to be switched to the opening state.
12. The apparatus according to claim 9, wherein the first determining unit is specifically configured to detect whether a user performs a first target operation; under the condition that the user is detected to execute the first target operation, determining the time length of the user for executing the first target operation; if the time length of the user for executing the first target operation belongs to a first time length range, determining that the first target operation is effective operation; detecting whether a user executes the second target operation within a first time length after the execution of the first target operation is finished; if the second target operation is executed and the time length for executing the second target operation belongs to a second time length range, determining that the second target operation is effective operation; detecting whether the user executes the third target operation within a second time length after the second target operation is executed; and if the target operation is not executed, or the time length for executing the third target operation does not belong to a third time length range, determining that the number of times of executing the target operation by the user is 2.
13. The apparatus of claim 12,
the second determining unit is specifically configured to determine that the target controllable component is a pedal of a vehicle when the number of times the user performs the target operation is 2;
the control unit is specifically used for controlling the pedal to be switched to a closed state if the initial state of the pedal is an open state and the pedal is in an unpopulated state; and if the initial state of the pedal is a closed state, controlling the pedal to be switched to an open state.
14. The apparatus according to claim 9, wherein the first determining unit is specifically configured to detect whether a user performs a first target operation; under the condition that the user is detected to execute the first target operation, determining the time length of the user for executing the first target operation; if the time length of the user for executing the first target operation belongs to a first time length range, determining that the first target operation is effective operation; detecting whether a user executes the second target operation within a first time length after the execution of the first target operation is finished; if the second target operation is executed and the time length for executing the second target operation belongs to a second time length range, determining that the second target operation is effective operation; detecting whether the user executes the third target operation within a second time length after the second target operation is executed; and if the third target operation is executed and the time length for executing the third target operation belongs to a third time length range, determining that the number of times of executing the target operation by the user is 3.
15. The apparatus of claim 14,
the second determining unit is specifically configured to determine that the target controllable component is an atmosphere lamp of the vehicle, when the number of times the target operation is performed by the user is 3; the atmosphere lamp supports at least two operating modes;
the control unit is specifically configured to control the atmosphere lamp to switch to a second working mode if the initial working mode of the atmosphere lamp is a first working mode; the second working mode is one of the at least two working modes and is different from the first working mode.
16. The device of any one of claims 9 to 15, wherein the target operation is a braking operation.
17. A vehicle, characterized in that it comprises a device according to any one of claims 9 to 16.
18. A computer-readable storage medium for storing a computer program which causes a computer to perform the method of any one of claims 1 to 8.
CN202010607547.3A 2020-06-29 2020-06-29 Vehicle control method and device, vehicle and computer storage medium Active CN113928455B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202010607547.3A CN113928455B (en) 2020-06-29 2020-06-29 Vehicle control method and device, vehicle and computer storage medium
PCT/CN2021/099101 WO2022001603A1 (en) 2020-06-29 2021-06-09 Vehicle control method and apparatus, vehicle, and computer storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010607547.3A CN113928455B (en) 2020-06-29 2020-06-29 Vehicle control method and device, vehicle and computer storage medium

Publications (2)

Publication Number Publication Date
CN113928455A CN113928455A (en) 2022-01-14
CN113928455B true CN113928455B (en) 2023-02-03

Family

ID=79273004

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010607547.3A Active CN113928455B (en) 2020-06-29 2020-06-29 Vehicle control method and device, vehicle and computer storage medium

Country Status (2)

Country Link
CN (1) CN113928455B (en)
WO (1) WO2022001603A1 (en)

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9229712B2 (en) * 2013-09-10 2016-01-05 Shimano Inc. Bicycle component control apparatus
JP2016020113A (en) * 2014-07-11 2016-02-04 株式会社村田製作所 Control method for power-assisted bicycle
CN104494752B (en) * 2015-01-05 2019-04-02 鼎力联合(北京)科技有限公司 Dynamic balancing vehicle and its man-machine interaction method
JP6553440B2 (en) * 2015-07-29 2019-07-31 株式会社シマノ Operation control device and display device for bicycle
CN105882812A (en) * 2015-08-11 2016-08-24 乐视体育文化产业发展(北京)有限公司 Headlamp controlling method and bicycle
CN106347545A (en) * 2016-09-04 2017-01-25 芜湖纯元光电设备技术有限公司 Balance car control method based on human-computer interaction
CN207157414U (en) * 2017-06-08 2018-03-30 成都爱嘿科技有限公司 Double mode Self-balance electric vehicle
EP3564107A1 (en) * 2018-04-30 2019-11-06 Accelerated Systems Inc. Method and apparatus for controlling a vehicle
TWI673202B (en) * 2018-11-16 2019-10-01 Tektro Technology Corporation Bicycle component control method

Also Published As

Publication number Publication date
CN113928455A (en) 2022-01-14
WO2022001603A1 (en) 2022-01-06

Similar Documents

Publication Publication Date Title
CN105270407B (en) A kind of autonomous driving vehicle driving mode switching method and system
CN110281891B (en) Automatic parking method based on multi-sensor fusion
CN113928455B (en) Vehicle control method and device, vehicle and computer storage medium
CN113467412B (en) System and method for vehicle driving mode integrated linkage
JPS60148732A (en) Winker device
US6693526B1 (en) Brake light system for a vehicle
CN113928452B (en) Switching method and device of vehicle pedal state, vehicle and storage medium
JPH11301547A (en) Tail lamp controller for bicycle
CN112706690A (en) Intelligent flashing system, intelligent vehicle front component, motor controller, combination switch and electric vehicle
JP6990045B2 (en) Motor drive control device and electrically power assisted vehicle
JP2011225055A (en) Stop lamp control device
CN214874497U (en) Vehicle and brake lamp control circuit thereof
CN103909862B (en) A kind of gradual change type automobile tail light device
CN218506051U (en) All-terrain vehicle
CN213502777U (en) Vehicle control circuit, bicycle and electric vehicle
KR101011317B1 (en) Control Device of brake lamp of wheel type construction heavy equipment
CN109901585A (en) Luggage vehicle drive control system
JPH09142199A (en) Automatic blinking device for headlight
WO2006005966A1 (en) Brake lights controller
KR19990050623A (en) Apparatus for distinguishing between simultaneous use of turn signals and emergency lights
JPH10250467A (en) Turn signal lamp drive system
CN113071595A (en) System and method for controlling scooter riding mode and scooter
KR100252231B1 (en) Stop lamp device
JP3729373B2 (en) Electric vehicle control method
KR20040011134A (en) Apparatus for brake lamp lighting of a vehicle and controlling method thereof

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant