Dark current processing method and device, electronic equipment and storage medium

By dividing the pins of the automotive controller into different combinations and performing current detection, and automatically adjusting their status, the problem of excessive dark current in low-power mode is solved, efficient development process and batch adjustment are achieved, and development is improved efficiency.

CN119160105AInactive Publication Date: 2024-12-20HOZON NEW ENERGY AUTOMOBILE CO LTD
View PDF 9 Cites 0 Cited by

Patent Information

Application Number
CN202411017308.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-26
Publication Date
2024-12-20
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

The dark current of existing automotive controllers is still too high in low power mode, and manual adjustment of hardware changes needs to be readjusted, affecting development efficiency.

Method used

By dividing the pins of the controller into different combinations, current detection is performed to determine the pin state, and automatic adjustment of dark current is achieved without hardware changes, and is suitable for batch adjustment.

Benefits of technology

Improve development efficiency, reduce development cycles, meet the requirements of dark current in low-power mode, and avoid the complexity of manual adjustment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119160105A_ABST
    Figure CN119160105A_ABST
Patent Text Reader

Abstract

The invention discloses a dark current processing method which is applied to a controller, and the dark current processing method comprises the steps: obtaining the pin information of the controller, dividing the pins of the controller into a plurality of pin combinations based on the pin information, and enabling the plurality of pin combinations to comprise a first pin combination, a second pin combination and a third pin combination; the first pin combination, the third pin combination and the second pin combination are tested in sequence in combination with current detection, the states, needing to be set, of the pins of the controller during dormancy of the controller are determined, and corresponding setting information is generated; and setting pins of the controller according to the setting information, and setting the controller to be in a low-power-consumption mode so as to reduce dark current consumed by the controller during dormancy. According to the invention, automatic processing of the controller pin can be realized, the dark current processing efficiency is improved, and manual setting is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of automobile electronic control technology, and in particular to a dark current processing method, a processing device, an electronic device and a storage medium. Background Art

[0002] For the vehicle controller, it needs to meet a smaller dark current after sleep, maintain low power consumption, reduce battery power consumption, and avoid malfunctions caused by excessive dark current. In order to meet the above requirements, the controller is usually put into low power mode according to its own model, but in low power mode, the dark current is still too large and cannot meet the dark current requirements. Or engineers need to manually adjust the dark current, but in this way, once the hardware is changed, engineers need to readjust it, which often takes a lot of time and effort, affecting development efficiency. Summary of the invention

[0003] The object of the present invention is to solve one of the above-mentioned technical problems at least to a certain extent.

[0004] To this end, the first purpose of the present invention is to propose a dark current processing method, which divides the pins of the controller into different pin combinations, and then tests the different pin combinations and determines the state of the pins, thereby realizing automatic adjustment of the dark current. Compared with the prior art, the present invention does not require excessive manual adjustments, improves development efficiency, and thus reduces the development cycle. And there is no need to pretend any hardware or change the hardware for the controller circuit board itself, so batch adjustment of the controller can be realized.

[0005] To achieve the above-mentioned purpose, a first aspect of the present invention proposes a dark current processing method, which is applied to a controller, and the dark current processing method includes: obtaining pin information of the controller, and dividing the pins of the controller into multiple pin combinations based on the pin information, wherein the multiple pin combinations include a first pin combination, a second pin combination and a third pin combination, wherein the first pin combination includes pins associated with external power control, the second pin combination includes pins associated with communication and / or wake-up, and the third pin combination includes other pins except the first pin combination and the second pin combination; combining current detection to test the first pin combination, the third pin combination and the second pin combination in sequence, determine the state to be set of the pins of the controller when the controller is in sleep mode, and generate corresponding setting information, wherein the pins in the first pin combination are set to a state capable of turning off the external power supply, the pins in the third pin combination are set to a state that meets preset current conditions, and the pins in the second pin combination are set to a state related to their functions or related to the application of the controller; setting the pins of the controller according to the setting information, and setting the controller to a low power consumption mode to reduce the dark current consumed by the controller when it is in sleep mode.

