Disclosure of Invention
The embodiment of the application provides a power mode switching method, a device, electronic equipment and a storage medium, which can intelligently switch the power mode of a vehicle according to the running state of the vehicle without manual switching of a user, thereby improving the efficiency of switching the power mode and improving the driving experience of the user. The technical scheme is as follows:
in one aspect, a power mode switching method is provided, the method including:
acquiring vehicle operation information, wherein the vehicle operation information is used for representing the operation state of a vehicle through parameter values of a plurality of state parameters;
Determining a target preset condition based on the vehicle running information, wherein the target preset condition is a preset condition which is met by the state parameters in a plurality of preset conditions, and the plurality of preset conditions correspond to a plurality of power modes;
And responding to any instruction associated with the target preset condition, and switching the power supply mode of the vehicle into a target power supply mode corresponding to the target preset condition.
In another aspect, there is provided a power mode switching apparatus, the apparatus including:
the system comprises an acquisition module, a control module and a control module, wherein the acquisition module is used for acquiring vehicle operation information, and the vehicle operation information is used for representing the operation state of a vehicle through parameter values of a plurality of state parameters;
The first determining module is used for determining a target preset condition based on the vehicle running information, wherein the target preset condition is a preset condition which is met by the state parameters in a plurality of preset conditions, and the preset conditions correspond to a plurality of power modes;
And the switching module is used for responding to any instruction associated with the target preset condition and switching the power supply mode of the vehicle into a target power supply mode corresponding to the target preset condition.
In some embodiments, the acquiring module is configured to acquire, in real time, vehicle operation information transmitted through a CAN bus of the vehicle, where a state parameter in the vehicle operation information includes at least one of a power mode, an anti-theft mode, a vehicle mode, a gear, a vehicle speed, a door state, a seat state, a key matching state, a key state, a security authentication state, and a time duration.
In some embodiments, the first determining module is configured to, for any preset condition, extract parameter values of a plurality of state parameters from the vehicle operation information based on the plurality of state parameters indicated by the preset condition; matching the parameter values of the plurality of state parameters with preset values of the plurality of state parameters indicated by the preset conditions; and if the parameter value is matched with the preset value, determining the preset condition as the target preset condition.
In some embodiments, the current power mode of the vehicle is an OFF mode, the target power mode is an ACC mode, and the target preset condition includes a key matching state being an unmatched state, where the unmatched state is used to indicate that the vehicle does not establish a matching relationship with the key;
the switching module is used for responding to an opening instruction of a main driving door and switching the power mode of the vehicle from the OFF mode to the ACC mode.
In some embodiments, the current power mode of the vehicle is an OFF mode, the target power mode is an ACC mode, the target preset condition includes an antitheft mode being an OFF state, a key matching state being a matching state, the OFF state being used for indicating that the vehicle is unlocked, and the matching state being used for indicating that the vehicle has established a matching relationship with the key;
the switching module is used for responding to an opening instruction of a main driving door and switching the power mode of the vehicle from the OFF mode to the ACC mode.
In some embodiments, the current power mode of the vehicle is an OFF mode, the target power mode is an ACC mode, the target preset condition includes a key matching state being a matching state for indicating that the vehicle has established a matching relationship with a key, and a key state being an invalid state for indicating that the vehicle has not identified a matching key;
the switching module is used for responding to a braking instruction of a brake pedal of the vehicle and switching the power mode of the vehicle from the OFF mode to the ACC mode.
In some embodiments, the current power mode of the vehicle is an OFF mode, the target power mode is an ACC mode, the target preset condition includes a key state being a valid state, the distance value between the vehicle and the matched key gradually decreases, the valid state being used to indicate that the vehicle has identified the matched key;
the switching module is used for responding to a switching instruction, switching the power mode of the vehicle from the OFF mode to the ACC mode, and the switching instruction is sent out when the distance value is smaller than a distance threshold value.
In some embodiments, the current power mode of the vehicle is an OFF mode, the target power mode is an ON mode, the target preset condition includes a key matching state being a matching state, the key state being an active state, the matching state being used to indicate that the vehicle has established a matching relationship with the key, the active state being used to indicate that the vehicle has identified a matching key;
The switching module is used for responding to a braking instruction of a brake pedal of the vehicle and switching the power supply mode of the vehicle from the OFF mode to the ON mode.
In some embodiments, the current power mode of the vehicle is an OFF mode, the target power mode is an ON mode, the target preset condition includes that a key matching state is an unmatched state, a gear is neutral or a parking gear, and the vehicle mode is a factory mode, wherein the unmatched state is used for indicating that the vehicle does not establish a matching relationship with the key;
The switching module is used for responding to a braking instruction of a brake pedal of the vehicle, switching the power supply mode of the vehicle from the OFF mode to the ON mode, and counting time through a timer so that the vehicle can switch the power supply mode from the ON mode to the ACC mode when the counted time length reaches a first time length.
In some embodiments, the current power mode of the vehicle is an OFF mode, the target power mode is an ON mode, the target preset condition includes that a gear is a parking gear, a vehicle speed is not greater than a vehicle speed threshold value, and a safety authentication state of the vehicle is that safety authentication is passed;
The switching module is used for responding to a remote upgrading OTA power-ON instruction, switching the power supply mode of the vehicle from the OFF mode to the ON mode, and timing through a timer so that the vehicle switches the power supply mode from the ON mode to the OFF mode under the condition that the timing duration reaches a second duration.
In some embodiments, the current power mode of the vehicle is an ACC mode, the target power mode is an OFF mode, and the target preset condition includes that the seat state of the main driver seat is an unmanned state, a plurality of doors are in a closed state, a gear is a parking gear, and the vehicle speed is not greater than a vehicle speed threshold;
The switching module is used for responding to any car locking instruction and switching the power mode of the vehicle from the ACC mode to the OFF mode.
In some embodiments, the current power mode of the vehicle is an ACC mode, the target power mode is an OFF mode, the target preset condition includes a gear being a parking gear, and a vehicle speed being not greater than a vehicle speed threshold, and the target preset condition further includes any one of: the high-voltage power supply is not connected, the vehicle mode is a transportation mode, and the vehicle mode is a factory mode;
the switching module is configured to switch a power mode of the vehicle from the ACC mode to the OFF mode in response to a switching instruction, where the switching instruction is issued when a duration of the plurality of state parameters of the vehicle satisfying the target preset condition reaches a third duration.
In some embodiments, the current power mode of the vehicle is an ACC mode, the target power mode is an OFF mode, and the target preset condition includes that the gear is a parking gear or neutral gear, and the vehicle speed is not greater than a vehicle speed threshold;
The switching module is used for responding to an emergency power-down instruction and switching the power mode of the vehicle from the ACC mode to the OFF mode.
In some embodiments, the current power mode of the vehicle is an ACC mode, the target power mode is an ON mode, the target preset condition includes a key matching state being an unmatched state, a gear being a parking gear or neutral gear, the vehicle mode being a factory mode, the unmatched state being used to indicate that the vehicle does not establish a matching relationship with the key;
The switching module is used for responding to a braking instruction of a brake pedal of the vehicle, switching the power supply mode of the vehicle from the ACC mode to the ON mode, and counting time through a timer, so that the vehicle can switch the power supply mode from the ON mode to the ACC mode under the condition that the counting time length reaches a first time length.
In some embodiments, the current power mode of the vehicle is an ACC mode, the target power mode is an ON mode, the target preset condition includes a key matching state being a matching state, the key state being an active state, the matching state being used to indicate that the vehicle has established a matching relationship with the key, the active state being used to indicate that the vehicle has identified a matching key;
The switching module is used for responding to a braking instruction of a brake pedal of the vehicle and switching the power mode of the vehicle from the ACC mode to the ON mode.
In some embodiments, the current power mode of the vehicle is an ACC mode, the target power mode is an ON mode, the target preset condition includes that a gear is a parking gear, a vehicle speed is not greater than a vehicle speed threshold value, and a safety authentication state of the vehicle is that safety authentication is passed;
The switching module is used for responding to an OTA power-ON instruction, switching the power supply mode of the vehicle from the ACC mode to the ON mode, and counting by a timer, so that the vehicle switches the power supply mode from the ON mode to the OFF mode under the condition that the counted time length reaches a second time length.
In some embodiments, the current power mode of the vehicle is an ON mode, the target power mode is an ACC mode, the target preset condition includes that a key matching state when the power mode is switched last time is a matching state, a gear is a parking gear, and a vehicle speed is not greater than a vehicle speed threshold, and the matching state is used for indicating that the vehicle has established a matching relationship with the key;
The switching module is used for responding to a time-delay switching instruction, switching the power supply mode of the vehicle from the ON mode to the ACC mode after a preset time length, wherein the time-delay switching instruction is sent out under the condition that a plurality of state parameters of the vehicle meet switching conditions, and the switching conditions comprise that the seat state of a main driver seat is an unmanned state, the vehicle door of the main driving position is an open state and the brake pedal is an un-depressed state.
In some embodiments, the current power mode of the vehicle is an ON mode, the target power mode is an ACC mode, the target preset condition includes that the vehicle mode when the power mode is switched last time is a factory mode, and the timer is in a timing state;
The switching module is used for responding to a switching instruction, switching the power supply mode of the vehicle from the ON mode to the ACC mode, and the switching instruction is sent out when the timing duration of the timer reaches a first duration.
In some embodiments, the current power mode of the vehicle is an ON mode, the target power mode is an ACC mode, the target preset condition includes that the seat state of the main driver seat is an unmanned state, the key state is an active state, the distance value between the vehicle and the matched key is gradually increased, and the active state is used for indicating that the vehicle has identified the matched key;
the switching module is used for responding to a switching instruction, switching the power mode of the vehicle from the ON mode to the ACC mode, and the switching instruction is sent out when the distance value is larger than a distance threshold value.
In some embodiments, the current power mode of the vehicle is an ON mode, the target power mode is an OFF mode, and the target preset condition includes that a last instruction for switching the power mode is an OTA power-ON instruction, a gear is a parking gear, and a vehicle speed is not greater than a vehicle speed threshold;
And the switching module is used for responding to an OTA power-down instruction and switching the power supply mode of the vehicle from the ON mode to the OFF mode.
In some embodiments, the current power mode of the vehicle is an ON mode, the target power mode is an OFF mode, the target preset condition includes that the last instruction for switching the power mode is an OTA power-ON instruction, and the timer is in a timing state;
The switching module is used for responding to a switching instruction, switching the power supply mode of the vehicle from the ON mode to the OFF mode, and the switching instruction is sent out when the timing duration of the timer reaches a second duration.
In some embodiments, the current power mode of the vehicle is an ON mode, the target power mode is an OFF mode, and the target preset condition includes a gear being a parking gear, and a vehicle speed being not greater than a vehicle speed threshold;
The switching module is used for responding to an emergency power-down instruction and switching the power mode of the vehicle from the ON mode to the OFF mode.
In some embodiments, the apparatus further comprises:
the second determining module is used for determining the target power supply mode based on the history switching information of the vehicle, wherein the history switching information comprises a switching record of the power supply mode of the vehicle, and the target power supply mode is the power supply mode of the vehicle at a plurality of history moments corresponding to the current moment;
A sending module, configured to send a mode switching request to a target device, where the mode switching request is used to request switching of a power supply mode of the vehicle to the target power supply mode, and the target device is a device used by a user object driving the vehicle;
The updating module is used for responding to the confirmation switching response replied by the target equipment, updating a plurality of state parameters of the vehicle based on a target preset condition corresponding to the target power mode so as to enable the plurality of state parameters to meet the target preset condition;
the switching module is further configured to switch a power mode of the vehicle to the target power mode if the plurality of state parameters satisfy the target preset condition.
In another aspect, an electronic device is provided, where the electronic device includes a processor and a memory, where the memory is configured to store at least one section of a computer program, and where the at least one section of the computer program is loaded and executed by the processor to implement a power mode switching method according to an embodiment of the present application.
In another aspect, a computer readable storage medium is provided, where the computer readable storage medium is configured to store at least one segment of a computer program, where the at least one segment of the computer program is loaded and executed by a processor to implement a power mode switching method in an embodiment of the present application.
The embodiment of the application provides a power mode switching scheme which can determine whether a vehicle currently meets preset conditions for switching power modes according to the running state of the vehicle. Under the condition that the vehicle meets any preset condition, responding to any instruction associated with the preset condition, the power supply mode of the vehicle can be switched into a target mode corresponding to the preset condition in time. By adopting the method, the power mode of the vehicle can be intelligently switched according to the running state of the vehicle, manual switching of a user is not needed, the efficiency of switching the power mode is improved, and the driving experience of the user is improved.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the present application more apparent, the embodiments of the present application will be described in further detail with reference to the accompanying drawings.
The terms "first," "second," and the like in this disclosure are used for distinguishing between similar elements or items having substantially the same function and function, and it should be understood that there is no logical or chronological dependency between the terms "first," "second," and "n," and that there is no limitation on the amount and order of execution.
The term "at least one" in the present application means one or more, and the meaning of "a plurality of" means two or more.
It should be noted that, the information (including but not limited to user equipment information, user personal information, etc.), data (including but not limited to data for analysis, stored data, presented data, etc.), and signals related to the present application are all authorized by the user or are fully authorized by the parties, and the collection, use, and processing of the related data is required to comply with the relevant laws and regulations and standards of the relevant countries and regions.
Fig. 1 is a schematic diagram of an implementation environment of a power mode switching method according to an embodiment of the present application. Referring to fig. 1, the implementation environment includes: a vehicle 101 and a server 102. The vehicle 101 can communicate directly or indirectly with the server 102 through the in-vehicle terminal, and the present application is not limited herein.
In some embodiments, the vehicle 101 is configured with a body controller (BCM, body Control Module), also known as a body computer (body computer). The vehicle body controller is an electronic control unit (ECU, electronic Control Unit) for controlling the vehicle body electrical system, and is one of the important components of the vehicle. Common functions of a vehicle body controller include controlling power windows, power rearview mirrors, air conditioners, headlamps, turn signals, anti-theft locking systems, center control locks, defrosting devices and the like. The body controller CAN be connected with other vehicle-mounted ECUs through a CAN bus (Controller Area Network ).
In some embodiments, the vehicle 101 generally has a plurality of power modes, such as an OFF mode, ACC (Accessory) mode, ON mode, and the like. The vehicle body controller CAN acquire vehicle operation information of the vehicle 101 through a CAN bus in the vehicle 101, and switch the power supply state of the vehicle 101 according to the vehicle operation information. Wherein the vehicle operation information includes parameter values of a plurality of state parameters of the vehicle. For example, the parameter values included in the vehicle running information can indicate a gear position, a vehicle speed, a door open/close state, a key matching state, and the like of the vehicle. The vehicle body controller can switch the power mode of the vehicle 101 according to the acquired vehicle running information. Alternatively, the body controller CAN send a switching instruction to at least one ECU of the vehicle 101 through the CAN bus to instruct the at least one ECU to switch the power mode of the vehicle 101 to the target power mode.
In some embodiments, the server 102 is a stand-alone physical server, can be a server cluster or a distributed system formed by a plurality of physical servers, and can also be a cloud server providing cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, CDNs (Content Delivery Network, content delivery networks), and basic cloud computing services such as big data and artificial intelligence platforms. The server 102 is associated with an in-vehicle terminal of the vehicle 101, and a background service is provided to the in-vehicle terminal by the server 102 to enable the vehicle 101 to access data in the internet through the in-vehicle terminal.
In some embodiments, the server 102 performs primary computing work and the vehicle 101 performs secondary computing work; or server 102 performs the secondary computing work and vehicle 101 performs the primary computing work; or a distributed computing architecture is employed between the server 102 and the vehicle 101 for collaborative computing.
Those skilled in the art will appreciate that the number of vehicles described above may be greater or lesser. For example, the number of the above-described vehicles may be only one, or the number of the above-described vehicles may be several tens or hundreds, or more. The number of vehicles and the type of equipment are not limited by the embodiment of the application.
Fig. 2 is a flowchart of a power mode switching method according to an embodiment of the present application, which is executed by a body controller of a vehicle, referring to fig. 2, and includes:
201. vehicle operation information is acquired, the vehicle operation information being used to represent an operation state of the vehicle by parameter values of a plurality of state parameters.
In an embodiment of the present application, a vehicle is typically configured with a body controller (BCM, body Control Module). The body controller may also be referred to as a body computer. The body controller refers to an electronic control unit (ECU, electronic Control Unit) for controlling the body electrical system. Common control functions of a vehicle body controller include controlling power windows, power rearview mirrors, air conditioners, headlamps, turn signals, anti-theft locking systems, central control locks, defrosting devices and the like. The vehicle body controller CAN be connected with other vehicle-mounted ECUs through a CAN bus (Controller Area Network, a controller local area network) and control the other vehicle-mounted ECUs through the CAN bus, so that centralized management and coordinated control of the vehicle body electrical system are realized.
The vehicle body controller CAN acquire vehicle running information transmitted on the CAN bus. Wherein the vehicle operation information includes parameter values of a plurality of state parameters. The vehicle operation information indicates an operation state of the vehicle by parameter values of a plurality of state parameters. For example, the status parameters include door status, gear, vehicle speed, etc. Accordingly, when the parameter value of the state parameter for representing the state of the door is 0x0, the door is indicated as the closed state; when the parameter value of the state parameter is 0x1, the vehicle door is indicated to be in an open state. When the parameter value of the state parameter for representing the gear is P, the vehicle is indicated to be in the parking gear; when the parameter value of the state parameter is N, the vehicle is indicated to be in neutral.
202. And determining a target preset condition based on the vehicle running information, wherein the target preset condition is a preset condition met by a plurality of state parameters in a plurality of preset conditions.
In the embodiment of the application, after the vehicle body controller acquires the vehicle running information, the vehicle body controller determines preset conditions met by the plurality of state parameters from a plurality of preset conditions, namely target preset conditions, according to the parameter values of the plurality of state parameters in the vehicle running information. The plurality of state parameters meeting the target preset condition means that parameter values of the plurality of state parameters are the same as preset values of the plurality of state parameters indicated by the target preset condition. The plurality of preset conditions correspond to a plurality of power modes.
In some embodiments, the vehicle typically has 3 power modes: OFF mode, ACC mode, and ON mode. In the OFF mode, the whole power supply of the vehicle is not electrified, and the transmitter and the vehicle body electric appliance of the vehicle are in a closed state. In the ACC mode, power is turned on to some electric appliances of the vehicle, such as an in-vehicle atmosphere lamp, an in-vehicle sound, and the like. In the ACC mode, the engine of the vehicle is still in a turned-off state. In the ON mode, the whole vehicle power supply of the vehicle is turned ON, the transmitter of the vehicle is in an ON state, and the user can drive the vehicle normally at the moment.
203. In response to any instruction associated with the target preset condition, the power mode of the vehicle is switched to a target power mode corresponding to the target preset condition.
In the embodiment of the application, when a plurality of state parameters of the vehicle meet a target preset condition, the vehicle body controller can switch the power supply mode of the vehicle to a target power supply mode corresponding to the target preset condition in response to any instruction associated with the preset condition. The target preset condition is associated with at least one instruction, and the instruction may be a braking instruction, a locking instruction, an opening instruction of a vehicle door, or a switching instruction automatically sent when a state parameter of the vehicle meets a certain condition, which is not limited in the embodiment of the present application.
The embodiment of the application provides a power mode switching method which can determine whether a vehicle currently meets preset conditions for switching power modes according to the running state of the vehicle. Under the condition that the vehicle meets any preset condition, responding to any instruction associated with the preset condition, the power supply mode of the vehicle can be switched into a target mode corresponding to the preset condition in time. By adopting the method, the power mode of the vehicle can be intelligently switched according to the running state of the vehicle, manual switching of a user is not needed, the efficiency of switching the power mode is improved, and the driving experience of the user is improved.
Fig. 3 is a flowchart of another power mode switching method provided according to an embodiment of the present application, which is performed by a body controller of a vehicle, referring to fig. 3, and includes:
301. Vehicle operation information is acquired, the vehicle operation information being used to represent an operation state of the vehicle by parameter values of a plurality of state parameters.
In an embodiment of the present application, a vehicle is typically configured with a body controller (BCM, body Control Module). The body controller may also be referred to as a body domain controller, a body computer, or the like. The body controller refers to an electronic control unit (ECU, electronic Control Unit) for controlling the body electrical system. Common control functions of a vehicle body controller include controlling power windows, power rearview mirrors, air conditioners, headlamps, turn signals, anti-theft locking systems, central control locks, defrosting devices and the like. The body controller may be connected to other onboard ECUs, such as an engine control module (ECM, engine Control Module), a Battery management system (BMS, battery MANAGEMENT SYSTEM), etc., via a CAN bus (Controller Area Network ). The vehicle body controller CAN also control other vehicle-mounted ECUs through the CAN bus, so that centralized management and coordination control of the vehicle body electrical system are realized.
The vehicle body controller CAN acquire vehicle running information transmitted on the CAN bus. Wherein the vehicle operation information includes parameter values of a plurality of state parameters. The vehicle operation information indicates an operation state of the vehicle by parameter values of a plurality of state parameters. For example, the status parameters include door status, gear, vehicle speed, etc. Accordingly, when the parameter value of the state parameter for representing the state of the door is 0x0, the door is indicated as the closed state; when the parameter value of the state parameter is 0x1, the vehicle door is indicated to be in an open state. When the parameter value of the state parameter for representing the gear is P, the vehicle is indicated to be in the parking gear; when the parameter value of the state parameter is N, the vehicle is indicated to be in neutral.
In some embodiments, the body controller is capable of acquiring vehicle operating information in real time over the CAN bus. The vehicle body controller acquires vehicle running information transmitted through the CAN bus in real time. The state parameters in the vehicle operation information include at least one of a power mode, an anti-theft mode, a vehicle mode, a gear, a vehicle speed, a door state, a seat state, a key matching state, a key state, a security authentication state, and a time duration. The timeliness of the acquired vehicle operation information CAN be ensured by acquiring the vehicle operation information transmitted on the CAN bus in real time, so that the vehicle body controller CAN accurately and timely acquire the operation state of the vehicle, and then a corresponding control instruction is sent out according to the operation state of the vehicle.
Alternatively, the power mode may be represented by state parameters VehPwrMod/Keysts. The body controller determines the power mode of the vehicle by reading VehPwrMod/Keysts parameter values. For example, when the parameter values VehPwrMod/Keysts are 0x0, 0x1, and 0x2, respectively, the power mode of the vehicle is OFF mode, ACC mode, and ON mode, respectively.
In the OFF mode, the whole power supply of the vehicle is not electrified, and the transmitter and the vehicle body electric appliance of the vehicle are in a closed state. In the ACC mode, power is turned on to some electric appliances of the vehicle, such as an in-vehicle atmosphere lamp, an in-vehicle sound, and the like. In the ACC mode, the engine of the vehicle is still in a turned-off state. In the ON mode, the whole vehicle power supply of the vehicle is turned ON, the transmitter of the vehicle is in an ON state, and the user can drive the vehicle normally at the moment.
Optionally, the anti-theft mode is used to indicate whether the vehicle is unlocked. The anti-theft mode may be represented by a state parameter bcm_4_armingsts. For example, in the case where bcm_4_armingsts is 0x2, it indicates that the antitheft mode is in the off state, that is, the vehicle is currently in an unlocked state.
Alternatively, the door status may be represented by status parameter DriverDoorSts, psngrDoorSts, LHRDoorSts, RHRDoorSts. The 4 state parameters are used for respectively representing the door states of the main driving door, the auxiliary driving door, the left rear door and the right rear door. When the parameter value of the state parameter is 0x0, it indicates that the door state of the corresponding door is the closed state. When the parameter value of the state parameter is 0x1, the door state of the corresponding door is indicated as an open state.
302. And determining a target preset condition based on the vehicle running information, wherein the target preset condition is a preset condition met by a plurality of state parameters in a plurality of preset conditions.
In the embodiment of the application, after the vehicle body controller acquires the vehicle running information, the vehicle body controller determines preset conditions met by the plurality of state parameters from a plurality of preset conditions, namely target preset conditions, according to the parameter values of the plurality of state parameters in the vehicle running information. Wherein, when the parameter values of the plurality of state parameters are the same as the preset values of the plurality of state parameters indicated by the target preset condition, the plurality of state parameters may be considered to satisfy the target preset condition.
The preset conditions correspond to power modes. The power mode corresponding to the preset condition is a precondition that the vehicle has a power mode switched to the power mode corresponding to the preset condition when the plurality of state parameters of the vehicle satisfy the preset condition.
In some embodiments, the body controller is capable of determining whether the plurality of state parameters of the vehicle satisfy the preset condition according to preset values of the plurality of state parameters indicated by the preset condition. For any preset condition, the vehicle body controller extracts parameter values of a plurality of state parameters from vehicle operation information according to the plurality of state parameters indicated by the preset condition. Then, the vehicle body controller matches the extracted parameter values of the plurality of state parameters with preset values of the plurality of state parameters indicated by preset conditions. And if the plurality of parameter values are matched with the corresponding plurality of preset values, indicating that the plurality of state parameters meet the preset conditions, determining the preset conditions as target preset conditions by the vehicle body controller. The target set condition is also a preset condition satisfied by a plurality of state parameters in the current vehicle running information. By means of matching the parameter values of the state parameters with the preset values, the preset conditions currently met by a plurality of state parameters of the vehicle can be rapidly and accurately determined, and the efficiency of determining target preset conditions by the vehicle body controller is improved.
Optionally, before determining the target preset condition from the plurality of preset conditions, the vehicle body controller can determine the plurality of preset conditions according to the current power mode of the vehicle, so as to reduce the range of the target preset condition, and further improve the efficiency of determining the target preset condition. The power mode corresponding to the preset conditions determined in the mode is different from the current power mode of the vehicle.
303. In response to any instruction associated with the target preset condition, the power mode of the vehicle is switched to a target power mode corresponding to the target preset condition.
In the embodiment of the application, at least one instruction is associated with the target preset condition. The command may be a braking command, a locking command, an opening command of a vehicle door, or a switching command automatically sent by the vehicle when the state parameter of the vehicle meets a certain condition, which is not limited in the embodiment of the present application. In the case where a plurality of state parameters of the vehicle satisfy a target preset condition, the vehicle body controller is able to switch the power mode of the vehicle to a target power mode corresponding to the target preset condition in response to any instruction associated with the preset condition.
In the case where the power mode of the vehicle includes the OFF mode, the ACC mode, and the ON mode, the power mode switching of the vehicle includes the following 6 cases: the OFF mode is switched to ACC mode, the OFF mode is switched to ON mode, ACC mode is switched to OFF mode, ACC mode is switched to ON mode, ON mode is switched to ACC mode, and ON mode is switched to OFF mode. The following describes the switching procedure for the above 6 cases by the following steps 3031 to 3036, respectively.
3031. The vehicle body controller switches the power mode of the vehicle from the OFF mode to the ACC mode, that is, the current power mode of the vehicle is the OFF mode and the target power mode is the ACC mode.
(1) The target preset conditions include: the key matching state is a non-matching state. The unmatched state is used for indicating that the vehicle does not establish a matching relationship with the key. Vehicles are often mated with keys prior to shipment. The process of establishing a matching relationship between the vehicle and the key may also be referred to as a key learning process. The learned keys and the anti-theft control unit of the vehicle are in one-to-one correspondence matching relation. The user can unlock, lock, etc. the vehicle by the learned key. When the key matching state of the vehicle is a non-matching state, it may be referred to as a vehicle non-learning key.
In the case where the vehicle satisfies the target preset condition, that is, in the case where the power mode of the vehicle is the OFF mode and the vehicle does not establish a matching relationship with the key, the vehicle body controller switches the power mode of the vehicle from the OFF mode to the ACC mode in response to an opening instruction of the main driving door. In other words, when the vehicle satisfies the target preset condition, after the user opens the main door, the power mode of the vehicle is automatically switched from the OFF mode to the ACC mode, and the electric devices such as the atmosphere lamp and the car audio in the vehicle are automatically turned on. Therefore, the mode does not need to manually switch the power mode to the ACC mode after a user gets on the vehicle, so that the operation of the user is simplified, and the driving experience of the user is improved.
In the process of switching the power mode of the vehicle from the OFF mode to the ACC mode, the vehicle body controller CAN transmit a state parameter VehPwrMod/Keysts =0x1 to at least one ECU via the CAN bus so that the at least one ECU executes a command to turn on the in-vehicle atmosphere lamp, turn on the in-vehicle audio, or the like according to the parameter value of the state parameter, thereby switching the power mode of the vehicle to the ACC mode.
The above-described switching logic may be represented by the following pseudo code.
Precondition (a & b):
a. the power mode is OFF mode, vehPwrMod/Keysts =0x0;
b. The key matching state is a non-matching state (key is not learned);
Trigger condition (a):
a. the main driving door is updated to DriverDoorSts =0x1 from closing to opening, driverDoorSts =0x0;
Execution output (a & b):
a. the power mode is switched to the ACC mode;
b. VehPwrMod/Keysts =0x1 is sent over the CAN bus.
(2) The target preset conditions include: the anti-theft mode is in an off state, and the key matching state is in a matching state. Wherein, the anti-theft mode is in a closed state and is used for indicating that the vehicle is unlocked. The match status is used to indicate that the vehicle has established a matching relationship with the key.
In the case where the vehicle satisfies the target preset condition, that is, in the case where the power mode of the vehicle is the OFF mode, the vehicle has been unlocked, and the vehicle has recognized a matching key, the vehicle body controller switches the power mode of the vehicle from the OFF mode to the ACC mode in response to an opening instruction of the main driving door. In other words, when the vehicle satisfies the target preset condition, after the user opens the main door, the power mode of the vehicle is automatically switched from the OFF mode to the ACC mode, and the electric devices such as the atmosphere lamp and the car audio in the vehicle are automatically turned on. Therefore, the mode does not need to manually switch the power mode to the ACC mode after a user gets on the vehicle, so that the operation of the user is simplified, and the driving experience of the user is improved.
The above-described switching logic may be represented by the following pseudo code.
Preconditions (a & b & c):
a. the power mode is OFF mode, vehPwrMod/Keysts =0x0;
b. the theft prevention mode is off state, bcm_4_armingsts=0x2;
c. The key matching state is a matching state (the key has been learned);
Trigger condition (a):
a. the main driving door is updated to DriverDoorSts =0x1 from closing to opening, driverDoorSts =0x0;
Execution output (a & b):
a. the power mode is switched to the ACC mode;
b. VehPwrMod/Keysts =0x1 is sent over the CAN bus.
(3) The target preset conditions include: the key matching state is a matching state and the key state is an invalid state. Wherein the invalid state is used to indicate that the vehicle did not recognize a matching key.
In the case where the vehicle satisfies the target preset condition, that is, in the case where the power mode of the vehicle is the OFF mode and the vehicle does not recognize the matching key, the vehicle body controller switches the power mode of the vehicle from the OFF mode to the ACC mode in response to a braking instruction of a brake pedal of the vehicle. Wherein, the braking instruction of the brake pedal can be sent when the user presses the brake pedal. Under the condition that the vehicle does not recognize the matched key, the power mode of the vehicle is switched from the OFF mode to the ACC mode by supporting the user to press the brake pedal, so that the switching operation executed by the user can be simplified, the user does not need to switch the power mode through the key or a one-key starting switch, the efficiency of switching the power mode by the user is improved, and the driving experience of the user is improved.
The above-described switching logic may be represented by the following pseudo code.
Preconditions (a & b & c):
a. the power mode is OFF mode, vehPwrMod/Keysts =0x0;
b. the key matching state is a matching state (the key has been learned);
c. the key state is an invalid state (key invalid);
Trigger condition (a):
a. depression of the brake pedal BrakePedalSts =0x1;
Execution output (a & b):
a. the power mode is switched to the ACC mode;
b. VehPwrMod/Keysts =0x1 is sent over the CAN bus.
(4) The target preset conditions include: the key state is an active state, and the distance value between the vehicle and the matched key gradually decreases. Wherein, the distance value between the vehicle and the key gradually decreases, and the distance value between the vehicle and the key may generally decrease. Embodiments of the present application do not limit the exact negative correlation of the distance value over time.
In a case where the vehicle satisfies the target preset condition, the vehicle body controller switches the power mode of the vehicle from the OFF mode to the ACC mode in response to the switching instruction. The switching command is issued when the distance value between the vehicle and the key is smaller than the distance threshold value. The distance threshold may be a preset distance value, such as 5 meters, 3 meters, or 2 meters, which is not limited in this embodiment of the present application. In the event that the vehicle has identified a matching key and the distance value between the key and the vehicle gradually decreases, this indicates that the user is now carrying the key close to the vehicle. Therefore, the vehicle can automatically switch the power supply mode from the OFF mode to the ACC mode when the user is close to the vehicle, the user does not need to manually switch the power supply mode after entering the vehicle, and the human-vehicle interaction efficiency and the driving experience of the user are improved.
In addition to the above 4 cases, the vehicle may be able to switch the power mode from the OFF mode to the ACC mode when a remote power-on request is received. The remote power-on request may be a power-on request sent by a user to a vehicle-mounted terminal of the vehicle through a mobile phone terminal. Therefore, by supporting remote power-up, the user can also remotely switch the power mode of the vehicle from the OFF mode to the ACC mode when the user is far from the vehicle, thereby enriching the switching scene of the power mode.
3032. The vehicle body controller switches the power mode of the vehicle from the OFF mode to the ON mode, that is, the current power mode of the vehicle is the OFF mode and the target power mode is the ON mode.
(5) The target preset conditions include: the key matching state is a matching state and the key state is an effective state. In the event that the vehicle recognizes a matching key, the body controller switches the power mode of the vehicle from the OFF mode to the ON mode in response to a braking command of a brake pedal of the vehicle. Wherein a brake command for the brake pedal may be issued when a user depresses the brake pedal of the vehicle. Under the condition that the matched key is identified by the vehicle, the power mode of the vehicle is directly switched from the OFF mode to the ON mode by supporting the user to step ON the brake pedal, so that the switching operation executed by the user can be simplified, the user does not need to switch the power mode through the key or a one-key starting switch, the user can start the vehicle by stepping ON the brake pedal, the human-vehicle interaction efficiency is improved, and the driving experience of the user is improved.
In the process of switching the power mode of the vehicle from the OFF mode to the ON mode, the vehicle body controller CAN transmit a state parameter VehPwrMod/Keysts =0x2 to at least one ECU via the CAN bus so that the at least one ECU executes instructions such as turning ON the in-vehicle atmosphere lamp, turning ON the in-vehicle audio, turning ON the air conditioner, starting the engine of the vehicle, and the like according to the parameter value of the state parameter, thereby switching the power mode of the vehicle to the ON mode.
The above-described switching logic may be represented by the following pseudo code.
Preconditions (a & b & c):
a. the power mode is OFF mode, vehPwrMod/Keysts =0x0;
b. the key matching state is a matching state (the key has been learned);
c. the key state is an invalid state (key invalid);
Trigger condition (a):
a. depression of the brake pedal BrakePedalSts =0x1;
Execution output (a & b):
a. the power mode is switched to the ON mode;
b. VehPwrMod/Keysts =0x2 is sent over the CAN bus.
(6) The target preset conditions include: the key matching state is an unmatched state, the gear is neutral or the parking gear, and the vehicle mode is a factory mode. The factory mode is a special vehicle mode of the vehicle in the production and manufacturing process. By switching the vehicle mode to the factory mode, a technician can be facilitated to debug and check the vehicle. In the case where the vehicle is in the factory mode, part of the functions or part of the rights of the vehicle are in the prohibition state. For example, in the case where the vehicle is in the factory mode, the auxiliary driving functions of the vehicle such as automatic parking, adaptive cruise, and the like may be disabled.
In the case where the vehicle satisfies the above-described target preset condition, the vehicle body controller switches the power mode of the vehicle from the OFF mode to the ON mode in response to a braking instruction of a brake pedal of the vehicle, so that a technician can debug various functions of the vehicle in the ON mode. And in response to the power mode of the vehicle being switched to the ON mode, the vehicle body controller counts time by the timer so that the vehicle switches the power mode from the ON mode to the ACC mode when the counted time length reaches the first time length. In other words, if the technician turns the power mode of the vehicle to the ON mode by depressing the brake pedal when the vehicle is in the factory mode, the vehicle can automatically turn the power mode to the ACC mode when the duration of the ON mode reaches the first duration. The first duration may be a preset duration, for example, 3 minutes, 5 minutes, or 10 minutes, which is not limited in the embodiment of the present application. Under the condition that the vehicle is powered ON in a factory mode, the timer is used for timing, so that the power mode of the vehicle is automatically switched to the ACC mode when the timing duration reaches the preset duration, the power mode of the vehicle can be prevented from being continuously switched by a technician while the vehicle is kept in the ON mode, the operation of the technician is reduced, and the debugging efficiency of the technician is improved.
The above-described switching logic may be represented by the following pseudo code.
Preconditions (a & b & c & d):
a. the power mode is OFF mode, vehPwrMod/Keysts =0x0;
b. The key matching state is a non-matching state (key is not learned);
c. the vehicle is in the P gear or the N gear;
d. the vehicle mode is a factory mode;
Trigger condition (a):
a. depression of the brake pedal BrakePedalSts =0x1;
Execution output (a & b):
a. the power supply mode is switched to the ON mode, and a timer starts to count for 5 minutes;
b. VehPwrMod/Keysts =0x2 is sent over the CAN bus.
During the timing of the timer, the timer is reset to zero in response to the braking command of the brake pedal, so as to restart the timing. In other words, during the timer, if the technician depresses the brake pedal again, the timer counts again.
(7) The target preset conditions include: the gear is a parking gear, the vehicle speed is not greater than a vehicle speed threshold value, and the safety authentication state of the vehicle is that the safety authentication is passed. The vehicle speed threshold may be a preset vehicle speed, such as 3km/h (kilometer/hour), 4km/h or 5km/h, which is not limited in the embodiment of the present application. Optionally, the security authentication is that of an OTA (Over-the-Air). For example, in the case of receiving an OTA authentication assertion signal sent by an IHU (In-Vehicle Infotainment Unit, in-vehicle infotainment system), it is indicated that the security authentication state of the vehicle is such that the security authentication is passed. The security authentication is used to verify if the OTA is legitimate. And under the condition that an OTA authentication statement signal is received, indicating that the OTA is legal upgrading, but not illegal upgrading.
And under the condition that the vehicle meets the target preset condition, responding to the OTA power-ON instruction, and switching the power mode of the vehicle from an OFF mode to an ON mode by the vehicle body controller. And in response to the power mode of the vehicle being switched to the ON mode, the vehicle body controller counts time by the timer so that the vehicle switches the power mode from the ON mode to the OFF mode when the counted time length reaches the second time length. The second duration may be a preset duration, such as 90 minutes, 100 minutes, 120 minutes, and the embodiment of the present application is not limited thereto. Under the condition that the vehicle passes the security authentication, the power mode of the vehicle is switched to the ON mode in response to the OTA power-ON instruction, so that the vehicle can be conveniently and remotely upgraded in the ON mode. In addition, under the condition that the vehicle enters the ON mode in an OTA power-ON mode, the timer is used for timing, so that the power mode of the vehicle is automatically switched to the OFF mode when the timing duration reaches the preset duration, the condition that the vehicle is continuously in the ON mode after the remote upgrading is finished can be avoided, a technician is not required to manually switch the power mode of the vehicle, the operation of the technician is reduced, and the human-vehicle interaction efficiency is improved.
The above-described switching logic may be represented by the following pseudo code.
Preconditions (a & b & c & d):
a. the power mode is OFF mode, vehPwrMod/Keysts =0x0;
b. The vehicle is in the P gear;
c. The speed of the vehicle is less than or equal to 4 km/h;
d. Receiving an OTA authentication statement signal sent by an IHU;
Trigger condition (a):
a. receiving an OTA power-on instruction, IHU_ OTAPwrMngt =0x2;
execution output (a & b & c):
a. The power mode is switched to an ON mode, and a power-ON success instruction BDM_ OTAPwrOnReqFb =0x1 is sent to a BDM (vehicle body domain controller) to instruct the BDM to start timing through a timer;
b. VehPwrMod/Keysts =0x2 is sent over the CAN bus;
bdm starts the OTA power up 90 minutes timer.
3033. The vehicle body controller switches the power mode of the vehicle from the ACC mode to the OFF mode, that is, the current power mode of the vehicle is the ACC mode and the target power mode is the OFF mode.
(8) The target preset conditions include: the seat state of the main driver seat is an unmanned state, a plurality of vehicle doors are in a closed state, the gear is a parking gear, and the vehicle speed is not greater than a vehicle speed threshold. The vehicle body controller can judge the seat state of the main driver seat by reading the resistance value of the resistor corresponding to the main driver seat. Alternatively, in the case where the read resistance value is within the preset range, it is indicated that the seat state of the main driver seat is the occupied state. And under the condition that the read resistance value is not in the preset range, indicating that the seat state of the main driver seat is an unmanned state.
When the vehicle satisfies the target preset condition, the vehicle body controller switches the power mode of the vehicle from the ACC mode to the OFF mode in response to any one of the lock commands. The car locking instruction can be an instruction sent by a user after locking the car by a key, can be an instruction sent by the user after locking the car by a TOX (TELEMATICS BOX, remote information processor), and can be an instruction sent by the user after locking the car by an NFC key. Under the conditions that no person exists at the main driving position of the vehicle, four doors are closed, and the vehicle speed and the gear are in preset states, the power supply mode of the vehicle is automatically switched to the OFF mode in response to the vehicle locking instruction of the user, the power supply mode is not required to be manually switched again after the user locks the vehicle, the operation of the user is simplified, and the human-vehicle interaction efficiency is improved.
In the process of switching the power mode of the vehicle from the ACC mode to the OFF mode, the vehicle body controller CAN transmit a state parameter VehPwrMod/Keysts =0x0 to at least one ECU via the CAN bus so that the at least one ECU executes a command to turn OFF the in-vehicle atmosphere lamp, turn OFF the in-vehicle audio, or the like according to the parameter value of the state parameter, thereby switching the power mode of the vehicle to the OFF mode.
The above-described switching logic may be represented by the following pseudo code.
Preconditions (a & b & c & d & e):
a. the power mode is ACC mode, vehPwrMod/Keysts =0x1;
b. The vehicle is in the P gear;
c. The speed of the vehicle is less than or equal to 4 km/h;
d. The seat state of the main driver seat is an unmanned state (main driver unmanned);
e. A plurality of vehicle doors are in a closed state, driverDoorSts =0x0, psngrdoorsts=0x0, lhrdoorsts=0x0, rhrdoorsts=0x0 (4 doors closed);
Trigger condition (a iib iic):
a. Locking the car by a key;
b. locking the vehicle through TOX;
c. locking the car through an NFC key;
Execution output (a & b):
a. the power mode is switched to the OFF mode;
b. VehPwrMod/Keysts =0x0 is sent over the CAN bus.
(9) The target preset conditions include: the gear is a parking gear, and the vehicle speed is not greater than a vehicle speed threshold value. The target preset condition further includes any one of the following: the high voltage power supply is not turned on, the vehicle mode is a transportation mode, and the vehicle mode is a factory mode. The failure to connect the high-voltage power supply may mean that the whole vehicle is not connected with the high-voltage power supply, for example, the vehicle is in a hybrid mode. The transportation mode is a special vehicle mode of the vehicle during transportation. In the case where the vehicle is in the transport mode, part of the functions or part of the rights of the vehicle are in the disabled state. For example, certain comfort functions, entertainment functions, etc. of the vehicle may be disabled while the vehicle is in a transport mode. In addition, in the case that the vehicle is in the transportation mode, the maximum speed of the vehicle may be limited to ensure the safety of the vehicle during transportation.
In the case where the vehicle satisfies the above-described target preset condition, the vehicle body controller switches the power mode of the vehicle from the ACC mode to the OFF mode in response to the switching instruction. And the switching instruction is sent out when the time length of the plurality of state parameters of the vehicle meeting the target preset condition reaches a third time length. The third duration may be a preset duration, such as 3 minutes, 5 minutes, or 10 minutes, which is not limited in the embodiment of the present application.
Optionally, the vehicle body controller counts time by a timer in response to the vehicle meeting the target preset condition. In the timing process, if the vehicle does not meet the target preset condition, the timer stops timing until the next time the vehicle meets the target preset condition.
The above-described switching logic may be represented by the following pseudo code.
Preconditions (a & b & c & (diie |f)):
a. the power mode is ACC mode, vehPwrMod/Keysts =0x1;
b. The vehicle is in the P gear;
c. The speed of the vehicle is less than or equal to 4 km/h;
d. Hcu_ HVReady =0x0 when the high voltage power supply is not turned on;
e. the vehicle mode is a transportation mode;
f. The vehicle mode is a factory mode;
Trigger condition (a):
a. The timing duration reaches 5 minutes;
Execution output (a & b):
a. the power mode is switched to the OFF mode;
b. VehPwrMod/Keysts =0x0 is sent over the CAN bus.
(10) The target preset conditions include: the gear is a parking gear or neutral gear, and the vehicle speed is not greater than a vehicle speed threshold value.
In a case where the vehicle satisfies a target preset condition, the vehicle body controller switches the power mode of the vehicle from the ACC mode to the OFF mode in response to the emergency power-down instruction. The emergency power down instruction may be issued when an emergency power down button/key of the vehicle is triggered. The emergency power-down button may be a physical button disposed in a console in a vehicle, or may be a virtual button displayed on an in-vehicle terminal. In response to a user's trigger operation of the emergency power-down button, the IHU of the vehicle transmits an emergency power-down instruction to the vehicle body controller to instruct the vehicle body controller to switch the power mode of the vehicle to the OFF mode. Under the condition that the user triggers the emergency power-down button, if the gear and the speed of the vehicle meet target preset conditions, the vehicle body controller can switch the power mode of the vehicle into an OFF mode in time, so that the power-down of the vehicle is realized, and the human-vehicle interaction efficiency is improved.
The above-described switching logic may be represented by the following pseudo code.
Preconditions (a & b & c):
a. the power mode is ACC mode, vehPwrMod/Keysts =0x1;
b. The vehicle is in the P gear;
c. The speed of the vehicle is less than or equal to 4 km/h;
Trigger condition (a):
a. receiving an emergency power-down instruction ihu_24_pwrsoff=0x1;
Execution output (a & b):
a. the power mode is switched to the OFF mode;
b. VehPwrMod/Keysts =0x0 is sent over the CAN bus.
3034. The vehicle body controller switches the power mode of the vehicle from the ACC mode to the ON mode, that is, the current power mode of the vehicle is the ACC mode and the target power mode is the ON mode.
(11) The target preset conditions include: the key matching state is an unmatched state, the gear is a parking gear or neutral gear, and the vehicle mode is a factory mode.
When the vehicle meets the target preset condition, the vehicle body controller responds to a braking instruction of a brake pedal of the vehicle, the power supply mode of the vehicle is switched from an ACC mode to an ON mode, and the timer is used for timing, so that the vehicle can switch the power supply mode from the ON mode to the ACC mode when the timing duration reaches the first duration. Under the condition that the vehicle is powered ON in a factory mode, the timer is used for timing, so that the power mode of the vehicle is automatically switched to the ACC mode when the timing duration reaches the preset duration, the power mode of the vehicle can be prevented from being continuously switched by a technician while the vehicle is kept in the ON mode, the operation of the technician is reduced, and the debugging efficiency of the technician is improved.
As is apparent from the above description of step (6), in the case where the power mode of the vehicle is the OFF mode, if the vehicle satisfies the target preset condition, the user depresses the brake pedal to switch the power mode of the vehicle to the ACC mode. As is apparent from the description of the above step (11), in the case where the power mode of the vehicle is the ACC mode, if the vehicle still satisfies the target preset condition, the user presses the brake pedal again to switch the power mode of the vehicle to the ON mode.
In the process of switching the power mode of the vehicle from the ACC mode to the ON mode, the vehicle body controller CAN transmit a state parameter VehPwrMod/Keysts =0x2 to at least one ECU via the CAN bus so that the at least one ECU executes an instruction to turn ON the air conditioner, start the engine of the vehicle, or the like according to the parameter value of the state parameter, thereby switching the power mode of the vehicle to the ON mode.
The above-described switching logic may be represented by the following pseudo code.
Preconditions (a & b & c & d):
a. the power mode is ACC mode, vehPwrMod/Keysts =0x1;
b. The key matching state is a non-matching state (key is not learned);
c. the vehicle is in the P gear or the N gear;
d. the vehicle mode is a factory mode;
Trigger condition (a):
a. depression of the brake pedal BrakePedalSts =0x1;
Execution output (a & b):
a. the power supply mode is switched to the ON mode, and a timer starts to count for 5 minutes;
b. VehPwrMod/Keysts =0x2 is sent over the CAN bus.
(12) The target preset conditions include: the key matching state is a matching state and the key state is an effective state. In a case where the vehicle satisfies a target preset condition, the vehicle body controller switches the power mode of the vehicle from the ACC mode to the ON mode in response to a brake command of a brake pedal of the vehicle. Under the condition that the vehicle recognizes the matched key, the user can start the vehicle by pressing the brake pedal, so that the safety of the vehicle can be ensured, the operation of starting the vehicle by the user is reduced, and the human-vehicle interaction efficiency is improved.
The above-described switching logic may be represented by the following pseudo code.
Preconditions (a & b & c):
a. the power mode is ACC mode, vehPwrMod/Keysts =0x1;
b. the key matching state is a matching state (the key has been learned);
c. the key state is an active state (key active);
Trigger condition (a):
a. depression of the brake pedal BrakePedalSts =0x1;
Execution output (a & b):
a. the power mode is switched to the ON mode;
b. VehPwrMod/Keysts =0x2 is sent over the CAN bus.
(13) The target preset conditions include: the gear is a parking gear, the vehicle speed is not greater than a vehicle speed threshold value, and the safety authentication state of the vehicle is that the safety authentication is passed.
Under the condition that the vehicle meets the target preset condition, responding to an OTA power-ON instruction, switching a power supply mode of the vehicle from an ACC mode to an ON mode by the vehicle body controller, and timing by a timer, so that the power supply mode is switched from the ON mode to the OFF mode under the condition that the timing duration of the vehicle reaches a second duration. Under the condition that the vehicle enters the ON mode in an OTA power-ON mode, the timer is used for timing, so that the power mode of the vehicle is automatically switched to the OFF mode when the timing duration reaches the preset duration, the vehicle can be kept in the ON mode after the remote upgrading is avoided, a technician is not required to manually switch the power mode of the vehicle, the operation of the technician is reduced, and the human-vehicle interaction efficiency is improved.
The above-described switching logic may be represented by the following pseudo code.
Preconditions (a & b & c & d):
a. the power mode is ACC mode, vehPwrMod/Keysts =0x1;
b. The vehicle is in the P gear;
c. The speed of the vehicle is less than or equal to 4 km/h;
d. Receiving an OTA authentication statement signal sent by an IHU;
Trigger condition (a):
a. receiving an OTA power-on instruction, IHU_ OTAPwrMngt =0x2;
execution output (a & b & c):
a. The power mode is switched to an ON mode, and a power-ON success instruction BDM_ OTAPwrOnReqFb =0x1 is sent to a BDM (vehicle body domain controller) to instruct the BDM to start timing through a timer;
b. VehPwrMod/Keysts =0x2 is sent over the CAN bus;
bdm starts the OTA power up 90 minutes timer.
It is to be noted that, as is clear from the descriptions in the above steps (7) and (13), when the power mode of the vehicle is either the OFF mode or the ACC mode, the power mode of the vehicle can be switched to the ON mode by the OTA power-ON instruction. And, in the case that the vehicle enters the ON mode by means of OTA power-up, the power mode of the vehicle can automatically fall back to the OFF mode after the end of 90 minutes.
3035. The vehicle body controller switches the power mode of the vehicle from the ON mode to the ACC mode, that is, the current power mode of the vehicle is the ON mode and the target power mode is the ACC mode.
(14) The target preset conditions include: the key matching state when the power mode is switched last time is the matching state, the gear is the parking gear, and the vehicle speed is not greater than the vehicle speed threshold value.
When the key matching state is the matching state during power-ON of the vehicle, responding to the delay switching instruction, and switching the power mode of the vehicle from the ON mode to the ACC mode after the vehicle body controller is in a preset time period. Wherein the delayed switching command is issued if a plurality of state parameters of the vehicle satisfy a switching condition. The switching conditions include the unmanned state of the seat of the main driver seat, the open state of the door at the main driving position, and the non-depressed state of the brake pedal. The preset duration may be 1 second, 2 seconds, or 3 seconds, which is not limited in the embodiment of the present application. When a plurality of state parameters of the vehicle meet the switching conditions, the power mode of the vehicle is switched after a delay of a few seconds, so that the power mode of the vehicle can be prevented from being switched by mistake, and the accuracy of switching the power mode is improved.
It should be noted that the delay switching instruction may also be issued when a duration of the plurality of state parameters of the vehicle satisfying the switching condition reaches a preset duration. In this case, in response to the delay switching instruction, the vehicle body controller can directly switch the power mode of the vehicle from the ON mode to the ACC mode without waiting for the preset time period.
In the process of switching the power mode of the vehicle from the ON mode to the ACC mode, the vehicle body controller CAN transmit a state parameter VehPwrMod/Keysts =0x1 to at least one ECU via the CAN bus so that the at least one ECU executes a command to turn off the air conditioner, turn off the engine of the vehicle, or the like, according to the parameter value of the state parameter, thereby switching the power mode of the vehicle to the ACC mode.
The above-described switching logic may be represented by the following pseudo code.
Preconditions (a & b & c):
a. the power mode is ON mode, vehPwrMod/Keysts =0x2 (the key matching state at the last time the power mode was switched is the matching state, i.e. the key is powered ON when it has been learned);
b. The vehicle is in the P gear;
c. The speed of the vehicle is less than or equal to 4 km/h;
trigger condition (a & b & c):
a. the seat state of the main driver seat is an unmanned state (main driver unmanned);
b. The door in the main driving position is in an open state (the main driving door is opened);
c. the brake pedal is in an un-depressed state;
Execution output (a & b):
a. Switching the power mode to an ACC mode after delaying for 1 second;
b. VehPwrMod/Keysts =0x1 is sent over the CAN bus.
(15) The target preset conditions include: the vehicle mode at the last switching of the power mode is the factory mode, and the timer is in the time counting state.
When the vehicle mode at the time of powering ON the vehicle is the factory mode, the vehicle body controller switches the power mode of the vehicle from the ON mode to the ACC mode in response to the switch instruction. The switching instruction is sent out when the timing duration of the timer reaches the first duration. In other words, under the condition that the vehicle is powered ON when in the factory mode, when the time length of the vehicle in the ON mode reaches the first time length, the vehicle automatically switches the power mode to the ACC mode, so that the power mode of the vehicle can be avoided from being continuously in the ON mode, and meanwhile, technicians do not need to manually switch the power mode of the vehicle, the operations of the technicians are reduced, and the debugging efficiency of the technicians is improved.
The above-described switching logic may be represented by the following pseudo code.
Precondition (a):
a. The power mode is ON mode, vehPwrMod/Keysts =0x2 (the vehicle mode at the last switching of the power mode is factory mode, the timer is in 5 minutes timing state);
Trigger condition (a):
a. ending the timing after 5 minutes;
Execution output (a & b):
a. Switching the power mode to an ACC mode;
b. VehPwrMod/Keysts =0x1 is sent over the CAN bus.
(16) The target preset conditions include: the seat state of the main driver seat is in an unmanned state, the key state is in an effective state, and the distance value between the vehicle and the matched key is gradually increased. Wherein, the distance value between the vehicle and the key gradually increases, and the distance value between the vehicle and the key generally tends to increase. Embodiments of the present application do not limit the exact positive correlation of the distance values over time.
In a case where the vehicle satisfies the target preset condition, the vehicle body controller switches the power mode of the vehicle from the ON mode to the ACC mode in response to the switching instruction. Wherein the switch instruction is issued if the distance value is greater than the distance threshold. The distance threshold may be a preset distance value, such as 5 meters, 3 meters, or 2 meters, which is not limited in this embodiment of the present application. Through automatic switch over power mode from ON mode to ACC mode when the user is far away from the vehicle, need not the manual switch over power mode behind the user leave the vehicle, improved people-vehicle interaction efficiency and user's driving experience.
3036. The vehicle body controller switches the power mode of the vehicle from the ON mode to the OFF mode, that is, the current power mode of the vehicle is the ON mode and the target power mode is the OFF mode.
(17) The target preset conditions include: the last instruction for indicating the power mode switching is an OTA power-on instruction, the gear is a parking gear, and the vehicle speed is not greater than a vehicle speed threshold.
And under the condition that the vehicle meets the target preset condition, responding to the OTA power-down instruction, and switching the power mode of the vehicle from an ON mode to an OFF mode by the vehicle body controller. Through in time switching the power mode to the OFF mode under the condition that the vehicle receives the OTA power-down instruction, the condition that the vehicle is continuously in the ON mode after the remote upgrading is finished can be avoided, and a technician is not required to manually switch the power mode of the vehicle, so that the operation of the technician is reduced, and the human-vehicle interaction efficiency is improved.
In the process of switching the power mode of the vehicle from the ON mode to the OFF mode by the vehicle body controller, the vehicle body controller CAN transmit the state parameter VehPwrMod/Keysts =0x0 to at least one ECU via the CAN bus so that the at least one ECU executes instructions such as turning OFF the in-vehicle atmosphere lamp, turning OFF the in-vehicle audio, turning OFF the air conditioner, turning OFF the engine of the vehicle, etc., according to the parameter value of the state parameter, thereby switching the power mode of the vehicle to the OFF mode.
The above-described switching logic may be represented by the following pseudo code.
Preconditions (a & b & c):
a. the power mode is ON mode, vehPwrMod/Keysts =0x2 (the last instruction to switch power mode is an OTA power-ON instruction);
b. The vehicle is in the P gear;
c. The speed of the vehicle is less than or equal to 4 km/h;
Trigger condition (a):
a. receiving an OTA power-down instruction, IHU_ OTAPwrMngt =0x1;
Execution output (a & b):
a. Switching the power mode to an OFF mode;
b. VehPwrMod/Keysts =0x0 is sent over the CAN bus.
(18) The target preset conditions include: the last instruction for indicating the switching of the power mode is an OTA power-on instruction, and the timer is in a timing state.
In a case where the vehicle satisfies a target preset condition, the vehicle body controller switches the power mode of the vehicle from an ON mode to an OFF mode in response to a switching instruction. The switching instruction is sent out when the timing duration of the timer reaches the second duration. The power mode of the vehicle is automatically switched to the OFF mode when the timing duration reaches the preset duration, so that the condition that the vehicle is continuously in the ON mode after the remote upgrading is finished can be avoided, a technician is not required to manually switch the power mode of the vehicle, the operation of the technician is reduced, and the human-vehicle interaction efficiency is improved.
The above-described switching logic may be represented by the following pseudo code.
Preconditions (a & b & c):
a. The power mode is ON mode, vehPwrMod/Keysts =0x2;
b. The last instruction for indicating the switching of the power mode is an OTA power-on instruction (the OTA requests successful power-on);
c. The timer is in a timing state (BDM is powered on for 90 minutes in OTA);
trigger condition (a & b):
a, ending the timing of 90 minutes;
b. the power mode is still ON;
Execution output (a & b):
a. Switching the power mode to an OFF mode;
b. VehPwrMod/Keysts =0x0 is sent over the CAN bus.
(19) The target preset conditions include: the gear is a parking gear, and the vehicle speed is not greater than a vehicle speed threshold value.
In the case where the vehicle satisfies the target preset condition, the vehicle body controller switches the power mode of the vehicle from the ON mode to the OFF mode in response to the emergency power-down instruction. Under the condition that the user triggers the emergency power-down button, if the gear and the speed of the vehicle meet target preset conditions, the vehicle body controller can switch the power mode of the vehicle into an OFF mode in time, so that the power-down of the vehicle is realized, and the human-vehicle interaction efficiency is improved.
The above-described switching logic may be represented by the following pseudo code.
Preconditions (a & b & c):
a. The power mode is ON mode, vehPwrMod/Keysts =0x2;
b. The vehicle is in the P gear;
c. The speed of the vehicle is less than or equal to 4 km/h;
Trigger condition (a):
a. receiving an emergency power-down instruction ihu_24_pwrsoff=0x1;
Execution output (a & b):
a. the power mode is switched to the OFF mode;
b. VehPwrMod/Keysts =0x0 is sent over the CAN bus.
The above steps 3031-3036, respectively, describe the case of switching the power modes of the vehicle. The following describes a process of switching between the plurality of power modes with reference to the schematic diagram of the switching power modes shown in fig. 4. As shown in fig. 4, the 3 modes of switching the OFF mode to the ACC mode correspond to the steps (1) to (3) in 3031 described above, respectively. The 3 ways of switching the OFF mode to the ON mode correspond to the steps (5) to (7) in 3032, respectively. The 3 modes of switching the ACC mode to the OFF mode correspond to the steps (8) to (10) in 3033, respectively. The 3 modes of switching the ACC mode to the ON mode correspond to the steps (11) to (13) in 3034, respectively. The 2 ways of switching the ON mode to the ACC mode correspond to the steps (14) to (15) in 3035, respectively. In addition, fig. 4 also shows a manner of switching from ON to ACC, that is, in the case where the gear of the vehicle is P range and the duration of the vehicle speed is not more than 4km/h (km/h) reaches 10 minutes, the vehicle body controller switches the power mode of the vehicle from ON mode to ACC mode. The 3 ways of switching the ON mode to the OFF mode correspond to the steps (17) to (19) in 3036, respectively.
The above embodiments mainly describe that the vehicle body controller switches the power mode of the vehicle according to the target preset condition satisfied by the state parameter of the vehicle. In some embodiments, the vehicle body controller can also update the state parameter of the vehicle according to the target power mode to be switched, so that the state parameter meets the preset condition corresponding to the target power mode, and then the power mode is switched to the target power mode. The above procedure is explained below by the following steps 304-307.
304. The target power mode is determined based on historical switching information of the vehicle, the historical switching information including a switching record of the power mode of the vehicle.
In the embodiment of the application, a vehicle body controller acquires history switching information of a vehicle. The history switching information is used for recording switching records of the power supply modes. The target power mode is a power mode of the vehicle at a plurality of historical times corresponding to the current time. For example, the current time is 4 pm, and the target power mode may be the power mode that is most frequently applied to the vehicle at 4 pm for the previous N days.
305. And sending a mode switching request to the target device, wherein the mode switching request is used for requesting to switch the power mode of the vehicle into the target power mode.
In the embodiment of the application, the target device is a device used by a user object driving the vehicle. For example, the target device may be a mobile terminal device such as a mobile phone, a tablet computer, or the like of the driver. The vehicle body controller sends a mode switching request to the target device through the vehicle-mounted terminal of the vehicle to request switching of the power mode of the vehicle to the target power mode. After the target device receives the mode switching request, the target device displays the mode switching request so that a user can decide whether to switch the power mode. And responding to the confirmation operation of the user on the mode switching request, and the target equipment replies a confirmation switching response to the vehicle-mounted terminal.
306. And in response to the confirmation switching response replied by the target equipment, updating a plurality of state parameters of the vehicle based on the target preset conditions corresponding to the target power mode so as to enable the plurality of state parameters to meet the target preset conditions.
In the embodiment of the application, in response to a confirmation switching response replied by the target equipment, the vehicle body controller acquires a target preset condition corresponding to the target power mode. Under the condition that the current state parameters of the vehicle do not meet the target preset conditions, the vehicle body controller sends preset values of the state parameters indicated by the target preset conditions to at least one ECU through the CAN bus to indicate the at least one ECU to update the state parameters of the vehicle according to the preset values so that the updated state parameters meet the target preset conditions.
307. And switching the power mode of the vehicle to the target power mode under the condition that the plurality of state parameters meet the target preset conditions.
In the embodiment of the application, the vehicle body controller automatically switches the power supply mode of the vehicle to the target power supply mode under the condition that a plurality of state parameters of the vehicle meet the target preset condition. Through the power mode of automatic switching vehicle according to the history switching information of vehicle, can be under the circumstances that the user authorized the switching, the vehicle can long-range automatic switch power mode, not only can improve the efficiency of switching power mode, can also make the power mode after switching laminate user's use habit, promoted user's use experience.
The embodiment of the application provides a power mode switching method which can determine whether a vehicle currently meets preset conditions for switching power modes according to the running state of the vehicle. Under the condition that the vehicle meets any preset condition, responding to any instruction associated with the preset condition, the power supply mode of the vehicle can be switched into a target mode corresponding to the preset condition in time. By adopting the method, the power mode of the vehicle can be intelligently switched according to the running state of the vehicle, manual switching of a user is not needed, the efficiency of switching the power mode is improved, and the driving experience of the user is improved.
Fig. 5 is a schematic structural diagram of a power mode switching device according to an embodiment of the present application. Referring to fig. 5, the apparatus includes: an acquisition module 501, a first determination module 502 and a switching module 503.
An obtaining module 501, configured to obtain vehicle operation information, where the vehicle operation information is used to represent an operation state of a vehicle through parameter values of a plurality of state parameters;
the first determining module 502 is configured to determine a target preset condition based on vehicle operation information, where the target preset condition is a preset condition that is satisfied by a plurality of state parameters in a plurality of preset conditions, and the plurality of preset conditions correspond to a plurality of power modes;
a switching module 503, configured to switch the power mode of the vehicle to a target power mode corresponding to the target preset condition in response to any instruction associated with the target preset condition.
In some embodiments, the acquiring module 501 is configured to acquire, in real time, vehicle operation information transmitted through a CAN bus of a vehicle, where a state parameter in the vehicle operation information includes at least one of a power mode, an anti-theft mode, a vehicle mode, a gear, a vehicle speed, a door state, a seat state, a key matching state, a key state, a security authentication state, and a timing duration.
In some embodiments, the first determining module 502 is configured to extract, for any preset condition, parameter values of a plurality of state parameters from the vehicle operation information based on the plurality of state parameters indicated by the preset condition; matching the parameter values of the plurality of state parameters with preset values of the plurality of state parameters indicated by preset conditions; and if the parameter value is matched with the preset value, determining the preset condition as a target preset condition.
In some embodiments, the current power mode of the vehicle is an OFF mode, the target power mode is an ACC mode, and the target preset condition includes a key matching state being an unmatched state, the unmatched state being used to indicate that the vehicle does not establish a matching relationship with the key;
a switching module 503 for switching the power mode of the vehicle from the OFF mode to the ACC mode in response to an opening instruction of the main driving door.
In some embodiments, the current power mode of the vehicle is an OFF mode, the target power mode is an ACC mode, the target preset condition includes an antitheft mode being an OFF state, a key matching state being a matching state, the OFF state being used to indicate that the vehicle is unlocked, the matching state being used to indicate that the vehicle has established a matching relationship with the key;
a switching module 503 for switching the power mode of the vehicle from the OFF mode to the ACC mode in response to an opening instruction of the main driving door.
In some embodiments, the current power mode of the vehicle is an OFF mode, the target power mode is an ACC mode, the target preset condition includes a key matching state being a matching state for indicating that the vehicle has established a matching relationship with the key, and a key state being an invalid state for indicating that the vehicle has not identified a matching key;
A switching module 503 for switching the power mode of the vehicle from the OFF mode to the ACC mode in response to a brake command of a brake pedal of the vehicle.
In some embodiments, the current power mode of the vehicle is an OFF mode, the target power mode is an ACC mode, the target preset condition includes a key state being an active state, the distance value between the vehicle and the matching key gradually decreasing, the active state being indicative that the vehicle has identified the matching key;
A switching module 503 for switching the power mode of the vehicle from the OFF mode to the ACC mode in response to a switching instruction, the switching instruction being issued when the distance value is smaller than the distance threshold value.
In some embodiments, the current power mode of the vehicle is an OFF mode, the target power mode is an ON mode, the target preset condition includes a key matching state being a matching state for indicating that the vehicle has established a matching relationship with the key, and a key state being an active state for indicating that the vehicle has identified a matching key;
A switching module 503 for switching the power mode of the vehicle from the OFF mode to the ON mode in response to a braking instruction of a brake pedal of the vehicle.
In some embodiments, the current power mode of the vehicle is an OFF mode, the target power mode is an ON mode, the target preset condition includes a key matching state being an unmatched state, a gear being neutral or a parking gear, the vehicle mode being a factory mode, the unmatched state being used for indicating that the vehicle does not establish a matching relationship with the key;
A switching module 503, configured to switch the power mode of the vehicle from the OFF mode to the ON mode in response to a brake command of a brake pedal of the vehicle, and time by a timer, so that the vehicle switches the power mode from the ON mode to the ACC mode when the time duration reaches the first time duration.
In some embodiments, the current power mode of the vehicle is an OFF mode, the target power mode is an ON mode, and the target preset condition includes a gear being a parking gear, a vehicle speed not greater than a vehicle speed threshold, and a safety authentication state of the vehicle being a passed safety authentication;
And the switching module 503 is configured to switch the power mode of the vehicle from the OFF mode to the ON mode in response to the remote upgrade OTA power-ON instruction, and time the vehicle by using the timer, so that the vehicle switches the power mode from the ON mode to the OFF mode when the time duration reaches the second time duration.
In some embodiments, the current power mode of the vehicle is an ACC mode, the target power mode is an OFF mode, and the target preset condition includes that the seat state of the main driver seat is an unmanned state, the plurality of doors are in a closed state, the gear is a parking gear, and the vehicle speed is not greater than a vehicle speed threshold;
A switching module 503 for switching the power mode of the vehicle from the ACC mode to the OFF mode in response to any one of the lock commands.
In some embodiments, the current power mode of the vehicle is ACC mode, the target power mode is OFF mode, the target preset condition includes a gear being a park gear, a vehicle speed being no greater than a vehicle speed threshold, and the target preset condition further includes any one of: the high-voltage power supply is not connected, the vehicle mode is a transportation mode, and the vehicle mode is a factory mode;
A switching module 503, configured to switch the power mode of the vehicle from the ACC mode to the OFF mode in response to a switching instruction, where the switching instruction is issued when a duration of the plurality of state parameters of the vehicle satisfying the target preset condition reaches a third duration.
In some embodiments, the current power mode of the vehicle is ACC mode, the target power mode is OFF mode, the target preset condition includes that the gear is a parking gear or neutral gear, and the vehicle speed is not greater than a vehicle speed threshold;
a switching module 503 for switching the power mode of the vehicle from the ACC mode to the OFF mode in response to the emergency power-down instruction.
In some embodiments, the current power mode of the vehicle is an ACC mode, the target power mode is an ON mode, the target preset condition includes a key matching state being an unmatched state, a gear being a park or neutral gear, the vehicle mode being a factory mode, the unmatched state being used to indicate that the vehicle is not in a matching relationship with the key;
and a switching module 503, configured to switch the power mode of the vehicle from the ACC mode to the ON mode in response to a brake command of a brake pedal of the vehicle, and time the vehicle by a timer, so that the vehicle switches the power mode from the ON mode to the ACC mode when the time duration reaches the first time duration.
In some embodiments, the current power mode of the vehicle is an ACC mode, the target power mode is an ON mode, the target preset condition includes a key matching state being a matching state for indicating that the vehicle has established a matching relationship with the key, and a key state being an active state for indicating that the vehicle has identified a matching key;
a switching module 503 for switching the power mode of the vehicle from the ACC mode to the ON mode in response to a brake command of a brake pedal of the vehicle.
In some embodiments, the current power mode of the vehicle is an ACC mode, the target power mode is an ON mode, and the target preset condition includes a gear being a parking gear, a vehicle speed not greater than a vehicle speed threshold, and a safety authentication state of the vehicle being a passed safety authentication;
and a switching module 503, configured to switch the power mode of the vehicle from the ACC mode to the ON mode in response to the OTA power-ON instruction, and time the vehicle by using a timer, so that the vehicle switches the power mode from the ON mode to the OFF mode when the time duration reaches the second time duration.
In some embodiments, the current power mode of the vehicle is an ON mode, the target power mode is an ACC mode, and the target preset condition includes that a key matching state when the power mode is switched last time is a matching state, a gear is a parking gear, and a vehicle speed is not greater than a vehicle speed threshold, wherein the matching state is used for indicating that the vehicle has established a matching relationship with the key;
And the switching module 503 is configured to switch the power mode of the vehicle from the ON mode to the ACC mode after a preset period of time in response to a delay switching instruction, where the delay switching instruction is sent when a plurality of state parameters of the vehicle meet a switching condition, and the switching condition includes that a seat state of a main driver seat is an unmanned state, a door of the main driving position is an open state, and a brake pedal is an un-depressed state.
In some embodiments, the current power mode of the vehicle is an ON mode, the target power mode is an ACC mode, the target preset condition includes that the vehicle mode when the power mode was last switched is a factory mode, and the timer is in a timing state;
A switching module 503, configured to switch the power mode of the vehicle from the ON mode to the ACC mode in response to a switching instruction, where the switching instruction is issued when the timing duration of the timer reaches the first duration.
In some embodiments, the current power mode of the vehicle is an ON mode, the target power mode is an ACC mode, the target preset condition includes that the seat state of the main driver seat is an unmanned state, the key state is an active state, the distance value between the vehicle and the matched key is gradually increased, and the active state is used for indicating that the vehicle has identified the matched key;
A switching module 503, configured to switch the power mode of the vehicle from the ON mode to the ACC mode in response to a switching instruction, where the switching instruction is issued when the distance value is greater than the distance threshold value.
In some embodiments, the current power mode of the vehicle is an ON mode, the target power mode is an OFF mode, and the target preset condition includes an OTA power-ON instruction as a last instruction to switch the power mode, a stop gear as a gear, and a vehicle speed not greater than a vehicle speed threshold;
a switching module 503, configured to switch the power mode of the vehicle from the ON mode to the OFF mode in response to the OTA power-down instruction.
In some embodiments, the current power mode of the vehicle is an ON mode, the target power mode is an OFF mode, the target preset condition includes that the last instruction for switching the power mode is an OTA power-ON instruction, and the timer is in a timing state;
A switching module 503, configured to switch the power mode of the vehicle from the ON mode to the OFF mode in response to a switching instruction, where the switching instruction is issued when the timing duration of the timer reaches the second duration.
In some embodiments, the current power mode of the vehicle is an ON mode, the target power mode is an OFF mode, and the target preset condition includes a gear being a parking gear, and a vehicle speed not greater than a vehicle speed threshold;
a switching module 503 for switching the power mode of the vehicle from the ON mode to the OFF mode in response to the emergency power down instruction.
In some embodiments, fig. 6 is a schematic structural diagram of another power mode switching device according to an embodiment of the present application, referring to fig. 6, the device further includes:
A second determining module 504, configured to determine a target power mode based on historical switching information of the vehicle, where the historical switching information includes a switching record of the power mode of the vehicle, and the target power mode is a power mode of the vehicle at a plurality of historical moments corresponding to a current moment;
a sending module 505, configured to send a mode switching request to a target device, where the mode switching request is used to request that a power mode of the vehicle be switched to a target power mode, and the target device is a device used by a user object driving the vehicle;
an updating module 506, configured to update, in response to a confirmation switching response returned by the target device, a plurality of state parameters of the vehicle based on a target preset condition corresponding to the target power mode, so that the plurality of state parameters meet the target preset condition;
the switching module 503 is further configured to switch the power mode of the vehicle to the target power mode if the plurality of state parameters meet the target preset condition.
The embodiment of the application provides a power mode switching device which can determine whether a vehicle currently meets preset conditions for switching power modes according to the running state of the vehicle. Under the condition that the vehicle meets any preset condition, responding to any instruction associated with the preset condition, the power supply mode of the vehicle can be switched into a target mode corresponding to the preset condition in time. By adopting the method, the power mode of the vehicle can be intelligently switched according to the running state of the vehicle, manual switching of a user is not needed, the efficiency of switching the power mode is improved, and the driving experience of the user is improved.
It should be noted that: the power mode switching device provided in the above embodiment is only exemplified by the division of the above functional modules, and in practical application, the above functional allocation may be performed by different functional modules according to needs, i.e., the internal structure of the terminal is divided into different functional modules, so as to complete all or part of the functions described above. In addition, the power mode switching device and the power mode switching method provided in the foregoing embodiments belong to the same concept, and specific implementation processes thereof are detailed in the method embodiments, which are not repeated herein.
Fig. 7 is a schematic structural diagram of an electronic device according to an embodiment of the present application. The electronic device 700 may be a portable mobile terminal such as: a smart phone, a tablet computer, an MP3 player (Moving Picture Experts Group Audio Layer III, motion picture expert compression standard audio plane 3), an MP4 (Moving Picture Experts Group Audio Layer IV, motion picture expert compression standard audio plane 4) player, a notebook computer, or a desktop computer. Electronic device 700 may also be referred to by other names of user devices, portable terminals, laptop terminals, desktop terminals, and the like.
In general, the electronic device 700 includes: a processor 701 and a memory 702.
Processor 701 may include one or more processing cores, such as a 4-core processor, an 8-core processor, and the like. The processor 701 may be implemented in at least one hardware form of DSP (DIGITAL SIGNAL Processing), FPGA (Field-Programmable gate array), PLA (Programmable Logic Array ). The processor 701 may also include a main processor and a coprocessor, wherein the main processor is a processor for processing data in an awake state, and is also called a CPU (Central Processing Unit ); a coprocessor is a low-power processor for processing data in a standby state. In some embodiments, the processor 701 may be integrated with a GPU (Graphics Processing Unit, image processor) for rendering and drawing of content required to be displayed by the display screen. In some embodiments, the processor 701 may also include an AI (ARTIFICIAL INTELLIGENCE ) processor for processing computing operations related to machine learning.
Memory 702 may include one or more computer-readable storage media, which may be non-transitory. The memory 702 may also include high-speed random access memory as well as non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In some embodiments, a non-transitory computer readable storage medium in memory 702 is used to store at least one computer program for execution by processor 701 to implement the power mode switching method provided by the method embodiments of the present application.
In some embodiments, the electronic device 700 may further optionally include: a peripheral interface 703 and at least one peripheral. The processor 701, the memory 702, and the peripheral interface 703 may be connected by a bus or signal lines. The individual peripheral devices may be connected to the peripheral device interface 703 via buses, signal lines or a circuit board. Specifically, the peripheral device includes: at least one of radio frequency circuitry 704, a display 705, a camera assembly 706, audio circuitry 707, and a power supply 708.
A peripheral interface 703 may be used to connect I/O (Input/Output) related at least one peripheral device to the processor 701 and memory 702. In some embodiments, the processor 701, memory 702, and peripheral interface 703 are integrated on the same chip or circuit board; in some other embodiments, either or both of the processor 701, the memory 702, and the peripheral interface 703 may be implemented on separate chips or circuit boards, which is not limited in this embodiment.
The Radio Frequency circuit 704 is configured to receive and transmit RF (Radio Frequency) signals, also referred to as electromagnetic signals. The radio frequency circuitry 704 communicates with a communication network and other communication devices via electromagnetic signals. The radio frequency circuit 704 converts an electrical signal into an electromagnetic signal for transmission, or converts a received electromagnetic signal into an electrical signal. In some embodiments, the radio frequency circuit 704 includes: antenna systems, RF transceivers, one or more amplifiers, tuners, oscillators, digital signal processors, codec chipsets, subscriber identity module cards, and so forth. The radio frequency circuitry 704 may communicate with other terminals via at least one wireless communication protocol. The wireless communication protocol includes, but is not limited to: the world wide web, metropolitan area networks, intranets, generation mobile communication networks (2G, 3G, 4G, and 5G), wireless local area networks, and/or WiFi (WIRELESS FIDELITY ) networks. In some embodiments, the radio frequency circuit 704 may further include NFC (NEAR FIELD Communication) related circuits, which is not limited by the present application.
The display screen 705 is used to display a UI (User Interface). The UI may include graphics, text, icons, video, and any combination thereof. When the display 705 is a touch display, the display 705 also has the ability to collect touch signals at or above the surface of the display 705. The touch signal may be input to the processor 701 as a control signal for processing. At this time, the display 705 may also be used to provide virtual buttons and/or virtual keyboards, also referred to as soft buttons and/or soft keyboards. In some embodiments, the display 705 may be one, disposed on a front panel of the electronic device 700; in other embodiments, the display 705 may be at least two, respectively disposed on different surfaces of the electronic device 700 or in a folded design; in other embodiments, the display 705 may be a flexible display disposed on a curved surface or a folded surface of the electronic device 700. Even more, the display 705 may be arranged in a non-rectangular irregular pattern, i.e. a shaped screen. The display 705 may be made of LCD (Liquid CRYSTAL DISPLAY), OLED (Organic Light-Emitting Diode) or other materials.
The camera assembly 706 is used to capture images or video. In some embodiments, camera assembly 706 includes a front camera and a rear camera. Typically, the front camera is disposed on the front panel of the terminal and the rear camera is disposed on the rear surface of the terminal. In some embodiments, the at least two rear cameras are any one of a main camera, a depth camera, a wide-angle camera and a tele camera, so as to realize that the main camera and the depth camera are fused to realize a background blurring function, and the main camera and the wide-angle camera are fused to realize a panoramic shooting and Virtual Reality (VR) shooting function or other fusion shooting functions. In some embodiments, camera assembly 706 may also include a flash. The flash lamp can be a single-color temperature flash lamp or a double-color temperature flash lamp. The dual-color temperature flash lamp refers to a combination of a warm light flash lamp and a cold light flash lamp, and can be used for light compensation under different color temperatures.
The audio circuit 707 may include a microphone and a speaker. The microphone is used for collecting sound waves of users and environments, converting the sound waves into electric signals, and inputting the electric signals to the processor 701 for processing, or inputting the electric signals to the radio frequency circuit 704 for voice communication. For purposes of stereo acquisition or noise reduction, the microphone may be multiple, and disposed at different locations of the electronic device 700. The microphone may also be an array microphone or an omni-directional pickup microphone. The speaker is used to convert electrical signals from the processor 701 or the radio frequency circuit 704 into sound waves. The speaker may be a conventional thin film speaker or a piezoelectric ceramic speaker. When the speaker is a piezoelectric ceramic speaker, not only the electric signal can be converted into a sound wave audible to humans, but also the electric signal can be converted into a sound wave inaudible to humans for ranging and other purposes. In some embodiments, the audio circuit 707 may also include a headphone jack.
The power supply 708 is used to power the various components in the electronic device 700. The power source 708 may be an alternating current, a direct current, a disposable battery, or a rechargeable battery. When the power source 708 comprises a rechargeable battery, the rechargeable battery may be a wired rechargeable battery or a wireless rechargeable battery. The wired rechargeable battery is a battery charged through a wired line, and the wireless rechargeable battery is a battery charged through a wireless coil. The rechargeable battery may also be used to support fast charge technology.
In some embodiments, the electronic device 700 further includes one or more sensors 709. The one or more sensors 709 include, but are not limited to: acceleration sensor 710, gyro sensor 711, pressure sensor 712, optical sensor 713, and proximity sensor 714.
The acceleration sensor 710 may detect the magnitudes of accelerations on three coordinate axes of a coordinate system established with the electronic device 700. For example, the acceleration sensor 710 may be used to detect components of gravitational acceleration in three coordinate axes. The processor 701 may control the display screen 705 to display a user interface in a landscape view or a portrait view according to the gravitational acceleration signal acquired by the acceleration sensor 710. Acceleration sensor 710 may also be used for the acquisition of motion data of a game or user.
The gyro sensor 711 may detect a body direction and a rotation angle of the electronic device 700, and the gyro sensor 711 may collect a 3D motion of the user on the electronic device 700 in cooperation with the acceleration sensor 710. The processor 701 may implement the following functions according to the data collected by the gyro sensor 711: motion sensing (e.g., changing UI according to a tilting operation by a user), image stabilization at shooting, game control, and inertial navigation.
The pressure sensor 712 may be disposed on a side frame of the electronic device 700 and/or on an underside of the display screen 705. When the pressure sensor 712 is disposed on a side frame of the electronic device 700, a grip signal of the user on the electronic device 700 may be detected, and the processor 701 performs left-right hand recognition or quick operation according to the grip signal collected by the pressure sensor 712. When the pressure sensor 712 is disposed at the lower layer of the display screen 705, the processor 701 controls the operability control on the UI interface according to the pressure operation of the user on the display screen 705. The operability controls include at least one of a button control, a scroll bar control, an icon control, and a menu control.
The optical sensor 713 is used to collect the intensity of ambient light. In one embodiment, the processor 701 may control the display brightness of the display screen 705 based on the ambient light intensity collected by the optical sensor 713. Specifically, when the intensity of the ambient light is high, the display brightness of the display screen 705 is turned up; when the ambient light intensity is low, the display brightness of the display screen 705 is turned down. In another embodiment, the processor 701 may also dynamically adjust the shooting parameters of the camera assembly 706 based on the ambient light intensity collected by the optical sensor 713.
A proximity sensor 714, also known as a distance sensor, is typically provided on the front panel of the electronic device 700. The proximity sensor 714 is used to capture the distance between the user and the front of the electronic device 700. In one embodiment, when the proximity sensor 714 detects that the distance between the user and the front of the electronic device 700 gradually decreases, the processor 701 controls the display screen 705 to switch from the bright screen state to the off screen state; when the proximity sensor 714 detects that the distance between the user and the front surface of the electronic device 700 gradually increases, the processor 701 controls the display screen 705 to switch from the off-screen state to the on-screen state.
Those skilled in the art will appreciate that the structure shown in fig. 7 is not limiting of the electronic device 700 and may include more or fewer components than shown, or may combine certain components, or may employ a different arrangement of components.
The embodiment of the application also provides a computer readable storage medium, in which at least one section of computer program is stored, and the at least one section of computer program is loaded and executed by a processor of the electronic device to implement the operations performed by the electronic device in the power mode switching method of the above embodiment. For example, the computer readable storage medium may be Read-Only Memory (ROM), random-access Memory (Random Access Memory, RAM), compact disc Read-Only Memory (Compact Disc Read-Only Memory, CD-ROM), magnetic tape, floppy disk, optical data storage device, and the like.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program for instructing relevant hardware, where the program may be stored in a computer readable storage medium, and the storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The foregoing description of the preferred embodiments of the present application is not intended to limit the application, but rather, the application is to be construed as limited to the appended claims.