CN114167164A - High-side power supply detection method and device, electronic equipment and storage medium - Google Patents
High-side power supply detection method and device, electronic equipment and storage medium Download PDFInfo
- Publication number
- CN114167164A CN114167164A CN202111330702.2A CN202111330702A CN114167164A CN 114167164 A CN114167164 A CN 114167164A CN 202111330702 A CN202111330702 A CN 202111330702A CN 114167164 A CN114167164 A CN 114167164A
- Authority
- CN
- China
- Prior art keywords
- side power
- power supply
- switch
- driving state
- ecu
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000001514 detection method Methods 0.000 title claims abstract description 43
- 238000000034 method Methods 0.000 claims abstract description 19
- 238000005259 measurement Methods 0.000 claims description 37
- 238000004590 computer program Methods 0.000 claims description 10
- 230000000694 effects Effects 0.000 claims description 10
- 238000010586 diagram Methods 0.000 description 14
- 230000006870 function Effects 0.000 description 7
- 230000003287 optical effect Effects 0.000 description 4
- 238000012545 processing Methods 0.000 description 4
- 238000012986 modification Methods 0.000 description 3
- 230000004048 modification Effects 0.000 description 3
- 230000000644 propagated effect Effects 0.000 description 2
- 238000003491 array Methods 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000010354 integration Effects 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 239000013307 optical fiber Substances 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 238000011160 research Methods 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01R—MEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
- G01R31/00—Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Charge And Discharge Circuits For Batteries Or The Like (AREA)
Abstract
The application discloses a high-side power supply detection method and device, electronic equipment and a storage medium, which are used for detecting whether high-side power supply comes from an ECU (electronic control unit). In the embodiment of the application, after the ignition switch is electrified, whether the high-side power supply driving switch is in a driving state or not is judged, and the driving state of the high-efficiency normally closed switch is determined; and determining whether the high-side power supply comes from the ECU according to the driving state of the high-side power supply driving switch and the driving state of the high-effective normally closed switch. Whether the high-side power supply comes from the ECU can be accurately detected by the method.
Description
Technical Field
The present disclosure relates to the field of integrated circuit technologies, and in particular, to a method and an apparatus for detecting high-side power supply, an electronic device, and a storage medium.
Background
In the related art, in the field of an automotive integrated circuit, a high-side power supply is required to be supplied from an Electronic Control Unit (ECU), and if the high-side power supply is supplied from a whole vehicle, there is a risk of damage to a digital input channel of the ECU.
Disclosure of Invention
The application aims to provide a high-side power supply detection method, a high-side power supply detection device, electronic equipment and a storage medium, which are used for detecting whether high-side power supply comes from an ECU (electronic control unit).
In a first aspect, an embodiment of the present application provides a high-side power supply detection method, which is applied to a vehicle, and the method includes:
after the ignition switch is electrified, judging whether the high-side power supply driving switch is in a driving state or not, and determining the driving state of a high-effective normally closed switch;
and determining whether the high-side power supply comes from the ECU according to the driving state of the high-side power supply driving switch and the driving state of the high-effective normally closed switch.
In the embodiment of the application, because the driving state of the high-efficiency normally closed switch is different when the high-side power supply driving switch is driven and is not driven, and the driving state of the high-efficiency normally closed switch is different when the power supply comes from the ECU and the power supply does not come from the ECU, whether the power supply comes from the ECU can be determined through the driving state of the high-side power supply driving switch and the driving state of the high-efficiency normally closed switch, and the digital input channel of the ECU is prevented from being damaged.
In some possible embodiments, the determining whether the high-side power supply is from the ECU according to the driving state of the high-side power supply driving switch and the driving state of the high-effective normally-closed switch includes:
if the high-side power supply driving switch is in a driving state and the high-effective normally closed switch is in a driving state, determining that the high-side power supply comes from the ECU;
and if the high-side power supply driving switch is in a non-driving state and the high-effective normally closed switch is in a non-driving state, determining that the high-side power supply does not come from the ECU and sending an alarm indication.
In the present application, since the driving state of the high-efficiency normally-closed switch is related to whether or not the power supply is from the ECU, it is possible to determine whether or not the power supply is from the ECU according to the driving state of the high-efficiency normally-closed switch.
In some possible embodiments, the determining whether the high-side power supply is from the ECU according to the driving state of the high-side power supply driving switch and the driving state of the high-effective normally-closed switch includes:
determining the measurement quantity of the digital input switch according to the driving state of the high-effective normally closed switch;
if the high-side power supply driving switch is in a driving state and the measurement value of the digital input switch is a first specified value, determining that the high-side power supply comes from the ECU;
and if the high-side power supply driving switch is in a non-driving state and the measurement value of the digital input switch is a second specified value, determining that the high-side power supply does not come from the ECU and sending an alarm indication.
In the present application, since the value of the measurement amount is different between when the high-side power supply comes from the ECU and when it does not come from the ECU, it is also possible to determine whether the high-side power supply comes from the ECU by the value of the measurement amount.
In some possible embodiments, the determining the measured quantity of the digital input switch according to the driving state of the high-effective normally-closed switch includes:
determining a state value of a highly active normally closed switch, the state value indicating a driving state of the highly active normally closed switch;
and performing negation operation on the state value of the high-effective normally closed switch to obtain the measurement quantity of the digital input switch.
In the present application, the measurement can be obtained by inverting the high-active normally closed switch, so that it can be determined whether the high-side power supply is from the ECU according to the value of the measurement.
In some possible embodiments, the method further comprises:
after the ignition switch is powered on, timing is started;
stopping timing after determining whether the high-side power supply comes from the ECU, and determining the total timing time;
and if the total time length is longer than the preset time length, determining whether the determined high-side power supply comes from the ECU inaccurately, and sending an error indication.
In the embodiment of the application, after the preset time is exceeded, the user may adjust the high-side power supply driving switch, so that whether the determined high-side power supply is from the ECU is inaccurate, and if the determined high-side power supply is not from the ECU after the preset time is exceeded, an error prompt is sent to prompt the user whether the determined high-side power supply is from the ECU is inaccurate.
In a second aspect, the present application further provides a high-side power supply detection apparatus, including:
the driving state determining module is used for judging whether the high-side power supply driving switch is in a driving state or not after the ignition switch is powered on and determining the driving state of the high-effective normally closed switch;
and the high-side power supply detection module is used for determining whether the high-side power supply comes from the ECU according to the driving state of the high-side power supply driving switch and the driving state of the high-effective normally closed switch.
In some possible embodiments, the high-side power supply detection module, when performing the determination of whether the high-side power supply is from the ECU according to the driving state of the high-side power supply driving switch and the driving state of the high-activity normally-closed switch, is configured to:
if the high-side power supply driving switch is in a driving state and the high-effective normally closed switch is in a driving state, determining that the high-side power supply comes from the ECU;
and if the high-side power supply driving switch is in a non-driving state and the high-effective normally closed switch is in a non-driving state, determining that the high-side power supply does not come from the ECU and sending an alarm indication.
In some possible embodiments, the high-side power supply detection module, when performing the determination of whether the high-side power supply is from the ECU according to the driving state of the high-side power supply driving switch and the driving state of the high-activity normally-closed switch, is configured to:
determining the measurement quantity of the digital input switch according to the driving state of the high-effective normally closed switch;
if the high-side power supply driving switch is in a driving state and the measurement value of the digital input switch is a first specified value, determining that the high-side power supply comes from the ECU;
and if the high-side power supply driving switch is in a non-driving state and the measurement value of the digital input switch is a second specified value, determining that the high-side power supply does not come from the ECU and sending an alarm indication.
In some possible embodiments, the high-side power supply detection module, when performing the determination of the measurement quantity of the digital input switch according to the driving state of the high-activity normally-closed switch, is configured to:
determining a state value of a highly active normally closed switch, the state value indicating a driving state of the highly active normally closed switch;
and performing negation operation on the state value of the high-effective normally closed switch to obtain the measurement quantity of the digital input switch.
In some possible embodiments, the driving state determination module is further configured to:
after the ignition switch is powered on, timing is started;
stopping timing after determining whether the high-side power supply comes from the ECU, and determining the total timing time;
and if the total time length is longer than the preset time length, determining whether the determined high-side power supply comes from the ECU inaccurately, and sending an error indication.
In a third aspect, another embodiment of the present application further provides an electronic device, including at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform any one of the methods provided by the embodiments of the first aspect of the present application.
In a fourth aspect, another embodiment of the present application further provides a computer-readable storage medium, where the computer-readable storage medium stores a computer program, and the computer program is configured to cause a computer to execute any one of the methods provided in the first aspect of the present application.
Additional features and advantages of the application will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by the practice of the application. The objectives and other advantages of the application may be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings needed to be used in the embodiments of the present application will be briefly described below, and it is obvious that the drawings described below are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is an application scenario diagram of a high-side power supply detection method according to an embodiment of the present application;
fig. 2 is an overall flowchart of a high-side power supply detection method according to an embodiment of the present disclosure;
fig. 3 is a schematic diagram of determining whether the high-side power supply is from the ECU according to the high-side power supply detection method provided in the embodiment of the present application;
fig. 4 is a schematic diagram of an alarm indication of a high-side power supply detection method according to an embodiment of the present application;
fig. 5 is an overall flowchart of determining whether the high-side power supply is from the ECU according to the high-side power supply detection method provided in the embodiment of the present application;
fig. 6 is an overall flowchart of determining whether the high-side power supply is from the ECU according to the high-side power supply detection method provided in the embodiment of the present application;
fig. 7 is a schematic diagram of an apparatus of a high-side power supply detection method according to an embodiment of the present application;
fig. 8 is a schematic diagram of an electronic device according to a high-side power supply detection method provided in an embodiment of the present application.
Detailed Description
In order to make the technical solutions of the present application better understood by those of ordinary skill in the art, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings.
It is noted that the terms first, second and the like in the description and in the claims of the present application are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the application described herein are capable of operation in sequences other than those illustrated or described herein. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.
For ease of understanding, the terms used in this application are first explained below:
an ECU: the electronic control unit is also called as a traveling computer, a vehicle-mounted computer and the like.
High-side power supply driving switch: cost-effective integration of analog circuitry and powerful load/output drivers.
High effective normally closed switch: under the condition of no external force, the contact in the open state is a normally open contact, and the contact in the closed state is a normally closed contact.
An ignition switch: the switch of the ignition system (usually a key is used) can freely open or close the main circuit of the ignition coil, and is also suitable for other electric system circuits. The ignition switch is commonly called a master switch, a master electric switch or a master key, and is a master gate for controlling a whole vehicle circuit system.
The inventor researches and discovers that in the field of automobile integrated circuits, high-side power supply is required to be supplied from an ECU, and if the high-side power supply is supplied from a whole automobile, the high-side power supply risks damaging a digital input channel of the ECU.
In view of the above, the present application provides a high-side power supply detection method, apparatus, electronic device and storage medium to solve the above problems. The inventive concept of the present application can be summarized as follows: after the ignition switch is electrified, judging whether the high-side power supply driving switch is in a driving state or not, and determining the driving state of a high-effective normally closed switch; and determining whether the high-side power supply comes from the ECU according to the driving state of the high-side power supply driving switch and the driving state of the high-effective normally closed switch.
As shown in fig. 1, an application scenario diagram of the high-side power supply detection method in the embodiment of the present application is shown. The figure includes: an ignition switch 10, a high-side power supply driving switch 20, a high-effective normally closed switch 30 and an ECU 40;
in the present application, after the ignition switch 10 is powered on, the ECU40 determines whether the high-side power drive switch 20 is in a drive state, and determines the drive state of the high-efficiency normally-closed switch 30; whether the high-side power supply is from the ECU40 is determined based on the driving state of the high-side power supply driving switch 20 and the driving state of the high-activity normally-closed switch 30.
For the convenience of understanding, the high-side power supply detection method proposed by the present application is described in detail below with reference to the accompanying drawings:
as shown in fig. 2, an overall flowchart of a high-side power supply detection method provided in the embodiment of the present application is shown, where:
in step 201: after the ignition switch is electrified, judging whether the high-side power supply driving switch is in a driving state or not, and determining the driving state of a high-effective normally closed switch;
in step 202: and determining whether the high-side power supply comes from the ECU according to the driving state of the high-side power supply driving switch and the driving state of the high-effective normally closed switch.
Since the driving state of the high-efficiency normally closed switch is different in whether power is supplied from the ECU when the high-side driving switch is in different states, in the present application, it can be determined whether the high-side power is supplied from the ECU according to the driving state of the high-side power supply driving switch and the driving state of the high-efficiency normally closed switch.
The high-side power supply detection method provided by the embodiment of the present application is described in detail below according to different driving states of the high-side power supply driving switch and the high-efficiency normally-closed switch:
1. the high-side power supply driving switch is in a driving state and the high-effective normally closed switch is in a driving state
In some embodiments, since the high-side power supply driving switch and the high-active normally-closed switch belong to digital input switches, the state value 1 can be used to represent that the switch is in a driving state, and the state value 0 can be used to represent that the switch is in a non-driving state; the switch may also be identified as being in a driven state by a state value of 0 and the switch may be represented as being in a non-driven state by a state value of 1. In the following, the state value 1 indicates that the switch is in a driving state, and the state value 0 indicates that the switch is in a non-driving state, which will not be described in detail later.
When the high-side power supply comes from the ECU, the high-side power supply driving switch can be in a driving state within the preset time length, and the high-effective normally closed switch is in a driving state within the preset time length.
2. The high-side power supply driving switch is in a driving state and the high-effective normally closed switch is in a non-driving state
The high-side power supply driving switch is in a driving state, namely the state value is 1, and the high-effective normally closed switch is in a non-driving state, namely the state value is 0; it may be determined that the high-side power supply is not from the ECU.
3. The high-side power supply driving switch is in a non-driving state and the high-effective normally-closed switch is in a driving state
The high-side power supply driving switch is in a non-driving state, namely, the state value is 0, and the high-effective normally closed switch is in a driving state, namely, the state value is 1; it may be determined that the high-side power supply is not from the ECU.
4. The high-side power supply driving switch is in a non-driving state and the high-effective normally-closed switch is in a non-driving state
The high-side power supply driving switch is in a non-driving state, namely, the state value is 0, and the high-effective normally closed switch is in a non-driving state, namely, the state value is 0; it may be determined that the high side power is from the ECU.
In summary, a state table for determining whether the high-side power supply is from the ECU can be obtained, as shown in table 1:
high side power supply driving switch state value | High effective normally closed switch state value | Whether the high side power supply comes from ECU |
1 | 1 | Is that |
1 | 0 | Whether or not |
0 | 1 | Whether or not |
0 | 0 | Is that |
TABLE 1
In practice, one skilled in the art can determine whether the high-side power is from the ECU based on whether the alarm indication is received, or can determine whether the high-side power is from the ECU by looking at table 1.
In some embodiments, a measurement is typically used to identify the actuation state of a highly active normally closed switch, so in this application, a method such as that shown in FIG. 3 may also be used to determine whether the high side supply is coming from the ECU, where:
in step 301: determining the measurement quantity of the digital input switch according to the driving state of the high-effective normally closed switch;
in some embodiments, determining the measurement of the digital input switch may be implemented as: firstly, determining a state value of a high-effective normally closed switch, wherein the state value indicates the driving state of the high-effective normally closed switch; and then, negating the state value of the high-effective normally closed switch to obtain the measurement quantity of the digital input switch.
For example: if the state value of the high-effective normally closed switch is 1, the measurement quantity of the digital input switch is 0; if the state value of the high effective normally closed switch is 0, the measurement quantity of the digital input switch is 1.
In step 302: if the high-side power supply driving switch is in a driving state and the measurement value of the digital input switch is a first specified value, determining that the high-side power supply comes from the ECU;
in step 303: and if the high-side power supply driving switch is in a non-driving state and the measurement value of the digital input switch is a second specified value, determining that the high-side power supply does not come from the ECU and sending an alarm indication.
In some embodiments, the alarm indication may include any one or combination of the following: the line-changing device comprises a reminding indication, a buzzer and an indicator lamp, wherein the reminding indication is used for indicating a user to modify a line or end the line. For example: the alarm indication is a prompt box as shown in fig. 4, which prompts the user to modify the line or end the line, and the indicator light flashes while the prompt box appears.
In other embodiments, since a user may adjust the high-side power supply driving switch and the high-efficiency normally closed switch according to the own needs after the ignition switch is powered on, the detection of whether the high-side power supply comes from the ECU needs to be completed within a preset time period, otherwise, the detection result is inaccurate, and therefore in the embodiment of the application, the timing is started while the ignition switch is powered on, the timing is stopped after whether the high-side power supply comes from the ECU is determined, and the total time period of the timing is determined; and if the total time length is longer than the preset time length, determining whether the determined high-side power supply comes from the ECU inaccurately, and sending an error indication.
For convenience of understanding, the overall flow of the high-side power supply detection method provided by the embodiment of the present application is described in detail in two cases as follows:
1. whether the high-side power supply comes from the ECU is determined according to the driving state of the high-side power supply driving switch and the driving state of the high-effective normally-closed switch, as shown in FIG. 5:
in step 501: powering on an ignition switch;
in step 502: judging whether the high-side power supply driving switch is in a driving state, if so, entering a step 503, and if not, entering a step 504;
in step 503, it is determined whether the high-effective normally closed switch is in a driving state, if so, step 505 is entered, otherwise, step 506 is entered:
in step 504: determining whether the high-effective normally closed switch is in a driving state, if so, entering a step 506, otherwise, entering a step 505:
in step 505: determining that the high-side power supply comes from an ECU;
in step 506: determining that the high-side power supply does not come from the ECU, and sending an alarm indication;
2. determining whether the high side power is from the ECU based on the measured amount of the digital input switch, as shown in fig. 6:
in step 611: determining the measurement quantity of the digital input switch according to the driving state of the high-effective normally closed switch;
in step 612: determining whether the high-side power supply driving switch is in a driving state, if so, entering step 613, otherwise, entering step 614;
in step 613: determining whether the measured quantity of the digital input switch is a first designated value, if so, entering step 615, otherwise, entering step 616;
in step 614: determining whether the measured quantity of the digital input switch is a second specified value, if so, entering step 615, otherwise, entering step 616;
in step 615: determining that the high-side power supply comes from an ECU;
in step 616: and determining that the high-side power supply does not come from the ECU, and sending an alarm indication.
As shown in fig. 7, based on the same inventive concept, a high-side power supply detection apparatus 700 is proposed, which includes:
the driving state determining module 7001 is used for judging whether the high-side power supply driving switch is in a driving state or not after the ignition switch is powered on, and determining the driving state of the high-effective normally closed switch;
and the high-side power supply detection module 7002 is used for determining whether the high-side power supply comes from the ECU according to the driving state of the high-side power supply driving switch and the driving state of the high-effective normally closed switch.
In some possible embodiments, the high-side power supply detection module, when performing the determination of whether the high-side power supply is from the ECU according to the driving state of the high-side power supply driving switch and the driving state of the high-activity normally-closed switch, is configured to:
if the high-side power supply driving switch is in a driving state and the high-effective normally closed switch is in a driving state, determining that the high-side power supply comes from the ECU;
and if the high-side power supply driving switch is in a non-driving state and the high-effective normally closed switch is in a non-driving state, determining that the high-side power supply does not come from the ECU and sending an alarm indication.
In some possible embodiments, the high-side power supply detection module, when performing the determination of whether the high-side power supply is from the ECU according to the driving state of the high-side power supply driving switch and the driving state of the high-activity normally-closed switch, is configured to:
determining the measurement quantity of the digital input switch according to the driving state of the high-effective normally closed switch;
if the high-side power supply driving switch is in a driving state and the measurement value of the digital input switch is a first specified value, determining that the high-side power supply comes from the ECU;
and if the high-side power supply driving switch is in a non-driving state and the measurement value of the digital input switch is a second specified value, determining that the high-side power supply does not come from the ECU and sending an alarm indication.
In some possible embodiments, the high-side power supply detection module, when performing the determination of the measurement quantity of the digital input switch according to the driving state of the high-activity normally-closed switch, is configured to:
determining a state value of a highly active normally closed switch, the state value indicating a driving state of the highly active normally closed switch;
and performing negation operation on the state value of the high-effective normally closed switch to obtain the measurement quantity of the digital input switch.
In some possible embodiments, before the ignition switch is powered on, the driving state determination module is further configured to:
starting timing;
determining whether the high-side power supply comes from the ECU, stopping timing, and determining the total timing time;
and if the total time length is longer than the preset time length, determining whether the determined high-side power supply comes from the ECU inaccurately, and sending an error indication.
Having described the high-side power supply detection method and apparatus of the exemplary embodiments of the present application, an electronic device according to another exemplary embodiment of the present application is next described.
As will be appreciated by one skilled in the art, aspects of the present application may be embodied as a system, method or program product. Accordingly, various aspects of the present application may be embodied in the form of: an entirely hardware embodiment, an entirely software embodiment (including firmware, microcode, etc.) or an embodiment combining hardware and software aspects that may all generally be referred to herein as a "circuit," module "or" system.
In some possible implementations, an electronic device according to the present application may include at least one processor, and at least one memory. The memory stores program code, which, when executed by the processor, causes the processor to perform the steps of the high-side power supply detection method according to various exemplary embodiments of the present application described above in the present specification.
The electronic device 130 according to this embodiment of the present application is described below with reference to fig. 8. The electronic device 130 shown in fig. 8 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present application.
As shown in fig. 8, the electronic device 130 is represented in the form of a general electronic device. The components of the electronic device 130 may include, but are not limited to: the at least one processor 131, the at least one memory 132, and a bus 133 that connects the various system components (including the memory 132 and the processor 131).
The memory 132 may include readable media in the form of volatile memory, such as Random Access Memory (RAM)1321 and/or cache memory 1322, and may further include Read Only Memory (ROM) 1323.
The electronic device 130 may also communicate with one or more external devices 134 (e.g., keyboard, pointing device, etc.), with one or more devices that enable a user to interact with the electronic device 130, and/or with any devices (e.g., router, modem, etc.) that enable the electronic device 130 to communicate with one or more other electronic devices. Such communication may occur via input/output (I/O) interfaces 135. Also, the electronic device 130 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network, such as the internet) via the network adapter 136. As shown, network adapter 136 communicates with other modules for electronic device 130 over bus 133. It should be understood that although not shown in FIG. 8, other hardware and/or software modules may be used in conjunction with electronic device 130, including but not limited to: microcode, device drivers, redundant processors, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
In some possible embodiments, aspects of a high-side power supply detection method provided by the present application may also be implemented in the form of a program product including program code for causing a computer device to perform the steps of a high-side power supply detection method according to various exemplary embodiments of the present application described above in this specification when the program product is run on the computer device.
The program product may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. A readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium include: an electrical connection having one or more wires, a portable 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 disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
The program product for high-side power detection of embodiments of the present application may employ a portable compact disk read-only memory (CD-ROM) and include program code, and may be executable on an electronic device. However, the program product of the present application is not limited thereto, and in this document, a readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A readable signal medium may include a propagated data signal with readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A readable signal medium may also be any readable medium that is not a readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code for carrying out operations of the present application may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the consumer electronic device, partly on the consumer electronic device, as a stand-alone software package, partly on the consumer electronic device and partly on a remote electronic device, or entirely on the remote electronic device or server. In the case of remote electronic devices, the remote electronic devices may be connected to the consumer electronic device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external electronic device (e.g., through the internet using an internet service provider).
It should be noted that although several units or sub-units of the apparatus are mentioned in the above detailed description, such division is merely exemplary and not mandatory. Indeed, the features and functions of two or more units described above may be embodied in one unit, according to embodiments of the application. Conversely, the features and functions of one unit described above may be further divided into embodiments by a plurality of units.
Further, while the operations of the methods of the present application are depicted in the drawings in a particular order, this does not require or imply that these operations must be performed in this particular order, or that all of the illustrated operations must be performed, to achieve desirable results. Additionally or alternatively, certain steps may be omitted, multiple steps combined into one step execution, and/or one step broken down into multiple step executions.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present application without departing from the spirit and scope of the application. Thus, if such modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is intended to include such modifications and variations as well.
Claims (12)
1. A high-side power supply detection method is characterized by being applied to a vehicle, and comprises the following steps:
after the ignition switch is electrified, judging whether the high-side power supply driving switch is in a driving state or not, and determining the driving state of a high-effective normally closed switch;
and determining whether the high-side power supply comes from an Electronic Control Unit (ECU) according to the driving state of the high-side power supply driving switch and the driving state of the high-effective normally closed switch.
2. The method of claim 1, wherein determining whether high-side power is from an ECU based on the drive state of the high-side power drive switch and the drive state of the high-activity normally closed switch comprises:
if the high-side power supply driving switch is in a driving state and the high-effective normally closed switch is in a driving state, determining that the high-side power supply comes from the ECU;
and if the high-side power supply driving switch is in a non-driving state and the high-effective normally closed switch is in a non-driving state, determining that the high-side power supply does not come from the ECU and sending an alarm indication.
3. The method of claim 1, wherein determining whether high-side power is from an ECU based on the drive state of the high-side power drive switch and the drive state of the high-activity normally closed switch comprises:
determining the measurement quantity of the digital input switch according to the driving state of the high-effective normally closed switch;
if the high-side power supply driving switch is in a driving state and the measurement value of the digital input switch is a first specified value, determining that the high-side power supply comes from the ECU;
and if the high-side power supply driving switch is in a non-driving state and the measurement value of the digital input switch is a second specified value, determining that the high-side power supply does not come from the ECU and sending an alarm indication.
4. The method of claim 3, wherein determining the measurement of the digital input switch based on the actuation state of the highly active normally closed switch comprises:
determining a state value of a highly active normally closed switch, the state value indicating a driving state of the highly active normally closed switch;
and performing negation operation on the state value of the high-effective normally closed switch to obtain the measurement quantity of the digital input switch.
5. The method according to any one of claims 1 to 4, further comprising:
after the ignition switch is powered on, timing is started;
stopping timing after determining whether the high-side power supply comes from the ECU, and determining the total timing time;
and if the total time length is longer than the preset time length, determining whether the determined high-side power supply comes from the ECU inaccurately, and sending an error indication.
6. A high-side power supply detection device, which is applied to a vehicle, is characterized by comprising:
the driving state determining module is used for judging whether the high-side power supply driving switch is in a driving state or not after the ignition switch is powered on and determining the driving state of the high-effective normally closed switch;
and the high-side power supply detection module is used for determining whether the high-side power supply comes from the ECU according to the driving state of the high-side power supply driving switch and the driving state of the high-effective normally closed switch.
7. The apparatus of claim 6, wherein the high-side power supply detection module, when performing the determination of whether the high-side power supply is from the ECU according to the driving state of the high-side power supply driving switch and the driving state of the high-active normally-closed switch, is configured to:
if the high-side power supply driving switch is in a driving state and the high-effective normally closed switch is in a driving state, determining that the high-side power supply comes from the ECU;
and if the high-side power supply driving switch is in a non-driving state and the high-effective normally closed switch is in a non-driving state, determining that the high-side power supply does not come from the ECU and sending an alarm indication.
8. The apparatus of claim 6, wherein the high-side power supply detection module, when performing the determination of whether the high-side power supply is from the ECU according to the driving state of the high-side power supply driving switch and the driving state of the high-active normally-closed switch, is configured to:
determining the measurement quantity of the digital input switch according to the driving state of the high-effective normally closed switch;
if the high-side power supply driving switch is in a driving state and the measurement value of the digital input switch is a first specified value, determining that the high-side power supply comes from the ECU;
and if the high-side power supply driving switch is in a non-driving state and the measurement value of the digital input switch is a second specified value, determining that the high-side power supply does not come from the ECU and sending an alarm indication.
9. The apparatus of claim 8, wherein the high-side power detection module, when performing the determination of the measurement of the digital input switch based on the actuation state of the high-activity normally-closed switch, is configured to:
determining a state value of a highly active normally closed switch, the state value indicating a driving state of the highly active normally closed switch;
and performing negation operation on the state value of the high-effective normally closed switch to obtain the measurement quantity of the digital input switch.
10. The apparatus of any of claims 6-9, wherein the driving state determination module is further configured to:
after the ignition switch is powered on, timing is started;
stopping timing after determining whether the high-side power supply comes from the ECU, and determining the total timing time;
and if the total time length is longer than the preset time length, determining whether the determined high-side power supply comes from the ECU inaccurately, and sending an error indication.
11. An electronic device comprising at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-5.
12. A computer storage medium, characterized in that the computer storage medium stores a computer program for causing a computer to execute the method of any one of claims 1-5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111330702.2A CN114167164A (en) | 2021-11-11 | 2021-11-11 | High-side power supply detection method and device, electronic equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111330702.2A CN114167164A (en) | 2021-11-11 | 2021-11-11 | High-side power supply detection method and device, electronic equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN114167164A true CN114167164A (en) | 2022-03-11 |
Family
ID=80478676
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111330702.2A Pending CN114167164A (en) | 2021-11-11 | 2021-11-11 | High-side power supply detection method and device, electronic equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114167164A (en) |
Citations (24)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP1972767A1 (en) * | 2007-03-23 | 2008-09-24 | Ford Global Technologies, LLC | A method for adapting a combustion engine control map |
CN101576736A (en) * | 2008-05-06 | 2009-11-11 | 联创汽车电子有限公司 | Power supply circuit of automobile electronic controller |
CN102278220A (en) * | 2011-07-01 | 2011-12-14 | 天津大学 | Novel free-wheeling circuit for electronically controlled injector of diesel engine |
JP2012001180A (en) * | 2010-06-21 | 2012-01-05 | Denso Corp | Control system for vehicle |
CN202841092U (en) * | 2012-08-07 | 2013-03-27 | 惠州市德赛西威汽车电子有限公司 | High-side switch output circuit with short-circuit protection function |
CN104265476A (en) * | 2014-08-14 | 2015-01-07 | 华南理工大学 | Diesel injection nozzle simulator with power feedback function and working method thereof |
WO2015118768A1 (en) * | 2014-02-06 | 2015-08-13 | 日立オートモティブシステムズ株式会社 | Load-driving circuit |
CN204827692U (en) * | 2015-07-20 | 2015-12-02 | 郑州艾毅电子科技有限公司 | Special gas ECU of DVVT gasoline car engine |
CN105974206A (en) * | 2016-04-25 | 2016-09-28 | 郑州宇通客车股份有限公司 | High-side/low-side effective signal detection circuit |
CN106814723A (en) * | 2015-11-27 | 2017-06-09 | 长城汽车股份有限公司 | The test device and test system of entire car controller |
WO2017166613A1 (en) * | 2016-03-29 | 2017-10-05 | 乐视控股(北京)有限公司 | Method and apparatus for controlling terminal usage duration, and electronic device |
CN109802362A (en) * | 2019-01-21 | 2019-05-24 | 长沙硕博电子科技股份有限公司 | The intelligent more high side switches backward flowing preventing devices of one kind and method |
JP2019110521A (en) * | 2017-12-15 | 2019-07-04 | ローム株式会社 | Switch device |
CN110284983A (en) * | 2019-06-28 | 2019-09-27 | 潍柴动力股份有限公司 | A kind of fuel injection control circuit and fuel injection control method |
CN111142502A (en) * | 2019-12-30 | 2020-05-12 | 潍柴动力股份有限公司 | Processing method, device and equipment for ECU detection and storage medium |
CN211127114U (en) * | 2019-11-12 | 2020-07-28 | 南京好世通电气有限公司 | High-side switch output circuit of high-current automobile |
CN111830867A (en) * | 2020-06-28 | 2020-10-27 | 东风电驱动系统有限公司 | Three-state switch signal acquisition circuit and method |
CN111900966A (en) * | 2020-07-17 | 2020-11-06 | 蜂巢能源科技有限公司 | Method and device for detecting driving circuit and vehicle |
US20210011088A1 (en) * | 2019-07-12 | 2021-01-14 | Yazaki Corporation | Detection device |
CN112285550A (en) * | 2020-10-29 | 2021-01-29 | 杭州涂鸦信息技术有限公司 | Switch power-off detection method and device, computer equipment and readable storage medium |
CN112630572A (en) * | 2020-12-24 | 2021-04-09 | 潍柴动力股份有限公司 | Vehicle load drive failure diagnosis method and device, storage medium, and electronic device |
CN112730931A (en) * | 2020-12-17 | 2021-04-30 | 潍柴动力股份有限公司 | Fault diagnosis method, apparatus, device and medium for PWM-driven load |
CN112964956A (en) * | 2021-03-19 | 2021-06-15 | 潍柴动力股份有限公司 | Method and device for detecting electromagnetic interference of vehicle |
CN214543595U (en) * | 2020-12-24 | 2021-10-29 | 潍柴动力股份有限公司 | High-side drive short-circuit protection circuit, high-side drive circuit and electronic control system |
-
2021
- 2021-11-11 CN CN202111330702.2A patent/CN114167164A/en active Pending
Patent Citations (24)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP1972767A1 (en) * | 2007-03-23 | 2008-09-24 | Ford Global Technologies, LLC | A method for adapting a combustion engine control map |
CN101576736A (en) * | 2008-05-06 | 2009-11-11 | 联创汽车电子有限公司 | Power supply circuit of automobile electronic controller |
JP2012001180A (en) * | 2010-06-21 | 2012-01-05 | Denso Corp | Control system for vehicle |
CN102278220A (en) * | 2011-07-01 | 2011-12-14 | 天津大学 | Novel free-wheeling circuit for electronically controlled injector of diesel engine |
CN202841092U (en) * | 2012-08-07 | 2013-03-27 | 惠州市德赛西威汽车电子有限公司 | High-side switch output circuit with short-circuit protection function |
WO2015118768A1 (en) * | 2014-02-06 | 2015-08-13 | 日立オートモティブシステムズ株式会社 | Load-driving circuit |
CN104265476A (en) * | 2014-08-14 | 2015-01-07 | 华南理工大学 | Diesel injection nozzle simulator with power feedback function and working method thereof |
CN204827692U (en) * | 2015-07-20 | 2015-12-02 | 郑州艾毅电子科技有限公司 | Special gas ECU of DVVT gasoline car engine |
CN106814723A (en) * | 2015-11-27 | 2017-06-09 | 长城汽车股份有限公司 | The test device and test system of entire car controller |
WO2017166613A1 (en) * | 2016-03-29 | 2017-10-05 | 乐视控股(北京)有限公司 | Method and apparatus for controlling terminal usage duration, and electronic device |
CN105974206A (en) * | 2016-04-25 | 2016-09-28 | 郑州宇通客车股份有限公司 | High-side/low-side effective signal detection circuit |
JP2019110521A (en) * | 2017-12-15 | 2019-07-04 | ローム株式会社 | Switch device |
CN109802362A (en) * | 2019-01-21 | 2019-05-24 | 长沙硕博电子科技股份有限公司 | The intelligent more high side switches backward flowing preventing devices of one kind and method |
CN110284983A (en) * | 2019-06-28 | 2019-09-27 | 潍柴动力股份有限公司 | A kind of fuel injection control circuit and fuel injection control method |
US20210011088A1 (en) * | 2019-07-12 | 2021-01-14 | Yazaki Corporation | Detection device |
CN211127114U (en) * | 2019-11-12 | 2020-07-28 | 南京好世通电气有限公司 | High-side switch output circuit of high-current automobile |
CN111142502A (en) * | 2019-12-30 | 2020-05-12 | 潍柴动力股份有限公司 | Processing method, device and equipment for ECU detection and storage medium |
CN111830867A (en) * | 2020-06-28 | 2020-10-27 | 东风电驱动系统有限公司 | Three-state switch signal acquisition circuit and method |
CN111900966A (en) * | 2020-07-17 | 2020-11-06 | 蜂巢能源科技有限公司 | Method and device for detecting driving circuit and vehicle |
CN112285550A (en) * | 2020-10-29 | 2021-01-29 | 杭州涂鸦信息技术有限公司 | Switch power-off detection method and device, computer equipment and readable storage medium |
CN112730931A (en) * | 2020-12-17 | 2021-04-30 | 潍柴动力股份有限公司 | Fault diagnosis method, apparatus, device and medium for PWM-driven load |
CN112630572A (en) * | 2020-12-24 | 2021-04-09 | 潍柴动力股份有限公司 | Vehicle load drive failure diagnosis method and device, storage medium, and electronic device |
CN214543595U (en) * | 2020-12-24 | 2021-10-29 | 潍柴动力股份有限公司 | High-side drive short-circuit protection circuit, high-side drive circuit and electronic control system |
CN112964956A (en) * | 2021-03-19 | 2021-06-15 | 潍柴动力股份有限公司 | Method and device for detecting electromagnetic interference of vehicle |
Non-Patent Citations (2)
Title |
---|
MWU2_英飞凌: "关于高边功率开关的性能分析和应用介绍", 《百度》, 23 September 2019 (2019-09-23), pages 1 - 8 * |
近海: "汽车电子系统中的高、低边驱动电路", 《百度》, 30 December 2019 (2019-12-30), pages 1 - 8 * |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109484185B (en) | Power battery system low-voltage power supply fault diagnosis method and device and electric automobile | |
CN108639881B (en) | Control method and device for elevator brake, equipment and storage medium | |
CN102749981B (en) | Method and system for controlling hard disk electrification in hard disk array | |
CN105224439A (en) | Method and device for detecting CPU occupancy rate of terminal APP and terminal | |
CN204161132U (en) | Electronlmobil emergency power-off device and system | |
WO2023098124A1 (en) | Parking air conditioner and control method and apparatus therefor, and computer readable storage medium | |
CN104950238A (en) | Fault detection method and fault detection device for current converter and IGBT drive circuit thereof | |
CN113050960B (en) | OTA upgrading method and device, vehicle-mounted terminal and storage medium | |
CN114474149B (en) | Automatic test method, device, server and readable storage medium | |
US8788238B2 (en) | System and method for testing power supplies of server | |
CN114167164A (en) | High-side power supply detection method and device, electronic equipment and storage medium | |
CN114537146B (en) | Vehicle control method and device, electronic equipment and storage medium | |
CN116292360A (en) | Method, system, terminal and storage medium for realizing fan rotating speed by combining BMC and CPLD | |
CN114475475B (en) | Vehicle storage battery management method and device and electronic equipment | |
CN110696807B (en) | Engine shutdown control method under traffic jam condition, vehicle and storage medium | |
CN114123107A (en) | Control system and method for vehicle motor, storage medium and vehicle with system | |
CN114148269A (en) | Method, device and equipment for processing vehicle abnormity and storage medium | |
CN105811371A (en) | Direct current motor control system fault diagnosis method and device | |
CN114263520B (en) | Detecting NO x Method and device for sensor precision | |
CN113309605B (en) | Method for monitoring cooling efficiency of vehicle intercooler | |
CN117841683B (en) | Vehicle recovery power control method, system, terminal equipment and storage medium | |
US11762791B1 (en) | System, method, and non-transitory computer readable medium for detecting baseboard management controller | |
CN117104209B (en) | Vacuum pump control method, device, equipment, system, automobile and medium | |
CN116461337A (en) | Method and device for identifying battery power interruption fault of electric automobile | |
CN117572231A (en) | Switch fault detection method and device, electronic equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |