High-side power supply detection method, device, electronic device and storage medium

After the car ignition switch is powered on, the status of the high-side power supply drive switch and the high-effective normally closed switch are determined whether the high-side power supply comes from the ECU, which solves the risk of damage to the ECU digital input channel of the high-side power supply, and realizes accurate detection and alarm mechanism improve detection accuracy.

CN114167164BActive Publication Date: 2024-11-19WEICHAI POWER CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111330702.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-11-11
Publication Date
2024-11-19
Estimated Expiration
2041-11-11

AI Technical Summary

Technical Problem

In the field of automotive integrated circuits, when high-side power supply comes from the vehicle, there is a risk of damage to the digital input channels of the electronic control unit (ECU), but there is a lack of effective detection methods.

Method used

After the ignition switch is powered on, determine the driving status of the high-side power supply drive switch and the high-effective normally-closed switch, and determine whether the high-side power supply comes from the ECU to avoid damage to the digital input channel of the ECU.

Benefits of technology

Accurate detection of high-side power supply sources is achieved, damage to the ECU is avoided, and the accuracy of detection is improved through alarm indication and timing mechanism.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114167164B_ABST
    Figure CN114167164B_ABST
Patent Text Reader

Abstract

The present application discloses a high-side power supply detection method, device, electronic device and storage medium for detecting whether the high-side power supply comes from the ECU. In an embodiment of the present application, after the ignition switch is powered on, it is determined whether the high-side power supply drive switch is in a driving state, and the driving state of the high-effective normally closed switch is determined; according to the driving state of the high-side power supply drive switch and the driving state of the high-effective normally closed switch, it is determined whether the high-side power supply comes from the ECU. The above method can accurately detect whether the high-side power supply comes from the ECU.
Need to check novelty before this filing date? Find Prior Art

Description

Background Art

[0002] In the related art, in the field of automotive integrated circuits, the high-side power supply is required to come from the Electronic Control Unit (ECU). If the high-side power supply comes from the vehicle power supply, there is a risk of damaging the digital input channel of the ECU. However, there is no detection method in the related art to determine whether the high-side power supply comes from the ECU. Summary of the invention

[0003] The purpose of the present application is to provide a high-side power supply detection method, device, electronic device and storage medium for detecting whether the high-side power supply comes from an ECU.

[0004] 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:

[0005] After the ignition switch is powered on, determine whether the high-side power supply drive switch is in the driving state, and determine the driving state of the high-effective normally closed switch;

[0006] 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.

[0007] In the embodiment of the present application, since the driving state of the high-effective normally closed switch is different when the high-side power supply drive switch is driven and not driven, and the driving state of the high-effective normally closed switch is different when the power supply comes from the ECU and when the power supply does not come from the ECU, it is possible to determine whether the power supply comes from the ECU by the driving state of the high-side power supply drive switch and the driving state of the high-effective normally closed switch, thereby avoiding damage to the digital input channel of the ECU.

[0008] In some possible embodiments, determining whether the high-side power supply comes from the ECU according to the driving state of the high-side power supply drive switch and the driving state of the high-effective normally closed switch includes:

[0009] If the driving states of the high-side power supply driving switch and the high-effective normally closed switch are consistent, it is determined that the high-side power supply comes from the ECU;

[0010] If the driving states of the high-side power supply driving switch and the high-effective normally closed switch are inconsistent, it is determined that the high-side power supply does not come from the ECU, and an alarm indication is issued.

[0011] In the present application, since the driving state of the high-effective normally closed switch is related to whether the power supply comes from the ECU, it can be determined whether the power supply comes from the ECU based on the driving state of the high-effective normally closed switch.

[0012] In some possible embodiments, determining whether the high-side power supply comes from the ECU according to the driving state of the high-side power supply drive switch and the driving state of the high-effective normally closed switch includes:

[0013] Determine the measurement quantity of the digital input switch based on the actuation state of the active high normally closed switch;

[0014] If the high-side power supply drive switch is in a driving state and the measured value of the digital input switch is a first specified value, it is determined that the high-side power supply comes from the ECU;

[0015] If the high-side power supply drive switch is in a non-driving state and the measured value of the digital input switch is a second specified value, it is determined that the high-side power supply does not come from the ECU, and an alarm indication is issued.

[0016] In the present application, since the value of the measured quantity is different 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 measured quantity.

