Charging voltage determination method, charging device, vehicle-mounted domain controller and vehicle

By automatically calculating the wiring harness voltage drop of the data line when the charging device is connected to the power receiving device, the high cost problem caused by manual calibration is solved, and an efficient and convenient charging process is achieved, which is suitable for different data lines.

CN120377420APending Publication Date: 2025-07-25IFLYTEK CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510468263.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-04-15
Publication Date
2025-07-25

AI Technical Summary

Technical Problem

Existing charging equipment requires manual calibration of the data line voltage drop, resulting in large development workload and the need to be recalibrated in the face of different data lines, which increases costs and inconvenience.

Method used

By obtaining the initial voltage and current when the power receiving device is connected to the charging device, the wiring harness voltage drop of the data line is automatically calculated, and the target charging voltage is determined in combination with the expected voltage, thereby realizing the automatic determination of the wiring harness voltage drop.

Benefits of technology

It reduces the costs caused by manual calibration, improves charging efficiency and convenience, and is suitable for data cables of any length and material, improving user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120377420A_ABST
    Figure CN120377420A_ABST
Patent Text Reader

Abstract

The invention provides a charging voltage determination method, charging equipment, a vehicle-mounted domain controller and a vehicle, and relates to the technical field of charging. When the power receiving equipment is connected with the charging equipment, a first initial voltage output by the power receiving equipment and a second initial voltage and an initial current output by the charging equipment are obtained; the wire harness voltage drop of the data line can be automatically determined in combination with the expected current, the cost caused by manual calibration is reduced, and the charging efficiency of the powered device is improved. Moreover, the automatic determination of the wire harness voltage drop is not restricted by the length, the material and other factors of the data line, and the wire harness voltage drop of the data line which is connected between the power receiving equipment and the charging equipment and has any length and any material can be rapidly and accurately determined. According to the method, manual calibration does not need to be carried out again even when the data line is replaced and the charging equipment is migrated and applied, so that the research and development cost of the charging equipment can be greatly reduced, the reapplication convenience of the charging equipment is improved, and the use experience of a user can be greatly improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of charging technology, and in particular to a method for determining a charging voltage, a charging device, a vehicle domain controller, and a vehicle. Background Art

[0002] Currently, a charging device is usually configured with a Universal Serial Bus (USB) interface for charging a power receiving device.

[0003] When the power receiving device needs to be charged, it is connected to the USB interface of the charging device through a data cable. Since there is energy loss during the transmission of electrical energy through the data cable, that is, line loss, a voltage drop occurs after the voltage output from the USB interface reaches the power receiving device. If the voltage drop is large, the power receiving device cannot be charged. The existing solutions usually pre-calibrate the voltage drop of the data cable manually, that is, connect the USB interface and the power receiving device through the data cable, measure the voltage received by the power receiving device, and then determine the voltage drop generated by the data cable. Thereafter, the voltage output from the USB interface is increased to offset the voltage drop generated by the data cable, so that the voltage received by the power receiving device is the charging expected value. For example, assume that the charging expected value of the power receiving device is VO. When the voltage output from the USB interface is set to VO, the voltage drop generated by the data cable is △V, and the voltage received by the power receiving device is VO - △V. The magnitude of △V is measured through the existing solution, and then the voltage output from the USB interface of the charging device is set to VO + △V. Therefore, the voltage received by the power receiving device is (VO + △V) - △V = VO, which meets the charging expected value.

[0004] However, the existing solutions require manual calibration of the voltage drop generated by the data cable, which will greatly increase the development workload. Moreover, due to factors such as the length and material of the data cable, the voltage drop generated by the data cable will also be different. Therefore, when facing different data cables, manual calibration needs to be performed again, which brings great costs to the replacement of the data cable and the migration and application of the charging device. Summary of the Invention

[0005] The present invention provides a method for determining a charging voltage, a charging device, a vehicle domain controller, and a vehicle to solve the defects existing in the related art.

[0006] The present invention provides a method for determining a charging voltage, including: Determine the connection with the power receiving device through a data cable, obtain the first initial voltage received by the power receiving device, and collect the second initial voltage and the initial current output by the charging device; Obtain the expected voltage and expected current of the power receiving device, calculate the harness voltage drop of the data line based on the first initial voltage, the second initial voltage, the initial current, and the expected current, and determine the target charging voltage output by the charging device based on the harness voltage drop and the expected voltage.

[0007] According to a charging voltage determination method provided by the present invention, the charging device is configured with a charging interface, and the charging interface is connected to the power receiving device through the data line; after the determination is connected to the power receiving device through the data line, it includes: Based on the interface communication protocol corresponding to the charging interface, send a voltage request to the power receiving device, where the voltage request is used to instruct the power receiving device to send the first initial voltage to the charging device.

[0008] According to a charging voltage determination method provided by the present invention, the calculating the harness voltage drop of the data line based on the first initial voltage, the second initial voltage, the initial current, and the expected current includes: Calculate the line resistance of the data line based on the first initial voltage, the second initial voltage, and the initial current; Calculate the harness voltage drop based on the expected current and the line resistance.

[0009] According to a charging voltage determination method provided by the present invention, the obtaining the expected voltage and expected current of the power receiving device includes: Based on the charging protocol interaction with the power receiving device, determine the expected power and the expected current of the power receiving device; Based on the expected power and the expected current, determine the expected voltage.

[0010] According to a charging voltage determination method provided by the present invention, the determining the expected power and the expected current of the power receiving device based on the charging protocol interaction with the power receiving device includes: Receive the initial waveform sent by the power receiving device based on the charging protocol, and adjust the initial waveform to determine the target waveform provided by the charging device; Send the target waveform to the power receiving device, and receive the expected power and the expected current determined by the power receiving device based on the target waveform.