[0006] According to an embodiment of the present invention, the dark current processing method further includes: before testing the pins of the controller, obtaining a monitoring log for the controller, and judging whether it is necessary to test the pins of the controller based on the monitoring log.

[0007] According to an embodiment of the present invention, testing the first pin combination includes: setting the state of each pin of the first pin combination to an output low level state and detecting a current value in the output low level state.

[0008] According to one embodiment of the present invention, testing the third pin combination includes: setting the state of all pins in the third pin combination to a high impedance state and detecting the current current value; setting the state of each pin in the third pin combination to an input state, an output high level, and an output low level in turn, and detecting the current value in the corresponding state; based on the current value of each pin in different states, taking the state corresponding to the minimum current value as the final state to be set for the pin.

[0009] According to one embodiment of the present invention, the testing of the second pin combination includes: setting the state of the pin with wake-up function to the wake-up function state, and setting the state of other pins of the second pin combination to a high impedance state and detecting the current value under the current state setting.

[0010] According to one embodiment of the present invention, after setting the state of the pin of the controller, the dark current processing method also includes: adjusting the state of the pin of the second pin combination according to the operation of the controller, and detecting the current value so that the adjusted current value meets the dark current requirement.

[0011] To achieve the above-mentioned purpose, a second aspect of the present invention proposes a dark current processing device, which includes: a division unit, which is used to obtain the pin information of the controller, and divide the pins of the controller into multiple pin combinations based on the pin information, wherein the multiple pin combinations include a first pin combination, a second pin combination and a third pin combination, wherein the first pin combination includes pins associated with external power control, the second pin combination includes pins associated with communication and wake-up, and the third pin combination includes other pins except the first pin combination and the second pin combination; a testing unit, which is used to test the first pin combination, the third pin combination and the second pin combination in sequence in combination with current detection, determine the state to be set of the pins of the controller when the controller is in sleep mode, and generate corresponding setting information, wherein the pins in the first pin combination are set to a state that can turn off the external power supply, the pins in the third pin combination are set to a state that meets preset current conditions, and the pins in the second pin combination are set to a state related to their functions or related to the application of the controller; a setting unit, which is used to set the pins of the controller according to the setting information, and set the controller to a low power consumption mode to reduce the dark current consumed by the controller when it is in sleep mode.

[0012] According to one embodiment of the present invention, the test unit is used to test the third pin combination in combination with current detection, including: setting the state of all pins in the third pin combination to a high impedance state, and detecting the current value; setting the state of each pin in the third pin combination to an input state, an output high level, and an output low level in sequence, and detecting the current value in the corresponding state; based on the current value of each pin in different states, taking the state corresponding to the minimum current value as the final state to be set for the pin.

[0013] To achieve the above-mentioned purpose, the third aspect of the present invention proposes an electronic device, which includes: a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the dark current processing method described in the first aspect of the present invention is implemented.

[0014] To achieve the above-mentioned purpose, a computer-readable storage medium is proposed in an embodiment of the fourth aspect of the present invention, and when the computer program is executed by a processor, the dark current processing method described in the embodiment of the first aspect of the present invention is implemented.

[0015] Additional aspects and advantages of the present invention will be given in part in the following description and in part will be obvious from the following description, or will be learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] The above and / or additional aspects and advantages of the present invention will become apparent and easily understood from the following description of the embodiments in conjunction with the accompanying drawings, in which:

[0017] Figure 1 is a flow chart of a dark current processing method according to an exemplary embodiment;

[0018] Figure 2 is a schematic diagram of dark current processing hardware connection according to an exemplary embodiment;

[0019] Figure 3 is a schematic diagram of a pin testing process according to an exemplary embodiment;

[0020] Figure 4 is a schematic block diagram of a device according to an exemplary embodiment; and

