Electrical assembly and method
A method of operating an electrical assembly comprising: sensing a current of a wire assembly electrically connecting a controller assembly with an electronic control unit (ECU), the wire assembly including a wire; sampling, at the controller assembly, a wire voltage of the wire to obtain a first set of voltage measurements; providing, via the controller assembly, a sampling request to the ECU; sampling, at the ECU and in accordance with receiving the sampling request, the wire voltage of the wire to obtain a second set of voltage measurements; providing the second set of voltage measurements to the controller assembly; compensating for a delay between the controller assembly and the ECU by shifting the first set of voltage measurements or the second set of voltage measurements by a time shift.
1 . A method of operating an electrical assembly, the method comprising:
sensing a current of a wire assembly electrically connecting a controller assembly with an electronic control unit (ECU), the wire assembly including a wire;
sampling, at the controller assembly, a wire voltage of the wire to obtain a first set of voltage measurements;
providing, via the controller assembly, a sampling request to the ECU;
sampling, at the ECU and in accordance with receiving the sampling request, the wire voltage of the wire to obtain a second set of voltage measurements;
providing the second set of voltage measurements to the controller assembly;
compensating for a delay between the controller assembly and the ECU by shifting the first set of voltage measurements or the second set of voltage measurements by a time shift such that a difference in magnitude of the first set of voltage measurements and the second set of voltage measurements is minimized; and
determining, at the controller assembly, a resistance of the wire assembly according to a quotient of the difference in magnitude divided by the current.
2 . The method of claim 1 , wherein the wire assembly includes a first electrical connector coupled to the wire and the controller assembly and a second electrical connector coupled to the wire and the ECU.
3 . The method of claim 1 , wherein the shifting includes shifting the second set of voltage measurements forward by the time shift.
4 . The method of claim 1 , wherein the sampling request includes a number of samples and a sampling rate.
5 . The method of claim 4 , wherein the sampling at the controller assembly includes obtaining the number of samples at the sampling rate; and
the sampling at the ECU includes obtaining the number of samples at the sampling rate.
6 . The method of claim 1 , wherein the difference in magnitude is equal to a sum of differences in magnitude for each of the first set of voltage measurements relative to the second set of voltage measurements.
7 . The method of claim 1 , further comprising:
comparing the resistance with a threshold resistance; and
in accordance with determining the resistance is greater than or equal to the threshold resistance, opening a switch to disconnect the wire assembly from the controller assembly.
8 . The method of claim 1 , further comprising:
repeating the sampling at the controller assembly to obtain a third set of voltage measurements, the sampling at the ECU to obtain a fourth set of voltage measurements; and
compensating for a second delay between the controller assembly and the ECU by shifting the third set of voltage measurements or the fourth set of voltage measurements by a second time shift such that a second difference in magnitude of the third set of voltage measurements and the fourth set of voltage measurements is minimized.
9 . The method of claim 8 , further comprising:
sensing a second current of the wire assembly; and
determining, after compensating for the second delay, a second resistance of the wire assembly according to a second quotient of the second difference in magnitude divided by the second current.
10 . The method of claim 9 , wherein the second time shift is different than the time shift.
11 . The method of claim 10 , further comprising utilizing the determined resistance as an initial resistance; and
comparing the initial resistance and the second resistance to determine if a resistance change has exceeded a resistance change threshold.
12 . The method of claim 11 , further comprising, in accordance with determining that the resistance change has exceeded the resistance change threshold, opening a switch of the controller assembly to disconnect the wire from the controller assembly.
13 . The method of claim 12 , wherein opening the switch disconnects the wire and the ECU from a battery.
14 . The method of claim 9 , further comprising:
comparing the resistance to a threshold resistance;
comparing the second resistance to the threshold resistance; and
in accordance with determining the resistance or the second resistance is greater than or equal to the threshold resistance, opening a switch to disconnect the wire assembly from the controller assembly.
15 . The method of claim 1 , wherein the controller assembly and the ECU are not synchronized with each other.
16 . An electrical assembly, comprising:
a controller assembly including an electronic controller and a switch;
an electronic control unit (ECU); and
a wire assembly including a wire and electrically connecting the controller assembly with the ECU;
wherein the controller assembly is configured to:
obtain a current of the wire assembly;
sample a wire voltage of the wire to obtain a first set of voltage measurements;
provide a sampling request to the ECU; and
compensate for a delay between the controller assembly and the ECU; and
wherein the ECU is configured to:
sample, in accordance with receiving the sampling request, the wire voltage of the wire to obtain a second set of voltage measurements; and
provide the second set of voltage measurements to the controller assembly.
17 . The electrical assembly of claim 16 , wherein compensating for the delay between the controller assembly and the ECU includes shifting the first set of voltage measurements or the second set of voltage measurements by a time shift such that a difference in magnitude of the first set of voltage measurements and the second set of voltage measurements is minimized.
18 . The electrical assembly of claim 17 , wherein the controller assembly is configured to determine whether the wire assembly is defective.
19 . The electrical assembly of claim 18 , wherein determining whether the wire assembly is defective includes determining a resistance of the wire assembly according to a quotient of the difference in magnitude divided by the current.
20 . A vehicle, comprising:
a battery;
an electrical load; and
the electrical assembly of claim 19 ;
wherein the controller assembly is electrically connected to the battery, and the ECU is electrically connected to the electrical load.