[0011] According to a charging voltage determination method provided by the present invention, after the determining the target charging voltage output by the charging device based on the harness voltage drop and the expected voltage, it includes: Real-time obtain the current voltage received by the power receiving device; If the current voltage is outside the preset voltage range, the target charging voltage is gradually adjusted until the current voltage is within the preset voltage range; Wherein, the preset voltage range is determined based on the desired voltage.

[0012] According to a charging voltage determination method provided by the present invention, after obtaining the current voltage received by the power receiving device in real time, the method further includes: If the current voltage is within the preset voltage range, the power receiving device is charged based on the current target charging voltage output by the charging device.

[0013] The present invention also provides a charging device, including a memory, a processor, and a computer program stored on the memory and executable on the processor. When the processor executes the computer program, the charging voltage determination method described in any one of the above is implemented.

[0014] The present invention also provides a vehicle domain controller, including: A first charging unit for connecting to a second charging unit in the power receiving device through a data cable; A sampling unit connected to the first charging unit for collecting a second initial voltage and an initial current output by the first charging unit; A first processing unit connected to the first charging unit and the sampling unit respectively, for connecting to a second processing unit in the power receiving device through the data cable and executing the above-mentioned charging voltage determination method.

[0015] The present invention also provides a vehicle including the above-mentioned vehicle domain controller.

[0016] The present invention also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the charging voltage determination method described in any one of the above is implemented.

[0017] The present invention also provides a computer program product, including a computer program. When the computer program is executed by a processor, the charging voltage determination method described in any one of the above is implemented.

[0018] The charging voltage determination method, charging device, vehicle domain controller and vehicle provided by the present invention. In this method, when the power receiving device is connected to the charging device, the first initial voltage output by the power receiving device, the second initial voltage and the initial current output by the charging device are obtained. Combining with the expected current, the harness voltage drop of the data line can be automatically determined, reducing the cost caused by manual calibration and improving the charging efficiency of the power receiving device. Moreover, the automatic determination of the harness voltage drop is not restricted by factors such as the length and material of the data line, and can quickly and accurately determine the harness voltage drop of the data line with any length and any material connected between the power receiving device and the charging device. Even when facing the replacement of the data line and the migration application of the charging device, there is no need to re-perform manual calibration, which can greatly reduce the R & D cost of the charging device, improve the convenience of re-application of the charging device, and can greatly enhance the user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] In order to more clearly illustrate the technical solutions in the present invention or related technologies, the following will briefly introduce the drawings required for use in the embodiments or related technology descriptions. Obviously, the drawings in the following description are some embodiments of the present invention. For those of ordinary skill in the art, without creative efforts, other drawings can also be obtained based on these drawings.

[0020] Figure 1 is one of the flow diagrams of the charging voltage determination method provided by the present invention.

[0021] Figure 2 is a schematic diagram of the connection relationship between the power receiving device and the charging device in the charging voltage determination method provided by the present invention.

[0022] Figure 3 is the second flow diagram of the charging voltage determination method provided by the present invention.

[0023] Figure 4 is the third flow diagram of the charging voltage determination method provided by the present invention.

[0024] Figure 5 is the fourth flow diagram of the charging voltage determination method provided by the present invention.

[0025] Figure 6 is the fifth flow diagram of the charging voltage determination method provided by the present invention.

[0026] Figure 7 is the sixth flow diagram of the charging voltage determination method provided by the present invention.

[0027] Figure 8 is the seventh flow diagram of the charging voltage determination method provided by the present invention.

[0028] Figure 9 It is the eighth schematic flow chart of the charging voltage determination method provided by the present invention.

[0029] Figure 10 It is the ninth schematic flow chart of the charging voltage determination method provided by the present invention.

[0030] Figure 11 It is the schematic structural diagram of the charging voltage determination device provided by the present invention.

[0031] Figure 12 It is the schematic structural diagram of the charging device provided by the present invention.

[0032] Figure 13 It is one of the schematic diagrams of the connection relationship between the in-vehicle domain controller and the charging device provided by the present invention.

[0033] Figure 14 It is the second schematic diagram of the connection relationship between the in-vehicle domain controller and the charging device provided by the present invention.

[0034] Figure 15 It is the schematic structural diagram of the vehicle provided by the present invention. Detailed Embodiments

[0035] To make the objectives, technical solutions, and advantages of the present invention clearer, the technical solutions in the present invention will be clearly and completely described below with reference to the accompanying drawings in the present invention. Obviously, the described embodiments are some but not all of the embodiments of the present invention. All other embodiments obtained by those of ordinary skill in the art based on the embodiments in the present invention without creative efforts shall fall within the protection scope of the present invention.

[0036] In the existing line loss compensation scheme, it is usually necessary to manually calibrate the voltage drop generated by the data line, and then increase the voltage output by the charging device to compensate for the voltage drop generated by the data line, so that the voltage received by the power receiving device always remains at the expected value.

[0037] 1) Assume that the expected voltage of the power receiving device is 5V, the voltage output by the charging device is set to 5V. After connecting the power receiving device through a suitable data line, if the actually measured voltage of the power receiving device is 4.9V, then the line loss of the data line, that is, the voltage drop, is 0.1V.

[0038] 2) Increase the voltage output by the charging device from 5V to 5.1V. Then, under the same charging current, the line loss of the data line is still 0.1V, and at this time, the voltage received by the power receiving device is the expected voltage of 5V.

[0039] However, this manual calibration method not only increases the development workload, but also, due to factors such as the length and material of the data cable, the voltage drop generated by the data cable will also vary. Therefore, when facing different data cables, manual calibration needs to be performed again, which brings great costs to the replacement of the data cable and the migration and application of the charging device. For example, when the in-vehicle domain controller is used as a charging device to charge power-receiving devices such as mobile phones and tablets that need to be charged, although the vehicle has a suitable data cable for connecting the in-vehicle domain controller and the power-receiving device, if the data cable needs to be replaced or the in-vehicle domain controller on one vehicle is applied to other vehicles, calibration needs to be performed again, resulting in a relatively high implementation cost. Therefore, in the embodiments of the present invention, a charging voltage determination method is provided, which can automatically calculate the harness voltage drop of the data cable when the power-receiving device is connected to the charging device, thereby reducing the cost caused by manual calibration.

[0040] Figure 1 FIG. is a schematic flow chart of a charging voltage determination method provided in an embodiment of the present invention. As Figure 1 shown, the method includes: S11, determine the connection with the power-receiving device through the data cable, obtain the first initial voltage received by the power-receiving device, and collect the second initial voltage and the initial current output by the charging device; S12, obtain the desired voltage and the desired current of the power-receiving device, calculate the harness voltage drop of the data cable based on the first initial voltage, the second initial voltage, the initial current, and the desired current, and determine the target charging voltage output by the charging device based on the harness voltage drop and the desired voltage.

[0041] Specifically, the charging voltage determination method provided in the embodiments of the present invention is applied to a charging device, that is, the execution subject of this method is the charging device. The charging device refers to an electronic device that can charge a power-receiving device through a data cable in a wired manner, such as an in-vehicle domain controller, a computer host, etc. The power-receiving device refers to an electronic device that needs to be charged in a wired manner through a data cable, such as a smart phone, a tablet computer, a Bluetooth headset, etc.

[0042] The charging device may be configured with a charging interface. The charging interface of the charging device may be a Universal Serial Bus (USB) interface or a Direct Current (DC) interface, that is, a round power interface. In addition, it may also be other interfaces that can be connected to the power-receiving device through a data cable, such as Micro-USB, etc. Correspondingly, the power-receiving device may also be configured with a charging interface. The charging interface of the power-receiving device may be a Type-A / B / C, etc. interface.

[0043] One end of the data line is configured with an interface that matches the charging interface of the charging device, and the other end is configured with an interface that matches the charging interface of the power receiving device. If the charging interface of the charging device is a USB interface and the charging interface of the power receiving device is a Type-C interface, then the two ends of the data line are respectively configured with interfaces that match the USB interface and the Type-C interface.

[0044] The charging interfaces of both the charging device and the power receiving device may include power pins and signal pins. The power pins can be connected to the power line in the data line, and the signal pins can be connected to the signal line in the data line.

[0045] First, step S11 is executed. When the power receiving device is connected to the charging device through the data line, the charging device can determine that it has established a connection with the power receiving device through the data line by detecting voltage changes or current changes. As Figure 2 shown, the charging device may include a first charging unit and a first processing unit. The first charging unit may be a charging chip, and the first processing unit may be a system-on-chip (SOC) chip. The first charging unit and the first processing unit can be connected through a control line. The first processing unit can send a control signal to the first charging unit to control the first charging unit to output a voltage to the power receiving device.

[0046] The power receiving device may include a second charging unit and a second processing unit. The first charging unit can be connected to the power pin of the charging interface of the charging device, and through the power line in the data line, it is connected to the power pin of the charging interface of the power receiving device, and then connected to the second charging unit.

[0047] The first processing unit can be connected to the signal pin of the charging interface of the charging device, and through the signal line in the data line, it is connected to the signal pin of the charging interface of the power receiving device, and then connected to the second processing unit to realize data transmission between the first processing unit and the second processing unit, that is, to realize data transmission between the charging device and the power receiving device.

[0048] The second processing unit may further include an analog-to-digital conversion unit (ADC), and the ADC is connected to the second charging unit.

[0049] When the power receiving device establishes a connection with the charging device, the second processing unit in the power receiving device can collect the first initial voltage received by the power receiving device through the ADC. Moreover, since the charging protocol interaction between the power receiving device and the charging device has not been completed at this time and the charging current is small, it will not cause the situation that communication with the charging device cannot be carried out due to the too low first initial voltage. Therefore, the power receiving device can send the first initial voltage to the charging device through the data line. The charging device can then obtain the first initial voltage received by the power receiving device through the data line.

[0050] Here, the first initial voltage is the initial voltage received by the power receiving device when the power receiving device is connected to the charging device through a data cable, and it is the voltage received by the second charging unit in the power receiving device.

[0051] The charging device can also collect the second initial voltage and the initial current output by itself. The second initial voltage refers to the initial voltage output by the charging device when the power receiving device is connected to the charging device through a data cable, and it is the initial voltage output by the first charging unit in the charging device. The initial current refers to the initial current of the loop formed between the charging device and the power receiving device when the power receiving device is connected to the charging device through a data cable.

[0052] The charging device may be internally provided with a sampling unit. The sampling unit can be respectively connected to the first charging unit and the first processing unit. The sampling unit may include a current sampling unit and a voltage sampling unit. The current sampling unit may include a sampling resistor and a differential amplifier. The sampling resistor is connected in series on the power line connected to the first charging unit. The positive input terminal and the negative input terminal of the differential amplifier are respectively connected to both ends of the sampling resistor. The sampling voltage across the sampling resistor can be obtained through the differential amplifier. Furthermore, after receiving the sampling voltage, the first processing unit can calculate the initial current by combining the resistance value of the sampling resistor. The first processing unit may be internally provided with an ADC. The voltage sampling unit may include a connection line connected between the first charging unit and the ADC in the first processing unit. Furthermore, the second initial voltage can be directly sampled through this ADC.

[0053] In addition, since the second initial voltage is output by the first charging unit under the control of the first processing unit, the voltage value internally provided by the first processing unit can also be directly used as the second initial voltage.