[0017] In some possible embodiments, determining the measurement value of the digital input switch according to the driving state of the high-effective normally closed switch includes:

[0018] Determining a state value of an effective-high normally closed switch, the state value indicating a driving state of the effective-high normally closed switch;

[0019] The state value of the high-effective normally closed switch is inverted to obtain the measurement value of the digital input switch.

[0020] In the present application, the measured value can be obtained by inverting the high-effective normally closed switch, so it can be determined whether the high-side power supply comes from the ECU based on the value of the measured value.

[0021] In some possible embodiments, the method further includes:

[0022] After the ignition switch is powered on, the timing starts;

[0023] After determining whether the high-side power supply comes from the ECU, stop timing and determine the total timing duration;

[0024] If the total duration is greater than the preset duration, it is determined that whether the high-side power supply determined this time comes from the ECU is inaccurate, and an error indication is issued.

[0025] In an embodiment of the present application, after exceeding the preset time, the user may adjust the high-side power supply drive switch, which may cause the determination of whether the high-side power supply comes from the ECU to be inaccurate. Therefore, if it is not determined whether the high-side power supply comes from the ECU after exceeding the preset time, an error prompt is issued to prompt the user that the determination of whether the high-side power supply comes from the ECU this time is inaccurate.

[0026] In a second aspect, the present application further provides a high-side power supply detection device, the device comprising:

[0027] A drive state determination module is used to determine whether the high-side power supply drive switch is in a drive state after the ignition switch is powered on, and to determine the drive state of the high-effective normally closed switch;

[0028] The high-side power supply detection module is used to determine 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.

[0029] In some possible embodiments, when the high-side power supply detection module determines whether the high-side power supply comes from the ECU according to the driving state of the high-side power supply drive switch and the driving state of the high-effective normally closed switch, the high-side power supply detection module is configured as follows:

[0030] If the driving states of the high-side power supply driving switch and the high-effective normally closed switch are consistent, it is determined that the high-side power supply comes from the ECU;

[0031] If the driving states of the high-side power supply driving switch and the high-effective normally closed switch are inconsistent, it is determined that the high-side power supply does not come from the ECU, and an alarm indication is issued.

[0032] In some possible embodiments, when the high-side power supply detection module determines whether the high-side power supply comes from the ECU according to the driving state of the high-side power supply drive switch and the driving state of the high-effective normally closed switch, the high-side power supply detection module is configured as follows:

[0033] Determine the measurement quantity of the digital input switch based on the actuation state of the active high normally closed switch;

[0034] If the high-side power supply drive switch is in a driving state and the measured value of the digital input switch is a first specified value, it is determined that the high-side power supply comes from the ECU;

[0035] If the high-side power supply drive switch is in a non-driving state and the measured value of the digital input switch is a second specified value, it is determined that the high-side power supply does not come from the ECU, and an alarm indication is issued.

[0036] In some possible embodiments, when the high-side power supply detection module determines the measurement value of the digital input switch according to the driving state of the high-effective normally closed switch, it is configured as follows:

[0037] Determining a state value of an effective-high normally closed switch, the state value indicating a driving state of the effective-high normally closed switch;

[0038] The state value of the high-effective normally closed switch is inverted to obtain the measurement value of the digital input switch.

[0039] In some possible embodiments, the driving state determination module is further configured to:

[0040] After the ignition switch is powered on, the timing starts;

[0041] After determining whether the high-side power supply comes from the ECU, stop timing and determine the total timing duration;

[0042] If the total duration is greater than the preset duration, it is determined that whether the high-side power supply determined this time comes from the ECU is inaccurate, and an error indication is issued.

[0043] In the third aspect, another embodiment of the present application also provides an electronic device, comprising at least one processor; and a memory communicatively connected 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 so that the at least one processor can execute any method provided in the embodiment of the first aspect of the present application.

[0044] In a fourth aspect, another embodiment of the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and the computer program is used to enable a computer to execute any method provided in the embodiment of the first aspect of the present application.

[0045] Other features and advantages of the present application will be described in the following description, and partly become apparent from the description, or be understood by practicing the present application. The purpose and other advantages of the present application can be realized and obtained by the structures specifically pointed out in the written description, claims, and drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0046] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments of the present application will be briefly introduced below. Obviously, the drawings introduced below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0047] Figure 1 An application scenario diagram of a high-side power supply detection method provided in an embodiment of the present application;

