On-vehicle multi-channel power switch control method, on-vehicle power supply box
By adding start-stop timing control module and configuration parameters to the on-board power box, autonomous timing and priority control of multiple power supplies is achieved, and the problem of difficulty in coordination between up and down timing of sensor peripherals in autonomous driving vehicles is solved, and power supply efficiency and equipment safety are improved.
Patent Information
- Application Number
- CN202211074915.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-09-02
- Publication Date
- 2025-06-27
- Estimated Expiration
- 2042-09-02
AI Technical Summary
In autonomous driving vehicles, it is difficult to coordinate the up-down timing of different sensor peripherals, and some peripherals need to rely on other kits to power on to work, resulting in complex power switch control and high energy consumption.
A vehicle-mounted multi-channel power switch control method is designed. By adding a start-stop timing control module to the vehicle-mounted power box, the configuration parameters of each power output channel are loaded, including priority level, delay time, output power parameters and switch control status, and the power output channel is traversed and configured in sequence according to the priority level to achieve independent timing and priority control.
The timing and priority control of multiple power supplies is realized, the dependence on external controllers is reduced, the power supply timing requirements of the autonomous driving kit is met, the power supply efficiency of the power box is improved, and to a certain extent the on-board battery life and equipment safety are improved.
Smart Images

Figure CN115402239B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of autonomous driving technology, and in particular to a method for controlling a vehicle-mounted multi-channel power switch and a vehicle-mounted power supply box. Background Art
[0002] Under the increasing demand for intelligent sensing peripheral kits in autonomous driving vehicles, when different sensor peripherals such as lidar, millimeter-wave radar, cameras, domain controllers, etc. in the autonomous driving kit work together, they need to meet a certain power-on and power-off timing sequence. Some peripheral kits even need to rely on other kits to power on before they can work.
[0003] In the related art, the vehicle-mounted power supply box mainly provides multiple channels of DC power output, and the multiple channels of DC power are in the state of being turned on and off simultaneously. However, at the transient of the output power on and off, the vehicle-mounted battery bears a huge impact current. In addition, in terms of monitoring the power supply timing sequence of peripheral devices, the vehicle-mounted device mainly realizes it through the main controller bus command and the auxiliary electronic switch. Some peripheral kits are even in a long-term waiting and energy-consuming state before officially entering the working state. Summary of the Invention
[0004] Embodiments of this application provide a method for controlling a vehicle-mounted multi-channel power switch, a vehicle-mounted power supply box, and a storage medium to achieve control of the timing and priority of the output power.
[0005] Embodiments of this application adopt the following technical solutions:
[0006] In a first aspect, an embodiment of this application provides a method for controlling a vehicle-mounted multi-channel power switch, which is used for a vehicle-mounted power supply box, and the method includes:
[0007] The vehicle-mounted power supply box powers on and starts, and loads the configuration parameters of each power output channel, where the configuration parameters at least include one of the following: priority level, and the priority level includes a start priority level;
[0008] Traverse and configure the configuration parameters in the power output channels in sequence according to the start priority level to perform start control on the power output channels.
[0009] In some embodiments, the priority level includes a shutdown priority level, and the method further includes: when the vehicle-mounted power supply box enters the sleep state or receives an instruction to close the multi-channel power output channels, traverse and configure the configuration parameters in the power output channels in sequence according to the shutdown priority level to perform shutdown control on the power output channels.
[0010] In some embodiments, the configuration parameters further at least include one of the following: delay time, output power parameters, switch control status.
[0011] In some embodiments, the configuration parameters in the power output channels traversed and configured by the startup priority level are the same as the configuration parameters in the power output channels traversed and configured by the shutdown priority level.
[0012] In some embodiments, it further includes configuring two sets of different configuration parameters for the configuration parameters in the power output channels traversed and configured by the startup priority level or the shutdown priority level.
[0013] In some embodiments, the method further includes: switching from the current power output channel to the next power output channel according to the delay time.
[0014] In some embodiments, the switch control state includes off and on, and the default state is on. The step of sequentially traversing and configuring the configuration parameters in the power output channels according to the startup priority level to perform startup control on the power output channels includes:
[0015] The switch control state in the configuration parameters of the current power output channel is configured to be on according to the startup priority level in sequence to perform startup control on the current power output channel;
[0016] The switch control state in the configuration parameters of the current power output channel is configured to be off according to the startup priority level in sequence to perform startup control on the current power output channel.
[0017] In some embodiments, the output power parameters at least include output voltage and output current. The step of sequentially traversing and configuring the configuration parameters in the power output channels according to the startup priority level to perform startup control on the power output channels includes:
[0018] Sequentially traverse and configure the output voltage, the output current, and the switch control state in the configuration parameters of each power output channel according to the startup priority level to perform startup control on the power output channels.
[0019] In some embodiments, the method further includes: a step of detecting whether the priority level in the configuration parameters of each power output channel is valid. The detecting step includes:
[0020] Set memories numbered from 1 to N, and all the initialized stored values are 0. The memories numbered from 1 to N correspond to the power channels numbered from 1 to N;
[0021] Traverse the priority values of the power channels numbered from 1 to N once, and set the memory value corresponding to the number of the priority value to 1;
[0022] Check whether there is a memory with a stored value of 0 in the 1-to-N path memories;
[0023] If there is, the priority configuration data is incorrect, and the detection is stopped;
[0024] If not, the priority configuration data meets the requirements.
[0025] In a second aspect, an embodiment of the present application further provides a vehicle-mounted power supply box, where the vehicle-mounted power supply box includes: a power start / stop timing control module, the power start / stop timing control module is connected to a plurality of power output channels, and the power start / stop timing control module includes:
[0026] A CAN communication module, configured to be a configuration interface for the plurality of power output channels, and receive configuration parameters of each power output channel, where the configuration parameters include at least one of the following: priority level, and the priority level includes a start priority level and a shutdown priority level;
[0027] A vehicle-mounted power supply box main control module, configured to sequentially traverse and configure the configuration parameters in the power output channels according to the start priority level, so as to perform start control on the power output channels;
[0028] It is further configured to, when the vehicle-mounted power supply box enters the sleep state or receives an instruction to close the plurality of power output channels, sequentially traverse and configure the configuration parameters in the power output channels according to the shutdown priority level, so as to perform shutdown control on the power output channels. A multi-channel power control module is configured to execute the start and stop of the plurality of power output channels according to the control instruction of the vehicle-mounted power supply box main control module;
[0029] A configuration storage module stores the configuration parameters of each power output channel.
[0030] In a third aspect, an embodiment of the present application further provides an electronic device, including: a processor; and a memory arranged to store computer-executable instructions, where the executable instructions, when executed, cause the processor to execute the above method.
[0031] In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium, where the computer-readable storage medium stores one or more programs, and when the one or more programs are executed by an electronic device including a plurality of application programs, the electronic device is caused to execute the above method.
[0032] At least one of the above technical solutions adopted in the embodiments of the present application can achieve the following beneficial effects:
[0033] When the vehicle-mounted power supply box is powered on and started, it first loads the configuration parameters of each power output channel, and then traverses and configures the configuration parameters in the power output channels in sequence according to the startup priority level to perform startup control on the power output channels. Since the loaded configuration parameters include the priority level, delay time, output power parameters, and switch control status, it is possible to configure the configuration parameters of the power output channels while traversing the power output channels according to the startup priority level in the priority level. Thus, the power output channels can be started and controlled according to the configuration. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation to the present application. In the drawings:
[0035] Figure 1 is a schematic hardware structure diagram of the vehicle-mounted multi-channel power switch control method in an embodiment of the present application;
[0036] Figure 2 is a schematic flowchart of the vehicle-mounted multi-channel power switch control method in an embodiment of the present application;
[0037] Figure 3 is a schematic diagram of the implementation principle of the vehicle-mounted multi-channel power switch control method in an embodiment of the present application;
[0038] Figure 4 is a schematic diagram of the form of the configuration parameters for the user to control the start and stop timing of each output channel in the vehicle-mounted multi-channel power switch control method in an embodiment of the present application;
[0039] Figure 5 is a schematic diagram of the structure of the vehicle-mounted power supply box in an embodiment of the present application;
[0040] Figure 6 is a schematic diagram of the structure of an electronic device in an embodiment of the present application. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0041] To make the objectives, technical solutions, and advantages of the present application clearer, the technical solutions of the present application will be clearly and completely described below in conjunction with the specific embodiments of the present application and the corresponding drawings. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all of the embodiments. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present application without creative efforts shall fall within the scope of protection of the present application.
[0042] The inventor found during research that the main purpose of the vehicle-mounted power supply box in the related art is to replace traditional relays and fuses, and at the same time add intelligent port protection, implementation status monitoring, and fault diagnosis functions.
[0043] Meanwhile, the in-vehicle device depends on the communication bus and the auxiliary electronic switch for the start-up priority control timing of the peripheral kit. On the power supply end side, there is no autonomous control timing relationship established between the output power paths, and each power output path highly depends on the scheduling and switching of the in-vehicle main controller.
[0044] In view of the above deficiencies, in the in-vehicle multi-channel power switch control method in the embodiments of the present application, by adding a start-stop timing control module inside the in-vehicle intelligent power box, the multi-channel power is autonomously controlled in terms of timing and priority according to the order and priority configured by the user online, and there is no need for an external controller to intervene in the scheduling, thereby meeting the power supply timing requirements of various autonomous driving kits, improving the power supply efficiency of the power box, and to a certain extent, improving the in-vehicle battery life and the safety of in-vehicle devices.
[0045] The following will, with reference to the accompanying drawings, elaborate on the technical solutions provided by the embodiments of the present application in detail.
[0046] As Figure 1 shown, the internal structure of the output power start-stop timing control module of the in-vehicle power box includes a CAN communication module, a main control of the in-vehicle power box, a configuration storage module, multi-channel power control, and a power channel. Among them, the CAN communication module is used as an interface for configuring the power output channel, and the user transmits and configures parameters through this interface. The main control of the in-vehicle power box is used to receive the configuration data of the CAN communication module, access the configuration parameters of the power output channel in the configuration module, and control the opening and closing of the multi-channel power according to the configuration parameters. The configuration storage module is used to store the configuration parameters for the user to close the power channel, and the configuration parameters can be loaded or overwritten at any time. The multi-channel power control is used to receive control instructions and output and close the power path. The power channel is used as a physical interface for supplying power to external devices.
[0047] The embodiments of the present application provide a method for controlling an in-vehicle multi-channel power switch. As Figure 2 shown, the flowchart in the embodiments of the present application is provided. The in-vehicle multi-channel power switch control method at least includes the following steps S210 to step S220:
[0048] Step S210, the in-vehicle power box is powered on and starts, and the configuration parameters of each power output channel are loaded, where the configuration parameters at least include one of the following: priority level. The priority level includes a start-up priority level.
[0049] After being powered on and starting, the in-vehicle power box will load the configuration parameters of each power output channel after starting. It should be noted that the configuration parameters of each power output channel are pre-configured. If there is no pre-configuration, the default configuration parameters will be loaded for the initialization configuration process.
[0050] Furthermore, the configuration parameters include, but are not limited to, priority level, delay time, output power parameters, and switch control status.
[0051] In some embodiments, if the user has not set the configuration parameters through the CAN bus, the system default configuration parameters are loaded at startup. It can be understood that the default configuration parameters can be a feasible default parameter with the priority order according to the power output channel number sequence.
[0052] Step S220: Traverse and configure the configuration parameters in the power output channels in sequence according to the startup priority level to perform startup control on the power output channels.
[0053] Since the startup priority level is included in the priority level, the startup priority level traverses and configures the configuration parameters in the power output channels in sequence. That is to say, after the configuration parameters are loaded, the power output channels to be configured are traversed in the priority order (startup priority level). When one or more output channels are defaulted to the off state, there is no need to configure them, and they can be directly skipped to the next power output channel.
[0054] It should be noted that the power channels with relatively higher priority can be preferentially controlled at startup.
[0055] It can be understood that for the power output channels, there are only two different states: startup or shutdown, that is, providing power or not providing power. The state of the switch is defaulted to off or on. For the intelligent sensing peripheral kit for autonomous driving, different sensor peripherals such as lidar, millimeter-wave radar, cameras, domain controllers, etc. have different control requirements for power. Through the above configuration optimization method, the timing and priority of multiple power supplies can be autonomously controlled, and there is no need for an external controller to intervene in scheduling, so as to meet the power supply timing requirements of various autonomous driving kits and improve the power supply efficiency of the power box.
[0056] The configuration parameters further include at least one of the following: delay time, output power parameters, and switch control status.
[0057] In an embodiment of the present application, the priority level includes a shutdown priority level, and the method further includes: when the vehicle-mounted power box enters the sleep state or receives an instruction to shut down multiple power output channels, traversing and configuring the configuration parameters in the power output channels in sequence according to the shutdown priority level to perform shutdown control on the power output channels.
[0058] During specific implementation, in addition to starting the control of the power output channels, it is also necessary to perform shutdown control on the power output channels. When the vehicle-mounted power supply box enters the sleep state (certain power output channels need to be turned off) or receives an instruction to turn off multiple power output channels, the configuration parameters in the power output channels are traversed and configured in sequence according to the shutdown priority level, thereby realizing the shutdown control of the power output channels.
[0059] It should be noted that when the power channel with a relatively higher priority is turned off, it can be controlled preferentially.
[0060] In an embodiment of the present application, the configuration parameters in the power output channels traversed and configured by the start priority level are the same as the configuration parameters in the power output channels traversed and configured by the shutdown priority level.
[0061] During specific implementation, that is, the start or shutdown timing control of the power channels can adopt the same configuration parameters. The configuration parameters in the power output channels traversed and configured by the start priority level are used to control the opening of multiple power channels. And the configuration parameters in the power output channels traversed and configured by the shutdown priority level are used to control the shutdown of multiple power channels.
[0062] In an embodiment of the present application, it further includes configuring two sets of different configuration parameters for the configuration parameters in the power output channels traversed and configured by the start priority level or the shutdown priority level.
[0063] During specific implementation, two sets of configuration parameters can be set, one for the start timing of the power channels and one for the shutdown timing of the power channels. By configuring two sets of different configuration parameters, different timings are realized. One set is for the configuration parameters in the power output channels traversed and configured by the start priority level. The other set can be for the configuration parameters in the power output channels traversed and configured by the shutdown priority level.
[0064] In an embodiment of the present application, the method further includes: switching from the current power output channel to the next power output channel according to the delay time.
[0065] During specific implementation, the delay time is the cumulative time starting from the end of the configuration of the previous channel, that is, the interval time between the start and stop of adjacent power channels. Switch from the current power output channel to the next power output channel according to the delay time.
[0066] It should be noted that if there is no current channel, it will jump to the next channel.
[0067] In an embodiment of the present application, the switch control state includes off and on, and the default state is on. Sequentially traversing and configuring the configuration parameters in the power output channels according to the startup priority level to perform startup control on the power output channels includes: sequentially traversing and configuring the switch control state in the configuration parameters of the current power output channel as on according to the startup priority level to perform startup control on the current power output channel; sequentially traversing and configuring the switch control state in the configuration parameters of the current power output channel as off according to the startup priority level to perform startup control on the current power output channel.
[0068] In specific implementation, for the multiple power output channels in the power supply box, sequentially traversing and configuring the switch control state in the configuration parameters of the current power output channel as on according to the startup priority level realizes startup control on the current power output channel. Similarly, sequentially traversing and configuring the switch control state in the configuration parameters of the current power output channel as off according to the startup priority level realizes startup control on the current power output channel. When controlling on or off, the startup priority level and the shutdown priority level can be the same or different.
[0069] In an embodiment of the present application, the output power parameters at least include output voltage and output current. Sequentially traversing and configuring the configuration parameters in the power output channels according to the startup priority level to perform startup control on the power output channels includes: sequentially traversing and configuring the output voltage, the output current, and the switch control state in the configuration parameters of each power output channel according to the startup priority level to perform startup control on the power output channels.
[0070] In specific implementation, since the output power parameters at least include output voltage and output current, sequentially traversing and configuring the output voltage, the output current, and the switch control state in the configuration parameters of each power output channel according to the startup priority level, thereby performing startup control on the power output channels. Similarly, the shutdown control will not be elaborated here.
[0071] In an embodiment of the present application, the method further includes: detecting whether the priority level in the configuration parameters of each power output channel is valid. The detecting step includes: setting memories numbered from 1 to N, and all initializing the stored value to 0. The memories numbered from 1 to N correspond to the power channels numbered from 1 to N; traversing the priority values of the power channels from 1 to N once, and setting the stored value of the memory corresponding to the priority value to 1; checking whether there is a memory with a stored value of 0 in the memories from 1 to N; if there is, the priority level configuration data is incorrect, and the detection is stopped; if not, the priority level configuration data meets the requirements.
[0072] During specific implementation, by detecting whether the priority level in the configuration parameters of each power output channel is valid, it can effectively verify whether the user's set parameters are correct.
[0073] First, set memories numbered from 1 to N, and all initializing the stored value to 0. The memories numbered from 1 to N correspond to the power channels numbered from 1 to N. Set memories numbered from 1 to 12, and all initialize the stored value to 0;
[0074] Second, traverse the priority values of the power channels from 1 to N once, and set the stored value of the memory corresponding to the priority value to 1, that is, traverse the priority values of all 12 power channels once, and set the stored value of the memory corresponding to the priority value to 1.
[0075] Finally, check whether there is a memory with a stored value of 0 in the memories from 1 to N; if there is, the priority level configuration data is incorrect, and the detection is stopped; if not, the priority level configuration data meets the requirements. Check all 12 memories to see if there is a memory with a stored value of 0. As long as it is detected that there is, the priority level configuration data sent by the user is incorrect (the remaining unexamined memories do not need to be checked further); if not, the priority level configuration data meets the requirements.
[0076] To better illustrate the above checking process, taking 12 output power channels as an example for detailed description, there must be 12 priority levels: p(1), p(2), p(3), …… p(n - 1), p(n) (where n = 12).
[0077] For example, if the user sets the priorities of 12 output power channels as:
[0078]
[0079] Preset 12 priority memories
[0080] Level 1 Level 2 Level 3 Level 4 Level 5 Level 6 Level 7 Level 8 Level 9 Level 10 Level 11 Level 12 0 0 0 0 0 0 0 0 0 0 0 0
[0081] Traverse the user priority setting value
[0082] Level 1 Level 2 Level 3 Level 4 Level 5 Level 6 Level 7 Level 8 Level 9 Level 10 Level 11 Level 12 1 1 1 1 1 0 1 1 1 1 1 1
[0083] Check whether there is a memory with a stored value of 0
[0084] Level 1 Level 2 Level 3 Level 4 Level 5 Level 6 Level 7 Level 8 Level 9 Level 10 Level 11 Level 12 0
[0085] It is detected that priority 6 is not set and the power channel priority value set by the user is incorrect.
[0086] To better illustrate the process of the in-vehicle multi-channel power switch control method in the embodiments of the present application, as Figure 3 shown, the following steps are used for detailed description:
[0087] S1, Start.
[0088] S2, Whether the storage module loads all configuration parameters. If not, load the configuration parameters by default.
[0089] S3, Start initializing the configuration.
[0090] S4, Whether the power channel with priority n needs to be configured.
[0091] When the in-vehicle intelligent power box starts up, it loads the configuration parameters of all channels from the memory. The configuration parameters include priority level, switch control, delay time, and other configuration items. If the user has not set the configuration parameters through CAN, then at startup, the system default configuration parameters are loaded, such as the priority order according to the power output channel number sequence. In addition, the power channels with relatively higher priorities can be preferentially controlled both when starting up and shutting down.
[0092] The form of the start-stop timing control configuration parameters for each output channel by the user is as Figure 4 shown. Each power channel (C1, C2...) must have a unique priority level P, and the delay time d and the switch control state s can be any reasonable values. It is not allowed for the user to set two power channels with the same priority level. The configuration parameters sent by the user through the CAN bus may be incorrect, especially the priority configuration parameter P.
[0093] S5, Configure the output state of power channel n.
[0094] S6, Start the timing module according to the configuration parameters of channel n.
[0095] After the configuration parameters are loaded, traverse the power output channels that need to be configured in sequence according to the priority order. When one or several output channels are defaulted to the off state, there is no need to configure them and they can be directly skipped (if they need to be turned on later, they will still be configured to turn on in the priority order).
[0096] S7, whether the timing time of the timing module has reached.
[0097] The delay time of the timing module is the cumulative time starting from the end of the previous channel configuration, that is, the interval time between the start and stop of adjacent power channels.
[0098] For the start and stop timing control of the power channel, the same configuration parameters can be used, or two sets of configuration parameters can be set, one for the start timing of the power channel and one for the stop timing of the power channel.
[0099] S8, determine whether all power channels have been configured.
[0100] S9, if not, switch to the next priority channel, if so, set the end flag of the configuration process.
[0101] S10, end.
[0102] The embodiment of the present application also provides a vehicle-mounted power supply box 500, as Figure 5 shown, provides a schematic structural diagram of the vehicle-mounted power supply box in the embodiment of the present application. The vehicle-mounted power supply box 500 includes: a power start-stop timing control module, the power start-stop timing control module is connected to multiple power output channels, and the power start-stop timing control module includes: a CAN communication module 510, a vehicle-mounted power supply box main control module 520, and a configuration storage module 530.
[0103] In an embodiment of the present application, the CAN communication module 510 is specifically used as a configuration interface for the multiple power output channels to receive the configuration parameters of each power output channel. The configuration parameters include at least one of the following: priority level, delay time, output power parameters, switch control status. The priority level includes a start priority level and a stop priority level.
[0104] The vehicle-mounted power supply box starts after being powered on, and the configuration parameters of each power output channel will be loaded after startup. It should be noted that the configuration parameters of each power output channel are pre-configured. If there is no pre-configuration, the default configuration parameters will be loaded for the initialization configuration process.
[0105] Further, the configuration parameters include, but are not limited to, priority level, delay time, output power parameters, and switch control status.
[0106] In some embodiments, if the user has not set the configuration parameters through the CAN bus, the system default configuration parameters will be loaded at startup. It can be understood that the default configuration parameters can be a feasible default parameter, which is a configuration with the power output channel number sequence as the priority sequence.
[0107] In one embodiment of the present application, the vehicle-mounted power supply box main control module 520 is specifically configured to sequentially traverse and configure the configuration parameters in the power output channels according to the start priority level, so as to perform start control on the power output channels;
[0108] It is also used to, when the vehicle-mounted power supply box enters the sleep state or receives an instruction to close multiple power output channels, sequentially traverse and configure the configuration parameters in the power output channels according to the close priority level, so as to perform close control on the power output channels. The multiple power control module is used to execute the start and stop of multiple power output channels according to the control instruction of the vehicle-mounted power supply box main control module.
[0109] Since the start priority level is included in the priority level, the start priority level sequentially traverses and configures the configuration parameters in the power output channels. That is to say, after the configuration parameters are loaded, the power output channels to be configured are sequentially traversed in the priority order (start priority level). When one or several output channels are defaulted to the closed state, there is no need to configure them, and they can be directly skipped to the next power output channel.
[0110] It should be noted that the power channels with relatively higher priorities can be preferentially controlled when starting.
[0111] It can be understood that for the power output channels, there are only two different states: start or close, that is, providing power or not providing power. The state of the switch is defaulted to off or defaulted to on. For the intelligent sensing peripheral kit of autonomous driving, different sensor peripherals such as lidar, millimeter wave radar, camera, domain controller, etc. have different control requirements for power. Through the above configuration optimization method, the timing and priority of multiple power supplies can be independently controlled, and there is no need for an external controller to intervene in scheduling, so as to meet the power supply timing requirements of various autonomous driving kits and improve the power supply efficiency of the power supply box.
[0112] In one embodiment of the present application, the configuration storage module 530 is specifically configured to store the configuration parameters of each power output channel.
[0113] An embodiment of the present application provides a vehicle-mounted multi-channel power switch control device, where it is used for a vehicle-mounted power supply box, and the device includes:
[0114] A loading module, used for the vehicle-mounted power supply box to power on and start, and load the configuration parameters of each power output channel, where the configuration parameters at least include one of the following: priority level, and the priority level includes a start priority level;
[0115] A traversal configuration module for traversing and configuring the configuration parameters in the power output channels in sequence according to the startup priority level to perform startup control on the power output channels.
[0116] It further includes: a detection module for detecting whether the priority level in the configuration parameters of each power output channel is valid. The detection steps include:
[0117] Set memories numbered from 1 to N, and all are initialized with a stored value of 0. The memories numbered from 1 to N correspond to the power channels numbered from 1 to N.
[0118] Traverse the priority values of the power channels numbered from 1 to N once, and set the stored value of the memory corresponding to the priority value number to 1.
[0119] Check whether there is a memory with a stored value of 0 in the memories numbered from 1 to N.
[0120] If there is, the priority level configuration data is incorrect, and the detection stops.
[0121] If not, the priority level configuration data meets the requirements.
[0122] Figure 6 It is a schematic structural diagram of an electronic device according to an embodiment of the present application. Please refer to Figure 6 , at the hardware level, the electronic device includes a processor, and optionally also includes an internal bus, a network interface, and a memory. Among them, the memory may include a memory, such as a high-speed random access memory (Random-Access Memory, RAM), and may also include a non-volatile memory, such as at least one disk memory, etc. Of course, the electronic device may also include other hardware required for other services.
[0123] The processor, network interface, and memory can be interconnected through an internal bus. The internal bus can be an ISA (Industry Standard Architecture) bus, a PCI (Peripheral Component Interconnect) bus, or an EISA (Extended Industry Standard Architecture) bus, etc. The bus can be divided into an address bus, a data bus, a control bus, etc. For the sake of representation, Figure 6 only a two-way arrow is used in
[0124] A memory for storing programs. Specifically, the program may include program code, and the program code includes computer operation instructions. The memory may include a memory and a non-volatile memory, and provide instructions and data to the processor.
[0125] The processor reads the corresponding computer program from the non-volatile memory into the memory and then runs it, forming a vehicle-mounted multi-channel power switch control device at the logical level. The processor executes the program stored in the memory and is specifically used to perform the following operations:
[0126] The vehicle-mounted power supply box is powered on and starts, loading the configuration parameters of each power output channel, where the configuration parameters at least include one of the following: priority level, delay time, output power parameters, switch control status, and the priority level includes a startup priority level;
[0127] Traverse and configure the configuration parameters in the power output channels in sequence according to the startup priority level to perform startup control on the power output channels.
[0128] The above method executed by the vehicle-mounted multi-channel power switch control device disclosed in the embodiments of the present application Figure 2 can be applied to or implemented by the processor. The processor may be an integrated circuit chip with signal processing capabilities. During implementation, each step of the above method can be completed by the integrated logic circuit in the hardware of the processor or by instructions in software form. The above processor may be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it may also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components. It can implement or execute the various methods, steps, and logic block diagrams disclosed in the embodiments of the present application. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc. The steps of the method disclosed in combination with the embodiments of the present application can be directly embodied as being executed by the hardware decoding processor, or executed by a combination of the hardware and software modules in the decoding processor. The software module may be located in a mature storage medium in the art such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, or an electrically erasable programmable memory, a register, etc. This storage medium is located in the memory, and the processor reads the information in the memory and combines its hardware to complete the steps of the above method.
[0129] The electronic device can also execute Figure 2 the method executed by the in-vehicle multi-channel power switch control device in Figure 2 the embodiments shown, and implement the functions of the in-vehicle multi-channel power switch control device in
[0130] Embodiments of the present application also propose a computer-readable storage medium that stores one or more programs. The one or more programs include instructions that, when executed by an electronic device including multiple application programs, can cause the electronic device to execute Figure 2 the method executed by the in-vehicle multi-channel power switch control device in the embodiments shown, and specifically used to execute:
[0131] The in-vehicle power supply box is powered on and starts up, and configures the configuration parameters of each power output channel. The configuration parameters at least include one of the following: priority level, delay time, output power parameters, switch control status, and the priority level includes a startup priority level;
[0132] Traverse and configure the configuration parameters in the power output channels in sequence according to the startup priority level to perform startup control on the power output channels.
[0133] Those skilled in the art should understand that the embodiments of the present invention can be provided as methods, systems, or computer program products. Therefore, the present invention can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Moreover, the present invention can take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0134] The present invention is described with reference to the flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to the embodiments of the present invention. It should be understood that each flow and / or block in the flowchart and / or block diagram can be implemented by computer program instructions, and the combination of the flows and / or blocks in the flowchart and / or block diagram can also be implemented by computer program instructions. These computer program instructions can be provided to the processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing devices to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing devices generate a device for implementing the specified functions in Figure 1 one process or multiple processes and / or blocks Figure 1 one block or multiple blocks.
[0135] These computer program instructions can also be stored in a computer-readable memory that can direct a computer or other programmable data processing device to work in a specific manner, such that the instructions stored in the computer-readable memory produce a manufacture including an instruction device that implements the functions specified in one process Figure 1 one process or multiple processes and / or blocks Figure 1 specified in one block or multiple blocks.
[0136] These computer program instructions can also be loaded onto a computer or other programmable data processing device, such that a series of operational steps are performed on the computer or other programmable device to produce a computer-implemented process, and thus the instructions executed on the computer or other programmable device provide steps for implementing the functions specified in one process Figure 1 one process or multiple processes and / or blocks Figure 1 specified in one block or multiple blocks.
[0137] In a typical configuration, a computing device includes one or more processors (CPUs), an input / output interface, a network interface, and memory.
[0138] The memory may include non-permanent memory in the form of computer-readable media, random access memory (RAM) and / or non-volatile memory such as read-only memory (ROM) or flash memory (flash RAM). Memory is an example of computer-readable media.
[0139] Computer-readable media includes permanent and non-permanent, removable and non-removable media that can store information by any method or technology. The information can be computer-readable instructions, data structures, program modules, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, compact disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, magnetic cassette tapes, tape magnetic disk storage or other magnetic storage devices, or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer-readable media does not include transitory computer-readable media such as modulated data signals and carrier waves.
[0140] It should also be noted that the term "comprise", "include" or any other variant thereof is intended to cover non-exclusive inclusion, such that a process, method, article or apparatus that comprises a series of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such process, method, article or apparatus. Without further limitation, an element defined by the phrase "comprising an..." does not exclude the presence of additional identical elements in the process, method, article or apparatus that comprises the element.
[0141] Those skilled in the art should understand that the embodiments of the present application can be provided as a method, a system or a computer program product. Therefore, the present application can take the form of a complete hardware embodiment, a complete software embodiment or an embodiment combining software and hardware aspects. Moreover, the present application can take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.
[0142] The above are only the embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application can have various modifications and changes. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included within the scope of the claims of the present application.
Claims
1. A vehicle-mounted multi-channel power switch control method, wherein, For an in-vehicle power supply box, the method includes: The in-vehicle power supply box powers on and starts, loading the configuration parameters of each power output channel, where the configuration parameters include a priority level, and the priority level includes a startup priority level; Traverse and configure the configuration parameters in the power output channels in sequence according to the startup priority level to perform startup control on the power output channels; The method further includes: a step of detecting whether the priority level in the configuration parameters of each power output channel is valid, and the detecting step includes: Set memories numbered from 1 to N, and all are initialized with a stored value of 0. The memories numbered from 1 to N correspond to the power channels numbered from 1 to N; Traverse the priority values of the power channels numbered from 1 to N once, and set the stored value of the memory corresponding to the number of the priority value to 1; Check whether there is a memory with a stored value of 0 in the memories numbered from 1 to N; If there is, the priority level configuration data is incorrect, and the detection stops; If not, the priority level configuration data meets the requirements.
2. The method according to claim 1, wherein The priority level includes a shutdown priority level. The method further includes: when the in-vehicle power supply box enters the sleep state or receives an instruction to shut down multiple power output channels, traverse and configure the configuration parameters in the power output channels in sequence according to the shutdown priority level to perform shutdown control on the power output channels.
3. The method according to claim 1, wherein The configuration parameters further include at least one of the following: delay time, output power parameters, switch control status.
4. The method according to claim 2, wherein The configuration parameters in the power output channels traversed and configured by the startup priority level are the same as the configuration parameters in the power output channels traversed and configured by the shutdown priority level.
5. The method according to claim 2, wherein It also includes configuring two sets of different configuration parameters for the configuration parameters in the power output channels traversed and configured by the startup priority level or the shutdown priority level.
6. The method according to claim 3, wherein The method further includes: switching from the current power output channel to the next power output channel according to the delay time.
7. The method according to claim 3, wherein, The switch control status includes off and on, and the default status is on. The traversing and configuring the configuration parameters in the power output channels in sequence according to the startup priority level to perform startup control on the power output channels includes: Traverse and configure the switch control status in the configuration parameters of the current power output channel to on in sequence according to the startup priority level to perform startup control on the current power output channel; Traverse and configure the switch control status in the configuration parameters of the current power output channel to off in sequence according to the startup priority level to perform startup control on the current power output channel.
8. The method according to claim 3, wherein The configuration parameters of the power output channel at least include output voltage and output current. The traversing and configuring the configuration parameters in the power output channels in sequence according to the startup priority level to perform startup control on the power output channels includes: Traverse and configure the output voltage, output current, and switch control state in the configuration parameters of each power output channel in sequence according to the startup priority level, so as to perform startup control on the power output channels.
9. A vehicle-mounted power supply box, wherein, Adopt the method described in Claim 1, the in-vehicle power supply box includes: a power supply start / stop timing control module, the power supply start / stop timing control module is connected to multiple power output channels, and the power supply start / stop timing control module includes: A CAN communication module, used as a configuration interface for the multiple power output channels, to receive the configuration parameters of each power output channel, and the configuration parameters at least include one of the following: priority level, and the priority level includes startup priority level and shutdown priority level; The in-vehicle power supply box main control module is used to traverse and configure the configuration parameters in the power output channels in sequence according to the startup priority level, so as to perform startup control on the power output channels; It is also used to, when the in-vehicle power supply box enters the sleep state or receives an instruction to close the multiple power output channels, traverse and configure the configuration parameters in the power output channels in sequence according to the shutdown priority level, so as to perform shutdown control on the power output channels. The multiple power control module is used to execute the startup and shutdown of the multiple power output channels according to the control instructions of the in-vehicle power supply box main control module; A configuration storage module stores the configuration parameters of each power output channel.
Citation Information
Patent Citations
Power supply management system and method
CN104133540A
Power-on control method, programmable logic device and power-on control system
CN112558742A