[0054] Then, step S12 is executed to obtain the desired voltage and desired current of the power receiving device. The desired voltage refers to the charging voltage required by the power receiving device, and the desired current refers to the charging current required by the power receiving device. The charging device obtains the desired voltage and desired current of the power receiving device through the charging protocol interaction established with the power receiving device. This charging protocol can be set as needed. For example, it can be a USB-PD protocol, a Quick Charge (QC) protocol, etc.

[0055] Thereafter, using the first initial voltage, the second initial voltage, the initial current, and the desired current, the harness voltage drop of the data cable can be calculated. The harness voltage drop refers to the voltage difference between the voltage at the end of the data cable connected to the charging device and the voltage at the end connected to the power receiving device when the charging device charges the power receiving device, that is, the voltage difference between the voltage output by the charging interface of the charging device and the voltage received by the charging interface of the power receiving device. Among them, the wire resistance of the data cable can be calculated first using the first initial voltage, the second initial voltage, and the initial current, and then based on the wire resistance and the desired current of the power receiving device, the harness voltage drop of the data cable can be calculated, that is, multiplying the wire resistance by the desired current of the power receiving device and taking the multiplication result as the harness voltage drop of the data cable.

[0056] Furthermore, using the harness voltage drop and the desired voltage, line loss compensation can be performed on the voltage output by the charging device to determine the target charging voltage output by the charging device. This line loss compensation, namely harness voltage drop compensation, can directly use the sum of the harness voltage drop and the desired voltage as the target charging voltage that the charging device needs to output. Thereafter, the charging device can control itself to output the target charging voltage to charge the power receiving device, or this target charging voltage can be applied to research on aspects such as charging device protection, charging efficiency, battery life of the power receiving device, compatibility, and safety.

[0057] In the charging voltage determination method provided in the embodiments of the present invention, first, the charging device determines that it is connected to the power receiving device through a data cable, obtains the first initial voltage received by the power receiving device, and collects the second initial voltage and the initial current output by the charging device; then obtains the desired voltage and the desired current of the power receiving device, calculates the harness voltage drop of the data cable based on the first initial voltage, the second initial voltage, the initial current, and the desired current, and determines the target charging voltage output by the charging device based on the harness voltage drop and the desired voltage. In this method, by obtaining the first initial voltage output by the power receiving device and the second initial voltage and the initial current output by the charging device when the power receiving device is connected to the charging device, and combining the desired current, the harness voltage drop of the data cable can be automatically determined, reducing the cost caused by manual calibration and improving the charging efficiency of the power receiving device. Moreover, the automatic determination of the harness voltage drop is not restricted by factors such as the length and material of the data cable, and can quickly and accurately determine the harness voltage drop of data cables of any length and any material connected between the power receiving device and the charging device. Even when facing the replacement of the data cable and the migration application of the charging device, there is no need to perform manual calibration again, which can greatly reduce the R & D cost of the charging device, improve the convenience of re - application of the charging device, and can greatly enhance the user experience.

[0058] Based on the above - mentioned embodiment, the charging device is configured with a charging interface, and the charging interface is connected to the power receiving device through the data cable; as Figure 3As shown in the figure, the charging voltage determination method provided in the embodiments of the present invention specifically includes: S31. Determine the connection with the power receiving device through a data cable. Based on the interface communication protocol corresponding to the charging interface, send a voltage request to the power receiving device. The voltage request is used to instruct the power receiving device to send the first initial voltage to the charging device; obtain the first initial voltage received by the power receiving device, and collect the second initial voltage and initial current output by the charging device; S32. Obtain the desired voltage and desired current of the power receiving device. Based on the first initial voltage, the desired current, the second initial voltage, and the initial current, calculate the harness voltage drop of the data cable, and based on the harness voltage drop and the desired voltage, determine the target charging voltage output by the charging device.

[0059] Specifically, in the above embodiment, after determining the connection with the power receiving device through a data cable, the charging device can use the interface communication protocol corresponding to the charging interface to send a voltage request to the power receiving device. For example, if the charging interface of the charging device is a USB interface, the interface communication protocol is the USB protocol. The voltage request can be used to instruct the power receiving device to send the first initial voltage to the charging device. After receiving the voltage request, the power receiving device will send the first initial voltage back to the charging device through the interface communication protocol on the data cable.

[0060] After receiving the first initial voltage, the charging device can continue to execute the subsequent steps. For the detailed process, refer to the above embodiment and will not be elaborated here.

[0061] In the embodiments of the present invention, through the interface communication protocol corresponding to the charging interface of the charging device, the transmission of the first initial voltage between the power receiving device and the charging device is realized, which can perform data transmission without charging protocol interaction, ensuring the acquisition of key data by the charging device during line loss compensation.

[0062] Based on the above embodiment, as Figure 4 shown in the figure, the charging voltage determination method provided in the embodiments of the present invention further specifically includes: S41. Determine the connection with the power receiving device through a data cable, obtain the first initial voltage received by the power receiving device, and collect the second initial voltage and initial current output by the charging device; S42. Obtain the desired voltage and desired current of the power receiving device. Based on the first initial voltage, the second initial voltage, and the initial current, calculate the line resistance of the data cable; based on the desired current and the line resistance, calculate the harness voltage drop, and based on the harness voltage drop and the desired voltage, determine the target charging voltage output by the charging device.

[0063] Or, asFigure 5 As shown in the figure, the method specifically includes: S51, determine the connection with the power receiving device through a data line, and based on the interface communication protocol corresponding to the charging interface, send a voltage request to the power receiving device, where the voltage request is used to instruct the power receiving device to send the first initial voltage to the charging device; obtain the first initial voltage received by the power receiving device, and collect the second initial voltage and initial current output by the charging device; S52, obtain the desired voltage and desired current of the power receiving device, calculate the line resistance of the data line based on the first initial voltage, the second initial voltage, and the initial current; calculate the harness voltage drop based on the desired current and the line resistance, and determine the target charging voltage output by the charging device based on the harness voltage drop and the desired voltage.