[0021] Figure 5 The diagram is a schematic structural diagram of an electronic device according to an exemplary embodiment. DETAILED DESCRIPTION

[0022] Embodiments of the present invention are described in detail below, examples of which are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present invention, and should not be construed as limiting the present invention.

[0023] Dark current, also known as static current, leakage current or parasitic current, refers to the discharge current of the battery after the ignition switch and electrical switch of the car are disconnected, generally in "mA". For automotive electronic systems, the existence of dark current can maintain the data memory function of the control unit, or provide power for the car anti-theft system for all-weather monitoring. Although the existence of dark current can ensure the continuation of certain functions of the car, excessive dark current of the whole vehicle will cause difficulties in starting the car or failure of the anti-theft system. Therefore, it is usually necessary to adjust the dark current to ensure that the dark current is minimized.

[0024] There are two main aspects to dark current processing. The first aspect is to configure the controller pins to minimize the power consumption of the controller periphery. The other aspect is to set the controller to enter low power mode. Each controller model is different, and the corresponding configuration of entering low power mode is also different.

[0025] Based on this, the present application mainly proposes a dark current processing method for a controller (such as MCU or SOC, etc.) for the above-mentioned pin configuration, processing configuration, electronic equipment and storage medium to achieve dark current adjustment.

[0026] Specifically, a dark current processing method, a processing device, an electronic device, and a storage medium according to an embodiment of the present invention are described below with reference to the accompanying drawings.

[0027] Figure 1 is a flow chart of a dark current processing method according to an exemplary embodiment. Figure 1 As shown, the dark current processing method includes:

[0028] Step S110, obtaining pin information of the controller, and dividing the pins of the controller into multiple pin combinations based on the pin information, wherein the multiple pin combinations include a first pin combination, a second pin combination, and a third pin combination, wherein the first pin combination includes pins associated with external power control, the second pin combination includes pins associated with communication and / or wake-up, and the third pin combination includes other pins except the first pin combination and the second pin combination.

[0029] For example, the present invention can obtain the pin information of the controller according to the model of the controller, and divide it into different pin combinations based on the function of the pin of the controller and the correlation with the dark current. For example, taking MCU as an example, the function of the pin of MCU varies with different models and manufacturers, and the pins included are commonly power pins, input and output pins (I / O pins), clock pins, external interrupt pins, timer / counter pins, and debug structure pins. Therefore, the present invention can divide the power pins for controlling the external power supply into the first pin combination, the serial port output pins for communicating with the outside and the wake-up pins for wake-up into the second pin combination, and then divide the remaining pins into the third pin combination. The purpose of dividing the pin combination is to facilitate the subsequent reasonable and orderly configuration of the pin status based on different configuration strategies.

[0030] Step S120, combining current detection to test the first pin combination, the third pin combination and the second pin combination in sequence, determine the state to be set of the pins of the controller when the controller is in sleep mode, and generate corresponding setting information, wherein the pins in the first pin combination are set to a state capable of turning off the external power supply, the pins in the third pin combination are set to a state that meets preset current conditions, and the pins in the second pin combination are set to a state related to their functions or related to the application of the controller.

[0031] For example, after the pins of the controller are divided into different combinations, the present invention combines current detection to determine the states to be set for the pins according to the different combinations. The states to be set for the pins generally include high impedance state, input state, output high level, and output low level.

[0032] Figure 2 The present invention is a schematic diagram of dark current processing hardware connection. The present invention introduces a current detection module, which is preferably inserted into a controller circuit board in the form of a plug-in, so as to facilitate the detection of current size during the pin state setting process and ensure that the current in the set pin state meets the dark current requirements.

[0033] Among them, for the pins of the first pin combination, since they are connected to the external power supply, if the dark current is to be reduced so that the dark current size meets the requirements, it is necessary to set the state of the pins of the first pin combination so that the controllable power supply can be turned off to reduce the current generated by the external power supply.