[0048] Figure 2 An overall flow chart of a high-side power supply detection method provided in an embodiment of the present application;

[0049] Figure 3 A schematic diagram of a high-side power supply detection method for determining whether the high-side power supply comes from the ECU provided in an embodiment of the present application;

[0050] Figure 4 A schematic diagram of an alarm indication of a high-side power supply detection method provided in an embodiment of the present application;

[0051] Figure 5 A high-side power supply detection method provided in an embodiment of the present application is a flowchart for determining whether the high-side power supply comes from the ECU;

[0052] Figure 6 A high-side power supply detection method provided in an embodiment of the present application is a flowchart for determining whether the high-side power supply comes from the ECU;

[0053] Figure 7 A schematic diagram of a high-side power supply detection method provided in an embodiment of the present application;

[0054] Figure 8 A schematic diagram of an electronic device for a high-side power supply detection method provided in an embodiment of the present application. DETAILED DESCRIPTION

[0055] In order to enable ordinary persons in the art to better understand the technical solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the accompanying drawings.

[0056] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order 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. On the contrary, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.

[0057] For ease of understanding, the professional terms in this application are first explained below:

[0058] ECU: Electronic control unit, also known as "driving computer", "on-board computer", etc.

[0059] High-Side Supply Driver Switch: Cost-effective integration of analog circuitry and robust load / output drivers.

[0060] High-effective normally closed switch: When not subject to external force, the contacts in the disconnected state are normally open contacts, and the contacts in the closed state are normally closed contacts.

[0061] Ignition switch: The switch of the ignition system (usually using a key), which can freely open or close the main circuit of the ignition coil, and is also applicable to other electrical circuits. The ignition switch is commonly known as the master switch, master switch or master key. It is the main gate that controls the entire vehicle circuit system.

[0062] The inventors have found that in the field of automotive integrated circuits, high-side power supply is required to come from the ECU. If the high-side power supply comes from the power supply of the entire vehicle, there is a risk of damage to the digital input channel of the ECU. However, there is no method for detecting whether the high-side power supply comes from the ECU in the relevant technology.

[0063] In view of this, the present application proposes a high-side power supply detection method, device, 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 powered on, determine whether the high-side power supply drive switch is in a driving state, and determine the driving state of the high-effective normally closed switch; determine whether the high-side power supply comes from the ECU based on the driving state of the high-side power supply drive switch and the driving state of the high-effective normally closed switch.

[0064] like Figure 1 As shown, it is an application scenario diagram of the high-side power supply detection method in the embodiment of the present application. The diagram includes: an ignition switch 10, a high-side power supply drive switch 20, a high-effective normally closed switch 30, and an ECU 40;

[0065] In the present application, after the ignition switch 10 is powered on, the ECU 40 determines whether the high-side power supply drive switch 20 is in a driving state, and determines the driving state of the high-effective normally closed switch 30; based on the driving state of the high-side power supply drive switch 20 and the driving state of the high-effective normally closed switch 30, it determines whether the high-side power supply comes from the ECU 40.

[0066] For ease of understanding, the high-side power supply detection method proposed in this application is described in detail below with reference to the accompanying drawings:

[0067] like Figure 2 As shown, it is an overall flow chart of a high-side power supply detection method provided in an embodiment of the present application, wherein:

[0068] In step 201: after the ignition switch is powered on, it is determined whether the high-side power supply drive switch is in a driving state, and the driving state of the high-effective normally closed switch is determined;

[0069] In step 202: it is determined 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.

[0070] Since the driving state of the high-side power supply drive switch is different when the high-side power supply drive switch is in different states, whether the power supply comes from the ECU is different, therefore, in this application, whether the high-side power supply comes from the ECU can be determined based on the driving state of the high-side power supply drive switch and the driving state of the high-side effective normally closed switch.

[0071] The high-side power supply detection method provided in the embodiment of the present application is described in detail below according to different driving states of the high-side power supply drive switch and the high-effective normally closed switch:

[0072] 1. The high-side power supply drive switch is in the driving state and the high-effective normally closed switch is in the driving state.

[0073] In some embodiments, since both the high-side power supply drive switch and the high-effective normally closed switch are digital input switches, the state value 1 can be used to indicate that the switch is in the driving state, and the state value 0 can be used to indicate that the switch is in the non-driving state; the state value 0 can also be used to indicate that the switch is in the driving state, and the state value 1 can be used to indicate that the switch is in the non-driving state. In the following, the state value 1 is used to indicate that the switch is in the driving state, and the state value 0 is used to indicate that the switch is in the non-driving state, and no further description will be given later.

[0074] When the high-side power supply comes from the ECU, the high-side power supply drive switch can be in the driving state within a preset time length, and the high-effective normally closed switch can be in the driving state within the preset time length.

[0075] 2. The high-side power supply drive switch is in the driving state and the high-effective normally closed switch is in the non-driving state

[0076] The high-side power supply drive switch is in the driving state, that is, the state value is 1, and the high-effective normally closed switch is in the non-driving state, that is, the state value is 0; it can be determined that the high-side power supply does not come from the ECU.

[0077] 3. The high-side power supply drive switch is in the non-driven state and the high-effective normally closed switch is in the driven state

[0078] The high-side power supply drive switch is in the non-driven state, that is, the state value is 0, and the high-effective normally closed switch is in the driven state, that is, the state value is 1; it can be determined that the high-side power supply does not come from the ECU.

[0079] 4. The high-side power supply drive switch is in the non-driven state and the high-effective normally closed switch is in the non-driven state

[0080] The high-side power supply drive switch is in a non-driven state, that is, the state value is 0, and the high-effective normally closed switch is in a non-driven state, that is, the state value is 0; it can be determined that the high-side power supply comes from the ECU.

[0081] In summary, a state table can be obtained to determine whether the high-side power supply comes from the ECU, as shown in Table 1:

[0082]

[0083] Table 1

[0084] In actual application, those skilled in the art may determine whether the high-side power supply comes from the ECU according to whether an alarm indication is received, or may determine whether the high-side power supply comes from the ECU by checking Table 1.

[0085] In some embodiments, a measurement quantity is usually used to identify the driving state of a high-effective normally closed switch. Therefore, in the present application, a measurement quantity may also be used. Figure 3 The method shown is to determine whether the high-side power supply comes from the ECU, where:

[0086] In step 301: determining the measurement value of the digital input switch according to the driving state of the high effective normally closed switch;

[0087] In some embodiments, determining the measurement value of the digital input switch can be implemented as follows: first determine the state value of the high-effective normally closed switch, the state value indicating the driving state of the high-effective normally closed switch; then invert the state value of the high-effective normally closed switch to obtain the measurement value of the digital input switch.

[0088] For example: if the state value of a high-effective normally closed switch is 1, the measurement value of the digital input switch is 0; if the state value of a high-effective normally closed switch is 0, the measurement value of the digital input switch is 1.

[0089] In step 302: if the high-side power supply driving switch is in the driving state and the measured value of the digital input switch is a first specified value, it is determined that the high-side power supply comes from the ECU;

[0090] In step 303: if the high-side power supply drive switch is in a non-driving state and the measured value of the digital input switch is a second specified value, it is determined that the high-side power supply does not come from the ECU, and an alarm indication is issued.

[0091] In some embodiments, the alarm indication may include any one or combination of the following: a reminder indication, a beep, or a flashing indicator light, wherein the reminder indication is used to instruct the user to modify or terminate a line. Figure 4 The prompt box shown prompts the user to modify the line or end the line. When the prompt box appears, the indicator light flashes.

[0092] In other embodiments, since the user may adjust the high-side power supply drive switch and the high-effective normally closed switch according to their 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, otherwise the detection result will be inaccurate. Therefore, in an embodiment of the present application, the timing starts at the same time the ignition switch is powered on, and the timing is stopped after determining whether the high-side power supply comes from the ECU, and the total timing time is determined; if the total time is greater than the preset time, it is determined that the high-side power supply determined this time is inaccurate, and an error indication is issued.

[0093] For ease of understanding, the overall process of a high-side power supply detection method provided in an embodiment of the present application is described in detail in two cases below:

[0094] 1. Determine whether the high-side power supply comes from the ECU based on the driving state of the high-side power supply drive switch and the driving state of the high-effective normally closed switch, such as Figure 5 As shown:

[0095] In step 501: the ignition switch is powered on;