[0064] Specifically, when calculating the harness voltage drop of the data line in the above embodiments, the line resistance of the data line can be calculated first using the first initial voltage, the second initial voltage, and the initial current. That is: RL = (V1 - V0) / I0; where RL is the line resistance of the data line, V1 is the second initial voltage, V0 is the first initial voltage, and I0 is the initial current.

[0065] Thereafter, in combination with the desired current of the power receiving device and the line resistance, the harness voltage drop can be calculated. Here, the product of the desired current and the line resistance can be directly used as the harness voltage drop. That is: △V1 = I1 × RL; where △V1 is the harness voltage drop of the data line, and I1 is the desired current of the power receiving device.

[0066] In the embodiments of the present invention, by collecting the first initial voltage and the initial current to calculate the line resistance of the data line, the harness voltage drop can be quickly calculated, the calculation principle is simple and easy to implement, and no complex structure is introduced.

[0067] Based on the above embodiments, as Figure 6 shown in the figure, the charging voltage determination method provided in the embodiments of the present invention specifically includes: S61, determine the connection with the power receiving device through a data line, obtain the first initial voltage received by the power receiving device, and collect the second initial voltage and initial current output by the charging device; S62. Based on the interaction with the charging protocol of the power receiving device, determine the expected power and the expected current of the power receiving device; based on the expected power and the expected current, determine the expected voltage; based on the first initial voltage, the second initial voltage, the initial current, and the expected current, calculate the harness voltage drop of the data line, and based on the harness voltage drop and the expected voltage, determine the target charging voltage output by the charging device.

[0068] Or, as Figure 7 shown, the method specifically includes: S71. Determine the connection with the power receiving device through the data line, obtain the first initial voltage received by the power receiving device, and collect the second initial voltage and the initial current output by the charging device; S71. Based on the interaction with the charging protocol of the power receiving device, determine the expected power and the expected current of the power receiving device; based on the expected power and the expected current, determine the expected voltage; based on the first initial voltage, the second initial voltage, and the initial current, calculate the line resistance of the data line; based on the expected current and the line resistance, calculate the harness voltage drop, and based on the harness voltage drop and the expected voltage, determine the target charging voltage output by the charging device.

[0069] Or, as Figure 8 shown, the method specifically includes: S81. Determine the connection with the power receiving device through the data line, based on the interface communication protocol corresponding to the charging interface, send a voltage request to the power receiving device, where the voltage request is used to instruct the power receiving device to send the first initial voltage to the charging device; obtain the first initial voltage received by the power receiving device, and collect the second initial voltage and the initial current output by the charging device; S82. Based on the interaction with the charging protocol of the power receiving device, determine the expected power and the expected current of the power receiving device; based on the expected power and the expected current, determine the expected voltage; based on the first initial voltage, the second initial voltage, and the initial current, calculate the line resistance of the data line; based on the expected current and the line resistance, calculate the harness voltage drop, and based on the harness voltage drop and the expected voltage, determine the target charging voltage output by the charging device.

[0070] Specifically, after the charging device detects the connection of the power receiving device, it sends a handshake signal to the power receiving device through the charging protocol. For example, if the charging protocol is the USB-PD protocol, the handshake signal can be transmitted through the Source Capabilities message. The power receiving device then responds to the received handshake signal and determines that it supports the above charging protocol.

[0071] The power receiving device can send charging information such as the voltage, current, and power range supported by the power receiving device to the charging device through a charging protocol. For example, if the charging protocol is the USB-PD protocol, the charging information can be transmitted through Sink Capabilities messages.

[0072] After receiving the charging information, the charging device determines the power supply information such as the voltage, current, and power range it can provide. For example, if the charging protocol is the USB-PD protocol, the power supply information can be transmitted through Source Capabilities messages.

[0073] After receiving the power supply information, the power receiving device can select the optimal power and current combination according to its own requirements such as battery status and temperature and the capabilities of the charging device. The power in this combination is the desired power, and the current in this combination is the desired current.

[0074] After that, the power receiving device sends the determined desired power and desired current to the charging device through the charging protocol. For example, it can be sent through the Request message in USB-PD.

[0075] Furthermore, the charging device can calculate the desired voltage based on the desired power and the desired current. That is, the ratio of the desired power to the desired current is used as the desired voltage.

[0076] In the embodiments of the present invention, by interacting through the charging protocol between the power receiving device and the charging device to determine the desired voltage and desired current of the power receiving device, the charging device can timely determine the voltage and current required by the power receiving device, and then provide the desired voltage required by the power receiving device.

[0077] Based on the above embodiments, the determining the desired power and the desired current of the power receiving device based on the interaction of the charging protocol with the power receiving device includes: Receiving an initial waveform sent by the power receiving device based on the charging protocol, and adjusting the initial waveform to determine a target waveform supported by the charging device; Sending the target waveform to the power receiving device, and receiving the desired power and the desired current determined by the power receiving device based on the target waveform.

[0078] Specifically, when determining the desired power and desired current of the power receiving device, after determining the charging protocol between the charging device and the power receiving device, the power receiving device can first send an initial waveform to the charging device through the charging protocol. The initial waveform can be determined according to the charging protocol. For example, if the charging protocol is the USB-PD protocol, the initial waveform can be a pulse-width modulation (PWM) waveform with a specific frequency. The initial waveform represents charging information such as the voltage, current, and power range that the power receiving device can support.