[0034] For the third pin combination, the present invention introduces a current measurement module, and determines the state of the pin that meets the current condition by setting the state of the pin differently and using the current measurement module to measure the current of the controller circuit accordingly.

[0035] For the second pin combination, since most of the pins in the second pin combination are functional pins, such as the special pins such as the communication and wake-up functions mentioned above, it is necessary to determine the state to be configured based on the functions of the corresponding pins in the pin combination and the application scenario of the current controller.

[0036] Step S130, setting the pins of the controller according to the setting information, and setting the controller to a low power consumption mode to reduce the dark current consumed by the controller when it is in sleep mode.

[0037] For example, when it is obtained that the entire vehicle needs to enter sleep mode, the pins of the controller are set in sequence according to the setting information obtained in the above steps, and after the setting is completed, the controller is configured to a low power consumption mode to complete the dark current adjustment of the controller.

[0038] It can be seen from the embodiments of the present invention that, on the one hand, the present invention realizes automatic adjustment of dark current by dividing the pins of the controller into different pin combinations, and then setting the states of the pins for different pin combinations. Compared with the prior art, there is no need for excessive manual adjustments, which improves development efficiency and reduces the development cycle. On the other hand, there is no need to pretend any hardware or change the hardware on the controller circuit board itself, so as to realize batch adjustment of the controller circuit. On the other hand, the present invention pre-adjusts the pin state before the controller enters the low power consumption mode to better meet the dark current requirements.

[0039] The above steps are further described and explained in detail below with reference to the accompanying drawings and examples.

[0040] In a preferred embodiment, the dark current processing method further includes: before testing the pins of the controller, obtaining a monitoring log for the controller, and determining whether it is necessary to test the pins of the controller based on the monitoring log.

[0041] For example, it has been mentioned above that the present invention introduces a current measurement circuit, so when the current measurement module is inserted into the controller circuit, the present invention can detect the high-level input caused by the insertion of the current measurement module. Further, in response to the high-level input signal, the present invention obtains a saved monitoring log from a memory (e.g., RAM, etc.), and the monitoring log can store historical information on the dark circuit processing of the controller. Therefore, it can be determined whether the dark current adjustment has been performed on the controller through the monitoring log. If there is no record in the monitoring log, it means that the controller has not performed the dark current adjustment, then the subsequent dark current processing can be triggered to configure the state of the pin. If there is a corresponding record in the monitoring log, it means that the controller has performed the dark current adjustment, then it is not necessary to perform the dark current adjustment on the controller. In this way, repeated adjustments to the controller circuit can be avoided in this way, especially for batch adjustments, and the processing efficiency of the dark current can be effectively improved.

[0042] In a preferred implementation, testing the first pin combination includes: setting the state of each pin of the first pin combination to an output low level state and detecting a current value in the output low level state.

[0043] In this way, by configuring the state of each pin of the first pin combination to output a low level, the external controllable power supply can be effectively turned off to reduce the dark current caused by the external power supply. During the setting process, current detection can not only ensure the accuracy of the pin state setting but also ensure that the dark current meets the requirements.

[0044] In a preferred implementation, testing the third pin combination includes:

[0045] Setting the states of all pins in the third pin combination to a high impedance state, and detecting a current current value;

[0046] Sequentially set the state of each pin in the third pin combination to an input state, an output high level, and an output low level, and detect the current value in the corresponding state;

[0047] Based on the current value of each pin in different states, the state corresponding to the minimum current value is used as the final state to be configured for the pin.