[0096] In step 502: determine whether the high-side power supply drive switch is in a driving state, if it is in a driving state, proceed to step 503, if it is in a non-driving state, proceed to step 504;

[0097] In step 503, it is determined whether the high-effective normally closed switch is in the driving state. If it is in the driving state, it proceeds to step 505, otherwise it proceeds to step 506:

[0098] In step 504: determine whether the high-effective normally closed switch is in the driving state. If it is in the driving state, proceed to step 506, otherwise proceed to step 505:

[0099] In step 505: determine that the high-side power supply comes from the ECU;

[0100] In step 506: determining that the high-side power supply does not come from the ECU, and issuing an alarm indication;

[0101] 2. Determine whether the high-side power supply comes from the ECU based on the measurement of the digital input switch, such as Figure 6 As shown:

[0102] In step 611: determining the measurement value of the digital input switch according to the driving state of the high effective normally closed switch;

[0103] In step 612: determine whether the high-side power supply drive switch is in a driving state, if it is in a driving state, proceed to step 613, otherwise proceed to step 614;

[0104] In step 613: determine whether the measurement value of the digital input switch is the first specified value, if it is the first specified value, proceed to step 615, otherwise proceed to step 616;

[0105] In step 614: determine whether the measurement value of the digital input switch is the second specified value, if it is the second specified value, proceed to step 615, otherwise proceed to step 616;

[0106] In step 615: determining that the high-side power supply comes from the ECU;

[0107] In step 616: determine that the high-side power supply does not come from the ECU, and issue a warning indication.

[0108] like Figure 7 As shown, based on the same inventive concept, a high-side power supply detection device 700 is proposed, comprising:

[0109] The driving state determination module 7001 is used to determine whether the high-side power supply driving switch is in the driving state after the ignition switch is powered on, and to determine the driving state of the high-effective normally closed switch;

[0110] The high-side power supply detection module 7002 is used to determine 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.

[0111] In some possible embodiments, when the high-side power supply detection module determines whether the high-side power supply comes from the ECU according to the driving state of the high-side power supply drive switch and the driving state of the high-effective normally closed switch, the high-side power supply detection module is configured as follows:

[0112] If the driving states of the high-side power supply driving switch and the high-effective normally closed switch are consistent, it is determined that the high-side power supply comes from the ECU;

[0113] If the driving states of the high-side power supply driving switch and the high-effective normally closed switch are inconsistent, it is determined that the high-side power supply does not come from the ECU, and an alarm indication is issued.

[0114] In some possible embodiments, when the high-side power supply detection module determines whether the high-side power supply comes from the ECU according to the driving state of the high-side power supply drive switch and the driving state of the high-effective normally closed switch, the high-side power supply detection module is configured as follows:

[0115] Determine the measurement quantity of the digital input switch based on the actuation state of the active high normally closed switch;

[0116] If the high-side power supply drive switch is in a driving state and the measured value of the digital input switch is a first specified value, it is determined that the high-side power supply comes from the ECU;

[0117] If the high-side power supply drive switch is in a non-driving state and the measured value of the digital input switch is a second specified value, it is determined that the high-side power supply does not come from the ECU, and an alarm indication is issued.

[0118] In some possible embodiments, when the high-side power supply detection module determines the measurement value of the digital input switch according to the driving state of the high-effective normally closed switch, it is configured as follows:

[0119] Determining a state value of an effective-high normally closed switch, the state value indicating a driving state of the effective-high normally closed switch;

[0120] The state value of the high-effective normally closed switch is inverted to obtain the measurement value of the digital input switch.

[0121] In some possible embodiments, before the ignition switch is powered on, the driving state determination module is further configured to:

[0122] Start timing;

[0123] After determining whether the high-side power supply comes from the ECU, stop timing and determine the total timing duration;

[0124] If the total duration is greater than the preset duration, it is determined that whether the high-side power supply determined this time comes from the ECU is inaccurate, and an error indication is issued.

[0125] After introducing the high-side power supply detection method and device according to an exemplary embodiment of the present application, next, an electronic device according to another exemplary embodiment of the present application is introduced.

[0126] Those skilled in the art will appreciate that various aspects of the present application may be implemented as a system, method or program product. Therefore, various aspects of the present application may be specifically implemented in the following forms, namely: a complete hardware implementation, a complete software implementation (including firmware, microcode, etc.), or a combination of hardware and software, which may be collectively referred to as "circuit", "module" or "system" herein.

