A Charging Optimization Method and System Based on Communication between Charger and Device
Through the charger communicating with the device, fast charging negotiation messages and connection disconnection time are obtained, connection reliability characteristic values are calculated, and charging mode is automatically adjusted to slow charging, which solves the battery aging problem caused by fast charging and extends battery life.
Patent Information
- Application Number
- CN202510232692.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-02-28
- Publication Date
- 2025-07-11
- Estimated Expiration
- 2045-02-28
AI Technical Summary
The prior art cannot effectively alleviate the aging of the battery by fast charging technology, especially in smart devices, and it is difficult to guarantee the behavior of users changing the equipment on time.
Through the charger and the device, obtain fast charging negotiation messages, connection disconnection time and charging preference table, calculate connection reliability characteristic values, and adjust the charging mode to slow charging to reduce battery loss.
Without relying on users to actively operate, the charger can automatically adjust the charging mode according to users' charging habits, extend battery life and reduce the damage to the battery by fast charging.
Smart Images

Figure CN119727053B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of intelligent chargers, and particularly 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 lives, especially in the fields 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 an acceleration of the internal chemical reactions of the battery, thus affecting the long-term stability and lifespan of the battery.
[0003] Currently, the common way for people to eliminate the drawbacks of fast charging technology is to increase the fault tolerance of the battery end. Taking smartphones as an example, manufacturers usually conduct battery life tests before the devices leave the factory to ensure that under normal usage conditions, even after 2 to 3 years of use, the remaining capacity of the battery can still remain above 80%. Such battery performance is considered qualified.
[0004] However, this does not fundamentally solve the problem of fast charging technology accelerating the aging of the battery, and it is also unrealistic to expect all users in practice to strictly replace the device on time according to the manufacturer's suggestions. 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 to solve the problem in the prior art that the phenomenon of battery aging caused by 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, including:
[0007] Obtain a fast charging negotiation message, a connection disconnection time, and a charging preference table, where the charging preference table includes a plurality of preference values, each preference value corresponds to a time unit, and the preference value represents the probability that the charger and the device are in a connected state within its corresponding time unit;
[0008] Obtain a charging start time and a charging adjustment time according to the fast charging negotiation message;
[0009] Update the charging preference table according to the charging start time, the charging adjustment time, and the connection disconnection time;
[0010] Obtain a real-time connection time, and calculate a 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;
[0011] Adjust the charger from the fast charging state to the slow charging state according to the connection reliability eigenvalue.
[0012] The present invention also provides a preferred solution: update the charging preference table according to the charging start time, the charging adjustment time, and the connection disconnection time, including:
[0013] Based on the first adjustment amplitude, adjust the preference values of all time units within the time period from the charging start time to the charging adjustment time;
[0014] Based on the second adjustment amplitude, adjust the preference values of all time units within the time period from the charging start time to the connection disconnection time;
[0015] Wherein, the first adjustment amplitude is less than the second adjustment amplitude.
[0016] The present invention also provides a preferred solution: the charging adjustment time includes the current reduction time and the charging stop time; update the charging preference table according to the charging start time, the charging adjustment time, and the connection disconnection time, including:
[0017] Mark the time unit corresponding to the charging start time;
[0018] If the current reduction time is obtained, adjust the preference value of the time unit corresponding to the charging start time based on the first adjustment value;
[0019] If the charging stop time is obtained, adjust the preference values of all time units within the time period from the charging start time to the charging stop time based on the first adjustment value;
[0020] If the connection disconnection time is obtained, adjust the preference values of all time units within the time period from the charging start time to the connection disconnection time based on the first adjustment value, and adjust the preference value of the time unit corresponding to the charging start time based on the second adjustment value.
[0021] Wherein, the first adjustment value is less than the second adjustment value.
[0022] The present invention also provides a preferred solution: update the charging preference table according to the charging start time, the charging adjustment time, and the connection disconnection time, including:
[0023] Obtain the maximum and minimum values of all preference values in the charging preference table;
[0024] Based on the maximum and minimum values, adjust all the preference values in the charging preference table.
[0025] The present invention also provides a preferred solution: obtain the real-time connection time, and calculate the connection reliability eigenvalue 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, including:
[0026] Obtain the preference value of the time unit where the real-time connection time is located to get the first preference value;
[0027] Obtain the preference value of the adjacent time unit of the time unit where the real-time connection time is located to get the second preference value;
[0028] Obtain the average eigenvalue according to all the preference values in the charging preference table;
[0029] Obtain the connection reliability eigenvalue according to the first preference value, the second preference value and the average eigenvalue.
[0030] The present invention also provides a preferred solution: calculate the connection reliability eigenvalue through the following formula:
[0031] ;
[0032] Wherein, is the connection reliability eigenvalue, 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.
[0033] The present invention also provides a preferred solution: obtain the charging start time and the charging adjustment time according to the fast charging negotiation message, including:
[0034] Obtain the timestamp of receiving the fast charging negotiation message;
[0035] According to the type of the fast charging negotiation message, use the timestamp of receiving the fast charging negotiation message as the charging start time or the charging adjustment time.
[0036] The present invention also provides a preferred solution: the fast charging negotiation message includes a data message, and the data message includes a data message header field, a vendor-customized data message header field, and a data time unit representation field. Among them, 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; obtain the charging start time and the charging adjustment time according to the fast charging negotiation message, including:
[0037] Obtain the data message and extract the data time unit representation field;
[0038] Obtain the charging start time or the charging adjustment time according to the data time unit representation field.
[0039] The present invention also provides a preferred solution: The fast charging negotiation message includes an extended message, and the extended message includes an extended message header field, a vendor-customized extended message header field, and an extended time unit representation field. Each bit extension in the extended time unit representation field corresponds to a time unit, and the arrangement order of multiple bit extensions in the extended time unit representation field from high to low conforms to the time order of their corresponding time units; According to the fast charging negotiation message, obtaining the charging start time and the charging adjustment time includes:
[0040] Obtain the extended message and extract the extended time unit representation field;
[0041] According to the extended time unit representation field, obtain the charging start time or the charging adjustment time.
[0042] The present invention also provides a charging optimization system based on the communication between a charger and a device, including:
[0043] A data preparation module for obtaining a fast charging negotiation message, a connection disconnection time, and a charging preference table. The charging preference table includes multiple preference values, each preference value corresponding to a time unit, and the preference value represents the probability that the charger and the device are in a connected state within its corresponding time unit;
[0044] A time extraction module for obtaining the charging start time and the charging adjustment time according to the fast charging negotiation message;
[0045] A preference analysis module for updating the charging preference table according to the charging start time, the charging adjustment time, and the connection disconnection time;
[0046] A reliability analysis module for obtaining the real-time connection time and calculating a 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;
[0047] A charging optimization module for adjusting the charger from the fast charging state to the slow charging state according to the connection reliability characteristic value.
[0048] The beneficial effects of adopting the above embodiments are:
[0049] The present invention provides a charging optimization method and system based on communication between a charger and a device. First, a fast charging negotiation message, a connection disconnection time, and a charging preference table are obtained. According to the fast charging negotiation message, a charging start time and a charging adjustment time are obtained. Then, based on the charging start time, the charging adjustment time, and the connection disconnection time, the charging preference table is updated. After that, a real-time connection time is obtained, and based on the time unit in which the real-time connection time is located and the charging preference table, a connection reliability characteristic value corresponding to the real-time connection time is calculated. Finally, according to the connection reliability characteristic value, the charger is adjusted from the fast charging state to the slow charging state. The present invention utilizes the fast charging negotiation message generated during the communication negotiation process of fast charging, enabling the charger to obtain the charging start time and the charging adjustment time, and combining the connection disconnection time to update the charging preference table, and the charging preference table represents the probability that the charger and the device are in a connected state at different times. In this way, the charger can determine 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 and improve the battery life, solving the problem in the prior art that the battery aging phenomenon caused by the fast charging technology cannot be alleviated from the charging end. BRIEF DESCRIPTION OF THE DRAWINGS
[0050] Figure 1 is a flowchart of the charging optimization method based on communication between a charger and a device provided by the present invention;
[0051] Figure 2 is Figure 1 a detailed step diagram of step S103 in
[0052] Figure 3 is Figure 1 a detailed step diagram of step S104 in
[0053] Figure 4 is a system structure diagram of the charging optimization system based on communication between a charger and a device provided by the present invention. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0054] Next, the technical solutions in the embodiments of the present invention will be clearly and completely described in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all of the embodiments. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present invention without creative efforts shall fall within the protection scope of the present invention.
[0055] In conjunction with Figure 1 shown, a specific embodiment of the present invention discloses a charging optimization method based on communication between a charger and a device, including:
[0056] S101. Obtain a fast charging negotiation message, a connection disconnection time, and a charging preference table. The charging preference table includes multiple preference values, each preference value corresponding to a time unit, and the preference value represents the probability that the charger and the device are in a connected state within its corresponding time unit.
[0057] S102. Obtain a charging start time and a charging adjustment time according to the fast charging negotiation message.
[0058] S103. Update the charging preference table according to the charging start time, the charging adjustment time, and the connection disconnection time.
[0059] S104. Obtain a real-time connection time, and calculate a 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.
[0060] S105. Adjust the charger from the fast charging state to the slow charging state according to the connection reliability characteristic value.
[0061] Fast charging negotiation is a communication mechanism between a device (such as a mobile phone) and a charger in the existing fast charging technology. Through this mechanism, they identify each other and negotiate to determine the correct voltage and current for charging. In the above process, the fast charging negotiation message refers to the message generated during the handshake negotiation for fast charging.
[0062] The charging preference table is newly proposed in the present invention and records the charging preferences of the user. It can be in the form of an array. Each value in the array is used to represent the probability that the user connects the charger and the device within a time unit. The time unit is an artificially defined unit time interval, such as 1 hour, 1 minute, etc. In terms of the current fast charging speed, it is more appropriate to define 15 - 30 minutes as a time unit. Taking 30 minutes as a time unit as an example, there are 48 30 - minute intervals in 24 hours a day, and the charging preference table can be designed as an array or vector with a length of 48.
[0063] The charging start time can be the actual start time of charging, or the time when the charger and the device are connected. For example, the user connects the mobile phone and the charger before going to bed at night. The charging adjustment time is the time for strategy adjustment during the charging process, such as the time for adjusting from constant voltage charging to trickle charging or the time for charging to stop. In the present invention, the charging adjustment time can be regarded as the time when the battery already has a certain amount of power to cope with the normal operation of the device. For example, in the early morning, the user is still in the sleep state, but the battery of the mobile phone has been charged to a certain extent or fully charged, and this moment is the charging adjustment time. The connection disconnection time is the time when the physical connection between the charger and the device is disconnected. In the present invention, the connection disconnection time can be regarded as the time when the user disconnects the device and the charger and officially puts the device into use. For example, in the morning, the user disconnects the mobile phone from the charger and leaves home to start working.
[0064] The real-time connection time refers to the time when the charger and the device are connected at the start of the current charging. That is, during this charging, it is judged whether to change from fast charging to slow charging according to the specific moment of the real-time connection time. The same as the example mentioned above, if the real-time connection time is the time when the user starts to sleep daily, it means that the charger and the device will be connected for a long time in the next period. At this time, fast charging is meaningless. On the contrary, slow charging at this time can not only meet the user's charging needs, but also reduce the impact of fast charging on battery aging. 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 starting from the real-time connection time.
[0065] It can be imagined that when the charger decides to perform slow charging, and the user may need fast charging due to some unexpected situations, some coercive measures can be taken to ensure that the charger charges in the fast charging mode, such as setting a fast charging switch or controlling it through the software level of the device. This is the prior art that those skilled in the art can think of and implement, and it is not the focus of the present invention, so no more description will be given.
[0066] It should be noted that the fast charging (rapid 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 charging speed corresponding to fast charging or slow charging in this article can be flexibly defined according to the actual situation, and only need to ensure that the charging speed of fast charging is faster than that of slow charging.
[0067] It can be understood that the principle of the present invention lies in analyzing the user's charging preferences, and during the time period when the user may connect the charger and the device together for a long time, replacing fast charging with slow charging as much as possible to reduce damage to the battery. Obviously, this idea can be simply implemented through intelligent devices such as smartphones. However, 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 the device side. The advantage of the present invention is that it can be improved at the charger end, enabling a device with poor computing power like the charger to also analyze the user's charging habits, minimizing the user's active actions as much as possible, and greatly improving the user experience.
[0068] The present invention utilizes the fast charging negotiation messages generated during the communication negotiation process of fast charging, enabling the charger to obtain the charging start time and the charging adjustment time, and updating the charging preference table in combination with the connection disconnection time. The charging preference table represents the probability that the charger and the device are in a connected state at different times. In this way, the charger can determine 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 battery loss caused by fast charging technology, improve the battery life, and solve the problem in the prior art that the battery aging phenomenon brought by fast charging technology cannot be alleviated from the charging end.
[0069] For the charger, the charging preference table can be stored by adding a memory. The time data can be provided by the charging device side and handed over to the charger using the fast charging negotiation data. It is also possible to set a real-time clock chip (RTC) during charging and synchronize it using the communication with the device during charging. It is also possible to integrate a communication structure (such as Bluetooth, etc.) in the charger to obtain the time data through communication.
[0070] Specifically, the charger can identify the connection disconnection time through the electrical signals of relevant pins. For the methods of obtaining the charging start time and the charging adjustment time, the present invention provides several preferred ways.
[0071] 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:
[0072] Obtain the time stamp of receiving the fast charging negotiation message;
[0073] According to the type of the fast charging negotiation message, use the time stamp of receiving the fast charging negotiation message as the charging start time or the charging adjustment time.
[0074] The above process is suitable for the condition that a clock chip is integrated in the charger. At this time, the charger itself can recognize the specific time, and only the current time needs to be recorded according to the specific meaning of the fast charging negotiation message. Taking the PD fast charging protocol as an example, when the power supply request message (the message of Request type) in the power supply negotiation message is received, the current moment is the charging start time; when the power supply is adjusted to the minimum (GotoMin), wait message (Wait), soft reset message (Soft_Reset) or reject the request of the other party (Reject) and other messages in the power supply negotiation message are received, the current moment is the charging adjustment time. The advantage of this embodiment is that it can completely eliminate the active operation of the device side, without the need to configure additional programs in devices such as mobile phones, and has good versatility, realizing plug and play.
[0075] The present invention also provides another preferred embodiment. In this embodiment, the fast charging negotiation message includes a data message, and the data message includes a data message header field, a vendor-defined data message header field, and a data time unit representation field. Among them, 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, obtaining the charging start time and the charging adjustment time according to the fast charging negotiation message, specifically includes:
[0076] Obtain the data message and extract the data time unit representation field;
[0077] Obtain the charging start time or the charging adjustment time according to the data time unit representation field.
[0078] The messages of the PD fast charging protocol are divided into control messages (Control Messages), data messages (Data Messages) and extended messages (Extend Messages). This embodiment is an improvement on the data message in the PD fast charging protocol. By using the vendor-defined type of message (Vendor Defined Message) in the data message to carry the time data provided by the device and send it to the charger, the charger can obtain the time. The specific message structure is as follows:
[0079]
[0080] In this embodiment, the data message header field and the vendor-defined data message header field are both fields in the prior art, while 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 the 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.
[0081] The data time unit field in this embodiment not only successfully represents the time and transmits it to the charger, but it also has an even more emphasized advantage, that is, this method can greatly simplify the changes to the hardware structure of the charger. 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 save 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, by applying simple logic gate circuits, the storage location of the preference value corresponding to each time unit in the storage array can be directly controlled. In this way, while enabling the charger to have the ability to analyze user preferences, the changes to the charger's hardware and firmware are minimized as much as possible, improving the stability of the charger, reducing costs, and making it more practical.
[0082] 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 vendor-defined extended message header field, and an extended time unit representation field. Among them, each bit in the extended time unit representation field corresponds to an extended time unit, and the arrangement order of multiple bits 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, obtaining the charging start time and the charging adjustment time according to the fast charge negotiation message, specifically includes:
[0083] Obtain the extended message and extract the extended time unit representation field;
[0084] Obtain the charging start time or the charging adjustment time according to the extended time unit representation field.
[0085] This embodiment is an improvement to the extended message in the PD fast charge protocol. By using the vendor-defined type of message (Vendor Defined Message) in the extended message to carry the time extension provided by the device and send it to the charger, the charger can obtain the time. The specific message structure is as follows:
[0086]
[0087] In this embodiment, both the extended message header field and the vendor-customized extended message header field are fields in the prior art, and the extended time unit representation field has the same meaning and beneficial effects as the data view unit representation field, so no further elaboration will be made.
[0088] Different from the previous embodiment, this embodiment uses the extended message as a carrier to transmit time information. In actual implementation, the data message is the main message type for controlling the start of charging and the adjustment of charging current, while the extended message is used to transmit more complex data and is generally not directly used to control the charging process. The specific utilization methods of the two embodiments are slightly different, and in practice, it can be flexibly designed according to the actual situation.
[0089] Furthermore, in a preferred embodiment, the above step S103, updating the charging preference table according to the charging start time, charging adjustment time, and connection disconnection time, specifically includes:
[0090] Based on the first adjustment amplitude, adjust the preference values of all time units within the time period from the charging start time to the charging adjustment time;
[0091] Based on the second adjustment amplitude, adjust the preference values of all time units within the time period from the charging start time to the connection disconnection time;
[0092] Wherein, the first adjustment amplitude is less than the second adjustment amplitude.
[0093] 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 conducts charging, and the preference values of the time units within this time period can be slightly adjusted. 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 values of the time units within this time period are adjusted significantly. As the user uses it, the preference values corresponding to the time units when the user often charges and does not disconnect the charger connection will be significantly different from the preference values of other time units. For example, if a larger preference value indicates a higher probability that the charger and the device are in a connected state, then as the user uses it, the preference values corresponding to the time periods when the user often charges will increase continuously with accumulation. In this way, it is possible to determine whether a time period is suitable for slow charging through the preference values.
[0094] However, it can be conceived that the charging start time can basically be obtained every time charging occurs, but the charging adjustment time and the connection disconnection time are not data that can be obtained every time charging is carried out. For example, if the user only performs a short charging and disconnects the connection before the charging strategy changes, the charging adjustment time data will not be obtained in this case. Another example is that if the user directly pulls out the charger from the socket, at this time the charger is in a power-off state, and obviously the connection disconnection time cannot be obtained either. To cope with this possible lack of time data, the present invention also provides a preferred embodiment.
[0095] Combined with 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:
[0096] S201. Mark the time unit corresponding to the charging start time;
[0097] S202. If the current reduction time is obtained, adjust the preference value of the time unit corresponding to the charging start time based on the first adjustment value;
[0098] S203. If the charging stop time is obtained, adjust the preference values of all time units within the time period from the charging start time to the charging stop time based on the first adjustment value;
[0099] S204. If the connection disconnection time is obtained, adjust the preference values of all time units within the time period from the charging start time to the connection disconnection time based on the first adjustment value, and adjust the preference value of the time unit corresponding to the charging start time based on the second adjustment value.
[0100] Wherein, the first adjustment value is less than the second adjustment value.
[0101] On the one hand, this embodiment subdivides the charging adjustment time, making the charging preference table more accurate, and also solves the problem of how to optimize the charging preference table in the case of possible lack of time data.
[0102] Under the condition that the larger the preference value indicates the higher the probability that the charger is connected to the device (and vice versa, which will not be elaborated further in this article), if there is only the charging start time, it is impossible to determine whether the user will perform long-term charging. Therefore, only the time unit corresponding to the charging start time is marked at this time, and the preference value is not adjusted. The current reduction time means that the charger starts to reduce the charging speed, for example, switches to trickle charging. At this time, the battery level 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 decreases, the user still has the possibility of disconnecting at any time. Therefore, only a small increase in the preference value corresponding to the charging start time is made at this time to ensure accuracy. The charging stop time indicates that the battery is fully charged, 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 impossible to determine whether switching to slow charging will meet the user's needs at this time. Therefore, a small increase in the preference value of all time units from the charging start time to the charging stop time can be made. When the disconnection time is received, it can be determined that the time from the charging start time to the 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. Then, a large increase in the preference value corresponding to the charging start time and a small increase in the preference value of all time units from the charging start time to the charging stop time can be made at this time.
[0103] The advantage of such a design is that even when the charger cannot obtain all the time data, the charging preference table will be slightly adjusted. With the user's use, the purpose of analyzing the user's habits can ultimately be achieved, but the speed is a bit slower.
[0104] A more specific implementation manner of this embodiment is as follows:
[0105] Assume that all preference values in the charging preference table are 0 in the initial state
[0106] When the charging start time is received, mark the corresponding time unit;
[0107] When the current reduction time is received, add 1 to the preference value of the time unit corresponding to the charging start time;
[0108] When the charging stop time is received, add 1 to the preference value of all time units from the charging start time to the charging stop time;
[0109] When the disconnection time is received, add 10 to the preference value of the time unit corresponding to the charging start time, and add 1 to the preference value of all time units from the charging start time to the charging stop time.
[0110] It is conceivable that as the user uses the device for a long time, all preference values in the charging preference table may increase, and there may be a situation where all preference values are relatively high. Therefore, it is necessary to adjust the charging preference table regularly to control the overall level of all preference values and avoid data overflow. A preferred method is that the above step S103, updating the charging preference table according to the charging start time, charging adjustment time, and connection disconnection time, further includes:
[0111] Obtain the maximum and minimum values of all preference values in the charging preference table;
[0112] Based on the maximum and minimum values, adjust all preference values in the charging preference table.
[0113] In the above process, the maximum and minimum values can be either the maximum value or the minimum value, and are flexibly selected according to the meaning of the preference values.
[0114] After the charging preference table is configured, it is possible to determine whether a time is suitable for slow charging according to the preference value. For example, the preference value of the time unit can be directly used as the connection reliability characteristic value. If the preference value of the time unit corresponding to a time exceeds the preset threshold, it can be considered that the time is suitable for slow charging.
[0115] The present invention also provides a preferred embodiment. As shown in Figure 3 In a preferred embodiment, the above step S104, obtaining the real-time connection time, and based on the charging preference table, 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, specifically includes:
[0116] S301: Obtain the preference value of the time unit where the real-time connection time is located to obtain the first preference value;
[0117] S302: Obtain the preference values of the adjacent time units of the time unit where the real-time connection time is located to obtain the second preference value;
[0118] S303: Obtain the average characteristic value according to all preference values in the charging preference table;
[0119] S304: Obtain the connection reliability characteristic value according to the first preference value, the second preference value, and the average characteristic value.
[0120] In the above process, the second preference value represents the preference value of adjacent time periods for implementing the connection time. The average eigenvalue can be an average value or any statistically parameter defined by oneself, and is used to represent the overall numerical level of the preference table. In this embodiment, the second preference value is further increased, so that when calculating the connection reliability eigenvalue, the overall change law of the preference is considered, rather than being limited to the preference of the real-time connection time itself. The average eigenvalue further incorporates the consideration of the overall level of the preference value, making the calculation result of the connection reliability eigenvalue more scientific and reasonable.
[0121] It can be understood that there is only one first preference value, while there are multiple second preference values. The adjacent time units in the above content refer to the time units in a period of time near the real-time connection time on the time scale, and the specific size of the neighborhood can be set flexibly, for example, it can be 1 - 3 time units.
[0122] Further, in a preferred embodiment, in the above step S304, the connection reliability eigenvalue is calculated by the following formula:
[0123] ;
[0124] Wherein, is the connection reliability eigenvalue, 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. The above three weight coefficients can be obtained through experiments, experience, etc., and are preset hyperparameters.
[0125] In this embodiment, the second preference value is further divided into the second preference value at the moment before the real-time connection time and the real-time preference value at the moment after the real-time connection time, and they are respectively weighted and summed with different weights, and finally the reliability eigenvalue is obtained. The charging preference table in the present invention is established based on the charging start time. Then obviously, the attention degree to the preference value of the time unit after the real-time connection time should be higher than that to the preference value of the time unit before the real-time connection time.
[0126] Combined with Figure 4 as shown, the present invention also provides a charging optimization system based on the communication between the charger and the device, including:
[0127] A data preparation module 410 is configured to obtain a fast charging negotiation message, a disconnection time, and a charging preference table. The charging preference table includes a plurality of preference values, each preference value corresponding to a time unit, and the preference value represents the probability that the charger and the device are in a connected state within its corresponding time unit.
[0128] A time extraction module 420 is configured to obtain a charging start time and a charging adjustment time according to the fast charging negotiation message.
[0129] A preference analysis module 430 is configured to update the charging preference table according to the charging start time, the charging adjustment time, and the disconnection time.
[0130] A reliability analysis module 440 is configured to obtain a real-time connection time, and calculate a 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.
[0131] A charging optimization module 450 is configured to adjust the charger from a fast charging state to a slow charging state according to the connection reliability characteristic value.
[0132] 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 refer to the corresponding content in the above method embodiments, which will not be elaborated here.
[0133] The present invention provides a charging optimization method and system based on communication between a charger and a device. First, it obtains a fast charging negotiation message, a disconnection time, and a charging preference table, and obtains a charging start time and a charging adjustment time according to the fast charging negotiation message. Then, it updates the charging preference table according to the charging start time, the charging adjustment time, and the disconnection time. After that, it obtains a real-time connection time, and calculates a 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. Finally, it adjusts the charger from a fast charging state to a slow charging state according to the connection reliability characteristic value. The present invention utilizes the fast charging negotiation message generated during the communication negotiation process of fast charging, enabling the charger to obtain the charging start time and the charging adjustment time, and updating the charging preference table in combination with the disconnection time. The charging preference table represents 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 and improve the battery life, solving the problem in the prior art that the battery aging phenomenon caused by the fast charging technology cannot be alleviated from the charging end.
[0134] It should be noted that the embodiments in this specification are all described in a progressive manner. Each embodiment focuses on the differences from other embodiments. For the same or similar parts among the embodiments, reference can be made to each other.
[0135] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present invention. Various modifications to these embodiments will be obvious to those skilled in the art. The general principles defined herein can 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 will be accorded 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 Including: Obtain a fast charging negotiation message, a connection disconnection time, and a charging preference table, where the charging preference table includes multiple preference values, each preference value corresponding to a time unit, and the preference value represents the probability that the charger and the device are in a connected state within its corresponding time unit; Obtain a charging start time and a charging adjustment time according to the fast charging negotiation message; Update the charging preference table according to the charging start time, the charging adjustment time, and the connection disconnection time; Obtain the preference value of the time unit where the real-time connection time is located to obtain a first preference value; Obtain the preference values of the adjacent time units of the time unit where the real-time connection time is located to obtain a second preference value; Obtain an average characteristic value according to all the preference values in the charging preference table; Obtain a connection reliability characteristic value according to the first preference value, the second preference value, and the average characteristic value; Adjust the charger from the fast charging state to the slow charging state according to the connection reliability characteristic value; Wherein, the connection reliability characteristic value is calculated by the following formula: ; Among them, is the connection reliability eigenvalue, 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.
2. The charging optimization method based on communication between a charger and a device according to claim 1, wherein Updating the charging preference table according to the charging start time, the charging adjustment time, and the connection disconnection time includes: Based on a first adjustment amplitude, adjust the preference values of all time units within the time period from the charging start time to the charging adjustment time; Based on a second adjustment amplitude, adjust the preference values of all time units within the time period from the charging start time to the connection disconnection time; Wherein, the first adjustment amplitude is less than the second adjustment amplitude.
3. The charging optimization method based on communication between a charger and a device according to claim 1, wherein The charging adjustment time includes a current reduction time and a charging stop time; updating the charging preference table according to the charging start time, the charging adjustment time, and the connection disconnection time includes: Mark the time unit corresponding to the charging start time; If the current reduction time is obtained, adjust the preference value of the time unit corresponding to the charging start time based on a first adjustment value; If the charging stop time is obtained, adjust the preference values of all time units within the time period from the charging start time to the charging stop time based on a first adjustment value; If the connection disconnection time is obtained, adjust the preference values of all time units within the time period from the charging start time to the connection disconnection time based on a first adjustment value, and adjust the preference value of the time unit corresponding to the charging start time based on a second adjustment value; Wherein, the first adjustment value is less than the second adjustment value.
4. The charging optimization method based on communication between a charger and a device according to claim 3, wherein Updating the charging preference table according to the charging start time, the charging adjustment time, and the connection disconnection time includes: Obtain the maximum and minimum values of all the preference values in the charging preference table; Based on the maximum and minimum values, adjust all the preference values in the charging preference table.
5. The charging optimization method based on communication between a charger and a device according to claim 1, wherein Obtaining the charging start time and the charging adjustment time according to the fast charging negotiation message includes: Obtain the time stamp when the fast charging negotiation message is received; According to the type of the fast charging negotiation message, use the time stamp when the fast charging negotiation message is received as the charging start time or the charging adjustment time.
6. The charging optimization method based on charger-device communication according to claim 1, wherein The fast charging negotiation message includes a data message, and the data message includes a data message header field, a vendor-customized data message header field, and a data time unit representation field. 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 the high bit to the low bit conforms to the time order of its corresponding time unit. According to the fast charging negotiation message, obtaining the charging start time and the charging adjustment time includes: Obtaining the data message and extracting the data time unit representation field; Obtaining the charging start time or the charging adjustment time according to the data time unit representation field.
7. The charging optimization method based on communication between a charger and a device according to claim 1, wherein The fast charging negotiation message includes an extended message, and the extended message includes an extended message header field, a vendor-customized extended message header field, and an extended time unit representation field. Each extended bit in the extended time unit representation field corresponds to a time unit, and the arrangement order of multiple extended bits in the extended time unit representation field from the high bit to the low bit conforms to the time order of its corresponding time unit. According to the fast charging negotiation message, obtaining the charging start time and the charging adjustment time includes: Obtaining the extended message and extracting the extended time unit representation field; Obtaining the charging start time or the charging adjustment time according to the extended time unit representation field.
8. A charging optimization system based on communication between a charger and a device, characterized in that Including: A data preparation module, configured to obtain a fast charging negotiation message, a connection disconnection time, and a charging preference table. The charging preference table includes multiple preference values, each preference value corresponding to a time unit, and the preference value indicating the probability that the charger and the device are in a connected state within its corresponding time unit; A time extraction module, configured to obtain the charging start time and the charging adjustment time according to the fast charging negotiation message; A preference analysis module, configured to update the charging preference table according to the charging start time, the charging adjustment time, and the connection disconnection time; A reliability analysis module, configured to obtain a first preference value by obtaining the preference value of the time unit where the real-time connection time is located; Obtaining the preference value of the adjacent time unit of the time unit where the real-time connection time is located to obtain a second preference value; Obtaining an average eigenvalue according to all the preference values in the charging preference table; Obtaining a connection reliability eigenvalue according to the first preference value, the second preference value, and the average eigenvalue; A charging optimization module, configured to adjust the charger from the fast charging state to the slow charging state according to the connection reliability eigenvalue; Wherein, the connection reliability eigenvalue is calculated by the following formula: ; Among them, is the connection reliability eigenvalue, 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.
Citation Information
Patent Citations
Charging method, device and apparatus and computer readable storage medium
CN109687547A
New energy battery health management method and system
CN116749830A