[0048] For example, suppose that the third pin combination includes 10 pins. First, the states of the 10 pins are configured to be high impedance state. After stabilization for 5 seconds, the current value in the current high impedance state is detected and saved. Secondly, one of the 10 pins is set to input state, output high level and output low level respectively. After stabilization for 5 seconds, the current values ​​in these three states are detected accordingly. Then, the four current values ​​detected, namely, high impedance state, input state, output high level and output low level, are compared in size. For example, if it is determined that the current value under the output high level is the smallest, it is determined that the output high level is the final state to be configured for the pin. Similarly, the remaining 9 pins are configured in sequence according to the above method, so as to obtain the state corresponding to the minimum current value of the corresponding pin. Then, the configuration information of the 10 pins, that is, the pin information and the corresponding state to be configured, is saved in a memory (such as DATA FLASH).

[0049] In a preferred embodiment, the testing of the second pin combination includes: setting the state of the pin with wake-up function to the wake-up function state, and setting the state of other pins of the second pin combination to a high impedance state and detecting the current value under the current state setting.

[0050] For example, since this application is aimed at processing dark current when the controller is in sleep mode, the wake-up pin needs to be configured as a wake-up function. At the same time, since other pins have corresponding special functions, such as serial port communication, in order to avoid mutual influence and cause excessive dark current, other pins are set to a high-impedance state to effectively isolate the corresponding pins from other external factors.

[0051] In a preferred embodiment, after setting the state of the pin of the controller, the dark current processing method also includes: adjusting the state of the pin of the second pin combination according to the operation of the controller, and detecting the current value so that the adjusted current value meets the dark current requirement.

[0052] For example, since the pin state adjustment mentioned above is based on the overall adjustment after the pins are grouped to meet the minimization of dark current, the overall operation of the controller circuit is ignored, which may cause problems in the functional coordination between the pins after adjustment. After the pin state setting is completed, the present invention can monitor the functional operation of the controller. If there is a problem with the operation, the present invention can analyze the problem and manually adjust the state of the associated pins. In this way, through manual fine-tuning, the associated pins are adjusted to other appropriate states, and combined with current detection, it is ensured that the adjusted current meets the current requirements.

[0053] The embodiment of the present invention can monitor after the pin status is set, and then manually fine-tune according to the individual status that occurs, thereby improving the reliability and accuracy of dark current processing.

[0054] Figure 3 A dark current processing process of the present invention is shown, such as Figure 3 As shown, the specific process is as follows:

[0055] Step S301, setting the pin state of the first pin combination, thereby turning off all controllable power supplies, detecting the current value of the pin state outputting a low level state and saving it.

[0056] Step S302, set the pins of the third pin combination to high impedance state, and determine the state to be set for each pin of the third pin combination in combination with current detection. Then, first set the state of all pins of the third pin combination to high impedance state, and after stabilization for 5 seconds, detect the current value. Then, take out the pins one by one to perform state switching setting.

[0057] Step S303, setting the pin to output a high level state, and using a current detection module to detect the current size.

[0058] Step S304, compare the current size of the pin in the previous state (high impedance state), if the current in the current high level output state is smaller than the current in the high impedance state, jump to step S305, otherwise jump to step S306.

[0059] Step S305, recording the current current value and the pin state corresponding to the current value as an output high level state.

[0060] Step S306, the state of the pin is then output as a low level state to detect the current size.

[0061] Step S307, compare the current magnitude currently detected with the recorded current magnitude. It should be noted here that if it is jumped over via step S304 and step S306, then the current magnitude recorded at this time should be the current value of the output high level state. If it is jumped over via step S305 and step S306, then the current magnitude recorded at this time should be the current value of the high impedance state. Similarly, if the current value currently detected is less than the recorded current value, then jump to step S308, otherwise jump to step S309.

[0062] Step S308, recording the current value currently detected and the pin state corresponding to the current value as an output low level state.

[0063] Step S309, setting the state of the pin to an input state, and detecting the current magnitude.

[0064] Step S310, compare the current value currently detected with the recorded current value, if the current value currently detected is smaller than the recorded current value, then jump to step S311, otherwise jump to step S312.

[0065] Step S311, recording the current value currently detected and the pin state corresponding to the current value as an input state.

[0066] Step S312, saving the state of the pin with the smallest final current value.