[0127] In some possible implementations, the electronic device according to the present application may include at least one processor and at least one memory. The memory stores program code, and when the program code is executed by the processor, the processor executes the steps of the high-side power supply detection method according to various exemplary implementations of the present application described above in this specification.

[0128] Refer to the following Figure 8 The electronic device 130 according to this embodiment of the present application is described. Figure 8 The electronic device 130 shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0129] like Figure 8 As shown, the electronic device 130 is 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 connecting different system components (including the memory 132 and the processor 131).

[0130] Bus 133 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, a processor, or a local bus using any of a variety of bus architectures.

[0131] The memory 132 may include a readable medium in the form of a volatile memory, such as a random access memory (RAM) 1321 and / or a cache memory 1322 , and may further include a read-only memory (ROM) 1323 .

[0132] The memory 132 may also include a program / utility 1325 having a set (at least one) of program modules 1324, such program modules 1324 including but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment.

[0133] The electronic device 130 may also communicate with one or more external devices 134 (e.g., keyboards, pointing devices, etc.), may communicate with one or more devices that enable a user to interact with the electronic device 130, and / or communicate with any device that enables the electronic device 130 to communicate with one or more other electronic devices (e.g., routers, modems, etc.). Such communication may be performed via an input / output (I / O) interface 135. Furthermore, the electronic device 130 may also 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 a network adapter 136. As shown, the network adapter 136 communicates with other modules for the electronic device 130 via a bus 133. It should be understood that although Figure 8 Not shown, other hardware and / or software modules may be used in conjunction with the 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.

[0134] In some possible implementations, various aspects of a high-side power supply detection method provided in the present application may also be implemented in the form of a program product, which includes a program code. When the program product is run on a computer device, the program code is used to enable the computer device to execute the steps of a high-side power supply detection method according to various exemplary implementations of the present application described above in this specification.

[0135] The program product may adopt any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination thereof. More specific examples (non-exhaustive list) of readable storage media include: an electrical connection with 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 disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof.

[0136] The program product for high-side power supply detection of the embodiment of the present application can adopt a portable compact disk read-only memory (CD-ROM) and include program code, and can be run on an electronic device. However, the program product of the present application is not limited to this. In this document, a readable storage medium can be any tangible medium containing or storing a program, which can be used by or in combination with an instruction execution system, an apparatus or a device.

[0137] A readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, wherein readable program code is carried. Such propagated data signals may take a variety of forms, including, but not limited to, electromagnetic signals, optical signals, or any suitable combination of the foregoing. A readable signal medium may also be any readable medium other than a readable storage medium, which may transmit, propagate, or transfer a program for use by or in conjunction with an instruction execution system, apparatus, or device.

[0138] The program code for performing the operation of the present application can be written in any combination of one or more programming languages, including object-oriented programming languages, such as Java, C++, etc., and also conventional procedural programming languages, such as "C" language or similar programming languages. The program code can be executed entirely on the user electronic device, partially on the user device, as an independent software package, partially on the user electronic device and partially on the remote electronic device, or completely on the remote electronic device or server. In the case of a remote electronic device, the remote electronic device can be connected to the user electronic device through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external electronic device (for example, using an Internet service provider to connect through the Internet).

[0139] It should be noted that, although several units or subunits of the device are mentioned in the above detailed description, this division is merely exemplary and not mandatory. In fact, according to the embodiments of the present application, the features and functions of two or more units described above can be embodied in one unit. Conversely, the features and functions of one unit described above can be further divided into multiple units to be embodied.

[0140] In addition, although the operations of the method of the present application are described in a specific order in the drawings, this does not require or imply that the operations must be performed in this specific order, or that all the operations shown must be performed to achieve the desired results. Additionally or alternatively, some steps may be omitted, multiple steps may be combined into one step, and / or one step may be decomposed into multiple steps.

[0141] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.

[0142] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the present application. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0143] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0144] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process in the computer or other programmable device. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0145] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these 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 also intended to include these modifications and variations.

Claims

1. A high-side power supply detection method, characterized in that: Applied in a vehicle, the method comprises: After the ignition switch is powered on, determine whether the high-side power supply drive switch is in the driving state, and determine the driving state of the high-effective normally closed switch; Whether the high-side power supply comes from an electronic control unit 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.