[0079] The charging device can receive the initial waveform and can adjust the initial waveform according to the power supply information such as the voltage, current, and power range that it can provide to obtain a target waveform. For example, if the charging protocol is the USB-PD protocol and the initial waveform is a PWM waveform, then the charging device can obtain the target waveform by adjusting the duty cycle of the PWM waveform to represent the power supply information such as the voltage, current, and power range that the charging device can provide.

[0080] The charging device can send the target waveform to the power receiving device through the charging protocol. After receiving the target waveform, the power receiving device analyzes the target waveform, determines the power supply information that the charging device can provide, selects the desired power and desired current from it, and feeds back the selected desired power and desired current to the charging device. After receiving the desired power and desired current, the charging device determines the desired voltage and the target charging voltage to be output, and starts charging.

[0081] In the embodiments of the present invention, through the specific charging protocol interaction process between the charging device and the power receiving device, the two parties determine the final desired power and desired current, which can enable the charging device to output the charging voltage required by the power receiving device.

[0082] Based on the above embodiments, Figure 9 As shown, the charging voltage determination method provided in the embodiments of the present invention further specifically includes: S91, determine the connection with the power receiving device through a data line, obtain the first initial voltage received by the power receiving device, and collect the second initial voltage and initial current output by the charging device; S92, obtain the desired voltage and desired current of the power receiving device, calculate the harness voltage drop of the data line based on the first initial voltage, the second initial voltage, the initial current, and the desired current, and determine the target charging voltage output by the charging device based on the harness voltage drop and the desired voltage; S93, obtain the current voltage received by the power receiving device in real time; S94, if the current voltage is outside the preset voltage range, gradually adjust the target charging voltage until the current voltage is within the preset voltage range; Wherein, the preset voltage range is determined based on the desired voltage.

[0083] Specifically, the power receiving device can feedback the currently received voltage to the charging device in real time, that is, the ADC of the second processing unit in the power receiving device can collect the currently received voltage of the second charging unit in real time, and feedback the currently received voltage to the charging device through the data line.

[0084] After receiving the currently received voltage through the data line, the first processing unit of the charging device determines whether the currently received voltage is within the preset voltage range. If it is within the preset voltage range, it is considered that the currently received voltage meets the voltage requirement of the power receiving device and no processing is performed. If the currently received voltage is outside the preset voltage range, it is considered that the currently received voltage cannot meet the voltage requirement of the power receiving device, and then the target charging voltage output by the first charging unit needs to be gradually adjusted until the currently received voltage returns to within the preset voltage range.

[0085] Here, the direction of gradual adjustment can be determined according to the magnitude relationship between the currently received voltage and the upper and lower limits of the preset voltage range. If the currently received voltage is less than the lower limit of the preset voltage range, the target charging voltage can be increased. If the currently received voltage is greater than the upper limit of the preset voltage range, the target charging voltage can be decreased. The step size of gradual adjustment can be set as needed. For example, it can be fixed at a value such as 0.1V, or it can be determined according to the difference between the currently received voltage and the lower or upper limit of the preset voltage range.

[0086] The preset voltage range can be determined by the desired voltage and can be a fluctuation range centered on the desired voltage. For example, the lower limit of the preset voltage range can be a first preset multiple of the desired voltage, and the upper limit of the preset voltage range can be a second preset multiple of the desired voltage. The first multiple can be less than 1, and the second multiple can be greater than 1. For example, the first preset multiple can be 0.05, and the second preset multiple can be 1.05, or other values, and specific limitations are not made here.

[0087] In the embodiment of the present invention, post-processing operations after the charging device outputs the target charging voltage are given to ensure that the voltage received by the power receiving device meets the requirements.

[0088] Based on the above embodiments, as Figure 10 shown, the method for determining the charging voltage provided in the embodiment of the present invention further specifically includes: S101, determine to be connected to the power receiving device through the data line, obtain the first initial voltage received by the power receiving device, and collect the second initial voltage and the initial current output by the charging device; S102. Obtain the expected voltage and expected current of the power receiving device, calculate the harness voltage drop of the data line based on the first initial voltage, the second initial voltage, the initial current, and the expected current, and determine the target charging voltage output by the charging device based on the harness voltage drop and the expected voltage. S103. Real-time obtain the current voltage received by the power receiving device. S104. If the current voltage is within the preset voltage range, charge the power receiving device based on the current target charging voltage output by the charging device. Wherein, the preset voltage range is determined based on the expected voltage.

[0089] Specifically, in the embodiments of the present invention, after determining the target charging voltage output by the charging device while keeping the charging device and the power receiving device connected by the data line, the charging device can directly output the target charging voltage to the power receiving device. After the target charging voltage is transmitted through the data line, the power receiving device sends the current voltage received in real time to the charging device.

[0090] The charging device can obtain the current voltage received by the power receiving device in real time, and can judge whether the current voltage is within the preset voltage range. If the current voltage is outside the preset voltage range, the target charging voltage is gradually adjusted until the current voltage is within the preset voltage range. At this time, the current target charging voltage output by the charging device is the target charging voltage that can make the current voltage within the preset voltage range after adjustment. The charging device outputs the current target charging voltage to the power receiving device to charge the power receiving device.

[0091] In the embodiments of the present invention, by using the current target charging voltage that satisfies the current voltage received by the power receiving device within the preset voltage range to charge the power receiving device, the charging requirement of the power receiving device can be met while compensating for the line loss.

[0092] As Figure 11 shown, on the basis of the above embodiments, a charging voltage determination device is provided in the embodiments of the present invention, which is applied to a charging device and includes: A determination module 111, configured to determine the connection with the power receiving device through the data line, obtain the first initial voltage received by the power receiving device, and collect the second initial voltage and the initial current output by the charging device. A processing module 112, configured to obtain the expected voltage and expected current of the power receiving device, calculate the harness voltage drop of the data line based on the first initial voltage, the second initial voltage, the initial current, and the expected current, and determine the target charging voltage output by the charging device based on the harness voltage drop and the expected voltage.