[0067] Step S313, determining whether it is the last pin of the third pin combination, if not, jump to step S314.

[0068] Step S314, taking out the next pin from the third pin combination, jumping to step S303, and performing state switching setting for the next pin taken out.

[0069] The above steps are looped until step S314 determines that the pin is the last pin, thereby completing the pin state setting, and saving and obtaining the states to be configured of all pins of the third pin combination.

[0070] Then when the controller needs to sleep, each pin is set to the desired configuration state based on the obtained configuration information, and then the controller is switched to the low power mode, and finally the dark current processing is completed.

[0071] In summary, the method provided by the present invention has the following advantages:

[0072] 1) The present invention can divide the pins into different groups based on the pin information of the controller, perform pin tests according to the different groups, and realize automatic adjustment of the controller pins;

[0073] 2) The pin status is adjusted in combination with the current detection module. There is no need to add any hardware to the controller circuit board or make hardware adjustments to the circuit board. Other configuration processes are implemented by software, which can achieve batch adjustment of multiple controllers.

[0074] 3) Reduces the manual configuration process, improves engineers' development efficiency, and shortens the development cycle.

[0075] Based on the same inventive concept as the above-mentioned method for generating image samples, an embodiment of the present invention provides a dark current processing device, which is applied to a controller, such as Figure 4 As shown, the dark current processing device 400 includes: a division unit 410, which is used to obtain the pin information of the controller, and divide the pins of the controller into multiple pin combinations based on the pin information, wherein the multiple pin combinations include a first pin combination, a second pin combination and a third pin combination, wherein the first pin combination includes pins associated with external power control, the second pin combination includes pins associated with communication and wake-up, and the third pin combination includes other pins except the first pin combination and the second pin combination; a testing unit 420, which is used to test the first pin combination, the third pin combination and the second pin combination in sequence in combination with current detection, determine the state to be set of the pins of the controller when the controller is in sleep mode, and generate corresponding setting information, wherein the pins in the first pin combination are set to a state capable of turning off the external power supply, the pins in the third pin combination are set to a state that meets the preset current conditions, and the pins in the second pin combination are set to a state related to their functions or related to the application of the controller; a setting unit 430, which is used to set the pins of the controller according to the setting information, and set the controller to a low power consumption mode to reduce the dark current consumed by the controller when it is in sleep mode.

[0076] In a preferred embodiment, the test unit 420 is used to test the third pin combination in combination with current detection, including: setting the state of all pins in the third pin combination to a high impedance state, and detecting the current value; setting the state of each pin in the third pin combination to an input state, an output high level, and an output low level in sequence, and detecting the current value in the corresponding state; based on the current value of each pin in different states, taking the state corresponding to the minimum current value as the final state to be set for the pin.

[0077] The specific implementation content and advantages of the dark current processing device of the present invention can be referred to the embodiment of the dark current processing method mentioned above, and will not be elaborated herein.

[0078] Accordingly, an embodiment of the present invention further provides an electronic device, such as Figure 5, which shows a schematic diagram of the structure of an electronic device suitable for implementing an embodiment of the present invention. The electronic device in the embodiment of the present invention may include, but is not limited to, mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 5 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.

[0079] like Figure 5 As shown, the electronic device may include a processing device (e.g., a central processing unit, a graphics processor, etc.) 501, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 502 or a program loaded from a storage device 508 into a random access memory (RAM) 503. In the RAM 503, various programs and data required for the operation of the electronic device are also stored. The processing device 501, the ROM 502, and the RAM 503 are connected to each other via a bus 504. An input / output (I / O) interface 505 is also connected to the bus 504.

[0080] Typically, the following devices may be connected to the I / O interface 505: an input device 506 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 507 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 508 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 509. The communication device 509 may allow the electronic device to communicate with other devices wirelessly or by wire to exchange data. Although Figure 5 An electronic device having various devices is shown, but it should be understood that it is not required to implement or possess all the devices shown. More or fewer devices may be implemented or possessed instead.