2. The method according to claim 1, characterized in that The determining whether the high-side power supply comes from the ECU according to the driving state of the high-side power supply drive switch and the driving state of the high-effective normally closed switch includes: If the driving states of the high-side power supply driving switch and the high-effective normally closed switch are consistent, it is determined that the high-side power supply comes from the ECU; If the driving states of the high-side power supply driving switch and the high-effective normally closed switch are inconsistent, it is determined that the high-side power supply does not come from the ECU, and an alarm indication is issued.

3. The method according to claim 1, characterized in that The determining whether the high-side power supply comes from the ECU according to the driving state of the high-side power supply drive switch and the driving state of the high-effective normally closed switch includes: Determine the measurement quantity of the digital input switch based on the actuation state of the active high normally closed switch; If the high-side power supply drive switch is in a driving state and the measured value of the digital input switch is a first specified value, it is determined that the high-side power supply comes from the ECU; If the high-side power supply drive switch is in a non-driving state and the measured value of the digital input switch is a second specified value, it is determined that the high-side power supply does not come from the ECU, and an alarm indication is issued.

4. The method according to claim 3, characterized in that Determining the measurement value of the digital input switch according to the driving state of the high-effective normally closed switch includes: Determining a state value of an effective-high normally closed switch, the state value indicating a driving state of the effective-high normally closed switch; The state value of the high-effective normally closed switch is inverted to obtain the measurement value of the digital input switch.

5. The method according to any one of claims 1 to 4, characterized in that: The method further comprises: After the ignition switch is powered on, the timing starts; After determining whether the high-side power supply comes from the ECU, stop timing and determine the total timing duration; If the total duration is greater than the preset duration, it is determined that whether the high-side power supply determined this time comes from the ECU is inaccurate, and an error indication is issued.

6. A high-side power supply detection device, characterized in that: Applied in a vehicle, the device comprises: A drive state determination module is used to determine whether the high-side power supply drive switch is in a drive state after the ignition switch is powered on, and to determine the drive state of the high-effective normally closed switch; The high-side power supply detection module is used to determine 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 device according to claim 6, characterized in that When the high-side power supply detection module determines whether the high-side power supply comes from the ECU according to the driving state of the high-side power supply drive switch and the driving state of the high-effective normally closed switch, the high-side power supply detection module is configured as follows: If the driving states of the high-side power supply driving switch and the high-effective normally closed switch are consistent, it is determined that the high-side power supply comes from the ECU; If the driving states of the high-side power supply driving switch and the high-effective normally closed switch are inconsistent, it is determined that the high-side power supply does not come from the ECU, and an alarm indication is issued.

8. The device according to claim 6, characterized in that When the high-side power supply detection module determines whether the high-side power supply comes from the ECU according to the driving state of the high-side power supply drive switch and the driving state of the high-effective normally closed switch, the high-side power supply detection module is configured as follows: Determine the measurement quantity of the digital input switch based on the actuation state of the active high normally closed switch; If the high-side power supply drive switch is in a driving state and the measured value of the digital input switch is a first specified value, it is determined that the high-side power supply comes from the ECU; If the high-side power supply drive switch is in a non-driving state and the measured value of the digital input switch is a second specified value, it is determined that the high-side power supply does not come from the ECU, and an alarm indication is issued.

9. The device according to claim 8, characterized in that When the high-side power supply detection module determines the measurement value of the digital input switch according to the driving state of the high-effective normally closed switch, it is configured as follows: Determining a state value of an effective-high normally closed switch, the state value indicating a driving state of the effective-high normally closed switch; The state value of the high-effective normally closed switch is inverted to obtain the measurement value of the digital input switch.

10. The device according to any one of claims 6 to 9, characterized in that: The driving state determination module is further configured to: After the ignition switch is powered on, the timing starts; After determining whether the high-side power supply comes from the ECU, stop timing and determine the total timing duration; If the total duration is greater than the preset duration, it is determined that whether the high-side power supply determined this time comes from the ECU is inaccurate, and an error indication is issued.

11. An electronic device, characterized in that: It comprises at least one processor; and a memory communicatively connected 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 so that the at least one processor can execute the method described in any one of claims 1-5.

12. A computer storage medium, characterized in that: The computer storage medium stores a computer program, and the computer program is used to enable a computer to execute the method according to any one of claims 1 to 5.