[0093] Based on the above embodiments, the charging voltage determination device provided in the embodiments of the present invention, the charging device is configured with a charging interface, and the charging interface is connected to the power receiving device through the data cable; the charging voltage determination device further includes: A sending module, configured to send a voltage request to the power receiving device based on the interface communication protocol corresponding to the charging interface, where the voltage request is used to instruct the power receiving device to send the first initial voltage to the charging device.

[0094] Based on the above embodiments, the charging voltage determination device provided in the embodiments of the present invention, the processing module is specifically configured to: Calculate the line resistance of the data cable based on the first initial voltage, the second initial voltage, and the initial current; Calculate the harness voltage drop based on the desired current and the line resistance.

[0095] Based on the above embodiments, the charging voltage determination device provided in the embodiments of the present invention, the processing module is further specifically configured to: Determine the desired power and the desired current of the power receiving device based on the charging protocol interaction with the power receiving device; Determine the desired voltage based on the desired power and the desired current.

[0096] Based on the above embodiments, the charging voltage determination device provided in the embodiments of the present invention, the processing module is further specifically configured to: Receive the initial waveform sent by the power receiving device based on the charging protocol, and adjust the initial waveform to determine the target waveform provided by the charging device; Send the target waveform to the power receiving device, and receive the desired power and the desired current determined by the power receiving device based on the target waveform.

[0097] Based on the above embodiments, the charging voltage determination device provided in the embodiments of the present invention further includes an adjustment module, configured to: Real-time obtain the current voltage received by the power receiving device; If the current voltage is outside the preset voltage range, gradually adjust the target charging voltage until the current voltage is within the preset voltage range; Wherein, the preset voltage range is determined based on the desired voltage.

[0098] Based on the above embodiments, the charging voltage determination device provided in the embodiments of the present invention further includes a charging module, configured to: If the current voltage is within the preset voltage range, charge the power receiving device based on the current target charging voltage output by the charging device.

[0099] Specifically, in the charging voltage determination device provided in the embodiments of the present invention, the functions of each module correspond one-to-one to the operation processes of each step in the above method embodiments, and the achieved effects are also the same. For details, refer to the above embodiments, and the embodiments of the present invention will not be elaborated herein.

[0100] Figure 12 An example of the physical structure diagram of a charging device is shown in Figure 12 As shown, the charging device may include: a processor 410, a communication interface 420, a memory 430, and a communication bus 440. Among them, the processor 410, the communication interface 420, and the memory 430 communicate with each other through the communication bus 440. The processor 410 can call the logical instructions in the memory 430 to execute the charging voltage determination method provided in each of the above embodiments.

[0101] In addition, when the logical instructions in the above-mentioned memory 430 are implemented in the form of software functional units and sold or used as an independent product, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the related technology, or a part of this technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present invention. The foregoing storage medium includes: various media such as USB flash drives, mobile hard disks, read-only memories (ROM, Read-Only Memory), random access memories (RAM, Random Access Memory), magnetic disks, or optical discs that can store program codes.

[0102] As Figure 13 shown, on the basis of the above embodiments, the embodiments of the present invention also provide an in-vehicle domain controller 1, including: A first charging unit 11, configured to be connected to a second charging unit 21 in the power receiving device 2 through a data cable 3; A sampling unit 12, connected to the first charging unit 11, for collecting a second initial voltage and an initial current output by the first charging unit 11; The first processing unit 13 is respectively connected to the first charging unit 11 and the sampling unit 12, and is used to be connected to the second processing unit 22 in the power receiving device 2 through the data line 3, and execute the charging voltage determination method provided in each of the above embodiments.

[0103] Specifically, the in-vehicle domain controller 1 provided in the embodiments of the present invention is used as a charging device to charge the power receiving device 2. The in-vehicle domain controller 1 may include a first charging unit 11, a sampling unit 12, and a first processing unit 13. By executing the charging voltage determination method provided in each of the above embodiments through the first processing unit 13, when the power receiving device is connected to the in-vehicle domain controller, the first initial voltage output by the power receiving device, the second initial voltage and the initial current output by the in-vehicle domain controller can be obtained. Combining with the desired current, the harness voltage drop of the data line can be automatically determined, reducing the cost caused by manual calibration and improving the charging efficiency of the power receiving device. Moreover, the automatic determination of the harness voltage drop is not restricted by factors such as the length and material of the data line, and can quickly and accurately determine the harness voltage drop of any length and any material of the data line connected between the power receiving device and the in-vehicle domain controller. Even when facing the replacement of the data line and the migration application of the in-vehicle domain controller, there is no need to perform manual calibration again, which can greatly reduce the R & D cost of the in-vehicle domain controller, improve the convenience of reapplication of the in-vehicle domain controller, and can greatly enhance the user experience.

[0104] Based on the above embodiments, the in-vehicle domain controller 1 provided in the embodiments of the present invention, as Figure 14 shown, further includes: A charging interface 14, the charging interface 14 includes a power supply pin 141 and a signal pin 142. The first charging unit 11 is connected to the power supply line 31 in the data line 3 through the power supply pin 141, and the first processing unit 13 is connected to the signal line 32 in the data line 3 through the signal pin 142; The sampling unit 12 includes a current sampling unit and a voltage sampling unit. The current sampling unit may include a sampling resistor 121 and a differential amplifier 122. The voltage sampling unit may include the connection line between the ADC of the first processing unit 13 and the first charging unit 11. The sampling resistor 121 is connected in series between the power supply pin 141 and the first charging unit 11. The positive input terminal and the negative input terminal of the differential amplifier 122 are respectively connected to both ends of the sampling resistor 121, and the output terminal of the differential amplifier 122 is connected to the first processing unit 13.