[0081] In particular, according to an embodiment of the present invention, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present invention provides a computer program product, which includes a computer program carried on a non-transitory computer-readable medium, and the computer program contains program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication device 509, or installed from the storage device 508, or installed from the ROM502. When the computer program is executed by the processing device 501, the above-mentioned functions defined in the method of the embodiment of the present invention are executed.

[0082] It should be noted that the computer-readable medium of the present invention can be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media can include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present invention, a computer-readable storage medium can be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present invention, a computer-readable signal medium can include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. This propagated data signal can take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. The computer readable signal medium may also be any computer readable medium other than a computer readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer readable medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.

[0083] In some embodiments, the client and the server may communicate using any currently known or future developed network protocol such as HTTP (HyperText Transfer Protocol), and may be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), an internet (e.g., the Internet), and a peer-to-peer network (e.g., an ad hoc peer-to-peer network), as well as any currently known or future developed network.

[0084] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.

[0085] The computer-readable medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device: obtains the pin information of the controller, and divides the pins of the controller into multiple pin combinations based on the pin information, wherein the multiple pin combinations include a first pin combination, a second pin combination and a third pin combination, wherein the first pin combination includes pins associated with external power control, the second pin combination includes pins associated with communication and wake-up, and the third pin combination includes other pins except the first pin combination and the second pin combination; sequentially tests the first pin combination, the third pin combination and the second pin combination in combination with current detection to determine the state to be set for the pins of the controller when the controller is in sleep mode, and generates corresponding setting information, wherein the pins in the first pin combination are set to a state capable of turning off the external power supply, the pins in the third pin combination are set to a state that meets preset current conditions, and the pins in the second pin combination are set to a state related to their functions or related to the application of the controller; sets the pins of the controller according to the setting information, and sets the controller to a low power consumption mode to reduce the dark current consumed by the controller when it is in sleep mode.

[0086] Computer program code for performing the operations of the present invention may be written in one or more programming languages ​​or a combination thereof, including, but not limited to, object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0087] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present invention. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs the specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0088] The units involved in the embodiments of the present invention may be implemented by software or hardware. The name of a unit does not limit the unit itself in some cases. For example, the first acquisition unit may also be described as a "unit for acquiring at least two Internet Protocol addresses".

[0089] The functions described above herein may be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), and the like.

[0090] In the context of the present invention, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0091] The above description is only a preferred embodiment of the present invention and an explanation of the technical principles used. Those skilled in the art should understand that the disclosure scope involved in the present invention is not limited to the technical solution formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above disclosed concept. For example, the above features are replaced with the technical features with similar functions disclosed in the present invention (but not limited to) by each other.

[0092] In addition, although each operation is described in a specific order, this should not be construed as requiring these operations to be performed in the specific order shown or in a sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Similarly, although some specific implementation details are included in the above discussion, these should not be construed as limiting the scope of the present invention. Some features described in the context of a separate embodiment can also be implemented in a single embodiment in combination. On the contrary, the various features described in the context of a single embodiment can also be implemented in multiple embodiments individually or in any suitable sub-combination mode.

[0093] Although the subject matter has been described in language specific to structural features and / or methodological logical actions, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or actions described above. On the contrary, the specific features and actions described above are merely example forms of implementing the claims.

Claims

1. A dark current processing method, characterized in that: Applied to a controller, and the dark current processing method includes: Acquire pin information of the controller, and divide the pins of the controller into a plurality of pin combinations based on the pin information, wherein the plurality of pin combinations include a first pin combination, a second pin combination, and a third pin combination, wherein the first pin combination includes pins associated with external power control, the second pin combination includes pins associated with communication and / or wake-up, and the third pin combination includes other pins except the first pin combination and the second pin combination; testing the first pin combination, the third pin combination and the second pin combination in sequence in combination with current detection, determining the states to be set for the pins of the controller when the controller is in sleep mode, and generating corresponding setting information, wherein the pins in the first pin combination are set to a state capable of turning off the external power supply, the pins in the third pin combination are set to a state that meets a preset current condition, and the pins in the second pin combination are set to a state related to their functions or to an application of the controller; The pins of the controller are set according to the setting information, and the controller is set to a low power consumption mode to reduce the dark current consumed by the controller when it is in sleep mode.

