Power mode switching methods, devices, electronic equipment and storage media
By acquiring vehicle operating information and automatically switching power modes, the problem of low efficiency in manual switching in existing technologies has been solved, realizing intelligent power mode switching and improving the user experience.
Patent Information
- Application Number
- CN202410685580.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-30
- Publication Date
- 2025-10-31
- Estimated Expiration
- 2044-05-30
AI Technical Summary
The existing method of switching vehicle power modes requires manual operation by the user, resulting in low switching efficiency and a reduced user driving experience.
By acquiring vehicle operation information, determining target preset conditions based on the parameter values of multiple status parameters, and automatically switching power modes in response to relevant instructions, including acquiring vehicle operation information, determining target preset conditions, and intelligently switching power modes in response to commands such as braking, locking, and door opening.
It enables intelligent power mode switching without manual user intervention, improving switching efficiency and enhancing the user's driving experience.
Smart Images

Figure CN118514627B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of vehicle technology, and in particular to a power mode switching method, device, electronic device, and storage medium. Background Technology
[0002] To provide users with a more convenient and comfortable driving experience, intelligent and automated technologies are gradually becoming the main development directions for vehicle technology. Currently, users typically switch vehicle power modes using the ignition switch or a push-button start switch. For example, after inserting the car key into the ignition switch, users can switch to different power modes by rotating the key to different positions. Alternatively, users can switch power modes by pressing the push-button start switch once or twice. However, these methods require manual switching, which is cumbersome and inefficient, thus reducing the user's driving experience. Summary of the Invention
[0003] This application provides a power mode switching method, apparatus, electronic device, and storage medium, which can intelligently switch the vehicle's power mode according to the vehicle's operating status, eliminating the need for manual switching by the user, thus improving the efficiency of power mode switching and enhancing the user's driving experience. The technical solution is as follows:
[0004] On the one hand, a power mode switching method is provided, the method comprising:
[0005] Obtain vehicle operation information, which is used to represent the vehicle's operating status through the parameter values of multiple status parameters;
[0006] Based on the vehicle operation information, target preset conditions are determined. The target preset conditions are preset conditions satisfied by the multiple state parameters among multiple preset conditions, and the multiple preset conditions correspond to multiple power modes.
[0007] In response to any instruction associated with the target preset condition, the power mode of the vehicle is switched to the target power mode corresponding to the target preset condition.
[0008] On the other hand, a power mode switching device is provided, the device comprising:
[0009] The acquisition module is used to acquire vehicle operation information, which is used to represent the vehicle's operating status through the parameter values of multiple status parameters.
[0010] The first determining module is used to determine target preset conditions based on the vehicle operation information. The target preset conditions are preset conditions satisfied by the multiple state parameters among multiple preset conditions, and the multiple preset conditions correspond to multiple power modes.
[0011] The switching module is used to switch the power mode of the vehicle to the target power mode corresponding to the target preset condition in response to any instruction associated with the target preset condition.
[0012] In some embodiments, the acquisition module is used to acquire vehicle operation information transmitted via the vehicle's CAN bus in real time. The status parameters in the vehicle operation information include at least one of power mode, anti-theft mode, vehicle mode, gear position, vehicle speed, door status, seat status, key matching status, key status, security authentication status, and timing duration.
[0013] In some embodiments, the first determining module is configured to, for any preset condition, extract parameter values of the plurality of state parameters indicated by the preset condition from the vehicle operation information; match the parameter values of the plurality of state parameters with preset values of the plurality of state parameters indicated by the preset condition; and if the parameter values match the preset values, then determine the preset condition as the target preset condition.
[0014] In some embodiments, the current power mode of the vehicle is OFF mode, the target power mode is ACC mode, and the target preset condition includes a key matching status of unmatched status, which indicates that the vehicle has not established a matching relationship with the key.
[0015] The switching module is used to switch the vehicle's power mode from the OFF mode to the ACC mode in response to the driver's door opening command.
[0016] In some embodiments, the current power mode of the vehicle is OFF mode, the target power mode is ACC mode, and the target preset conditions include the anti-theft mode being off and the key matching state being matched. The off state indicates that the vehicle has been unlocked, and the matching state indicates that the vehicle has established a matching relationship with the key.
[0017] The switching module is used to switch the vehicle's power mode from the OFF mode to the ACC mode in response to the driver's door opening command.
[0018] In some embodiments, the current power mode of the vehicle is OFF mode, the target power mode is ACC mode, and the target preset conditions include key matching status being matched and key status being invalid. The matching status indicates that the vehicle has established a matching relationship with the key, and the invalid status indicates that the vehicle has not recognized a matched key.
[0019] The switching module is used to switch the vehicle's power mode from the OFF mode to the ACC mode in response to the braking command of the vehicle's brake pedal.
[0020] In some embodiments, the current power mode of the vehicle is OFF mode, the target power mode is ACC mode, and the target preset conditions include the key status being valid, the distance between the vehicle and the matched key gradually decreasing, and the valid status indicating that the vehicle has recognized the matched key.
[0021] The switching module is used to switch the power mode of the vehicle from the OFF mode to the ACC mode in response to a switching command, wherein the switching command is issued when the distance value is less than a distance threshold.
[0022] In some embodiments, the current power mode of the vehicle is OFF mode, the target power mode is ON mode, and the target preset conditions include key matching status being matched and key status being valid. The matching status indicates that the vehicle has established a matching relationship with the key, and the valid status indicates that the vehicle has recognized the matched key.
[0023] The switching module is used to switch the power mode of the vehicle from the OFF mode to the ON mode in response to the braking command of the vehicle's brake pedal.
[0024] In some embodiments, the current power mode of the vehicle is OFF mode, the target power mode is ON mode, and the target preset conditions include key matching status being unmatched, gear being neutral or park, and vehicle mode being factory mode. The unmatched status is used to indicate that the vehicle has not established a matching relationship with the key.
[0025] The switching module is used to switch the vehicle's power mode from the OFF mode to the ON mode in response to the braking command of the vehicle's brake pedal, and to count the time using a timer so that when the timer reaches a first duration, the vehicle switches the power mode from the ON mode to the ACC mode.
[0026] In some embodiments, the current power mode of the vehicle is OFF mode, the target power mode is ON mode, and the target preset conditions include the gear being parked, the vehicle speed not exceeding the vehicle speed threshold, and the vehicle's safety certification status being that it has passed safety certification.
[0027] The switching module is used to switch the power mode of the vehicle from the OFF mode to the ON mode in response to the remote OTA upgrade power-on command, and to use a timer to count the time so that the vehicle switches the power mode from the ON mode to the OFF mode when the timer reaches a second duration.
[0028] In some embodiments, the current power mode of the vehicle is ACC mode, the target power mode is OFF mode, and the target preset conditions include the driver's seat being unoccupied, multiple doors being closed, the gear being parked, and the vehicle speed not exceeding a vehicle speed threshold.
[0029] The switching module is used to switch the vehicle's power mode from the ACC mode to the OFF mode in response to any vehicle locking command.
[0030] In some embodiments, the current power mode of the vehicle is ACC mode, the target power mode is OFF mode, and the target preset conditions include the gear being parked and the vehicle speed not exceeding a vehicle speed threshold. The target preset conditions also include any one of the following: high voltage power is not connected, the vehicle mode is transportation mode, and the vehicle mode is factory mode.
[0031] The switching module is used to switch the power mode of the vehicle from the ACC mode to the OFF mode in response to a switching command. The switching command is issued when the duration for which multiple state parameters of the vehicle meet the target preset conditions reaches a third duration.
[0032] In some embodiments, the current power mode of the vehicle is ACC mode, the target power mode is OFF mode, and the target preset conditions include the gear being park or neutral and the vehicle speed not exceeding a vehicle speed threshold.
[0033] The switching module is used to switch the vehicle's power mode from the ACC mode to the OFF mode in response to an emergency power-down command.
[0034] In some embodiments, the current power mode of the vehicle is ACC mode, the target power mode is ON mode, and the target preset conditions include key matching status being unmatched, gear being park or neutral, and vehicle mode being factory mode. The unmatched status is used to indicate that the vehicle has not established a matching relationship with the key.
[0035] The switching module is used to switch the vehicle's power mode from the ACC mode to the ON mode in response to the braking command of the vehicle's brake pedal, and to count the time using a timer so that the vehicle switches the power mode from the ON mode to the ACC mode when the timer reaches a first duration.
[0036] In some embodiments, the current power mode of the vehicle is ACC mode, the target power mode is ON mode, and the target preset conditions include key matching status being matched and key status being valid. The matching status indicates that the vehicle has established a matching relationship with the key, and the valid status indicates that the vehicle has recognized the matched key.
[0037] The switching module is used to switch the vehicle's power mode from ACC mode to ON mode in response to the braking command of the vehicle's brake pedal.
[0038] In some embodiments, the current power mode of the vehicle is ACC mode, the target power mode is ON mode, and the target preset conditions include the gear being parked, the vehicle speed not exceeding the vehicle speed threshold, and the vehicle's safety certification status being that it has passed safety certification.
[0039] The switching module is used to switch the power mode of the vehicle from the ACC mode to the ON mode in response to the OTA power-on command, and to count the time by a timer so that when the timer reaches a second duration, the power mode of the vehicle will switch from the ON mode to the OFF mode.
[0040] In some embodiments, the current power mode of the vehicle is ON mode, the target power mode is ACC mode, and the target preset conditions include the key matching status being matched, the gear being park, and the vehicle speed not exceeding the vehicle speed threshold when the power mode was last switched. The matching status is used to indicate that the vehicle has established a matching relationship with the key.
[0041] The switching module is used to respond to a delayed switching command and switch the power mode of the vehicle from the ON mode to the ACC mode after a preset time. The delayed switching command is issued when multiple state parameters of the vehicle meet the switching conditions. The switching conditions include the driver's seat being unoccupied, the driver's door being open, and the brake pedal being not pressed.
[0042] In some embodiments, the current power mode of the vehicle is ON mode, the target power mode is ACC mode, and the target preset conditions include the vehicle mode being factory mode and the timer being in timer mode during the most recent power mode switch.
[0043] The switching module is used to switch the power mode of the vehicle from the ON mode to the ACC mode in response to a switching command. The switching command is issued when the timer reaches a first duration.
[0044] In some embodiments, the current power mode of the vehicle is ON mode, the target power mode is ACC mode, the target preset conditions include the driver's seat being unoccupied and the key being valid, the distance between the vehicle and the matched key gradually increases, and the valid state is used to indicate that the vehicle has recognized the matched key.
[0045] The switching module is used to switch the power mode of the vehicle from the ON mode to the ACC mode in response to a switching command, wherein the switching command is issued when the distance value is greater than a distance threshold.
[0046] In some embodiments, the current power mode of the vehicle is ON mode, the target power mode is OFF mode, and the target preset conditions include the most recent instruction to switch the power mode being an OTA power-on instruction, the gear being parked, and the vehicle speed not exceeding a vehicle speed threshold.
[0047] The switching module is used to switch the power mode of the vehicle from the ON mode to the OFF mode in response to the OTA power-off command.
[0048] In some embodiments, the current power mode of the vehicle is ON mode, the target power mode is OFF mode, and the target preset conditions include the most recent instruction to switch the power mode being an OTA power-on instruction and the timer being in a timing state;
[0049] The switching module is used to switch the power mode of the vehicle from the ON mode to the OFF mode in response to a switching command, wherein the switching command is issued when the timer has been running for a second duration.
[0050] In some embodiments, the current power mode of the vehicle is ON mode, the target power mode is OFF mode, and the target preset conditions include the gear being park and the vehicle speed not exceeding a vehicle speed threshold.
[0051] The switching module is used to switch the power mode of the vehicle from the ON mode to the OFF mode in response to an emergency power-down command.
[0052] In some embodiments, the apparatus further includes:
[0053] The second determining module is used to determine the target power mode based on the vehicle's historical switching information, wherein the historical switching information includes the switching records of the vehicle's power modes, and the target power mode is the power mode of the vehicle at multiple historical moments corresponding to the current moment.
[0054] A sending module is used to send a mode switching request to a target device, wherein the mode switching request is used to request the power mode of the vehicle to be switched to the target power mode, and the target device is a device used by a user driving the vehicle;
[0055] An update module is used to update multiple status parameters of the vehicle in response to a confirmation switching response from the target device, based on target preset conditions corresponding to the target power mode, so that the multiple status parameters satisfy the target preset conditions.
[0056] The switching module is further configured to switch the power mode of the vehicle to the target power mode when the plurality of state parameters meet the target preset conditions.
[0057] In another direction, an electronic device is provided, which includes a processor and a memory, the memory being used to store at least one computer program, the at least one computer program being loaded and executed by the processor to implement the power mode switching method in the embodiments of this application.
[0058] On the other hand, a computer-readable storage medium is provided for storing at least one computer program, which is loaded and executed by a processor to implement the power mode switching method in the embodiments of this application.
[0059] This application provides a power mode switching scheme that can determine whether the vehicle currently meets preset conditions for switching power modes based on its operating status. If the vehicle meets any preset condition, in response to any command associated with that preset condition, the vehicle's power mode can be promptly switched to the target mode corresponding to that preset condition. Using this method, the vehicle's power mode can be intelligently switched according to its operating status, eliminating the need for manual switching by the user, thus improving the efficiency of power mode switching and enhancing the user's driving experience. Attached Figure Description
[0060] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0061] Figure 1 This is a schematic diagram of the implementation environment of a power mode switching method provided in an embodiment of this application;
[0062] Figure 2 This is a flowchart of a power mode switching method provided according to an embodiment of this application;
[0063] Figure 3 This is a flowchart of another power mode switching method provided according to an embodiment of this application;
[0064] Figure 4 This is a schematic diagram of a power switching mode provided according to an embodiment of this application;
[0065] Figure 5 This is a schematic diagram of the structure of a power mode switching device provided in an embodiment of this application;
[0066] Figure 6 This is a schematic diagram of another power mode switching device provided in an embodiment of this application;
[0067] Figure 7 This is a schematic diagram of the structure of an electronic device provided according to an embodiment of this application. Detailed Implementation
[0068] To make the objectives, technical solutions, and advantages of this application clearer, the embodiments of this application will be described in further detail below with reference to the accompanying drawings.
[0069] In this application, the terms "first," "second," etc., are used to distinguish identical or similar items with essentially the same function. It should be understood that there is no logical or temporal dependency between "first," "second," and "nth," nor are there any restrictions on quantity or execution order.
[0070] In this application, the term "at least one" means one or more, and "multiple" means two or more.
[0071] It should be noted that the information (including but not limited to user device information, user personal information, etc.), data (including but not limited to data used for analysis, data stored, data displayed, etc.) and signals involved in this application are all authorized by the user or fully authorized by all parties, and the collection, use and processing of related data must comply with the relevant laws, regulations and standards of the relevant countries and regions.
[0072] Figure 1 This is a schematic diagram illustrating the implementation environment of a power mode switching method according to an embodiment of this application. See also... Figure 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 an onboard terminal, which is not limited herein.
[0073] In some embodiments, vehicle 101 is equipped with a Body Control Module (BCM), also known as a body computer. The body control module is an electronic control unit (ECU) used to control the vehicle's electrical systems and is an important component of the vehicle. Common functions of the body control module include controlling power windows, power mirrors, air conditioning, headlights, turn signals, anti-theft locking systems, central locking, and defrosting devices. The body control module can connect to other onboard ECUs via a CAN bus (Controller Area Network).
[0074] In some embodiments, vehicle 101 typically has multiple power modes, such as OFF mode, ACC (Accessory) mode, ON mode, etc. The body controller can acquire vehicle operating information of vehicle 101 via the CAN bus in vehicle 101 and switch the power state of vehicle 101 according to the vehicle operating information. The vehicle operating information includes parameter values of multiple vehicle status parameters. For example, the parameter values included in the vehicle operating information can represent the vehicle's gear position, vehicle speed, door open / closed status, key matching status, etc. The body controller can switch the power mode of vehicle 101 according to the acquired vehicle operating information. Optionally, the body controller can send a switching command to at least one ECU of vehicle 101 via the CAN bus to instruct at least one ECU to switch the power mode of vehicle 101 to the target power mode.
[0075] In some embodiments, server 102 can be an independent physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server providing basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, CDN (Content Delivery Network), and big data and artificial intelligence platforms. Server 102 is associated with the in-vehicle terminal of vehicle 101, and server 102 provides backend services to the in-vehicle terminal so that vehicle 101 can access data on the Internet through the in-vehicle terminal.
[0076] In some embodiments, server 102 undertakes the main computing work and vehicle 101 undertakes the secondary computing work; or, server 102 undertakes the secondary computing work and vehicle 101 undertakes the main computing work; or, server 102 and vehicle 101 collaborate on computing using a distributed computing architecture.
[0077] Those skilled in the art will understand that the number of vehicles described above can be more or less. For example, there may be only one vehicle, or there may be dozens or hundreds of vehicles, or even more. This application does not limit the number of vehicles or the type of equipment.
[0078] Figure 2 This is a flowchart illustrating a power mode switching method according to an embodiment of this application. This embodiment is executed by the vehicle's body controller. See also... Figure 2 The method includes:
[0079] 201. Obtain vehicle operation information. Vehicle operation information is used to represent the vehicle's operating status through the parameter values of multiple status parameters.
[0080] In this embodiment, the vehicle is typically equipped with a Body Control Module (BCM). The Body Control Module can also be called a vehicle computer. It refers to an Electronic Control Unit (ECU) used to control the vehicle's electrical systems. Common control functions of the Body Control Module include controlling power windows, power mirrors, air conditioning, headlights, turn signals, anti-theft locking systems, central locking, and defrosting devices. The Body Control Module can connect to other vehicle ECUs via a CAN bus (Controller Area Network) and control them, thereby achieving centralized management and coordinated control of the vehicle's electrical systems.
[0081] The body controller can acquire vehicle operation information transmitted on the CAN bus. This vehicle operation information includes the values of multiple status parameters. The vehicle's operating status is represented by these status parameter values. For example, status parameters include door status, gear position, and vehicle speed. Accordingly, a value of 0x0 for the status parameter representing door status indicates the door is closed; a value of 0x1 indicates the door is open. Similarly, a value of P for the status parameter representing gear position indicates the vehicle is in park; a value of N indicates the vehicle is in neutral.
[0082] 202. Based on vehicle operation information, determine the target preset conditions. The target preset conditions are the preset conditions satisfied by multiple state parameters among multiple preset conditions.
[0083] In this embodiment, after the body controller obtains vehicle operation information, it determines, from multiple preset conditions, the preset conditions satisfied by the multiple state parameters based on the parameter values of multiple state parameters in the vehicle operation information; that is, the target preset conditions. Here, multiple state parameters satisfying the target preset conditions means that the parameter values of the multiple state parameters are the same as the preset values of the multiple state parameters indicated by the target preset conditions. The multiple preset conditions correspond to multiple power modes.
[0084] In some embodiments, the vehicle typically has three power modes: OFF mode, ACC mode, and ON mode. In OFF mode, the vehicle's overall power supply is off, and the engine and electrical components are switched off. In ACC mode, some electrical components are powered on, such as the ambient lighting and audio system. The engine remains off in ACC mode. In ON mode, the vehicle's overall power supply is on, the engine is running, and the user can drive the vehicle normally.
[0085] 203. In response to any command associated with the target preset conditions, switch the vehicle's power mode to the target power mode corresponding to the target preset conditions.
[0086] In this embodiment, when multiple state parameters of the vehicle meet target preset conditions, the body controller can switch the vehicle's power mode to the target power mode corresponding to the target preset conditions in response to any command associated with those preset conditions. The target preset conditions are associated with at least one command, which can be a braking command, a locking command, a door opening command, or a switching command automatically issued when the vehicle's state parameters meet certain conditions, etc. This embodiment does not impose any limitations on these commands.
[0087] This application provides a power mode switching method that can determine whether the vehicle currently meets preset conditions for switching power modes based on its operating status. If the vehicle meets any preset condition, in response to any command associated with that preset condition, the vehicle's power mode can be promptly switched to the target mode corresponding to that preset condition. Using this method, the vehicle's power mode can be intelligently switched according to its operating status, eliminating the need for manual switching by the user, thus improving the efficiency of power mode switching and enhancing the user's driving experience.
[0088] Figure 3 This is a flowchart of another power mode switching method provided according to an embodiment of this application. This embodiment is executed by the vehicle's body controller. See also... Figure 3 The method includes:
[0089] 301. Obtain vehicle operation information. Vehicle operation information is used to represent the vehicle's operating status through the parameter values of multiple status parameters.
[0090] In this embodiment, the vehicle is typically equipped with a Body Control Module (BCM). The Body Control Module can also be called a Body Domain Controller, Body Computer, etc. It refers to an Electronic Control Unit (ECU) used to control the vehicle's electrical systems. Common control functions of the Body Control Module include controlling power windows, power mirrors, air conditioning, headlights, turn signals, anti-theft locking systems, central locking, and defrosting devices. The Body Control Module can connect to other onboard ECUs, such as the Engine Control Module (ECM) and Battery Management System (BMS), via a CAN bus (Controller Area Network). The Body Control Module can also control other onboard ECUs via the CAN bus, thereby achieving centralized management and coordinated control of the vehicle's electrical systems.
[0091] The body controller can acquire vehicle operation information transmitted on the CAN bus. This vehicle operation information includes the values of multiple status parameters. The vehicle's operating status is represented by these status parameter values. For example, status parameters include door status, gear position, and vehicle speed. Accordingly, a value of 0x0 for the status parameter representing door status indicates the door is closed; a value of 0x1 indicates the door is open. Similarly, a value of P for the status parameter representing gear position indicates the vehicle is in park; a value of N indicates the vehicle is in neutral.
[0092] In some embodiments, the body controller can acquire vehicle operating information in real time via the CAN bus. The body controller acquires vehicle operating information transmitted via the CAN bus in real time. The status parameters in the vehicle operating information include at least one of the following: power mode, anti-theft mode, vehicle mode, gear position, vehicle speed, door status, seat status, key matching status, key status, security authentication status, and timeout duration. By acquiring the vehicle operating information transmitted on the CAN bus in real time, the timeliness of the acquired information can be guaranteed, enabling the body controller to accurately and promptly determine the vehicle's operating status and subsequently issue corresponding control commands based on that status.
[0093] Optionally, the power mode can be represented by the status parameter VehPwrMod / Keysts. The body controller determines the vehicle's power mode by reading the parameter value of VehPwrMod / Keysts. For example, with VehPwrMod / Keysts parameter values of 0x0, 0x1, and 0x2, the vehicle's power mode is OFF, ACC, and ON, respectively.
[0094] In OFF mode, the vehicle's power supply is off, and the engine and electrical systems are switched off. In ACC mode, some electrical systems are powered on, such as the ambient lighting and audio system. The engine remains off in ACC mode. In ON mode, the vehicle's power supply is on, the engine is running, and the user can drive the vehicle normally.
[0095] Optionally, the anti-theft mode is used to indicate whether the vehicle is unlocked. The anti-theft mode can be represented by the status parameter BCM_4_ArmingSts. For example, when BCM_4_ArmingSts is 0x2, it indicates that the anti-theft mode is off, that is, the vehicle is currently unlocked.
[0096] Optionally, the door status can be represented by the status parameters DriverDoorSts, PsngrDoorSts, LHRDoorSts, and RHRDoorSts. These four status parameters represent the door status of the driver's door, passenger's door, left rear door, and right rear door, respectively. A value of 0x0 indicates that the corresponding door is closed. A value of 0x1 indicates that the corresponding door is open.
[0097] 302. Based on vehicle operation information, determine the target preset conditions. The target preset conditions are the preset conditions satisfied by multiple state parameters among multiple preset conditions.
[0098] In this embodiment, after the body controller obtains vehicle operation information, it determines the preset condition satisfied by the multiple state parameters from multiple preset conditions based on the parameter values of multiple state parameters in the vehicle operation information; that is, the target preset condition. Where the parameter values of multiple state parameters are the same as the preset values of the multiple state parameters indicated by the target preset condition, the multiple state parameters can be considered to satisfy the target preset condition.
[0099] Among these, the aforementioned preset conditions correspond to multiple power modes. The power mode corresponding to a preset condition refers to the condition that, when multiple state parameters of the vehicle meet the preset condition, the vehicle has the prerequisite to switch to the power mode corresponding to that preset condition.
[0100] In some embodiments, the body controller can determine whether multiple state parameters of the vehicle meet preset conditions based on preset values of multiple state parameters indicated by preset conditions. For any preset condition, the body controller extracts the parameter values of the multiple state parameters from the vehicle operation information based on the multiple state parameters indicated by the preset condition. Then, the body controller matches the extracted parameter values of the multiple state parameters with the preset values of the multiple state parameters indicated by the preset conditions. If multiple parameter values match the corresponding preset values, it indicates that the multiple state parameters meet the preset condition, and the body controller determines the preset condition as the target preset condition. The target preset condition is the preset condition met by the multiple state parameters in the current vehicle operation information. By matching the parameter values of the state parameters with the preset values, the preset conditions currently met by the multiple state parameters of the vehicle can be determined more quickly and accurately, improving the efficiency of the body controller in determining the target preset condition.
[0101] Optionally, before determining the target preset condition from multiple preset conditions, the body controller can determine multiple preset conditions based on the vehicle's current power mode to narrow down the range of the target preset condition, thereby further improving the efficiency of determining the target preset condition. The power mode corresponding to the multiple preset conditions determined in the above manner is different from the vehicle's current power mode.
[0102] 303. In response to any instruction associated with the target preset conditions, switch the vehicle's power mode to the target power mode corresponding to the target preset conditions.
[0103] In this embodiment, the target preset condition is associated with at least one instruction. This instruction can be a braking instruction, a locking instruction, a door opening instruction, or a switching instruction automatically issued by the vehicle when certain vehicle state parameters meet certain conditions; this embodiment does not impose any limitations on this. When multiple vehicle state parameters meet the target preset condition, in response to any instruction associated with that preset condition, the body controller can switch the vehicle's power mode to the target power mode corresponding to the target preset condition.
[0104] When the vehicle's power mode includes OFF mode, ACC mode, and ON mode, the vehicle's power mode switching includes the following six scenarios: switching from OFF mode to ACC mode, switching from OFF mode to ON mode, switching from ACC mode to OFF mode, switching from ACC mode to ON mode, switching from ON mode to ACC mode, and switching from ON mode to OFF mode. The switching process for each of these six scenarios is explained below through steps 3031-3036.
[0105] 3031. The vehicle body controller switches the vehicle's power mode from OFF mode to ACC mode, that is, the vehicle's current power mode is OFF mode and the target power mode is ACC mode.
[0106] (1) The target preset condition includes: the key matching status is unmatched. The unmatched status indicates that the vehicle has not established a matching relationship with the key. Before leaving the factory, the vehicle is usually matched with the key. This process of establishing a matching relationship between the vehicle and the key can also be called the key learning process. The learned key establishes a one-to-one matching relationship with the vehicle's anti-theft control unit. Users can unlock and lock the vehicle using the learned key. When the vehicle's key matching status is unmatched, it can also be said that the vehicle has not learned the key.
[0107] When the vehicle meets the preset conditions—that is, when the vehicle's power mode is OFF and the vehicle is not paired with the key—the body controller switches the vehicle's power mode from OFF to ACC mode in response to the driver's door opening command. In other words, when the preset conditions are met, the vehicle's power mode automatically switches from OFF to ACC mode after the user opens the driver's door, and the vehicle's ambient lighting, audio system, and other electrical equipment automatically turn on. Therefore, this method eliminates the need for the user to manually switch the power mode to ACC mode after entering the vehicle, simplifying the user's operation and improving the driving experience.
[0108] It should be noted that during the process of the body controller switching the vehicle's power mode from OFF mode to ACC mode, the body controller can send the status parameter VehPwrMod / Keysts=0x1 to at least one ECU via the CAN bus, so that at least one ECU can execute commands such as turning on the interior ambient lights and turning on the car audio according to the parameter value of the status parameter, thereby switching the vehicle's power mode to ACC mode.
[0109] The switching logic described above can be represented by the following pseudocode.
[0110] Preconditions (a & b):
[0111] a. Power mode is OFF, VehPwrMod / Keysts = 0x0;
[0112] b. The key matching status is unmatched (key not learned);
[0113] Triggering condition (a):
[0114] a. When the driver's door is closed and then opened, DriverDoorSts=0x0 is updated to DriverDoorSts=0x1;
[0115] Execution output (a&b):
[0116] a. Switch the power mode to ACC mode;
[0117] b. Send VehPwrMod / Keysts=0x1 via CAN bus.
[0118] (2) The target preset conditions include: anti-theft mode is off and key matching status is matched. The anti-theft mode being off indicates that the vehicle is unlocked. The matching status indicates that the vehicle has been matched with the key.
[0119] When the vehicle meets the preset conditions—that is, when the vehicle's power mode is OFF, the vehicle is unlocked, and the matching key has been recognized—the body controller switches the vehicle's power mode from OFF to ACC mode in response to the driver's door opening command. In other words, when the preset conditions are met, the vehicle's power mode automatically switches from OFF to ACC mode after the user opens the driver's door, and the vehicle's ambient lighting, audio system, and other electrical equipment automatically turn on. Therefore, this method eliminates the need for the user to manually switch the power mode to ACC mode after entering the vehicle, simplifying the user's operation and improving the driving experience.
[0120] The switching logic described above can be represented by the following pseudocode.
[0121] Preconditions (a, b, c):
[0122] a. Power mode is OFF, VehPwrMod / Keysts = 0x0;
[0123] b. Anti-theft mode is off, BCM_4_ArmingSts = 0x2;
[0124] c. The key matching status is "matched" (key has been learned);
[0125] Triggering condition (a):
[0126] a. When the driver's door is closed and then opened, DriverDoorSts=0x0 is updated to DriverDoorSts=0x1;
[0127] Execution output (a&b):
[0128] a. Switch the power mode to ACC mode;
[0129] b. Send VehPwrMod / Keysts=0x1 via CAN bus.
[0130] (3) The target preset conditions include: the key matching status is matched and the key status is invalid. Among them, the invalid status is used to indicate that the vehicle has not recognized the matched key.
[0131] When the vehicle meets the preset conditions, specifically when the vehicle's power mode is OFF and no matching key is recognized, the body controller switches the vehicle's power mode from OFF to ACC mode in response to the braking command from the brake pedal. The braking command can be issued when the user presses the brake pedal. By allowing the user to switch the vehicle's power mode from OFF to ACC mode by pressing the brake pedal when no matching key is recognized, the switching operation is simplified, eliminating the need for the user to use a key or push-button start switch. This improves the efficiency of power mode switching and enhances the user's driving experience.
[0132] The switching logic described above can be represented by the following pseudocode.
[0133] Preconditions (a, b, c):
[0134] a. Power mode is OFF, VehPwrMod / Keysts = 0x0;
[0135] b. The key matching status is matched (key has been learned);
[0136] c. The key is in an invalid state (the key is invalid);
[0137] Triggering condition (a):
[0138] a. Depress the brake pedal, BrakePedalSts = 0x1;
[0139] Execution output (a&b):
[0140] a. Switch the power mode to ACC mode;
[0141] b. Send VehPwrMod / Keysts=0x1 via CAN bus.
[0142] (4) The target preset conditions include: the key is in a valid state, and the distance between the vehicle and the matched key gradually decreases. The gradual decrease in the distance between the vehicle and the key can mean that the distance between them generally shows a decreasing trend. This application embodiment does not limit the distance value to a strict negative correlation with time.
[0143] When the vehicle meets the preset conditions, in response to the switching command, the body controller switches the vehicle's power mode from OFF mode to ACC mode. The switching command is issued when the distance between the vehicle and the key is less than a distance threshold. The distance threshold can be a preset value, such as 5 meters, 3 meters, or 2 meters; this embodiment does not impose a limitation on this. When the vehicle has recognized the matching key and the distance between the key and the vehicle is gradually decreasing, it indicates that the user is approaching the vehicle with the key. Therefore, the vehicle can automatically switch the power mode from OFF mode to ACC mode when the user is close to the vehicle, eliminating the need for the user to manually switch the power mode after entering the vehicle, thus improving human-vehicle interaction efficiency and the user's driving experience.
[0144] It should be noted that, in addition to the four situations mentioned above, the vehicle can also switch its power mode from OFF to ACC mode upon receiving a remote power-on request. This remote power-on request can be sent by the user via their mobile phone to the vehicle's onboard terminal. Therefore, by supporting remote power-on, users can remotely switch the vehicle's power mode from OFF to ACC mode even when they are far from the vehicle, thus enriching the scenarios for switching power modes.
[0145] 3032. The body controller switches the vehicle's power mode from OFF mode to ON mode, that is, the vehicle's current power mode is OFF mode and the target power mode is ON mode.
[0146] (5) The target preset conditions include: the key matching status is matched and the key status is valid. When the vehicle recognizes the matched key, in response to the braking command of the vehicle's brake pedal, the body controller switches the vehicle's power mode from OFF mode to ON mode. The braking command can be issued when the user presses the brake pedal. By allowing the user to directly switch the vehicle's power mode from OFF mode to ON mode by pressing the brake pedal when the vehicle recognizes the matched key, the switching operation performed by the user is simplified. Users no longer need to switch power modes using a key or a one-button start switch; simply pressing the brake pedal starts the vehicle, improving human-vehicle interaction efficiency and enhancing the user's driving experience.
[0147] It should be noted that during the process of the body controller switching the vehicle's power mode from OFF mode to ON mode, the body controller can send the status parameter VehPwrMod / Keysts = 0x2 to at least one ECU via the CAN bus, so that at least one ECU can execute commands such as turning on the interior ambient lights, turning on the car audio, turning on the air conditioning, and starting the vehicle's engine according to the parameter value of the status parameter, thereby switching the vehicle's power mode to ON mode.
[0148] The switching logic described above can be represented by the following pseudocode.
[0149] Preconditions (a, b, c):
[0150] a. Power mode is OFF, VehPwrMod / Keysts = 0x0;
[0151] b. The key matching status is matched (key has been learned);
[0152] c. The key is in an invalid state (the key is invalid);
[0153] Triggering condition (a):
[0154] a. Depress the brake pedal, BrakePedalSts = 0x1;
[0155] Execution output (a&b):
[0156] a. Switch the power mode to ON mode;
[0157] b. Send VehPwrMod / Keysts=0x2 via CAN bus.
[0158] (6) Target preset conditions include: key matching status is unmatched, gear is neutral or park, and vehicle mode is factory mode. Factory mode is a special vehicle mode used during the manufacturing process. Switching to factory mode facilitates vehicle debugging and acceptance by technicians. In factory mode, some vehicle functions or permissions are disabled. For example, automatic parking, adaptive cruise control, and other driver assistance functions may be disabled.
[0159] When the vehicle meets the aforementioned preset conditions, in response to the braking command from the brake pedal, the body controller switches the vehicle's power mode from OFF to ON, allowing technicians to debug various functions of the vehicle in ON mode. Furthermore, in response to the switch to ON mode, the body controller uses a timer to keep track of the time, ensuring that the vehicle switches from ON to ACC mode after a first set of time intervals. In other words, when the vehicle is in factory mode, if a technician switches the vehicle's power mode to ON by pressing the brake pedal, the vehicle can automatically switch to ACC mode after remaining in ON mode for a first set of time intervals. The first set of time intervals can be a preset duration, such as 3 minutes, 5 minutes, or 10 minutes; this embodiment does not impose any limitations on this. By using a timer to keep track of the time intervals when the vehicle is powered on in factory mode, and automatically switching the vehicle's power mode to ACC mode after a preset duration, the system avoids the vehicle remaining continuously in ON mode and eliminates the need for technicians to manually switch the vehicle's power mode, reducing technician operations and improving debugging efficiency.
[0160] The switching logic described above can be represented by the following pseudocode.
[0161] Preconditions (a&b&c&d):
[0162] a. Power mode is OFF, VehPwrMod / Keysts = 0x0;
[0163] b. The key matching status is unmatched (key not learned);
[0164] c. The vehicle is in P or N gear;
[0165] d. The vehicle mode is the factory mode;
[0166] Triggering condition (a):
[0167] a. Depress the brake pedal, BrakePedalSts = 0x1;
[0168] Execution output (a&b):
[0169] a. When the power mode is switched to ON mode, the timer starts counting down for 5 minutes;
[0170] b. Send VehPwrMod / Keysts=0x2 via CAN bus.
[0171] It should be noted that during the timing process, in response to the braking command from the brake pedal, the timer resets to zero and restarts. In other words, if the technician presses the brake pedal again during the timing process, the timer restarts.
[0172] (7) The target preset conditions include: the gear is in parking gear, the vehicle speed is not greater than the vehicle speed threshold, and the vehicle's safety certification status is that it has passed safety certification. The vehicle speed threshold can be a preset speed, such as 3 km / h, 4 km / h, or 5 km / h; this embodiment does not impose any limitation on this. Optionally, the safety certification is OTA (Over-the-Air) safety certification. For example, receiving an OTA certification declaration signal from the IHU (In-Vehicle Infotainment Unit) indicates that the vehicle's safety certification status has passed safety certification. Safety certification is used to verify whether the OTA is legitimate. Receiving an OTA certification declaration signal indicates that this OTA is a legitimate upgrade, not an illegal one.
[0173] When the vehicle meets the aforementioned target preset conditions, in response to the OTA power-on command, the body controller switches the vehicle's power mode from OFF to ON. Furthermore, in response to the switch to ON, the body controller uses a timer to keep track of the time, ensuring that the vehicle switches back to OFF when the timer reaches a second preset duration. This second duration can be a preset duration, such as 90 minutes, 100 minutes, or 120 minutes; this embodiment does not impose such a limitation. By switching the vehicle's power mode to ON in response to the OTA power-on command after the vehicle has passed security authentication, remote upgrades can be easily performed in ON mode. Additionally, when the vehicle enters ON mode via OTA power-on, using a timer to automatically switch the power mode to OFF when the preset duration is reached prevents the vehicle from remaining in ON mode after a remote upgrade is completed. This also eliminates the need for technicians to manually switch the vehicle's power mode, reducing technician operations and improving human-vehicle interaction efficiency.
[0174] The switching logic described above can be represented by the following pseudocode.
[0175] Preconditions (a&b&c&d):
[0176] a. Power mode is OFF, VehPwrMod / Keysts = 0x0;
[0177] b. The vehicle is in Park (P) gear;
[0178] c. Vehicle speed ≤ 4 km / h;
[0179] d. Received an OTA certification declaration signal from IHU;
[0180] Triggering condition (a):
[0181] a. Upon receiving the OTA power-on command, IHU_OTAPwrMngt = 0x2;
[0182] Execution output (a&b&c):
[0183] a. The power mode is switched to ON mode, and a power-on success command BDM_OTAPwrOnReqFb=0x1 is sent to the BDM (Body Domain Controller) to instruct the BDM to start timing via the timer;
[0184] b. Send VehPwrMod / Keysts = 0x2 via CAN bus;
[0185] c.BDM begins OTA power-on 90-minute timing.
[0186] 3033. The vehicle body controller switches the vehicle's power mode from ACC mode to OFF mode, that is, the vehicle's current power mode is ACC mode and the target power mode is OFF mode.
[0187] (8) The target preset conditions include: the driver's seat is unoccupied, multiple doors are closed, the gear is in park, and the vehicle speed does not exceed a speed threshold. The vehicle controller can determine the driver's seat status by reading the resistance value of the resistor corresponding to the driver's seat. Optionally, if the read resistance value is within a preset range, it indicates that the driver's seat is occupied. If the read resistance value is not within the preset range, it indicates that the driver's seat is unoccupied.
[0188] When the vehicle meets the aforementioned preset conditions, in response to any locking command, the body controller switches the vehicle's power mode from ACC mode to OFF mode. The locking command can be issued by the user after locking the vehicle with a key, a TOX (Telematics Box), or an NFC key; this embodiment does not limit the method of triggering the locking command. By automatically switching the vehicle's power mode to OFF mode in response to the user's locking command when the driver's seat is unoccupied, all four doors are closed, and the vehicle speed and gear are in preset states, the user is not required to manually switch the power mode again after locking the vehicle, simplifying user operation and improving human-vehicle interaction efficiency.
[0189] It should be noted that during the process of the body controller switching the vehicle's power mode from ACC mode to OFF mode, the body controller can send the status parameter VehPwrMod / Keysts=0x0 to at least one ECU via the CAN bus, so that at least one ECU can execute commands such as turning off the ambient lighting and turning off the car audio according to the parameter value of the status parameter, thereby switching the vehicle's power mode to OFF mode.
[0190] The switching logic described above can be represented by the following pseudocode.
[0191] Preconditions (a&b&c&d&e):
[0192] a. Power mode is ACC mode, VehPwrMod / Keysts = 0x1;
[0193] b. The vehicle is in Park (P) gear;
[0194] c. Vehicle speed ≤ 4 km / h;
[0195] d. The driver's seat is in an unoccupied state (no one is in the driver's seat);
[0196] e. Multiple doors are closed, DriverDoorSts=0x0, PsngrDoorSts=0x0, LHRDoorSts=0x0, RHRDoorSts=0x0 (4 doors closed);
[0197] Triggering condition (a‖b‖c):
[0198] a. Lock the car with the key;
[0199] b. Lock the car via TOX;
[0200] c. Lock the car using the NFC key;
[0201] Execution output (a&b):
[0202] a. Switch the power mode to OFF mode;
[0203] b. Send VehPwrMod / Keysts=0x0 via CAN bus.
[0204] (9) Target preset conditions include: the gear is in parking gear and the vehicle speed does not exceed the vehicle speed threshold. Target preset conditions also include any of the following: high-voltage power is not connected, the vehicle mode is transportation mode, or the vehicle mode is factory mode. "High-voltage power is not connected" can refer to the vehicle not being connected to a high-voltage power source, such as when the vehicle is in hybrid mode. Transportation mode is a special vehicle mode used during transportation. When the vehicle is in transportation mode, some functions or permissions of the vehicle are disabled. For example, certain comfort functions and entertainment functions may be disabled when the vehicle is in transportation mode. Additionally, the maximum speed of the vehicle may be limited when the vehicle is in transportation mode to ensure safety during transportation.
[0205] When the vehicle meets the aforementioned target preset conditions, in response to the switching command, the body controller switches the vehicle's power mode from ACC mode to OFF mode. The switching command is issued when multiple vehicle state parameters have met the aforementioned target preset conditions for a duration equal to a third time period. This third time period can be a preset duration, such as 3 minutes, 5 minutes, or 10 minutes; this embodiment does not impose any limitation on this.
[0206] Optionally, in response to the vehicle meeting the aforementioned target preset conditions, the body controller starts timing via a timer. During the timing process, if the vehicle does not meet the target preset conditions, the timer stops timing until the vehicle meets the target preset conditions again, at which point timing restarts.
[0207] The switching logic described above can be represented by the following pseudocode.
[0208] Preconditions (a&b&c&(d‖e‖f)):
[0209] a. Power mode is ACC mode, VehPwrMod / Keysts = 0x1;
[0210] b. The vehicle is in Park (P) gear;
[0211] c. Vehicle speed ≤ 4 km / h;
[0212] d. High-voltage power supply not connected, HCU_HVReady = 0x0;
[0213] e. The vehicle mode is transportation mode;
[0214] f. Vehicle mode is factory mode;
[0215] Triggering condition (a):
[0216] a. The timer duration reaches 5 minutes;
[0217] Execution output (a&b):
[0218] a. Switch the power mode to OFF mode;
[0219] b. Send VehPwrMod / Keysts=0x0 via CAN bus.
[0220] (10) The target preset conditions include: the gear is park or neutral, and the vehicle speed is not greater than the vehicle speed threshold.
[0221] When the vehicle meets the preset target conditions, in response to an emergency power-down command, the body controller switches the vehicle's power mode from ACC mode to OFF mode. The emergency power-down command can be issued when the vehicle's emergency power-down button / button is triggered. The emergency power-down button can typically be a physical button located on the vehicle's center console, or it can be a virtual button displayed on the in-vehicle terminal. In response to the user's triggering of the emergency power-down button, the vehicle's IHU sends an emergency power-down command to the body controller, instructing the body controller to switch the vehicle's power mode to OFF mode. When the user triggers the emergency power-down button, if the vehicle's gear and speed both meet the preset target conditions, the body controller can promptly switch the vehicle's power mode to OFF mode, thus powering off the vehicle and improving human-vehicle interaction efficiency.
[0222] The switching logic described above can be represented by the following pseudocode.
[0223] Preconditions (a, b, c):
[0224] a. Power mode is ACC mode, VehPwrMod / Keysts = 0x1;
[0225] b. The vehicle is in Park (P) gear;
[0226] c. Vehicle speed ≤ 4 km / h;
[0227] Triggering condition (a):
[0228] a. Received emergency power-off command IHU 24PwrOff=0x1;
[0229] Execution output (a&b):
[0230] a. Switch the power mode to OFF mode;
[0231] b. Send VehPwrMod / Keysts=0x0 via CAN bus.
[0232] 3034. The vehicle body controller switches the vehicle's power mode from ACC mode to ON mode, that is, the vehicle's current power mode is ACC mode and the target power mode is ON mode.
[0233] (11) Target preset conditions include: key matching status is not matched, gear is parking or neutral, and vehicle mode is factory mode.
[0234] When the vehicle meets the preset target conditions, in response to the braking command from the brake pedal, the body controller switches the vehicle's power mode from ACC mode to ON mode and uses a timer to keep track of the time. This ensures that the vehicle switches back to ACC mode after a predetermined time has elapsed. By using a timer to automatically switch the vehicle's power mode to ACC mode when the vehicle is powered on in factory mode, the system avoids the vehicle remaining in ON mode continuously and eliminates the need for manual switching by technicians, reducing technician workload and improving debugging efficiency.
[0235] As described in step (6) above, if the vehicle's power mode is OFF and the vehicle meets the target preset conditions, the user can switch the vehicle's power mode to ACC mode by pressing the brake pedal. As described in step (11) above, if the vehicle's power mode is ACC mode and the vehicle still meets the target preset conditions, the user can switch the vehicle's power mode to ON mode by pressing the brake pedal again.
[0236] It should be noted that during the process of the body controller switching the vehicle's power mode from ACC mode to ON mode, the body controller can send the status parameter VehPwrMod / Keysts = 0x2 to at least one ECU via the CAN bus, so that at least one ECU can execute commands such as turning on the air conditioner and starting the vehicle's engine according to the parameter value of the status parameter, thereby switching the vehicle's power mode to ON mode.
[0237] The switching logic described above can be represented by the following pseudocode.
[0238] Preconditions (a&b&c&d):
[0239] a. Power mode is ACC mode, VehPwrMod / Keysts = 0x1;
[0240] b. The key matching status is unmatched (key not learned);
[0241] c. The vehicle is in P or N gear;
[0242] d. The vehicle mode is the factory mode;
[0243] Triggering condition (a):
[0244] a. Depress the brake pedal, BrakePedalSts = 0x1;
[0245] Execution output (a&b):
[0246] a. When the power mode is switched to ON mode, the timer starts counting down for 5 minutes;
[0247] b. Send VehPwrMod / Keysts=0x2 via CAN bus.
[0248] (12) The target preset conditions include: the key matching status is matched and the key status is valid. When the vehicle meets the target preset conditions, in response to the braking command of the vehicle's brake pedal, the body controller switches the vehicle's power mode from ACC mode to ON mode. By recognizing the matched key, the user can start the vehicle by pressing the brake pedal, which can reduce the user's operation of starting the vehicle while ensuring vehicle safety and improving the efficiency of human-vehicle interaction.
[0249] The switching logic described above can be represented by the following pseudocode.
[0250] Preconditions (a, b, c):
[0251] a. Power mode is ACC mode, VehPwrMod / Keysts = 0x1;
[0252] b. The key matching status is matched (key has been learned);
[0253] c. The key is in a valid state (the key is valid);
[0254] Triggering condition (a):
[0255] a. Depress the brake pedal, BrakePedalSts = 0x1;
[0256] Execution output (a&b):
[0257] a. Switch the power mode to ON mode;
[0258] b. Send VehPwrMod / Keysts=0x2 via CAN bus.
[0259] (13) The target preset conditions include: the gear is park, the vehicle speed is not greater than the vehicle speed threshold, and the vehicle's safety certification status is that it has passed the safety certification.
[0260] When the vehicle meets the target preset conditions, in response to the OTA power-on command, the body controller switches the vehicle's power mode from ACC mode to ON mode and uses a timer to keep track of the time. The system then switches the power mode from ON to OFF mode after a second set of time has elapsed. By using a timer to automatically switch the vehicle's power mode to OFF mode when it enters ON mode via OTA power-on, the system avoids the vehicle remaining in ON mode after remote upgrades are completed. Furthermore, it eliminates the need for manual switching of the vehicle's power mode by technicians, reducing technician workload and improving human-vehicle interaction efficiency.
[0261] The switching logic described above can be represented by the following pseudocode.
[0262] Preconditions (a&b&c&d):
[0263] a. Power mode is ACC mode, VehPwrMod / Keysts = 0x1;
[0264] b. The vehicle is in Park (P) gear;
[0265] c. Vehicle speed ≤ 4 km / h;
[0266] d. Received an OTA certification declaration signal from IHU;
[0267] Triggering condition (a):
[0268] a. Upon receiving the OTA power-on command, IHU_OTAPwrMngt = 0x2;
[0269] Execution output (a&b&c):
[0270] a. The power mode is switched to ON mode, and a power-on success command BDM_OTAPwrOnReqFb=0x1 is sent to the BDM (Body Domain Controller) to instruct the BDM to start timing via the timer;
[0271] b. Send VehPwrMod / Keysts = 0x2 via CAN bus;
[0272] c.BDM begins OTA power-on 90-minute timing.
[0273] It should be noted that, as described in steps (7) and (13) above, when the vehicle's power mode is OFF or ACC, the vehicle's power mode can be switched to ON mode via OTA power-on command. Furthermore, when the vehicle enters ON mode via OTA power-on, the vehicle's power mode will automatically switch back to OFF mode after 90 minutes.
[0274] 3035. The vehicle body controller switches the vehicle's power mode from ON mode to ACC mode, that is, the vehicle's current power mode is ON mode and the target power mode is ACC mode.
[0275] (14) The target preset conditions include: the key matching status is in the matching state when the power mode was switched most recently, the gear is in the parking gear, and the vehicle speed is not greater than the vehicle speed threshold.
[0276] When the key matching state is "matched" upon vehicle power-on, in response to a delayed switching command, the body controller switches the vehicle's power mode from ON to ACC mode after a preset time. The delayed switching command is issued when multiple vehicle state parameters meet the switching conditions. These conditions include the driver's seat being unoccupied, the driver's side door being open, and the brake pedal being not depressed. The preset time can be 1 second, 2 seconds, or 3 seconds; this embodiment does not impose a limitation. By delaying the switching of the vehicle's power mode for a few seconds when multiple vehicle state parameters meet the switching conditions, erroneous switching of the vehicle's power mode can be avoided, improving the accuracy of power mode switching.
[0277] It should be noted that the delayed switching command can also be issued when multiple vehicle status parameters meet the switching conditions for a preset duration. In this case, in response to the delayed switching command, the body controller can directly switch the vehicle's power mode from ON mode to ACC mode without waiting for the preset duration.
[0278] It should be noted that during the process of the body controller switching the vehicle's power mode from ON mode to ACC mode, the body controller can send the status parameter VehPwrMod / Keysts=0x1 to at least one ECU via the CAN bus, so that at least one ECU can execute commands such as turning off the air conditioner and turning off the vehicle's engine according to the parameter value of the status parameter, thereby switching the vehicle's power mode to ACC mode.
[0279] The switching logic described above can be represented by the following pseudocode.
[0280] Preconditions (a, b, c):
[0281] a. Power mode is ON, VehPwrMod / Keysts = 0x2 (the key matching status was matched when the power mode was last switched, that is, the key was learned when the power was powered on);
[0282] b. The vehicle is in Park (P) gear;
[0283] c. Vehicle speed ≤ 4 km / h;
[0284] Triggering conditions (a&b&c):
[0285] a. The driver's seat is unoccupied (driver is not in use);
[0286] b. The driver's side door is open (driver's side door open);
[0287] c. The brake pedal is not depressed;
[0288] Execution output (a&b):
[0289] a. Delay for 1 second before switching the power mode to ACC mode;
[0290] b. Send VehPwrMod / Keysts=0x1 via CAN bus.
[0291] (15) The target preset conditions include: the vehicle mode was factory mode when the power mode was last switched and the timer was in timer mode.
[0292] When the vehicle is powered on in factory mode, the body controller switches the vehicle's power mode from ON to ACC mode in response to a switching command. This switching command is issued after a timer has elapsed for a certain duration. In other words, when the vehicle is powered on in factory mode, it automatically switches to ACC mode after the vehicle has been in ON mode for the specified duration. This avoids the vehicle remaining continuously in ON mode and eliminates the need for manual switching by technicians, reducing their workload and improving their efficiency in troubleshooting.
[0293] The switching logic described above can be represented by the following pseudocode.
[0294] Precondition (a):
[0295] a. Power mode is ON, VehPwrMod / Keysts = 0x2 (the vehicle mode during the most recent power mode switch was factory mode, and the timer was in 5-minute countdown mode);
[0296] Triggering condition (a):
[0297] a. The 5-minute countdown has ended;
[0298] Execution output (a&b):
[0299] a. Switch the power mode to ACC mode;
[0300] b. Send VehPwrMod / Keysts=0x1 via CAN bus.
[0301] (16) The target preset conditions include: the driver's seat is in an unoccupied state, the key is in a valid state, and the distance between the vehicle and the matched key gradually increases. The gradual increase in the distance between the vehicle and the key can mean that the distance between them generally shows an increasing trend. This application embodiment does not limit the distance value to a strict positive correlation with time.
[0302] When the vehicle meets the preset conditions, in response to the switching command, the body controller switches the vehicle's power mode from ON to ACC mode. The switching command is issued when the distance value is greater than a distance threshold. The distance threshold can be a preset value, such as 5 meters, 3 meters, or 2 meters; this embodiment does not impose such a limitation. By automatically switching the power mode from ON to ACC when the user is far from the vehicle, the user is no longer required to manually switch the power mode after leaving the vehicle, thus improving human-vehicle interaction efficiency and the user's driving experience.
[0303] 3036. The body controller switches the vehicle's power mode from ON to OFF, meaning the vehicle's current power mode is ON and the target power mode is OFF.
[0304] (17) The target preset conditions include: the most recent instruction to switch the power mode is an OTA power-on instruction, the gear is the parking gear, and the vehicle speed is not greater than the vehicle speed threshold.
[0305] When the vehicle meets the target preset conditions, in response to the OTA power-down command, the body controller switches the vehicle's power mode from ON to OFF. By promptly switching the power mode to OFF upon receiving the OTA power-down command, the vehicle avoids remaining in ON mode after remote upgrades are completed. Furthermore, it eliminates the need for technicians to manually switch the vehicle's power mode, reducing technician workload and improving human-vehicle interaction efficiency.
[0306] It should be noted that during the process of the body controller switching the vehicle's power mode from ON to OFF, the body controller can send the status parameter VehPwrMod / Keysts=0x0 to at least one ECU via the CAN bus. This allows at least one ECU to execute commands such as turning off the ambient lighting, turning off the car audio system, turning off the air conditioning, and turning off the vehicle's engine based on the value of this status parameter, thereby switching the vehicle's power mode to OFF.
[0307] The switching logic described above can be represented by the following pseudocode.
[0308] Preconditions (a, b, c):
[0309] a. Power mode is ON, VehPwrMod / Keysts = 0x2 (the most recent instruction indicating a power mode switch was an OTA power-on instruction);
[0310] b. The vehicle is in Park (P) gear;
[0311] c. Vehicle speed ≤ 4 km / h;
[0312] Triggering condition (a):
[0313] a. Upon receiving the OTA power-down command, IHU_OTAPwrMngt = 0x1;
[0314] Execution output (a&b):
[0315] a. Switch the power mode to OFF mode;
[0316] b. Send VehPwrMod / Keysts=0x0 via CAN bus.
[0317] (18) The target preset conditions include: the most recent instruction to switch the power mode is an OTA power-on instruction, and the timer is in the timing state.
[0318] When the vehicle meets the preset target conditions, in response to a switching command, the body controller switches the vehicle's power mode from ON to OFF. The switching command is issued after the timer has completed its second set of durations. By automatically switching the vehicle's power mode to OFF when the preset duration is reached, the system avoids the vehicle remaining in ON mode after a remote upgrade is completed. Furthermore, it eliminates the need for technicians to manually switch the vehicle's power mode, reducing technician workload and improving human-vehicle interaction efficiency.
[0319] The switching logic described above can be represented by the following pseudocode.
[0320] Preconditions (a, b, c):
[0321] a. Power mode is ON, VehPwrMod / Keysts = 0x2;
[0322] b. The most recent instruction to switch power modes was an OTA power-on instruction (OTA power-on request successful);
[0323] c. The timer is in timing mode (BDM is performing a 90-minute OTA power-on timing);
[0324] Triggering conditions (a & b):
[0325] a. The 90-minute countdown has ended;
[0326] b. The power mode remains ON.
[0327] Execution output (a&b):
[0328] a. Switch the power mode to OFF mode;
[0329] b. Send VehPwrMod / Keysts=0x0 via CAN bus.
[0330] (19) The target preset conditions include: the gear is parking gear and the vehicle speed is not greater than the vehicle speed threshold.
[0331] When the vehicle meets the preset target conditions, in response to an emergency power-down command, the body controller switches the vehicle's power mode from ON to OFF. When the user triggers the emergency power-down button, if the vehicle's gear and speed meet the preset target conditions, the body controller can promptly switch the vehicle's power mode to OFF, thus powering off the vehicle and improving human-vehicle interaction efficiency.
[0332] The switching logic described above can be represented by the following pseudocode.
[0333] Preconditions (a, b, c):
[0334] a. Power mode is ON, VehPwrMod / Keysts = 0x2;
[0335] b. The vehicle is in Park (P) gear;
[0336] c. Vehicle speed ≤ 4 km / h;
[0337] Triggering condition (a):
[0338] a. Received emergency power-off command IHU_24_PwrOff=0x1;
[0339] Execution output (a&b):
[0340] a. Switch the power mode to OFF mode;
[0341] b. Send VehPwrMod / Keysts=0x0 via CAN bus.
[0342] Steps 3031-3036 above describe various scenarios for switching vehicle power modes. The following section will discuss these scenarios in conjunction with... Figure 4 The diagram illustrating the switching of power modes demonstrates the process of switching between various power modes. Figure 4 As shown, the three ways to switch from OFF mode to ACC mode correspond to steps (1)-(3) in 3031 above. The three ways to switch from OFF mode to ON mode correspond to steps (5)-(7) in 3032 above. The three ways to switch from ACC mode to OFF mode correspond to steps (8)-(10) in 3033 above. The three ways to switch from ACC mode to ON mode correspond to steps (11)-(13) in 3034 above. The two ways to switch from ON mode to ACC mode correspond to steps (14)-(15) in 3035 above. In addition, Figure 4 It also shows a way to switch from ON to ACC, that is, when the vehicle is in P gear and the vehicle speed is no more than 4 km / h for a continuous period of 10 minutes, the body controller switches the vehicle's power mode from ON mode to ACC mode. The three ways to switch from ON mode to OFF mode correspond to steps (17)-(19) in 3036 above.
[0343] The above embodiments mainly describe how the body controller switches the vehicle's power mode based on target preset conditions satisfied by the vehicle's state parameters. In some embodiments, the body controller can also update the vehicle's state parameters according to the target power mode to be switched, so that the state parameters satisfy the preset conditions corresponding to the target power mode, thereby switching the power mode to the target power mode. The above process will be described below through steps 304-307.
[0344] 304. Based on the vehicle's historical switching information, determine the target power mode. The historical switching information includes the vehicle's power mode switching records.
[0345] In this embodiment, the vehicle body controller acquires the vehicle's historical switching information. This historical switching information records the switching history of power modes. The target power mode is the vehicle's power mode at multiple historical moments corresponding to the current time. For example, if the current time is 4 PM, the target power mode could be the power mode most frequently used by the vehicle at 4 PM over the previous N days.
[0346] 305. Send a mode switching request to the target device. The mode switching request is used to request that the vehicle's power mode be switched to the target power mode.
[0347] In this embodiment, the target device is a device used by a user driving a vehicle. For example, the target device can be a mobile terminal device such as a driver's mobile phone or tablet. The vehicle controller sends a mode switching request to the target device through the vehicle's onboard terminal to request switching the vehicle's power mode to the target power mode. After receiving the mode switching request, the target device displays the request so that the user can decide whether to switch the power mode. In response to the user's confirmation of the mode switching request, the target device replies with a confirmation switching response to the onboard terminal.
[0348] 306. In response to the confirmation switching response from the target device, based on the target preset conditions corresponding to the target power mode, update multiple status parameters of the vehicle so that the multiple status parameters meet the target preset conditions.
[0349] In this embodiment, in response to the confirmation switching response from the target device, the body controller obtains the target preset conditions corresponding to the target power mode. If multiple current state parameters of the vehicle do not meet the target preset conditions, the body controller sends preset values of the multiple state parameters indicated by the target preset conditions to at least one ECU via the CAN bus, instructing at least one ECU to update the multiple state parameters of the vehicle according to the preset values, so that the updated multiple state parameters meet the target preset conditions.
[0350] 307. When multiple state parameters meet the target preset conditions, switch the vehicle's power mode to the target power mode.
[0351] In this embodiment, when multiple state parameters of the vehicle meet the target preset conditions, the body controller automatically switches the vehicle's power mode to the target power mode. By automatically switching the vehicle's power mode based on historical switching information, the vehicle can remotely and automatically switch power modes with user authorization. This not only improves the efficiency of switching power modes but also ensures that the switched power mode matches the user's driving habits, thus enhancing the user's driving experience.
[0352] This application provides a power mode switching method that can determine whether the vehicle currently meets preset conditions for switching power modes based on its operating status. If the vehicle meets any preset condition, in response to any command associated with that preset condition, the vehicle's power mode can be promptly switched to the target mode corresponding to that preset condition. Using this method, the vehicle's power mode can be intelligently switched according to its operating status, eliminating the need for manual switching by the user, thus improving the efficiency of power mode switching and enhancing the user's driving experience.
[0353] Figure 5 This is a schematic diagram of a power mode switching device provided in an embodiment of this application. See also... Figure 5 The device includes: an acquisition module 501, a first determination module 502, and a switching module 503.
[0354] The acquisition module 501 is used to acquire vehicle operation information, which is used to represent the vehicle's operating status through the parameter values of multiple status parameters.
[0355] The first determining module 502 is used to determine target preset conditions based on vehicle operation information. The target preset conditions are preset conditions satisfied by multiple state parameters among multiple preset conditions, and the multiple preset conditions correspond to multiple power modes.
[0356] The switching module 503 is used to switch the vehicle's power mode to the target power mode corresponding to the target preset conditions in response to any instruction associated with the target preset conditions.
[0357] In some embodiments, the acquisition module 501 is used to acquire vehicle operation information transmitted via the vehicle's CAN bus in real time. The status parameters in the vehicle operation information include at least one of power mode, anti-theft mode, vehicle mode, gear position, vehicle speed, door status, seat status, key matching status, key status, security authentication status, and timing duration.
[0358] In some embodiments, the first determining module 502 is configured to, for any preset condition, extract parameter values of multiple state parameters from vehicle operation information based on multiple state parameters indicated by the preset condition; match the parameter values of the multiple state parameters with preset values of the multiple state parameters indicated by the preset condition; and if the parameter values match the preset values, then determine the preset condition as the target preset condition.
[0359] In some embodiments, the current power mode of the vehicle is OFF mode, the target power mode is ACC mode, and the target preset condition includes a key matching status of unmatched status, which indicates that the vehicle has not established a matching relationship with the key.
[0360] The switching module 503 is used to switch the vehicle's power mode from OFF mode to ACC mode in response to the driver's door opening command.
[0361] In some embodiments, the current power mode of the vehicle is OFF mode, the target power mode is ACC mode, and the target preset conditions include the anti-theft mode being off and the key matching state being matched. The off state is used to indicate that the vehicle has been unlocked, and the matching state is used to indicate that the vehicle has established a matching relationship with the key.
[0362] The switching module 503 is used to switch the vehicle's power mode from OFF mode to ACC mode in response to the driver's door opening command.
[0363] In some embodiments, the current power mode of the vehicle is OFF mode, the target power mode is ACC mode, and the target preset conditions include key matching status being matched and key status being invalid. The matching status is used to indicate that the vehicle has established a matching relationship with the key, and the invalid status is used to indicate that the vehicle has not recognized the matched key.
[0364] The switching module 503 is used to switch the vehicle's power mode from OFF mode to ACC mode in response to the braking command of the vehicle's brake pedal.
[0365] In some embodiments, the vehicle’s current power mode is OFF mode, the target power mode is ACC mode, and the target preset conditions include the key status being valid, the distance between the vehicle and the matched key gradually decreasing, and the valid status indicating that the vehicle has recognized the matched key.
[0366] The switching module 503 is used to switch the vehicle's power mode from OFF mode to ACC mode in response to a switching command. The switching command is issued when the distance value is less than the distance threshold.
[0367] In some embodiments, the current power mode of the vehicle is OFF mode, the target power mode is ON mode, and the target preset conditions include key matching status being matched and key status being valid. The matching status indicates that the vehicle has established a matching relationship with the key, and the valid status indicates that the vehicle has recognized the matched key.
[0368] The switching module 503 is used to switch the vehicle's power mode from OFF mode to ON mode in response to the braking command of the vehicle's brake pedal.
[0369] In some embodiments, the current power mode of the vehicle is OFF mode, the target power mode is ON mode, and the target preset conditions include key matching status being unmatched, gear being neutral or park, and vehicle mode being factory mode. The unmatched status is used to indicate that the vehicle has not established a matching relationship with the key.
[0370] The switching module 503 is used to switch the vehicle's power mode from OFF mode to ON mode in response to the braking command of the vehicle's brake pedal, and to count the time through a timer so that the vehicle switches the power mode from ON mode to ACC mode when the timer reaches a first duration.
[0371] In some embodiments, the current power mode of the vehicle is OFF mode, the target power mode is ON mode, and the target preset conditions include the gear being parked, the vehicle speed not exceeding the vehicle speed threshold, and the vehicle's safety certification status being that it has passed safety certification.
[0372] The switching module 503 is used to switch the vehicle's power mode from OFF mode to ON mode in response to the OTA power-on command for remote upgrade, and to use a timer to keep track of the time so that the vehicle switches the power mode from ON mode to OFF mode when the timer reaches the second duration.
[0373] In some embodiments, the current power mode of the vehicle is ACC mode, the target power mode is OFF mode, and the target preset conditions include the driver's seat being unoccupied, multiple doors being closed, the gear being parked, and the vehicle speed not exceeding a vehicle speed threshold.
[0374] The switching module 503 is used to switch the vehicle's power mode from ACC mode to OFF mode in response to any locking command.
[0375] In some embodiments, the current power mode of the vehicle is ACC mode, the target power mode is OFF mode, and the target preset conditions include the gear being parked and the vehicle speed not exceeding the vehicle speed threshold. The target preset conditions also include any of the following: high voltage power is not connected, the vehicle mode is transportation mode, and the vehicle mode is factory mode.
[0376] The switching module 503 is used to switch the vehicle's power mode from ACC mode to OFF mode in response to a switching command. The switching command is issued when the duration of multiple state parameters of the vehicle meeting the target preset conditions reaches the third duration.
[0377] In some embodiments, the current power mode of the vehicle is ACC mode, the target power mode is OFF mode, and the target preset conditions include the gear being park or neutral and the vehicle speed not exceeding the vehicle speed threshold.
[0378] The switching module 503 is used to switch the vehicle's power mode from ACC mode to OFF mode in response to an emergency power-down command.
[0379] In some embodiments, the current power mode of the vehicle is ACC mode, the target power mode is ON mode, and the target preset conditions include key matching status being unmatched, gear being park or neutral, and vehicle mode being factory mode. The unmatched status is used to indicate that the vehicle has not established a matching relationship with the key.
[0380] The switching module 503 is used to switch the vehicle's power mode from ACC mode to ON mode in response to the braking command of the vehicle's brake pedal, and to count the time by a timer so that the vehicle switches the power mode from ON mode to ACC mode when the timer reaches a first duration.
[0381] In some embodiments, the current power mode of the vehicle is ACC mode, the target power mode is ON mode, and the target preset conditions include key matching status being matched and key status being valid. The matching status indicates that the vehicle has established a matching relationship with the key, and the valid status indicates that the vehicle has recognized the matched key.
[0382] The switching module 503 is used to switch the vehicle's power mode from ACC mode to ON mode in response to the braking command of the vehicle's brake pedal.
[0383] In some embodiments, the current power mode of the vehicle is ACC mode, the target power mode is ON mode, and the target preset conditions include the gear being parked, the vehicle speed not exceeding the vehicle speed threshold, and the vehicle's safety certification status being that it has passed safety certification.
[0384] The switching module 503 is used to switch the vehicle's power mode from ACC mode to ON mode in response to the OTA power-on command, and to use a timer to keep track of the time so that the vehicle switches the power mode from ON mode to OFF mode when the timer reaches the second duration.
[0385] In some embodiments, the current power mode of the vehicle is ON mode, the target power mode is ACC mode, and the target preset conditions include the key matching status being matched when the power mode was last switched, the gear being parked, and the vehicle speed not exceeding the vehicle speed threshold. The matching status is used to indicate that the vehicle has established a matching relationship with the key.
[0386] The switching module 503 is used to respond to the delayed switching command and switch the vehicle's power mode from ON mode to ACC mode after a preset time. The delayed switching command is issued when multiple state parameters of the vehicle meet the switching conditions, including the driver's seat being unoccupied, the driver's door being open, and the brake pedal being not pressed.
[0387] In some embodiments, the current power mode of the vehicle is ON mode, the target power mode is ACC mode, and the target preset conditions include the vehicle mode being factory mode when the power mode was last switched and the timer being in the timing state.
[0388] The switching module 503 is used to switch the vehicle's power mode from ON mode to ACC mode in response to a switching command. The switching command is issued when the timer's duration reaches the first duration.
[0389] In some embodiments, the current power mode of the vehicle is ON mode, the target power mode is ACC mode, and the target preset conditions include the driver's seat being unoccupied and the key being valid. The distance between the vehicle and the matched key gradually increases, and the valid state indicates that the vehicle has recognized the matched key.
[0390] The switching module 503 is used to switch the vehicle's power mode from ON mode to ACC mode in response to a switching command. The switching command is issued when the distance value is greater than the distance threshold.
[0391] In some embodiments, the current power mode of the vehicle is ON mode, the target power mode is OFF mode, and the target preset conditions include the most recent instruction to switch the power mode being an OTA power-on instruction, the gear being parked, and the vehicle speed not exceeding a vehicle speed threshold.
[0392] The switching module 503 is used to switch the vehicle's power mode from ON mode to OFF mode in response to the OTA power-down command.
[0393] In some embodiments, the current power mode of the vehicle is ON mode, the target power mode is OFF mode, and the target preset conditions include the most recent instruction to switch the power mode being an OTA power-on instruction and the timer being in the timing state.
[0394] The switching module 503 is used to switch the vehicle's power mode from ON mode to OFF mode in response to a switching command. The switching command is issued when the timer's duration reaches the second duration.
[0395] In some embodiments, the current power mode of the vehicle is ON mode, the target power mode is OFF mode, and the target preset conditions include the gear being park and the vehicle speed not exceeding the vehicle speed threshold.
[0396] The switching module 503 is used to switch the vehicle's power mode from ON to OFF in response to an emergency power-down command.
[0397] In some embodiments, Figure 6 This is a schematic diagram of another power mode switching device provided in an embodiment of this application. See also... Figure 6 The device also includes:
[0398] The second determining module 504 is used to determine the target power mode based on the vehicle's historical switching information. The historical switching information includes the switching records of the vehicle's power modes, and the target power mode is the power mode of the vehicle at multiple historical moments corresponding to the current moment.
[0399] The sending module 505 is used to send a mode switching request to the target device. The mode switching request is used to request the vehicle's power mode to be switched to the target power mode. The target device is the device used by the user object driving the vehicle.
[0400] The update module 506 is used to update multiple status parameters of the vehicle in response to the confirmation switching response from the target device, based on the target preset conditions corresponding to the target power mode, so that the multiple status parameters meet the target preset conditions.
[0401] The switching module 503 is also used to switch the vehicle's power mode to the target power mode when multiple state parameters meet the target preset conditions.
[0402] This application provides a power mode switching device that can determine whether the vehicle currently meets preset conditions for switching power modes based on its operating status. If the vehicle meets any preset condition, in response to any command associated with that preset condition, the vehicle's power mode can be promptly switched to the target mode corresponding to that preset condition. Using this method, the vehicle's power mode can be intelligently switched according to its operating status, eliminating the need for manual switching by the user, thus improving the efficiency of power mode switching and enhancing the user's driving experience.
[0403] It should be noted that the power mode switching device provided in the above embodiments is only an example of the division of the above functional modules. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the terminal can be divided into different functional modules to complete all or part of the functions described above. In addition, the power mode switching device and power mode switching method embodiments provided in the above embodiments belong to the same concept, and the specific implementation process can be found in the method embodiments, which will not be repeated here.
[0404] Figure 7This is a schematic diagram of an electronic device according to an embodiment of this application. The electronic device 700 can be a portable mobile terminal, such as a smartphone, tablet computer, MP3 player (Moving Picture Experts Group Audio Layer III), MP4 player (Moving Picture Experts Group Audio Layer IV), laptop computer, or desktop computer. The electronic device 700 may also be referred to as a user device, portable terminal, laptop terminal, desktop terminal, or other names.
[0405] Typically, electronic device 700 includes a processor 701 and a memory 702.
[0406] Processor 701 may include one or more processing cores, such as a quad-core processor, an octa-core processor, etc. Processor 701 may be implemented using at least one hardware form selected from DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), and PLA (Programmable Logic Array). Processor 701 may also include a main processor and a coprocessor. The main processor, also known as a CPU (Central Processing Unit), is used to process data in the wake-up state; the coprocessor is a low-power processor used to process data in the standby state. In some embodiments, processor 701 may integrate a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content to be displayed on the screen. In some embodiments, processor 701 may also include an AI (Artificial Intelligence) processor, which is used to handle computational operations related to machine learning.
[0407] The 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 and non-volatile memory, such as one or more disk storage devices or flash memory devices. In some embodiments, the non-transitory computer-readable storage media in the memory 702 are used to store at least one computer program, which is executed by the processor 701 to implement the power mode switching method provided in the method embodiments of this application.
[0408] In some embodiments, the electronic device 700 may optionally include a peripheral device interface 703 and at least one peripheral device. The processor 701, memory 702, and peripheral device interface 703 can be connected via a bus or signal line. Each peripheral device can be connected to the peripheral device interface 703 via a bus, signal line, or circuit board. Specifically, the peripheral device includes at least one of the following: a radio frequency circuit 704, a display screen 705, a camera assembly 706, an audio circuit 707, and a power supply 708.
[0409] Peripheral device interface 703 can be used to connect at least one I / O (Input / Output) related peripheral device to processor 701 and memory 702. In some embodiments, processor 701, memory 702 and peripheral device interface 703 are integrated on the same chip or circuit board; in some other embodiments, any one or two of processor 701, memory 702 and peripheral device interface 703 can be implemented on separate chips or circuit boards, which is not limited in this embodiment.
[0410] The radio frequency (RF) circuit 704 is used to receive and transmit RF (Radio Frequency) signals, also known as electromagnetic signals. The RF circuit 704 communicates with communication networks and other communication devices via electromagnetic signals. The RF circuit 704 converts electrical signals into electromagnetic signals for transmission, or converts received electromagnetic signals back into electrical signals. In some embodiments, the RF circuit 704 includes: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a user identity module card, etc. The RF circuit 704 can communicate with other terminals through at least one wireless communication protocol. This wireless communication protocol includes, but is not limited to: the World Wide Web, metropolitan area networks, intranets, various generations of mobile communication networks (2G, 3G, 4G, and 5G), wireless local area networks, and / or WiFi (Wireless Fidelity) networks. In some embodiments, the RF circuit 704 may also include circuitry related to NFC (Near Field Communication), which is not limited in this application.
[0411] Display screen 705 is used to display a UI (User Interface). This UI may include graphics, text, icons, videos, and any combination thereof. When display screen 705 is a touch display screen, it also has the ability to collect touch signals on or above its surface. These touch signals can be input as control signals to processor 701 for processing. In this case, display screen 705 can also be used to provide virtual buttons and / or a virtual keyboard, also known as soft buttons and / or a soft keyboard. In some embodiments, there may be one display screen 705, disposed on the front panel of electronic device 700; in other embodiments, there may be at least two display screens, disposed on different surfaces of electronic device 700 or in a folded design; in still other embodiments, display screen 705 may be a flexible display screen, disposed on a curved or folded surface of electronic device 700. Furthermore, display screen 705 may be configured as a non-rectangular, irregular shape, i.e., a non-rectangular screen. Display screen 705 may be made of materials such as LCD (Liquid Crystal Display) or OLED (Organic Light-Emitting Diode).
[0412] The camera assembly 706 is used to acquire images or videos. In some embodiments, the camera assembly 706 includes a front-facing camera and a rear-facing camera. Typically, the front-facing camera is located on the front panel of the terminal, and the rear-facing camera is located on the back of the terminal. In some embodiments, there are at least two rear-facing cameras, which are any one of a main camera, a depth-sensing camera, a wide-angle camera, and a telephoto camera, to achieve background blurring by fusion of the main camera and the depth-sensing camera, panoramic shooting by fusion of the main camera and the wide-angle camera, VR (Virtual Reality) shooting, or other fusion shooting functions. In some embodiments, the camera assembly 706 may also include a flash. The flash can be a single-color temperature flash or a dual-color temperature flash. A dual-color temperature flash is a combination of a warm-light flash and a cool-light flash, which can be used for light compensation at different color temperatures.
[0413] The audio circuit 707 may include a microphone and a speaker. The microphone is used to collect sound waves from the user and the environment, converting the sound waves into electrical signals that are input to the processor 701 for processing, or input to the radio frequency circuit 704 for voice communication. For stereo sound acquisition or noise reduction purposes, multiple microphones may be used, each located in a different part of the electronic device 700. The microphone may also be an array microphone or an omnidirectional microphone. The speaker is used to convert the electrical signals from the processor 701 or the radio frequency circuit 704 into sound waves. The speaker may be a conventional diaphragm speaker or a piezoelectric ceramic speaker. When the speaker is a piezoelectric ceramic speaker, it can convert electrical signals not only into audible sound waves but also into inaudible sound waves for purposes such as distance measurement. In some embodiments, the audio circuit 707 may also include a headphone jack.
[0414] Power supply 708 is used to supply power to various components in electronic device 700. Power supply 708 can be alternating current, direct current, a disposable battery, or a rechargeable battery. When power supply 708 includes a rechargeable battery, the rechargeable battery can be a wired rechargeable battery or a wireless rechargeable battery. A wired rechargeable battery is a battery that is charged via a wired line, while a wireless rechargeable battery is a battery that is charged via a wireless coil. The rechargeable battery can also be used to support fast charging technology.
[0415] 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, an accelerometer 710, a gyroscope 711, a pressure sensor 712, an optical sensor 713, and a proximity sensor 714.
[0416] Accelerometer 710 can detect the magnitude of acceleration on the three coordinate axes of a coordinate system established by electronic device 700. For example, accelerometer 710 can be used to detect the components of gravitational acceleration on the three coordinate axes. Processor 701 can control display screen 705 to display the user interface in either a landscape or portrait view based on the gravitational acceleration signal acquired by accelerometer 710. Accelerometer 710 can also be used for games or for acquiring user motion data.
[0417] The gyroscope sensor 711 can detect the orientation and rotation angle of the electronic device 700. The gyroscope sensor 711, in conjunction with the accelerometer sensor 710, can collect 3D motion data from the user on the electronic device 700. Based on the data collected by the gyroscope sensor 711, the processor 701 can perform the following functions: motion sensing (e.g., changing the UI based on the user's tilt), image stabilization during shooting, game control, and inertial navigation.
[0418] The pressure sensor 712 can be disposed on the side bezel of the electronic device 700 and / or on the lower layer of the display screen 705. When the pressure sensor 712 is disposed on the side bezel of the electronic device 700, it can detect the user's grip signal on the electronic device 700, and the processor 701 can perform left / right hand recognition or quick operation based on the grip signal collected by the pressure sensor 712. When the pressure sensor 712 is disposed on the lower layer of the display screen 705, the processor 701 can control the operable controls on the UI interface based on the user's pressure operation on the display screen 705. The operable controls include at least one of button controls, scroll bar controls, icon controls, and menu controls.
[0419] An optical sensor 713 is used to collect ambient light intensity. In one embodiment, the processor 701 can control the display brightness of the display screen 705 based on the ambient light intensity collected by the optical sensor 713. Specifically, when the ambient light intensity is high, the display brightness of the display screen 705 is increased; when the ambient light intensity is low, the display brightness of the display screen 705 is decreased. In another embodiment, the processor 701 can also dynamically adjust the shooting parameters of the camera assembly 706 based on the ambient light intensity collected by the optical sensor 713.
[0420] A proximity sensor 714, also known as a distance sensor, is typically located on the front panel of an electronic device 700. The proximity sensor 714 is used to detect 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 is gradually decreasing, the processor 701 controls the display screen 705 to switch from a screen-on state to a screen-off state; when the proximity sensor 714 detects that the distance between the user and the front of the electronic device 700 is gradually increasing, the processor 701 controls the display screen 705 to switch from a screen-off state to a screen-on state.
[0421] Those skilled in the art will understand that Figure 7 The structure shown does not constitute a limitation on the electronic device 700, and may include more or fewer components than shown, or combine certain components, or use different component arrangements.
[0422] This application also provides a computer-readable storage medium storing at least one computer program. This computer program is loaded and executed by a processor of an electronic device to implement the operations performed by the electronic device in the power mode switching method of the above embodiments. For example, the computer-readable storage medium may be a read-only memory (ROM), a random access memory (RAM), a compact disc read-only memory (CD-ROM), magnetic tape, floppy disk, and optical data storage device, etc.
[0423] Those skilled in the art will understand that all or part of the steps of the above embodiments can be implemented by hardware or by a program instructing related hardware. The program can be stored in a computer-readable storage medium, such as a read-only memory, a disk, or an optical disk.
[0424] The above description is merely an optional embodiment of this application and is not intended to limit this application. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the protection scope of this application.
Claims
1. A power mode switching method, characterized in that, The method includes: Obtain vehicle operation information, which is used to represent the vehicle's operating status through the parameter values of multiple status parameters; Based on the vehicle operation information, target preset conditions are determined. The target preset conditions are preset conditions satisfied by the multiple state parameters among multiple preset conditions, and the multiple preset conditions correspond to multiple power modes. In response to any instruction associated with the target preset condition, the power mode of the vehicle is switched to the target power mode corresponding to the target preset condition. The step of determining the target preset condition based on the vehicle operation information includes: for any preset condition, extracting the parameter values of the multiple state parameters indicated by the preset condition from the vehicle operation information; matching the parameter values of the multiple state parameters with the preset values of the multiple state parameters indicated by the preset condition; if the parameter values match the preset values, then determining the preset condition as the target preset condition. The method further includes: determining the target power mode based on the vehicle's historical switching information, wherein the historical switching information includes a record of the vehicle's power mode switching, and the target power mode is the power mode of the vehicle at multiple historical moments corresponding to the current moment; sending a mode switching request to a target device, wherein the mode switching request is used to request switching the vehicle's power mode to the target power mode, and the target device is a device used by a user driving the vehicle; responding to a confirmation switching response from the target device, updating multiple state parameters of the vehicle based on target preset conditions corresponding to the target power mode, so that the multiple state parameters satisfy the target preset conditions; and switching the vehicle's power mode to the target power mode when the multiple state parameters satisfy the target preset conditions.
2. The method according to claim 1, characterized in that, The acquisition of vehicle operation information includes: The vehicle operation information transmitted via the vehicle's CAN bus is acquired in real time. The status parameters in the vehicle operation information include at least one of the following: power mode, anti-theft mode, vehicle mode, gear position, vehicle speed, door status, seat status, key matching status, key status, security authentication status, and timeout duration.
3. The method according to claim 1, characterized in that, The vehicle's current power mode is OFF mode, the target power mode is ACC mode, and the target preset condition includes a key matching status of non-matching status, which indicates that the vehicle has not established a matching relationship with the key. The step of switching the vehicle's power mode to the target power mode corresponding to the target preset condition in response to any instruction associated with the target preset condition includes: In response to the driver's door opening command, the vehicle's power mode is switched from the OFF mode to the ACC mode.
4. The method according to claim 1, characterized in that, The vehicle's current power mode is OFF mode, the target power mode is ACC mode, and the target preset conditions include anti-theft mode being off and key matching status being matched. The off state indicates that the vehicle has been unlocked, and the matching status indicates that the vehicle has established a matching relationship with the key. The step of switching the vehicle's power mode to the target power mode corresponding to the target preset condition in response to any instruction associated with the target preset condition includes: In response to the driver's door opening command, the vehicle's power mode is switched from the OFF mode to the ACC mode.
5. The method according to claim 1, characterized in that, The vehicle's current power mode is OFF mode, the target power mode is ACC mode, and the target preset conditions include a key matching status of matching status and a key status of invalid status. The matching status indicates that the vehicle has established a matching relationship with the key, and the invalid status indicates that the vehicle has not recognized a matching key. The step of switching the vehicle's power mode to the target power mode corresponding to the target preset condition in response to any instruction associated with the target preset condition includes: In response to a braking command from the vehicle's brake pedal, the vehicle's power mode is switched from the OFF mode to the ACC mode.
6. The method according to claim 1, characterized in that, The vehicle's current power mode is OFF mode, the target power mode is ACC mode, the target preset conditions include the key status being valid, the distance between the vehicle and the matched key gradually decreasing, and the valid status indicating that the vehicle has recognized the matched key. The step of switching the vehicle's power mode to the target power mode corresponding to the target preset condition in response to any instruction associated with the target preset condition includes: In response to a switching command, the power mode of the vehicle is switched from the OFF mode to the ACC mode, and the switching command is issued when the distance value is less than a distance threshold.
7. The method according to claim 1, characterized in that, The current power mode of the vehicle is OFF mode, the target power mode is ON mode, and the target preset conditions include key matching status being matched and key status being valid. The matching status indicates that the vehicle has established a matching relationship with the key, and the valid status indicates that the vehicle has recognized the matched key. The step of switching the vehicle's power mode to the target power mode corresponding to the target preset condition in response to any instruction associated with the target preset condition includes: In response to a braking command from the vehicle's brake pedal, the vehicle's power mode is switched from the OFF mode to the ON mode.
8. The method according to claim 1, characterized in that, The current power mode of the vehicle is OFF mode, the target power mode is ON mode, and the target preset conditions include key matching status being unmatched, gear being neutral or park, and vehicle mode being factory mode. The unmatched status is used to indicate that the vehicle has not established a matching relationship with the key. The step of switching the vehicle's power mode to the target power mode corresponding to the target preset condition in response to any instruction associated with the target preset condition includes: In response to a braking command from the vehicle's brake pedal, the vehicle's power mode is switched from the OFF mode to the ON mode, and a timer is used to keep track of the time. When the timer reaches a first duration, the vehicle switches its power mode from the ON mode to the ACC mode.
9. The method according to claim 1, characterized in that, The vehicle's current power mode is OFF, the target power mode is ON, and the target preset conditions include the gear being parked, the vehicle speed not exceeding the vehicle speed threshold, and the vehicle's safety certification status being that it has passed safety certification. The step of switching the vehicle's power mode to the target power mode corresponding to the target preset condition in response to any instruction associated with the target preset condition includes: In response to the OTA (Over-The-Air) power-on command for remote upgrade, the power mode of the vehicle is switched from the OFF mode to the ON mode, and a timer is used to keep track of the time, so that when the timer reaches a second duration, the power mode is switched back from the ON mode to the OFF mode.
10. The method according to claim 1, characterized in that, The current power mode of the vehicle is ACC mode, the target power mode is OFF mode, and the target preset conditions include the driver's seat being unoccupied, multiple doors being closed, the gear being parked, and the vehicle speed not exceeding a vehicle speed threshold. The step of switching the vehicle's power mode to the target power mode corresponding to the target preset condition in response to any instruction associated with the target preset condition includes: In response to any vehicle locking command, the vehicle's power mode is switched from the ACC mode to the OFF mode.
11. The method according to claim 1, characterized in that, The vehicle's current power mode is ACC mode, the target power mode is OFF mode, and the target preset conditions include the gear being parked and the vehicle speed not exceeding the vehicle speed threshold. The target preset conditions also include any of the following: high voltage power is not connected, the vehicle mode is transportation mode, and the vehicle mode is factory mode. The step of switching the vehicle's power mode to the target power mode corresponding to the target preset condition in response to any instruction associated with the target preset condition includes: In response to a switching command, the power mode of the vehicle is switched from the ACC mode to the OFF mode. The switching command is issued when the duration for which multiple state parameters of the vehicle meet the target preset conditions reaches a third duration.
12. The method according to claim 1, characterized in that, The current power mode of the vehicle is ACC mode, the target power mode is OFF mode, and the target preset conditions include the gear being park or neutral and the vehicle speed not exceeding the vehicle speed threshold. The step of switching the vehicle's power mode to the target power mode corresponding to the target preset condition in response to any instruction associated with the target preset condition includes: In response to an emergency power-down command, the vehicle's power mode is switched from the ACC mode to the OFF mode.
13. The method according to claim 1, characterized in that, The current power mode of the vehicle is ACC mode, the target power mode is ON mode, and the target preset conditions include key matching status being unmatched, gear being park or neutral, and vehicle mode being factory mode. The unmatched status is used to indicate that the vehicle has not established a matching relationship with the key. The step of switching the vehicle's power mode to the target power mode corresponding to the target preset condition in response to any instruction associated with the target preset condition includes: In response to a braking command from the vehicle's brake pedal, the vehicle's power mode is switched from the ACC mode to the ON mode, and a timer is used to time this process, so that when the timer reaches a first duration, the vehicle switches its power mode from the ON mode back to the ACC mode.
14. The method according to claim 1, characterized in that, The vehicle's current power mode is ACC mode, the target power mode is ON mode, and the target preset conditions include a key matching status of matching status and a key status of valid status. The matching status indicates that the vehicle has established a matching relationship with the key, and the valid status indicates that the vehicle has recognized the matching key. The step of switching the vehicle's power mode to the target power mode corresponding to the target preset condition in response to any instruction associated with the target preset condition includes: In response to a braking command from the vehicle's brake pedal, the vehicle's power mode is switched from the ACC mode to the ON mode.
15. The method according to claim 1, characterized in that, The current power mode of the vehicle is ACC mode, the target power mode is ON mode, and the target preset conditions include the gear being parked, the vehicle speed not exceeding the vehicle speed threshold, and the vehicle's safety certification status being that it has passed safety certification. The step of switching the vehicle's power mode to the target power mode corresponding to the target preset condition in response to any instruction associated with the target preset condition includes: In response to the OTA power-on command, the power mode of the vehicle is switched from the ACC mode to the ON mode, and a timer is used to keep track of the time, so that when the timer reaches a second duration, the power mode is switched from the ON mode to the OFF mode.
16. The method according to claim 1, characterized in that, The current power mode of the vehicle is ON mode, the target power mode is ACC mode, and the target preset conditions include the key matching status being matched, the gear being park, and the vehicle speed not exceeding the vehicle speed threshold during the most recent power mode switch. The matching status is used to indicate that the vehicle has established a matching relationship with the key. The step of switching the vehicle's power mode to the target power mode corresponding to the target preset condition in response to any instruction associated with the target preset condition includes: In response to a delayed switching command, the power mode of the vehicle is switched from the ON mode to the ACC mode after a preset time. The delayed switching command is issued when multiple state parameters of the vehicle meet the switching conditions, including the driver's seat being unoccupied, the driver's door being open, and the brake pedal being not depressed.
17. The method according to claim 1, characterized in that, The vehicle's current power mode is ON mode, the target power mode is ACC mode, and the target preset conditions include the vehicle mode being factory mode and the timer being in timer mode during the most recent power mode switch. The step of switching the vehicle's power mode to the target power mode corresponding to the target preset condition in response to any instruction associated with the target preset condition includes: In response to a switching command, the power mode of the vehicle is switched from the ON mode to the ACC mode, and the switching command is issued when the timer has been running for a first duration.
18. The method according to claim 1, characterized in that, The vehicle's current power mode is ON, the target power mode is ACC, the target preset conditions include the driver's seat being unoccupied and the key being valid, the distance between the vehicle and the matched key gradually increases, and the valid state indicates that the vehicle has recognized the matched key. The step of switching the vehicle's power mode to the target power mode corresponding to the target preset condition in response to any instruction associated with the target preset condition includes: In response to a switching command, the power mode of the vehicle is switched from the ON mode to the ACC mode, and the switching command is issued when the distance value is greater than a distance threshold.
19. The method according to claim 1, characterized in that, The current power mode of the vehicle is ON mode, the target power mode is OFF mode, and the target preset conditions include the most recent instruction to switch the power mode being an OTA power-on instruction, the gear being parked, and the vehicle speed not exceeding the vehicle speed threshold. The step of switching the vehicle's power mode to the target power mode corresponding to the target preset condition in response to any instruction associated with the target preset condition includes: In response to the OTA power-off command, the power mode of the vehicle is switched from the ON mode to the OFF mode.
20. The method according to claim 1, characterized in that, The vehicle's current power mode is ON, the target power mode is OFF, and the target preset conditions include the most recent instruction to switch the power mode being an OTA power-on instruction and the timer being in a timing state. The step of switching the vehicle's power mode to the target power mode corresponding to the target preset condition in response to any instruction associated with the target preset condition includes: In response to a switching command, the power mode of the vehicle is switched from the ON mode to the OFF mode, and the switching command is issued when the timer has been running for a second duration.
21. The method according to claim 1, characterized in that, The current power mode of the vehicle is ON, the target power mode is OFF, and the target preset conditions include the gear being park and the vehicle speed not exceeding a vehicle speed threshold. The step of switching the vehicle's power mode to the target power mode corresponding to the target preset condition in response to any instruction associated with the target preset condition includes: In response to an emergency power-down command, the vehicle's power mode is switched from ON mode to OFF mode.
22. A power mode switching device, used to perform the power mode switching method according to any one of claims 1 to 21, characterized in that, The device includes: The acquisition module is used to acquire vehicle operation information, which is used to represent the vehicle's operating status through the parameter values of multiple status parameters. The first determining module is used to determine target preset conditions based on the vehicle operation information. The target preset conditions are preset conditions satisfied by the multiple state parameters among multiple preset conditions, and the multiple preset conditions correspond to multiple power modes. The switching module is used to switch the power mode of the vehicle to the target power mode corresponding to the target preset condition in response to any instruction associated with the target preset condition.
23. An electronic device, characterized in that, The electronic device includes a processor and a memory, the memory being used to store at least one computer program, the at least one computer program being loaded by the processor and executed as the power mode switching method according to any one of claims 1 to 21.
24. A computer-readable storage medium, characterized in that, The computer-readable storage medium is used to store at least one computer program for performing the power mode switching method according to any one of claims 1 to 21.
Citation Information
Patent Citations
Method and equipment for controlling shifting of power supply gears
CN101973236A
Multi-path vehicle power supply switching method and device
CN111717145A