[0105] Specifically, the power receiving device 2 further includes a charging interface 23. The charging interface 23 includes a power supply pin 231 and a signal pin 232. The second charging unit 21 is connected to the power supply line 31 in the data line 3 through the power supply pin 231, so that the first charging unit 11 and the second charging unit 21 are connected. The second processing unit 22 is connected to the signal line 32 in the data line 3 through the signal pin 232, so that the first processing unit 13 and the second processing unit 22 are connected.

[0106] In the embodiment of the present invention, a sampling voltage can be obtained through the sampling unit, and then, in combination with the resistance value of the sampling resistor 121, the initial current output by the first charging unit can be calculated. Through the connection line between the ADC of the first processing unit 13 and the first charging unit 11, the ADC of the first processing unit 13 can collect the second initial voltage output by the first charging unit.

[0107] Figure 14 Among them, the power supply line 31 in the data line 3 may include two wires, one is grounded (GND), and the other is connected in series with a sampling resistor 121. The signal line 32 in the data line 3 may also include two wires, namely a positive signal line (D+) and a negative signal line (D-).

[0108] Based on the above embodiments, an embodiment of the present invention further provides a vehicle, as Figure 15 shown. The vehicle includes the in-vehicle domain controller provided in each of the above embodiments. The in-vehicle domain controller can be disposed in the center console of the vehicle, and the charging interface of the in-vehicle domain controller is externally provided, so as to be connected to the power receiving device through a data line.

[0109] On the other hand, the present invention also provides a computer program product. The computer program product includes a computer program. The computer program can be stored on a computer-readable storage medium. When the computer program is executed by a processor, the computer can execute the charging voltage determination method provided in each of the above embodiments.

[0110] On yet another aspect, the present invention also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, it is implemented to execute the charging voltage determination method provided in each of the above embodiments. The computer-readable storage medium can be either a non-transitory computer-readable storage medium or a transitory computer-readable storage medium, and no specific limitation is made here.

[0111] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed to multiple network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment. Those of ordinary skill in the art can understand and implement it without creative efforts.

[0112] Through the description of the above embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the essence of the above technical solution, or the part that contributes to the related technology, can be embodied in the form of a software product. This computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., and includes several instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

[0113] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that they can still modify the technical solutions recorded in the foregoing embodiments, or perform equivalent replacements on some of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A method for determining a charging voltage, characterized in that, Applied to a charging device, including: Determine to be connected to a power receiving device via a data cable, obtain a first initial voltage received by the power receiving device, and collect a second initial voltage and an initial current output by the charging device; Obtain a desired voltage and a desired current of the power receiving device, calculate a harness voltage drop of the data cable based on the first initial voltage, the second initial voltage, the initial current, and the desired current, and determine a target charging voltage output by the charging device based on the harness voltage drop and the desired voltage.

2. The charging voltage determination method according to claim 1, wherein The charging device is configured with a charging interface, and the charging interface is connected to the power receiving device via the data cable; after determining to be connected to the power receiving device via the data cable, it includes: Based on an interface communication protocol corresponding to the charging interface, send a voltage request to the power receiving device, where the voltage request is used to instruct the power receiving device to send the first initial voltage to the charging device.

3. The charging voltage determination method according to claim 1, characterized in that The calculating the harness voltage drop of the data cable based on the first initial voltage, the second initial voltage, the initial current, and the desired current includes: Calculate a wire resistance of the data cable based on the first initial voltage, the second initial voltage, and the initial current; Calculate the harness voltage drop based on the desired current and the wire resistance.

4. The charging voltage determination method according to claim 1, wherein The obtaining the desired voltage and the desired current of the power receiving device includes: Based on an interaction with the charging protocol of the power receiving device, determine a desired power and a desired current of the power receiving device; Determine the desired voltage based on the desired power and the desired current.

5. The charging voltage determination method according to claim 4, characterized in that The determining the desired power and the desired current of the power receiving device based on an interaction with the charging protocol of the power receiving device includes: Receive an initial waveform sent by the power receiving device based on the charging protocol, and adjust the initial waveform to determine a target waveform provided by the charging device; Send the target waveform to the power receiving device, and receive the desired power and the desired current determined by the power receiving device based on the target waveform.

6. The charging voltage determination method according to any one of claims 1-5, characterized in that After determining the target charging voltage output by the charging device based on the harness voltage drop and the desired voltage, it includes: Obtain in real time a current voltage received by the power receiving device; If the current voltage is outside a preset voltage range, gradually adjust the target charging voltage until the current voltage is within the preset voltage range; Wherein, the preset voltage range is determined based on the desired voltage.

7. The charging voltage determination method according to claim 6, wherein After the obtaining in real time the current voltage received by the power receiving device, it further includes: If the current voltage is within the preset voltage range, charge the power receiving device based on the current target charging voltage output by the charging device.

8. A charging device, comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the charging voltage determination method according to any one of claims 1-7.

9. A vehicle-mounted domain controller, characterized in that, Including: A first charging unit for connecting to a second charging unit in a power receiving device via a data cable; A sampling unit connected to the first charging unit for collecting a second initial voltage and an initial current output by the first charging unit; The first processing unit, which is respectively connected to the first charging unit and the sampling unit, is used to be connected to the second processing unit in the power receiving device through the data line and execute the charging voltage determination method according to any one of claims 1-6.

10. A vehicle, characterized in that, It includes the in-vehicle domain controller according to claim 9.

11. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the charging voltage determination method according to any one of claims 1-7.

12. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, it implements the charging voltage determination method according to any one of claims 1-7.