2. The dark current processing method according to claim 1, characterized in that: The dark current processing method further includes: before testing the pins of the controller, obtaining a monitoring log for the controller, and judging whether it is necessary to test the pins of the controller based on the monitoring log.

3. The dark current processing method according to claim 1, characterized in that: Testing the first pin combination includes: setting the state of each pin of the first pin combination to an output low level state and detecting a current value in the output low level state.

4. The dark current processing method according to claim 1, characterized in that: Testing the third pin combination, comprising: Setting the states of all pins in the third pin combination to a high impedance state, and detecting a current current value; Sequentially set the state of each pin in the third pin combination to an input state, an output high level, and an output low level, and detect the current value in the corresponding state; Based on the current value of each pin in different states, the state corresponding to the minimum current value is used as the final state to be set for the pin.

5. The dark current processing method according to claim 1, characterized in that: The testing of the second pin combination includes: setting the state of the pin with the wake-up function to the wake-up function state, and setting the states of other pins of the second pin combination to a high impedance state and detecting the current value under the current state setting.

6. The method according to claim 1, characterized in that The dark current processing method further includes: after setting the state of the pin of the controller, adjusting the state of the pin of the second pin combination according to the operation of the controller, and detecting the current value so that the adjusted current value meets the dark current requirement.

7. A dark current processing device, characterized in that: Applied to a controller, and the dark current processing device comprises: a dividing unit, configured to obtain pin information of the controller, and divide the pins of the controller into a plurality of pin combinations based on the pin information, wherein the plurality of pin combinations include a first pin combination, a second pin combination, and a third pin combination, wherein the first pin combination includes pins associated with external power control, the second pin combination includes pins associated with communication and wake-up, and the third pin combination includes other pins except the first pin combination and the second pin combination; a test unit, configured to test the first pin combination, the third pin combination, and the second pin combination in sequence in combination with current detection, determine the states to be set for the pins of the controller when the controller is in sleep mode, and generate corresponding setting information, wherein the pins in the first pin combination are set to a state capable of turning off the external power supply, the pins in the third pin combination are set to a state that meets a preset current condition, and the pins in the second pin combination are set to a state related to their functions or to an application of the controller; The setting unit is used to set the pins of the controller according to the setting information, and set the controller to a low power consumption mode to reduce the dark current consumed by the controller when it is in sleep mode.

8. The dark current processing device according to claim 7, characterized in that: The test unit is used to test the third pin combination in combination with current detection, including: Setting the states of all pins in the third pin combination to a high impedance state, and detecting a current current value; Sequentially set the state of each pin in the third pin combination to an input state, an output high level, and an output low level, and detect the current value in the corresponding state; Based on the current value of each pin in different states, the state corresponding to the minimum current value is used as the final state to be set for the pin.

9. An electronic device, comprising: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the dark current processing method according to any one of claims 1 to 6.

10. A non-transitory computer-readable storage medium storing computer instructions, wherein: The computer instructions are used to enable the computer to execute the dark current processing method according to any one of claims 1-6.

Citation Information

Patent Citations

  • Quiescent current control method, device and apparatus for a vehicle-mounted controller and equipment and storage medium

    CN110920544A

  • Vehicle and controlling method thereof

    CN111301322A

  • Dark current eliminating device and method and vehicle

    CN116853160A

  • Whole car CAN awakens circuit up based on TJA1041AT interface chips

    CN204659637U

  • Static current control device

    CN219214922U