Charging optimization method and system based on communication between charger and equipment
Through communication between the charger and the device, updating the charging preference meter and adjusting the charging mode, the problem of fast charging technology in battery aging is solved and the battery life is improved.
Patent Information
- Application Number
- CN202510232692.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-02-28
- Publication Date
- 2025-03-28
- Estimated Expiration
- 2045-02-28
AI Technical Summary
The prior art cannot effectively alleviate the impact of fast charging technology on battery aging from the charging end.
Through communication between the charger and the device, obtain fast charging negotiation messages, connection disconnection time and charging preference table, update the charging preference table, calculate the connection reliability characteristic value based on the real-time connection time, and adjust the charger to switch from fast charging state to slow charging state.
It effectively reduces the battery loss of fast charging technology, improves the battery life, and solves the problem of battery aging caused by fast charging technology in the existing technology that cannot be alleviated from the charging end.
Smart Images

Figure CN119727053A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of intelligent chargers, and in particular to a charging optimization method and system based on communication between a charger and a device. Background Art
[0002] As a modern charging solution, fast charging technology has become an indispensable part of people's daily life, especially in the field of smartphones and other portable electronic devices. Fast charging technology accelerates the charging process by increasing the current and voltage, but this high-power charging method may lead to the acceleration of chemical reactions inside the battery, thus affecting the long-term stability and life of the battery.
[0003] Currently, people usually eliminate the drawbacks of fast charging technology by increasing the fault tolerance of the battery. Taking smartphones as an example, manufacturers usually conduct battery life tests before the device leaves the factory to ensure that under normal conditions of use, even after 2 to 3 years of use, the remaining capacity of the battery can still be maintained at more than 80%. Such battery performance is considered qualified.
[0004] However, this does not fundamentally solve the problem of fast charging technology accelerating battery aging, and it is unrealistic to expect all users to strictly follow the manufacturer's recommendations to replace their devices on time. Therefore, people need a technology that can alleviate the problem of battery aging caused by fast charging technology from the charging end. Summary of the invention
[0005] Therefore, the present invention provides a charging optimization method and system based on communication between a charger and a device, so as to solve the problem in the prior art that the battery aging phenomenon caused by the fast charging technology cannot be alleviated from the charging end.
[0006] The present invention provides a charging optimization method based on communication between a charger and a device, comprising: Obtaining fast charging negotiation messages, connection disconnection time, and a charging preference table, wherein the charging preference table includes multiple preference values, each preference value corresponds to a time unit, and the preference value indicates the probability that the charger and the device are in a connected state within the corresponding time unit; According to the fast charge negotiation message, the charging start time and charging adjustment time are obtained; updating the charging preference table according to the charging start time, the charging adjustment time, and the connection disconnection time; Obtain the real-time connection time, and calculate the connection reliability characteristic value corresponding to the real-time connection time based on the time unit where the real-time connection time is located and the charging preference table; According to the connection reliability characteristic value, the charger is adjusted from a fast charging state to a slow charging state.
[0007] The present invention also provides a preferred solution: updating the charging preference table according to the charging start time, the charging adjustment time and the connection disconnection time, including: Based on the first adjustment range, adjusting the preference values of all time units in the time period from the charging start time to the charging adjustment time; Based on the second adjustment amplitude, adjusting the preference values of all time units in the time period from the charging start time to the connection disconnection time; The first adjustment range is smaller than the second adjustment range.
[0008] The present invention also provides a preferred solution: the charging adjustment time includes the current reduction time and the charging stop time; and the charging preference table is updated according to the charging start time, the charging adjustment time, and the connection disconnection time, including: Marking the time unit corresponding to the charging start time; If the current reduction time is obtained, adjusting the preference value of the time unit corresponding to the charging start time based on the first adjustment value; If the charging stop time is obtained, adjusting the preference values of all time units in the time period from the charging start time to the charging stop time based on the first adjustment value; If the disconnection time is obtained, the preference values of all time units in the time period from the charging start time to the disconnection time are adjusted based on the first adjustment value, and the preference value of the time unit corresponding to the charging start time is adjusted based on the second adjustment value.
[0009] The first adjustment value is smaller than the second adjustment value.
[0010] The present invention also provides a preferred solution: updating the charging preference table according to the charging start time, the charging adjustment time and the connection disconnection time, including: Get the maximum value of all preference values in the charging preference table; Based on the minimum value, adjust all preference values in the charging preference table.
[0011] The present invention also provides a preferred solution: obtaining the real-time connection time, and calculating the connection reliability characteristic value corresponding to the real-time connection time based on the time unit where the real-time connection time is located and the charging preference table, including: Obtaining a preference value of a time unit where the real-time connection time is located, and obtaining a first preference value; Obtaining the preference values of adjacent time units of the time unit where the real-time connection time is located, to obtain a second preference value; According to all the preference values in the charging preference table, the average characteristic value is obtained; A connection reliability characteristic value is obtained according to the first preference value, the second preference value and the average characteristic value.
[0012] The present invention also provides a preferred solution: the connection reliability characteristic value is calculated by the following formula: ; in, is the connection reliability characteristic value, is the first preference value, is the second preference value corresponding to the adjacent time unit before the time unit where the real-time connection time is located, is the second preference value corresponding to the adjacent time unit after the time unit where the real-time connection time is located, is the average eigenvalue, , and are all weight coefficients.
[0013] The present invention also provides a preferred solution: obtaining the charging start time and the charging adjustment time according to the fast charging negotiation message, including: Get the timestamp of receiving the fast charge negotiation message; According to the type of the fast charge negotiation message, the timestamp of receiving the fast charge negotiation message is used as the charging start time or the charging adjustment time.
[0014] The present invention also provides a preferred solution: the fast charge negotiation message includes a data message, the data message includes a data message header field, a supplier-defined data message header field, and a data time unit representation field, wherein each bit of data in the data time unit representation field corresponds to a time unit, and the arrangement order of multiple bits of data in the data time unit representation field from high to low conforms to the time order of the corresponding time units; according to the fast charge negotiation message, the charging start time and the charging adjustment time are obtained, including: Get the data message and extract the data time unit representation field; According to the data time unit representation field, the charging start time or the charging adjustment time is obtained.
[0015] The present invention also provides a preferred solution: the fast charge negotiation message includes an extended message, the extended message includes an extended message header field, a supplier-defined extended message header field, and an extended time unit representation field, wherein each bit extension in the extended time unit representation field corresponds to a time unit, and the arrangement order of the multiple bits of extension in the extended time unit representation field from high to low conforms to the time order of the corresponding time units; according to the fast charge negotiation message, the charging start time and the charging adjustment time are obtained, including: Get the extended message and extract the extended time unit representation field; According to the extended time unit representation field, the charging start time or the charging adjustment time is obtained.
[0016] The present invention also provides a charging optimization system based on communication between a charger and a device, comprising: A data preparation module is used to obtain fast charging negotiation messages, connection disconnection time and charging preference table, wherein the charging preference table includes multiple preference values, each preference value corresponds to a time unit, and the preference value indicates the probability that the charger and the device are in a connected state within the corresponding time unit; A time extraction module, used to obtain the charging start time and the charging adjustment time according to the fast charging negotiation message; A preference analysis module, for updating a charging preference table according to a charging start time, a charging adjustment time, and a connection disconnection time; A reliability analysis module, used to obtain the real-time connection time, and calculate the connection reliability characteristic value corresponding to the real-time connection time based on the time unit where the real-time connection time is located and the charging preference table; The charging optimization module is used to adjust the charger from a fast charging state to a slow charging state according to the connection reliability characteristic value.
[0017] The beneficial effects of adopting the above embodiment are: The present invention provides a charging optimization method and system based on communication between a charger and a device. The method first obtains a fast charging negotiation message, a connection disconnection time, and a charging preference table. According to the fast charging negotiation message, the charging start time and the charging adjustment time are obtained. Then, according to the charging start time, the charging adjustment time, and the connection disconnection time, the charging preference table is updated. Then, the real-time connection time is obtained, and according to the time unit where the real-time connection time is located, the connection reliability characteristic value corresponding to the real-time connection time is calculated based on the charging preference table. Finally, according to the connection reliability characteristic value, the charger is adjusted from a fast charging state to a slow charging state. The present invention utilizes the fast charging negotiation message generated during the fast charging communication negotiation process, so that the charger can obtain the charging start time and the charging adjustment time, and update the charging preference table in combination with the connection disconnection time, and the charging preference table indicates the probability that the charger and the device are in a connected state at different times. In this way, the charger can judge whether the charger will be connected to the device for a long time after the start of this charging based on the real-time connection time. Obviously, when the charger and the device are connected for a long time, the charging mode can be adjusted to slow charging to reduce the loss of the fast charging technology to the battery and improve the battery life, solving the problem that the battery aging phenomenon caused by the fast charging technology cannot be alleviated from the charging end in the prior art. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] Figure 1 A method flow chart of a charging optimization method based on communication between a charger and a device provided by the present invention; Figure 2 for Figure 1 Specific step diagram of step S103; Figure 3 for Figure 1 Specific step diagram of step S104; Figure 4 This is a system structure diagram of the charging optimization system based on charger-device communication provided by the present invention. DETAILED DESCRIPTION
[0019] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0020] Combination Figure 1 As shown, a specific embodiment of the present invention discloses a charging optimization method based on communication between a charger and a device, comprising: S101, obtaining a fast charge negotiation message, a connection disconnection time, and a charging preference table, wherein the charging preference table includes a plurality of preference values, each preference value corresponds to a time unit, and the preference value indicates the probability that the charger and the device are in a connected state within the corresponding time unit; S102. Obtaining a charging start time and a charging adjustment time according to a fast charging negotiation message; S103, updating the charging preference table according to the charging start time, the charging adjustment time, and the connection disconnection time; S104, obtaining the real-time connection time, and calculating the connection reliability characteristic value corresponding to the real-time connection time according to the time unit where the real-time connection time is located and based on the charging preference table; S105: Adjust the charger from a fast charging state to a slow charging state according to the connection reliability characteristic value.
[0021] Fast charge negotiation is a communication mechanism between devices (such as mobile phones) and chargers in existing fast charge technologies. Through this mechanism, they recognize each other and negotiate to determine the correct voltage and current for charging. In the above process, the fast charge negotiation message refers to the message generated by the handshake negotiation during fast charging.
[0022] The charging preference table is newly proposed by the present invention. It records the data of the user's charging preferences in the form of an array. Each value in the array is used to represent the probability that the user connects the charger to the device within a time unit. The time unit is a unit time interval defined artificially, such as 1 hour, 1 minute, etc. At the current fast charging speed, it is more appropriate to define 15 to 30 minutes as a time unit. Taking 30 minutes as a time unit as an example, there are 48 30 minutes in 24 hours a day, and the charging preference table can be designed as an array or vector with a length of 48.
[0023] The charging start time can be the moment when charging actually starts, or the moment when the charger and the device are connected, such as when the user connects the mobile phone and the charger before going to bed at night. The charging adjustment time is the time for adjusting the strategy during the charging process, such as the time to adjust from constant voltage charging to trickle charging or the time to stop charging. In the present invention, the charging adjustment time can be regarded as the time when the battery already has a part of the power to cope with the normal operation of the device. For example, in the early morning, the user is still asleep, but the mobile phone has been charged to a certain extent or is full. This moment is the charging adjustment time. The disconnection time is the time when the physical connection between the charger and the device is disconnected. In the present invention, the disconnection time can be regarded as the time when the user disconnects the device and the charger and officially puts the device into use, such as the time when the user disconnects the mobile phone from the charger in the morning and leaves home to start work.
[0024] The real-time connection time refers to the time when the charger and device are connected at the beginning of the current charge. That is, during this charge, the specific moment of the real-time connection time is used to determine whether to change fast charging to slow charging. Similar to the example given above, if the real-time connection time is the time when the user starts to sleep, it means that the charger and device will be connected for a long time in the next period of time. It makes no sense to fast charge at this time. On the contrary, slow charging at this time can not only meet the user's charging needs, but also reduce the impact of battery aging caused by fast charging. The standard for measuring whether the real-time connection time is suitable for slow charging is the connection reliability characteristic value. The meaning of the connection reliability characteristic value is: the possibility that the charger will be connected to the device for a long time in the next period of time after the real-time connection time starts.
[0025] It is conceivable that when the charger decides to perform slow charging, and the user may need fast charging due to some unexpected circumstances, some mandatory measures can be taken to ensure that the charger charges in fast charging mode, such as setting a fast charging switch, or controlling it through the software level of the device, etc. This is a prior art that can be thought of and implemented by those skilled in the art, and is not the focus of the present invention, so it will not be explained in detail.
[0026] It should be noted that the fast charging (quick charging) and slow charging (slow charging) in the present invention do not refer to the charging speed within a specific voltage or current range, but are relative. That is, the specific level of charging speed corresponding to the fast charging or slow charging in this article can be flexibly defined according to actual conditions. It is only necessary to ensure that the charging speed of the fast charging is faster than that of the slow charging.
[0027] It is understandable that the principle of the present invention is to analyze the user's charging preference, and replace fast charging with slow charging as much as possible during the time period when the user may connect the charger and the device for a long time, so as to reduce damage to the battery. Obviously, this idea can be easily implemented through smart devices such as smart phones, but in practice not all devices have good computing and analysis capabilities, and not all users are willing or able to actively set the fast charging strategy through one end of the device. The advantage of the present invention is that improvements can be made on the charger side, so that devices such as chargers with poor computing capabilities can also analyze the user's charging habits, minimize the user's active behavior, and greatly improve the user experience.
[0028] The present invention utilizes the fast charging negotiation message generated during the fast charging communication negotiation process, so that the charger can obtain the charging start time and charging adjustment time, and update the charging preference table in combination with the connection disconnection time, and the charging preference table indicates the probability that the charger and the device are in a connected state at different times. In this way, the charger can judge whether the charger will be connected to the device for a long time after the start of this charging based on the real-time connection time. Obviously, in the case where the charger and the device are connected for a long time, the charging mode can be adjusted to slow charging to reduce the loss of the fast charging technology to the battery, improve the battery life, and solve the problem that the prior art cannot alleviate the battery aging phenomenon caused by the fast charging technology from the charging end.
[0029] For the charger, the charging preference table can be stored by adding memory. The time data can be provided by the charging device and handed over to the charger using fast charging negotiation data. The clock chip (RTC) can also be set during charging to synchronize with the device during charging. The communication structure (such as Bluetooth, etc.) can also be integrated into the charger to obtain time data through communication.
[0030] Specifically, the charger can identify the connection and disconnection time through the electrical signal of the relevant pin. As for the method of obtaining the charging start time and the charging adjustment time, the present invention provides several preferred methods.
[0031] In a preferred embodiment, the above step S102, obtaining the charging start time and the charging adjustment time according to the fast charging negotiation message, specifically includes: Get the timestamp of receiving the fast charge negotiation message; According to the type of the fast charge negotiation message, the timestamp of receiving the fast charge negotiation message is used as the charging start time or the charging adjustment time.
[0032] The above process is suitable for the condition that a clock chip is integrated in the charger. At this time, the charger itself can identify the specific time, and it only needs to record the current time according to the specific meaning of the fast charging negotiation message. Taking the PD fast charging protocol as an example, when a power request message (Request type message) in the power supply negotiation message is received, the current time is the start time of charging; when the power supply is adjusted to the minimum (GotoMin), wait message (Wait), soft reset message (Soft_Reset) or the other party's request (Reject) is received in the power supply negotiation message, the current time is the charging adjustment time. The advantage of this embodiment is that it can completely eliminate the active operation of the device end, and there is no need to configure additional programs in mobile phones and other devices. It has good versatility and can be plug-and-play.
[0033] The present invention also provides another preferred embodiment. In this embodiment, the fast charge negotiation message includes a data message, and the data message includes a data message header field, a supplier-defined data message header field, and a data time unit representation field, wherein each bit of data in the data time unit representation field corresponds to a time unit, and the arrangement order of multiple bits of data in the data time unit representation field from high to low conforms to the time order of the corresponding time units. On this basis, the above step S102, according to the fast charge negotiation message, obtains the charging start time and the charging adjustment time, specifically including: Get the data message and extract the data time unit representation field; According to the data time unit representation field, the charging start time or the charging adjustment time is obtained.
[0034] The messages of the PD fast charging protocol are divided into control messages, data messages, and extended messages. This embodiment is an improvement on the data messages in the PD fast charging protocol. The vendor-defined message (Vendor Defined Message) in the data message carries the time data provided by the device and sends it to the charger, so that the charger can obtain the time. The specific message structure is: In this embodiment, the data message header field and the supplier-defined data message header field are both fields in the prior art, and the data time unit representation field is used to transmit time information. Similar to the charging preference table, each bit in the data time unit representation field in this embodiment also corresponds to a time unit. The value of one bit corresponding to the time unit where the current time is located is 1, and the rest are 0. Taking 30 minutes as a time unit as an example, the data time unit representation field is 48 bits.
[0035] The data time unit field in this embodiment not only successfully represents the time and transmits it to the charger, but also has an advantage that is worth emphasizing, that is, this method can greatly simplify the changes in the charger hardware structure. For example, taking 30 minutes as a time unit as an example, a storage array with a 48×8 bit configuration is used to store the charging preference data. Specifically, each byte in the storage array is allocated to store the charging preference value of a specific time unit. In this embodiment, the representation method of the data time unit adopts a mechanism similar to One-Hot Encoding, which means that each time unit is represented by a unique bit pattern. Therefore, according to the bit pattern of the data time unit, the storage location of the preference value corresponding to each time unit in the storage array can be directly controlled by applying a simple logic gate circuit. In this way, the charger is equipped with the ability to analyze user preferences while the changes to the charger hardware and firmware are as small as possible, which improves the stability of the charger, reduces costs, and makes it more practical.
[0036] The present invention also provides another preferred embodiment. In this embodiment, the fast charge negotiation message includes an extended message, and the extended message includes an extended message header field, a supplier-defined extended message header field, and an extended time unit representation field, wherein each bit extension in the extended time unit representation field corresponds to a time unit, and the order of the multiple bit extensions in the extended time unit representation field from high to low conforms to the time order of the corresponding time units. On this basis, the above step S102, according to the fast charge negotiation message, obtains the charging start time and the charging adjustment time, specifically including: Get the extended message and extract the extended time unit representation field; According to the extended time unit representation field, the charging start time or the charging adjustment time is obtained.
[0037] This embodiment is an improvement on the extended message in the PD fast charging protocol. In the extended message, the vendor-defined message (Vendor Defined Message) carries the time extension provided by the device and sends it to the charger, so that the charger can obtain the time. The specific message structure is: In this embodiment, the extended message header field and the vendor-defined extended message header field are both fields in the prior art, and the extended time unit representation field and the data view unit representation field have the same meaning and beneficial effects, so no further explanation will be given.
[0038] Different from the previous embodiment, this embodiment uses extended messages as a carrier to transmit time information. In actual implementation, data messages are the main message type used to control the start of charging and the adjustment of charging current, while extended messages are used to transmit more complex data and are generally not used directly to control the charging process. The specific utilization methods of the two embodiments are slightly different, and in practice they can be flexibly designed according to actual conditions.
[0039] Further, in a preferred embodiment, the above step S103, updating the charging preference table according to the charging start time, the charging adjustment time and the connection disconnection time, specifically includes: Based on the first adjustment range, adjusting the preference values of all time units in the time period from the charging start time to the charging adjustment time; Based on the second adjustment amplitude, adjusting the preference values of all time units in the time period from the charging start time to the connection disconnection time; The first adjustment range is smaller than the second adjustment range.
[0040] In the above process, the time period from the charging start time to the charging adjustment time can be considered as the time period when the user mainly charges, and the preference value of the time unit in this time period can be slightly adjusted, while the time period from the charging start time to the connection disconnection time is clearly the time period when the charger and the device are connected, and the preference value of the time unit in this time period is greatly adjusted. As the user uses it, the preference value corresponding to the time unit in which the user frequently charges and does not disconnect the charger will be significantly different from the preference values of other time units. For example, if the larger the preference value, the higher the probability that the charger and the device are in a connected state, then as the user uses it, the preference value corresponding to the time period in which the user frequently charges will accumulate and become higher. In this way, the preference value can be used to determine whether a time period is suitable for slow charging.
[0041] However, it is conceivable that the charging start time can be obtained basically every time charging is performed, but the charging adjustment time and the connection disconnection time are not data that can be obtained every time charging is performed. For example, if the user only performs a short charging and disconnects before the charging strategy is changed, the charging adjustment time data will not be obtained at this time. For another example, if the user directly unplugs the charger from the socket, the charger is in a power-off state at this time, and the connection disconnection time is obviously also unavailable. In order to cope with the situation where such time data may be missing, the present invention also provides a preferred embodiment.
[0042] Combination Figure 2 As shown, in a preferred embodiment, the above step S103, updating the charging preference table according to the charging start time, the charging adjustment time and the connection disconnection time, specifically includes: S201, marking the time unit corresponding to the charging start time; S202: If the current reduction time is obtained, adjusting the preference value of the time unit corresponding to the charging start time based on the first adjustment value; S203: If the charging stop time is obtained, adjusting the preference values of all time units in the time period from the charging start time to the charging stop time based on the first adjustment value; S204: If the disconnection time is obtained, the preference values of all time units in the time period from the charging start time to the disconnection time are adjusted based on the first adjustment value, and the preference value of the time unit corresponding to the charging start time is adjusted based on the second adjustment value.
[0043] The first adjustment value is smaller than the second adjustment value.
[0044] This embodiment, on the one hand, subdivides the charging adjustment time to make the charging preference table more accurate, and also solves the problem of how to optimize the charging preference table when time data may be missing.
[0045] Under the condition that the larger the preference value, the higher the probability that the charger and the device are in a connected state (the same is true in the opposite case, which will not be explained in detail in this article), since there is only the charging start time, it is impossible to determine whether the user will charge for a long time, so at this time, only the time unit corresponding to the charging start time is marked without adjusting the preference value. The current reduction time means that the charger starts to reduce the charging speed, such as using trickle charging. At this time, the battery power generally reaches a certain level, and it can be considered that the user has completed an effective charging at this time. It can be imagined that although the current is reduced, the user still has the possibility of disconnecting at any time, so at this time, only the preference value corresponding to the charging start time is slightly increased to ensure accuracy. The charging stop time means that the battery power is full, but the physical connection between the charger and the device has not been disconnected at this time. It can be considered that the user has a long-term charging behavior at this time, but it is still uncertain whether changing to slow charging will meet the user's needs at this time, so the preference values of all time units from the charging start time to the charging stop time can be slightly increased. When the connection disconnection time is received, it can be determined that the time from the charging start time to the connection disconnection time is the time when the user connects the device and the charger for a long time. At this time, slow charging can be used to reduce battery loss. At this time, the preference value corresponding to the charging start time can be greatly increased, and the preference values of all time units from the charging start time to the charging stop time can be slightly increased.
[0046] The advantage of this design is that even if the charger cannot obtain all the time data, the charging preference table will be slightly adjusted. As the user uses it, it will eventually be able to achieve the purpose of analyzing user habits, but the speed will be slower.
[0047] A more specific implementation of this embodiment is as follows: Assume that all preference values in the charging preference table are 0 in the initial state. When the charging start time is received, the corresponding time unit is marked; When receiving the current reduction time, the preference value of the time unit corresponding to the charging start time is increased by 1; When receiving the charging stop time, the preference value of all time units between the charging start time and the charging stop time is increased by 1; When the disconnection time is received, the preference value of the time unit corresponding to the charging start time is increased by 10, and the preference values of all time units between the charging start time and the charging stop time are increased by 1.
[0048] It is conceivable that with the long-term use of the user, all preference values in the charging preference table may increase, and then there may be a situation where all preference values are high. Therefore, it is necessary to adjust the charging preference table regularly to control the overall level of all preference values to avoid data overflow. A preferred method is that the above step S103, updating the charging preference table according to the charging start time, the charging adjustment time, and the connection disconnection time, also includes: Get the maximum value of all preference values in the charging preference table; Based on the minimum value, adjust all preference values in the charging preference table.
[0049] In the above process, the maximum value can be either the maximum value or the minimum value, which can be flexibly selected according to the meaning of the preference value.
[0050] After the charging preference table is configured, it is possible to determine whether a time is suitable for slow charging based on the preference value. For example, the preference value of a time unit can be directly used as a connection reliability feature value. If the preference value of a time unit corresponding to a time exceeds a preset threshold, it can be considered that the time is suitable for slow charging.
[0051] The present invention also provides a preferred embodiment, Figure 3 As shown, in a preferred embodiment, the above step S104, obtaining the real-time connection time, and calculating the connection reliability characteristic value corresponding to the real-time connection time based on the charging preference table according to the time unit where the real-time connection time is located, specifically includes: S301, obtaining a preference value of a time unit where a real-time connection time is located, and obtaining a first preference value; S302, obtaining the preference values of the adjacent time units of the time unit where the real-time connection time is located, and obtaining a second preference value; S303, obtaining an average characteristic value according to all preference values in the charging preference table; S304. Obtain a connection reliability characteristic value according to the first preference value, the second preference value and the average characteristic value.
[0052] In the above process, the second preference value represents the preference value of the adjacent time period of the implementation connection time, and the average characteristic value can be an average value or any self-defined statistical parameter, which is used to represent the overall numerical level of the preference table. This embodiment further adds a second preference value, so that the calculation of the connection reliability characteristic value takes into account the overall change law of the preference, rather than being limited to the preference of the real-time connection time itself. The average characteristic value further incorporates the consideration of the overall level of the preference value, making the calculation result of the connection reliability characteristic value more scientific and reasonable.
[0053] It is understandable that there is only one first preference value, while there are multiple second preference values. The adjacent time unit in the above content refers to a time unit of a period of time near the real-time connection time on the time scale, and the specific size of the neighborhood can be flexibly set, for example, 1-3 time units.
[0054] Furthermore, in a preferred embodiment, in the above step S304, the connection reliability characteristic value is calculated by the following formula: ; in, is the connection reliability characteristic value, is the first preference value, is the second preference value corresponding to the adjacent time unit before the time unit where the real-time connection time is located, is the second preference value corresponding to the adjacent time unit after the time unit where the real-time connection time is located, is the average eigenvalue, , and All are weight coefficients. The above three weight coefficients can be obtained through experiments, experience, etc., and are preset hyperparameters.
[0055] This embodiment further divides the second preference value into the second preference value before the real-time connection time and the real-time preference value after the real-time connection time, and weights and sums them respectively with different weights to finally obtain the reliability characteristic value. The charging preference table in the present invention is established based on the charging start time, so it is obvious that the preference value for the time unit after the real-time connection time should be more concerned than the preference value for the time unit before the real-time connection time.
[0056] Combination Figure 4 As shown, the present invention also provides a charging optimization system based on communication between a charger and a device, comprising: The data preparation module 410 is used to obtain a fast charge negotiation message, a connection disconnection time, and a charging preference table, wherein the charging preference table includes a plurality of preference values, each preference value corresponds to a time unit, and the preference value indicates the probability that the charger and the device are in a connected state within the corresponding time unit; A time extraction module 420 is used to obtain a charging start time and a charging adjustment time according to a fast charging negotiation message; A preference analysis module 430, for updating a charging preference table according to a charging start time, a charging adjustment time, and a connection disconnection time; The reliability analysis module 440 is used to obtain the real-time connection time and calculate the connection reliability characteristic value corresponding to the real-time connection time based on the time unit where the real-time connection time is located and the charging preference table; The charging optimization module 450 is used to adjust the charger from a fast charging state to a slow charging state according to the connection reliability characteristic value.
[0057] It should be noted here that the corresponding system provided in the above embodiments can implement the technical solutions described in the above method embodiments. The specific implementation principles of the above modules or units can be found in the corresponding contents in the above method embodiments, which will not be repeated here.
[0058] The present invention provides a charging optimization method and system based on communication between a charger and a device. The method first obtains a fast charging negotiation message, a connection disconnection time, and a charging preference table. According to the fast charging negotiation message, the charging start time and the charging adjustment time are obtained. Then, according to the charging start time, the charging adjustment time, and the connection disconnection time, the charging preference table is updated. Then, the real-time connection time is obtained, and according to the time unit where the real-time connection time is located, the connection reliability characteristic value corresponding to the real-time connection time is calculated based on the charging preference table. Finally, according to the connection reliability characteristic value, the charger is adjusted from a fast charging state to a slow charging state. The present invention utilizes the fast charging negotiation message generated during the fast charging communication negotiation process, so that the charger can obtain the charging start time and the charging adjustment time, and update the charging preference table in combination with the connection disconnection time, and the charging preference table indicates the probability that the charger and the device are in a connected state at different times. In this way, the charger can judge whether the charger will be connected to the device for a long time after the start of this charging based on the real-time connection time. Obviously, when the charger and the device are connected for a long time, the charging mode can be adjusted to slow charging to reduce the loss of the fast charging technology to the battery and improve the battery life, solving the problem that the battery aging phenomenon caused by the fast charging technology cannot be alleviated from the charging end in the prior art.
[0059] It should be noted that the various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.
[0060] The above description of the disclosed embodiments enables one skilled in the art to implement or use the present invention. Various modifications to these embodiments will be apparent to one skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A charging optimization method based on communication between a charger and a device, characterized in that: include: Obtaining fast charging negotiation messages, connection disconnection time, and a charging preference table, wherein the charging preference table includes multiple preference values, each preference value corresponds to a time unit, and the preference value indicates the probability that the charger and the device are in a connected state within the corresponding time unit; According to the fast charge negotiation message, the charging start time and charging adjustment time are obtained; updating the charging preference table according to the charging start time, the charging adjustment time, and the connection disconnection time; Obtain the real-time connection time, and calculate the connection reliability characteristic value corresponding to the real-time connection time based on the time unit where the real-time connection time is located and the charging preference table; According to the connection reliability characteristic value, the charger is adjusted from a fast charging state to a slow charging state.
2. The charging optimization method based on communication between charger and device according to claim 1, characterized in that: Update the charging preference table based on the charging start time, charging adjustment time and connection disconnection time, including: Based on the first adjustment range, adjusting the preference values of all time units in the time period from the charging start time to the charging adjustment time; Based on the second adjustment amplitude, adjusting the preference values of all time units in the time period from the charging start time to the connection disconnection time; The first adjustment range is smaller than the second adjustment range.
3. The charging optimization method based on charger-device communication according to claim 1, characterized in that: The charging adjustment time includes the current reduction time and the charging stop time. According to the charging start time, the charging adjustment time and the connection disconnection time, the charging preference table is updated, including: Marking the time unit corresponding to the charging start time; If the current reduction time is obtained, adjusting the preference value of the time unit corresponding to the charging start time based on the first adjustment value; If the charging stop time is obtained, adjusting the preference values of all time units in the time period from the charging start time to the charging stop time based on the first adjustment value; If the disconnection time is obtained, the preference values of all time units in the time period from the charging start time to the disconnection time are adjusted based on the first adjustment value, and the preference value of the time unit corresponding to the charging start time is adjusted based on the second adjustment value; The first adjustment value is smaller than the second adjustment value.
4. The charging optimization method based on communication between charger and device according to claim 3, characterized in that: Update the charging preference table based on the charging start time, charging adjustment time and connection disconnection time, including: Get the maximum value of all preference values in the charging preference table; Based on the minimum value, adjust all preference values in the charging preference table.
5. The charging optimization method based on charger-device communication according to claim 1, characterized in that: The real-time connection time is obtained, and according to the time unit where the real-time connection time is located, based on the charging preference table, the connection reliability characteristic value corresponding to the real-time connection time is calculated, including: Obtaining a preference value of a time unit where the real-time connection time is located, and obtaining a first preference value; Obtaining the preference values of adjacent time units of the time unit where the real-time connection time is located, to obtain a second preference value; According to all the preference values in the charging preference table, the average characteristic value is obtained; A connection reliability characteristic value is obtained according to the first preference value, the second preference value and the average characteristic value.
6. The charging optimization method based on charger-device communication according to claim 5, characterized in that: The connection reliability characteristic value is calculated by the following formula: ; in, is the connection reliability characteristic value, is the first preference value, is the second preference value corresponding to the adjacent time unit before the time unit where the real-time connection time is located, is the second preference value corresponding to the adjacent time unit after the time unit where the real-time connection time is located, is the average eigenvalue, , and are all weight coefficients.
7. The charging optimization method based on charger-device communication according to claim 1, characterized in that: According to the fast charge negotiation message, the charging start time and charging adjustment time are obtained, including: Get the timestamp of receiving the fast charge negotiation message; According to the type of the fast charge negotiation message, the timestamp of receiving the fast charge negotiation message is used as the charging start time or the charging adjustment time.
8. The charging optimization method based on charger-device communication according to claim 1, characterized in that: The fast charge negotiation message includes a data message, which includes a data message header field, a vendor-defined data message header field, and a data time unit representation field, wherein each bit of data in the data time unit representation field corresponds to a time unit, and the arrangement order of multiple bits of data in the data time unit representation field from high to low conforms to the time order of the corresponding time units; according to the fast charge negotiation message, the charging start time and the charging adjustment time are obtained, including: Get the data message and extract the data time unit representation field; According to the data time unit representation field, the charging start time or the charging adjustment time is obtained.
9. The charging optimization method based on charger-device communication according to claim 1, characterized in that: The fast charge negotiation message includes an extended message, which includes an extended message header field, a vendor-defined extended message header field, and an extended time unit representation field, wherein each bit extension in the extended time unit representation field corresponds to a time unit, and the order of the multiple bit extensions in the extended time unit representation field from high to low conforms to the time order of the corresponding time units; according to the fast charge negotiation message, the charging start time and the charging adjustment time are obtained, including: Get the extended message and extract the extended time unit representation field; According to the extended time unit representation field, the charging start time or the charging adjustment time is obtained.
10. A charging optimization system based on communication between a charger and a device, characterized in that: include: A data preparation module is used to obtain fast charging negotiation messages, connection disconnection time and charging preference table, wherein the charging preference table includes multiple preference values, each preference value corresponds to a time unit, and the preference value indicates the probability that the charger and the device are in a connected state within the corresponding time unit; A time extraction module, used to obtain the charging start time and the charging adjustment time according to the fast charging negotiation message; A preference analysis module, for updating a charging preference table according to a charging start time, a charging adjustment time, and a connection disconnection time; A reliability analysis module, used to obtain the real-time connection time, and calculate the connection reliability characteristic value corresponding to the real-time connection time based on the time unit where the real-time connection time is located and the charging preference table; The charging optimization module is used to adjust the charger from a fast charging state to a slow charging state according to the connection reliability characteristic value.
Citation Information
Patent Citations
Charging method, device and apparatus and computer readable storage medium
CN109687547A
New energy battery health management method and system
CN116749830A
Charging control method and electronic equipment
CN116799884A
Intelligent control method and system of wireless charger and storage medium
CN117439240A
Quick charging control method and system
CN119481388A