Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system structures, techniques, etc. in order to provide a thorough understanding of the embodiments of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
It will be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It should also be understood that the term "and/or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
As used in this specification and the appended claims, the term "if" may be interpreted contextually as "when", "upon" or "in response to a determination" or "in response to a detection". Similarly, the phrase "if it is determined" or "if a [ described condition or event ] is detected" may be interpreted contextually to mean "upon determining" or "in response to determining" or "upon detecting [ described condition or event ]" or "in response to detecting [ described condition or event ]".
Furthermore, in the description of the present application and the appended claims, the terms "first," "second," "third," and the like are used for distinguishing between descriptions and not necessarily for describing or implying relative importance.
Reference throughout this specification to "one embodiment" or "some embodiments," or the like, means that a particular feature, structure, or characteristic described in connection with the embodiment is included in one or more embodiments of the present application. Thus, appearances of the phrases "in one embodiment," "in some embodiments," "in other embodiments," or the like, in various places throughout this specification are not necessarily all referring to the same embodiment, but rather "one or more but not all embodiments" unless specifically stated otherwise. The terms "comprising," "including," "having," and variations thereof mean "including, but not limited to," unless expressly specified otherwise.
It should be understood that, the sequence numbers of the steps in this embodiment do not mean the execution sequence, and the execution sequence of each process should be determined by the function and the inherent logic of the process, and should not constitute any limitation to the implementation process of the embodiment of the present application.
In order to explain the technical solution described in the present application, the following description will be given by way of specific examples.
Fig. 1 is a schematic diagram of a network architecture of a charging monitoring system according to an embodiment of the present disclosure, and for convenience of description, only a portion related to the embodiment is shown.
As shown in fig. 1, the charging monitoring system includes an electronic device 1 and a server 2.
The electronic device 1 and the server 2 may establish a communication connection in a wired or wireless manner, which is not limited herein. After the electronic device 1 is in communication connection with the server 2, data interaction can be performed, so that the charging abnormality of the electronic device can be judged.
The electronic device 1 may be a mobile phone, a tablet computer, or other devices, and the embodiment of the present application does not limit any specific type of the electronic device.
The server 2 may be a server associated with the electronic device, such as a server of the manufacturer of the electronic device.
It should be understood that the server 1 may be a single server or a server group including a plurality of servers.
It is to be understood that the number of electronic devices 1 and servers 2 in fig. 1 is merely exemplary. Any number may be selected and laid out according to the actual needs.
The electronic device 1 is configured to execute the charging monitoring method in the present application, and the electronic device 1 may monitor an average charging speed during the charging process, and send the average charging speed to the server 2, so as to provide the server 2 with the average charging speed for determining whether the electronic device is abnormally charged. The server 2 is configured to execute the abnormality determining method in the present application, and can determine whether the electronic device is abnormally charged through the average charging speed provided by the electronic device, and send a prompt when the electronic device is abnormally charged, so that an electronic device manufacturer can know the abnormal condition of the electronic device in the charging process in time, and thus, the abnormal condition is processed, and the charging speed of the electronic device is increased.
Optionally, the electronic device 1 may also determine that the charging is abnormal based on an average charging speed of the electronic device itself in the charging process.
Fig. 2 is a schematic view of an implementation flow of a charging monitoring method provided in an embodiment of the present application, where the charging monitoring method is applied to an electronic device. As shown in fig. 2, the charge monitoring method may include the steps of:
step 201, in the charging process of the electronic device, acquiring the continuous charging time of the electronic device in a target scene and the battery capacity increment in the continuous charging time.
The target scene is a scene where the electronic device is located in the charging process, such as a bright screen scene, a dead screen scene and the like.
If the screen of the electronic device is illuminated, it is determined that the electronic device is in a bright screen scene. For example, a user picks up the electronic device, manually presses a power key, and lights up a screen of a mobile phone, or the user plays a video and displays a game picture through the electronic device, in which case the electronic device is in a bright screen scene.
If the screen of the electronic device is not illuminated, it may be determined that the electronic device is in a screen-off scene. For example, the user manually presses a power key to turn off the screen, in which case the electronic device is in a screen-off scene.
It can be understood that there may be a scenario switch in the electronic device during the charging process, and there may also be no scenario switch. The scene switching described above is switching of different scenes. When the scene switching condition exists, the target scene includes a scene before switching and a scene after switching, for example, in the charging process, the electronic device is switched from a bright screen scene to a dead screen scene, then the scene before switching is the bright screen scene, and the scene after switching is the dead screen scene. When there is no scene switching, the number of target scenes is 1, for example, in the charging process, the electronic device is always in the screen-off scene, and then the target scene is the screen-off scene.
In an optional embodiment, the obtaining of the continuous charging time of the electronic device in the target scene and the battery capacity increment during the continuous charging time includes:
when the electronic equipment stops charging in a target scene or the battery capacity stops updating, acquiring the continuous charging time of the electronic equipment in the target scene and the battery capacity increment in the continuous charging time;
or when the scene of the electronic device is switched, acquiring the continuous charging time of the electronic device in the scene before switching and the battery capacity increment in the continuous charging time, wherein the scene before switching and the scene after switching are both target scenes.
The electronic device stops charging in the target scene, including but not limited to full charge, disconnection of the electronic device from the charging device, and the like.
When the electronic device is charged, there may be multiple charging modes, such as a fast charging mode, a normal charging mode, and the like, where a charging speed of the fast charging mode is greater than a charging speed of the normal charging mode. The charging full report includes, but is not limited to, fast charging full report, general charging full report, and the like. For example, when the full charge report is the full fast charge report, the average charging speed of the electronic device in different scenes of the fast charge stage can be counted based on the application.
The charging device is a power supply conversion device of the electronic equipment, such as a power adapter. The electronic device and the charging device may establish a communication connection in a wired or wireless manner, which is not limited herein.
Disconnection of the electronic device from the charging device indicates that the electronic device is switched from a charging state to a non-charging state.
The battery capacity stop updating includes, but is not limited to, the electronic device may still be charging, but the battery capacity is no longer updated. When determining whether the battery capacity stops updating, the battery capacity may be acquired at intervals of a preset time (e.g., 5 seconds), and if the battery capacities of two adjacent times are the same or have a small difference (e.g., a difference between the battery capacities of two adjacent times is smaller than a set value, which may be set according to an actual requirement, and is not limited herein), it may be determined that the battery capacity stops updating. When the battery capacity stops updating, the power percentage displayed on the electronic device also stops updating or updates slowly, so that whether the battery capacity stops updating or not can be judged according to the power percentage of the electronic device. For example, when a mobile phone is charged by a fast charge mode, the battery capacity is not updated when the charging reaches about 98% (i.e. the percentage of electric quantity). According to the method and the device, the average charging speed of the electronic equipment in different scenes of the capacity updating stage can be counted. The capacity update phase refers to a phase in which the battery capacity is updated all the time, that is, a phase before the update of the battery capacity is stopped.
When the electronic device stops charging or the battery capacity stops updating in the target scene, acquiring the time when the charging is stopped or the time when the battery capacity stops updating, and acquiring the battery capacity when the charging is stopped or the capacity when the battery capacity stops updating, wherein the time when the charging is stopped or the time when the battery capacity stops updating is the charging ending time of the electronic device in the target scene, and the battery capacity when the charging is stopped or the capacity when the battery capacity stops updating is the charging ending capacity of the electronic device in the target scene; calculating the difference value between the charging ending time and the charging starting time of the electronic equipment in the target scene to obtain the continuous charging time of the electronic equipment in the target scene; and calculating the difference value between the ending charging capacity and the starting charging capacity of the electronic equipment in the target scene to obtain the battery capacity increment of the electronic equipment in the target scene. The charging start time of the electronic device in the target scene is the time when the electronic device starts to be charged in the target scene, and the time can be recorded when the electronic device starts to be charged in the target scene. The starting charge capacity of the electronic device in the target scene is a battery capacity of the electronic device at the time of starting charge in the target scene, and the battery capacity may be recorded at the time of starting charge in the target scene.
When the scene switching occurs, the electronic equipment can acquire the time and the battery capacity when the scene switching occurs, wherein the time when the scene switching occurs is the charging ending time of the electronic equipment in the scene before the scene switching occurs, and the battery capacity when the scene switching occurs is the charging ending capacity of the electronic equipment in the scene before the scene switching occurs; calculating the difference value between the charging ending time and the charging starting time of the electronic equipment in the scene before switching to obtain the continuous charging time of the electronic equipment in the scene before switching; and calculating the difference value between the ending charging capacity and the starting charging capacity of the electronic equipment in the scene before switching to obtain the battery capacity increment of the electronic equipment in the scene before switching.
It is understood that the time when the scene switching occurs is also the charging start time of the electronic device in the scene after the switching, and the battery capacity when the scene switching occurs is also the charging start capacity of the electronic device in the scene after the switching. If any situation of scene switching, charging stopping or battery capacity updating stopping occurs in the electronic device in the scene after switching, the continuous charging time and the battery capacity increment of the electronic device in the scene after switching can be acquired.
For example, when the mobile phone starts to be charged, the mobile phone is in a bright screen scene, and in the charging process, if the mobile phone is switched from the bright screen scene to a blank screen scene, the continuous charging time of the mobile phone in the bright screen scene and the battery capacity increment in the continuous charging time can be obtained, the starting charging time and the starting charging capacity of the mobile phone in the blank screen scene are recorded, the mobile phone is continuously monitored, and two situations may occur in the monitoring process. In the first situation, if the situation that the screen-off scene of the mobile phone is switched to the screen-on scene is monitored, the charging ending time and the charging ending capacity of the mobile phone in the screen-off scene are recorded, the continuous charging time of the mobile phone in the screen-off scene and the increment of the battery capacity in the continuous charging time can be calculated, in this case, the ending charging time of the mobile phone in the screen-off scene is also the starting charging time of the mobile phone in the screen-on scene, the ending charging capacity of the mobile phone in the screen-off scene is also the starting charging capacity of the mobile phone in the screen-on scene, the mobile phone is continuously monitored, if the situation that the charging of the mobile phone is stopped or the battery capacity is stopped to be updated is monitored, the charging ending time and the charging ending capacity of the mobile phone in the bright screen scene are recorded, and the continuous charging time in the bright screen scene and the battery capacity increment in the continuous charging time can be updated at the moment. In the second case, if it is monitored that the mobile phone stops charging or the battery capacity stops updating, the end charging time and the end charging capacity of the mobile phone in the screen-off scene are recorded, and the continuous charging time of the mobile phone in the screen-off scene and the battery capacity increment in the continuous charging time can be calculated.
When the scene of the electronic equipment is switched, the continuous charging time and the battery capacity increment of the electronic equipment in different scenes can be obtained by respectively obtaining the continuous charging time and the battery capacity increment of the electronic equipment in the scene before switching and the scene after switching, so that whether the electronic equipment is abnormally charged in different scenes is judged based on the data. For example, in the charging process, the electronic device is switched from a bright screen scene to a screen-off scene, the scene before switching is the bright screen scene, the scene after switching is the screen-off scene, and whether the electronic device is abnormally charged in the bright screen scene and whether the electronic device is abnormally charged in the screen-off scene can be judged by respectively acquiring the continuous charging time and the battery capacity increment of the electronic device in the bright screen scene and the screen-off scene.
In consideration of the fact that a user may repeatedly perform scene switching during the charging process of the electronic device, in this case, the battery capacity of the electronic device may not be updated in time, and accuracy of the acquired battery capacity increment is affected, so in order to improve the accuracy of the acquired battery capacity increment, after acquiring the continuous charging time in the target scene, the electronic device may first determine whether the continuous charging time is greater than a time threshold, and when the continuous charging time is greater than the time threshold (for example, 2min), acquire the battery capacity increment in the continuous charging time. If the continuous charging time is less than or equal to the time threshold, the battery capacity of the electronic device may not be updated in time, and it is not necessary to acquire the battery capacity increment within the continuous charging time, that is, a scene with a short continuous charging time in the charging process may be ignored when it is determined whether the electronic device is abnormally charged. The time threshold is used for judging whether the battery capacity increment in the continuous charging time is acquired or not. Optionally, the time threshold may be set according to actual requirements, and is not limited herein.
If scene switching occurs in the charging process and the continuous charging time of each scene is greater than a time threshold, determining that both a bright screen scene and a screen-off scene exist in the charging process, and respectively acquiring the continuous charging time of the electronic equipment in the bright screen scene and the battery capacity increment in the continuous charging time, and the continuous charging time of the electronic equipment in the screen-off scene and the battery capacity increment in the continuous charging time; calculating the average charging speed of the electronic equipment in the bright screen scene based on the continuous charging time of the electronic equipment in the bright screen scene and the battery capacity increment in the continuous charging time, and determining whether the electronic equipment is abnormally charged in the bright screen scene based on the average charging speed of the electronic equipment in the bright screen scene; the average charging speed of the electronic equipment in the screen-off scene is calculated based on the continuous charging time of the electronic equipment in the screen-off scene and the battery capacity increment in the continuous charging time, and whether the charging of the electronic equipment is abnormal in the screen-off scene can be determined based on the average charging speed of the electronic equipment in the screen-off scene. Here, the present charging refers to charging in step 201.
Of course, only the bright screen scene or the off screen scene may exist during the charging process. For example, the electronic device is always in the screen-off scene during the charging process, or a scene switching occurs during the charging process, the continuous charging time of the screen-off scene is greater than the time threshold, but the continuous charging time of the screen-on scene is less than or equal to the time threshold, and for these cases, it can be considered that only the screen-off scene exists during the charging process. In the charging process, the electronic equipment is always in a bright screen scene, or scene switching occurs in the charging process, the continuous charging time of the bright screen scene is longer than a time threshold, but the continuous charging time of the screen-off scene is less than or equal to the time threshold, and for the situations, it can be considered that only the bright screen scene exists in the charging process.
Based on the continuous charging time and the battery capacity increment, a first average charging speed is calculated, step 202.
The first average charging speed is an average charging speed of the electronic equipment in a target scene. The first average charging speed may be obtained by dividing the battery capacity increment by the continuous charging time.
In order to avoid the electronic device repeatedly calculating the first average charging speed in the current charging, a charging speed flag may be set, where the charging speed flag indicates whether the first average charging speed has been calculated in the current charging. And if the charging speed mark is a first mark, calculating a first average charging speed based on the continuous charging time and the increment of the battery capacity, wherein the first mark indicates that the first average charging speed is not calculated in the current charging. After the first average charging speed is calculated, the charging speed flag needs to be updated synchronously, that is, the charging speed flag is updated to a second flag indicating that the first average charging speed is calculated in the current charging. For example, the first label is false and the second label is true.
It can be understood that, if the electronic device is disconnected from the charging device, it indicates that the charging is finished, and the charging speed flag may be updated to the first flag so as not to affect the calculation of the first average charging speed by the electronic device in the next charging.
In an application scenario, a mobile phone may be taken as an example to introduce a charging monitoring process thereof, and the charging monitoring process may be executed at intervals of a preset time (e.g., 5 seconds), that is, the charging monitoring process is executed every 5 seconds (which may be referred to as a charging 5-second thread). As shown in fig. 3, when a mobile phone is plugged into a power adapter, a charging 5s thread is started, the 5s thread has a monitoring function of starting a conventional buried point (the conventional buried point refers to a common buried point similar to a monitored average charging speed), the monitoring function thread runs once every 5s, if a power charger is just plugged, the thread is pulled up for the first time, if the thread is the first time, a current scene where the mobile phone is located (for example, led _ on ═ true represents a bright screen scene, and led _ on ═ false represents a dark screen scene), a current system time pre _ time (used for calculating a continuous charging time) and a current battery capacity pre _ rm (used for calculating a battery capacity increment) need to be recorded, and if the thread is not the first time, whether the mobile phone starts charging (i.e., whether charge _ start is equal to true) is determined, the determined criterion is that the state before 5 seconds is not charging, and the current state is charging; when charge _ start is equal to true, recalculating to acquire a current scene, a current system time pre _ time and a current battery capacity pre _ rm; and then judging whether the mobile phone stops charging (namely judging whether charge _ end is equal to true) or not, wherein the judgment standard is that the state before 5s is charging and the current state is non-charging. If the mobile phone meets any condition of charge _ end ═ true, full charge report and battery capacity stop updating, determining that the continuous charging time and the battery capacity increment in the scene of on-off screen need to be updated, and setting an update flag need _ update ═ true, otherwise, setting the update flag need _ update ═ false.
When led _ on is true for 5s, and simultaneously led _ on is false or need _ update is true, it indicates that the continuous charging time and the battery capacity increment in the bright screen scene need to be calculated. The current system time curr _ time is obtained, and the current system time curr _ time — last saved system time pre _ time >2min indicates that the continuous charging time in the bright screen scene has exceeded 2min, so the battery capacity increment ledon _ rm ═ curr _ rm-pre _ rm and the continuous charging time ledon _ time ═ curr _ time-pre _ time in the bright screen scene need to be recorded, and the mobile phone system time prejtime ═ curr _ time and the battery capacity prejrm ═ curr _ rm need to be updated.
When led _ on is false for 5s, and led _ on is true or need to be true, it indicates that the continuous charging time and the battery capacity increment in the screen-off scene need to be calculated. The current system time is acquired, and the current system time curr _ time-last saved system time prejtime >2min indicates that the continuous charging time in the screen-off scene has exceeded 2min, so it is necessary to record the battery capacity increment ledoff _ rm ═ curr _ rm-pre _ rm and the continuous charging time ledoff _ time ═ curr _ time-pre _ time in the screen-off scene, and renew and update the handset system time prejtime ═ curr _ time and the battery capacity prejrm ═ curr _ rm. And the state of the previous led _ on is updated to the state of the current led _ on every 5 s.
As shown in fig. 4, after the current led _ on state is updated, if the mobile phone satisfies any one of the conditions of charge _ end _ true, full charge report, and update stop of battery capacity, a calculation process is triggered, and the average charging speed in the bright screen scene and the average charging speed in the off screen scene are calculated only once for one time, so to avoid repeated calculation, a charging speed flag is set, if yes, the calculation is not performed again, if not, whether the continuous charging time ledon _ time in the bright screen scene is equal to 0 is determined, if ledon _ time is equal to 0, the average charging speed ledon _ ave _ speed in the bright screen scene is set as ledon _ ave _ speed 0, and if ledon _ time is not equal to 0, the average charging speed ledon _ ave _ speed in the bright screen scene is set as ledon _ rm/ledon _ time; similarly, whether the continuous charging time ledoff _ time in the screen-off scene is equal to 0 or not is judged, if the ledoff _ time is equal to 0, the average charging speed ledoff _ ave _ speed in the screen-off scene is set to 0, and if not, the average charging speed ledoff _ ave _ speed in the screen-off scene is set to ledoff _ rm/ledoff _ time.
When the mobile phone is disconnected from the power adapter (for example, the power adapter is pulled out), it may trigger the voltage output by the power adapter to be interrupted, then calculate an average charging speed, and if the average charging speed is calculated, reset all variables to default values, for example, ledon _ rm-0 \ ledoff _ rm-0 \ ledon _ time-0 \ ledoff _ time-0 \ ledon _ ave _ speed-0 \ ledoff _ ave _ speed-0, and update the charging speed flag to false. Finally, the 5s charging thread is stopped, so that the conventional buried point monitoring is stopped.
Step 203, determining whether the electronic device is abnormally charged based on the first average charging speed.
The determining whether the electronic device is abnormally charged may refer to determining whether the electronic device is abnormally charged in a target scene. For example, the first average charging speed is an average charging speed of the electronic device in a bright screen scene, and then it may be determined whether the electronic device is abnormally charged in the bright screen scene based on the first average charging speed.
Step 203 may be implemented in either of two ways.
In a first mode, the electronic device compares a first average charging speed with a first speed threshold corresponding to a target scene; if the first average charging speed is smaller than a first speed threshold value, determining that the electronic equipment is abnormally charged; and if the first average charging speed is greater than or equal to the first speed threshold value, determining that the electronic equipment is normally charged.
Wherein the first speed threshold is used to determine whether the device is charging abnormally in the target scene. If the first average charging speed is smaller than a first speed threshold value, determining that the electronic equipment is abnormally charged in a target scene; and if the first average charging speed is greater than or equal to the first speed threshold value, determining that the electronic equipment is normally charged in the target scene. For example, the first average charging speed is an average charging speed of the electronic device in a bright screen scene, and if the first average charging speed is less than a first speed threshold, it may be determined that the electronic device is abnormally charged in the bright screen scene; if the first average charging speed is greater than or equal to the first speed threshold, it may be determined that the electronic device is charging properly in a bright screen scene.
After the electronic equipment determines that the electronic equipment is abnormally charged, the electronic equipment can send corresponding prompt information to the server, the prompt information reflects the abnormal charging of the electronic equipment, and after the server receives the prompt information, an electronic equipment manufacturer can conveniently know the abnormal condition of the electronic equipment in the charging process in time, so that the abnormal condition is processed, and the charging speed of the electronic equipment is improved.
In a second mode, the electronic device sends a first average charging speed to the server, where the first average charging speed is used to determine that the electronic device is abnormally charged when the first average charging speed is less than a first speed threshold.
After obtaining the first average charging speed, the electronic device may send the first average charging speed to the server, and the server may compare the first average charging speed with a first speed threshold to determine whether the electronic device is abnormally charged in a target scene.
After determining whether the electronic device is abnormally charged based on the first average charging speed, the server may send a determination result to the electronic device, where the determination result includes that the electronic device is abnormally charged or the electronic device is normally charged, so that the electronic device knows whether the electronic device is abnormally charged.
In an optional embodiment, before the electronic device sends the first average charging speed to the server, it may be determined whether the first average charging speed is greater than a second speed threshold, and if the first average charging speed is greater than the second speed threshold, the first average charging speed is sent to the server, so as to reduce an influence of a situation that the electronic device cannot be charged on an abnormality analysis in the server; if the first average charging speed is less than or equal to the second speed threshold, the first average charging speed is not sent to the server, and the electronic equipment can be directly prompted to be incapable of being charged. Wherein the second speed threshold is less than the first speed threshold. Optionally, on the basis that the second speed threshold is smaller than the first speed threshold, the second speed threshold (for example, 0) may be set according to an actual requirement, which is not limited herein.
It can be understood that, since the power consumption of the electronic device is different when the electronic device is charged in different scenes, resulting in different rising amplitudes of the battery temperature of the electronic device, different first speed thresholds may be set for the different scenes, and/or different second speed thresholds may be set for the different scenes, so as to adaptively determine whether the electronic device is abnormally charged in the different scenes based on the different first speed thresholds, and adaptively determine whether to send the average charging speed of the electronic device in the different scenes to the server based on the different second speed thresholds. For example, since the electronic device consumes more power in a bright screen scene compared to a blank screen scene, resulting in a larger rise in battery temperature and a slower charging speed, the first speed threshold corresponding to the bright screen scene may be set to be less than the first speed threshold corresponding to the blank screen scene, and the second speed threshold corresponding to the bright screen scene may be set to be less than the second speed threshold corresponding to the blank screen scene. Of course, the first speed thresholds corresponding to different scenes may be the same, and the second speed thresholds corresponding to different scenes may be the same, which is not limited herein.
In an optional embodiment, after determining that the charging of the electronic device is abnormal, the method further includes:
if at least one second average charging speed is larger than or equal to the first speed threshold value, determining that the electronic equipment is abnormally charged as the electronic equipment has abnormal heat dissipation, wherein the second average charging speed is the average charging speed of the reference equipment in a target scene, and the reference equipment is the equipment which uses the same charging scheme as the electronic equipment.
The charging scheme is a scheme indicating how to charge the electronic device and the reference device, for example, an implementation scheme of a quick charging mode.
And if the second average charging speed is greater than or equal to the first speed threshold value, the reference equipment is charged normally. Under the condition that the reference equipment and the electronic equipment use the same charging scheme, if the reference equipment is charged normally, and the electronic equipment is charged abnormally, the situation that the electronic equipment has abnormal heat dissipation, so that the temperature of the battery is overhigh, and the charging speed is reduced.
The heat dissipation abnormality may be understood as a poor heat dissipation effect of the electronic device compared to the reference device. For example, an improper layout of hardware on a Printed Circuit Board (PCB) in an electronic device may result in poor heat dissipation.
For example, there are 50 reference devices, and if the average charging speed of the 50 reference devices in the bright screen scene is greater than or equal to the first speed threshold, and the average charging speed of the electronic device in the bright screen scene is less than the first speed threshold, it may be determined that the electronic device has a heat dissipation abnormality.
In an optional embodiment, the battery temperature of the electronic device in the target scene may be acquired; if the battery temperature is lower than the temperature threshold corresponding to the target scene, increasing a third speed threshold corresponding to the target scene to obtain an increased speed threshold, wherein the third speed threshold is a lower limit value of the charging speed of the electronic equipment in the target scene; or sending the battery temperature to the server and receiving an increased speed threshold sent by the server, wherein the increased speed threshold is sent by the server based on the battery temperature; and when the temperature of the battery rises, controlling the charging speed of the electronic equipment in the target scene based on the increased speed threshold value.
The battery temperature of the electronic device in the target scene may be a battery temperature at any time in the target scene, or may be a battery temperature when the continuous charging time and the battery capacity increment within the continuous charging time in the target scene are acquired, which is not limited herein.
It can be understood that, since the battery temperature of the electronic device increases in different ranges due to different power consumption of the electronic device during charging in different scenes, different temperature thresholds may be set for the different scenes, and/or different third speed thresholds may be set for the different scenes, so as to adaptively determine whether to increase the corresponding third speed threshold based on the different temperature thresholds, and adaptively control the charging speed of the electronic device in the different scenes based on the different third speed thresholds. For example, since the electronic device consumes more power in the bright screen scene compared to the dead screen scene, which results in a larger temperature rise of the battery and a slower charging speed, the temperature threshold corresponding to the bright screen scene may be set to be smaller than the temperature threshold corresponding to the dead screen scene, and the third speed threshold corresponding to the bright screen scene may be set to be smaller than the third speed threshold corresponding to the dead screen scene. Of course, the temperature thresholds corresponding to different scenes may also be the same, and the third speed thresholds corresponding to different scenes may also be the same, which is not limited herein.
The increased speed threshold may be obtained by the electronic device based on the battery temperature, or may be obtained by the server based on the battery temperature. When the electronic device obtains the increased speed threshold based on the battery temperature, the temperature control strategy of the electronic device can be updated to make the temperature control strategy closer to the actual charging condition of the electronic device. When the server obtains the increased speed threshold based on the battery temperature, the server can update the temperature control strategy of the electronic equipment, so that the temperature control strategy is closer to the actual charging condition of the electronic equipment. When the temperature of the battery rises, the charging speed of the electronic equipment in a target scene is reduced, the reduced charging speed is controlled to be not less than the third speed threshold so as to keep balance between the temperature and the charging speed, and the speed is increased as much as possible under the condition that the temperature of the electronic equipment is not too high. The third speed threshold is greater than the first speed threshold.
In an optional embodiment, after determining that the charging of the electronic device is abnormal, a first prompt may be issued to prompt the charging of the electronic device to be abnormal. For example, the electronic device may issue the first prompt by voice, text, vibration, or the like.
The electronic equipment can be convenient for the user of the electronic equipment to know the abnormal condition of the electronic equipment in the charging process in time by prompting the charging abnormity, so that the abnormal condition is processed in time, and the charging speed of the electronic equipment is improved.
In the embodiment of the application, in the acting process of the electronic device, the continuous charging time in the scene (i.e., the target scene) where the electronic device is located in the charging process and the increment of the battery capacity in the continuous charging time can be acquired, and based on the continuous charging time and the increment of the battery capacity, the average charging speed of the electronic device in the target scene can be calculated, so that the monitoring of the average charging speed in the charging process is realized, and whether the electronic device is abnormally charged or not is determined based on the average charging speed.
Fig. 5 is a schematic view of an implementation flow of an anomaly determination method provided in an embodiment of the present application, where the anomaly determination method is applied to a server. As shown in fig. 5, the abnormality determining method may include the steps of:
step 501, receiving a first average charging speed of an electronic device.
The first average charging speed is an average charging speed of the electronic equipment in a target scene. The target scene is a scene where the electronic equipment is located in the charging process, such as a bright screen scene, a dead screen scene and the like.
Step 502, if the first average charging speed is less than a first speed threshold corresponding to the target scene, it is determined that the electronic device is abnormally charged.
Wherein the first speed threshold is used to determine whether the device is charging abnormally in the target scene. If the first average charging speed is smaller than a first speed threshold value, determining that the electronic equipment is abnormally charged in a target scene; and if the first average charging speed is greater than or equal to the first speed threshold value, determining that the electronic equipment is normally charged in the target scene. For example, the first average charging speed is an average charging speed of the electronic device in a bright screen scene, and if the first average charging speed is less than a first speed threshold, it may be determined that the electronic device is abnormally charged in the bright screen scene; if the first average charging speed is greater than or equal to the first speed threshold, it may be determined that the electronic device is charging properly in a bright screen scene.
It should be noted that, regarding the setting of the first speed threshold, reference may be made to the above description of an embodiment of the charging monitoring method, and details are not described herein again.
In an optional embodiment, after determining that the charging of the electronic device is abnormal, the method further includes:
if at least one second average charging speed is larger than or equal to the first speed threshold value, determining that the electronic equipment is abnormally charged as the electronic equipment has abnormal heat dissipation, wherein the second average charging speed is the average charging speed of the reference equipment in a target scene, and the reference equipment is the equipment which uses the same charging scheme as the electronic equipment.
The charging scheme is a scheme indicating how to charge the electronic device and the reference device, for example, an implementation scheme of a quick charging mode.
And if the second average charging speed is greater than or equal to the first speed threshold value, the reference equipment is charged normally. Under the condition that the reference equipment and the electronic equipment use the same charging scheme, if the reference equipment is charged normally, and the electronic equipment is charged abnormally, the situation that the electronic equipment has abnormal heat dissipation, so that the temperature of the battery is overhigh, and the charging speed is reduced.
The heat dissipation abnormality may be understood as a poor heat dissipation effect of the electronic device compared to the reference device. For example, the layout of hardware on the PCB in the electronic device is not reasonable, which may result in poor heat dissipation.
For example, there are 50 reference devices, and if the average charging speed of the 50 reference devices in the bright screen scene is greater than or equal to the first speed threshold, and the average charging speed of the electronic device in the bright screen scene is less than the first speed threshold, it may be determined that the electronic device has a heat dissipation abnormality.
In an optional embodiment, the server receives the battery temperature of the electronic device in the target scene; if the battery temperature is lower than the temperature threshold corresponding to the target scene, increasing a third speed threshold corresponding to the target scene to obtain an increased speed threshold, wherein the third speed threshold is a lower limit value of the charging speed of the electronic equipment in the target scene; and sending the increased speed threshold to the electronic equipment, wherein the increased speed threshold is used for controlling the charging speed of the electronic equipment in the target scene. Wherein the third speed threshold is greater than the first speed threshold.
It should be noted that, regarding the setting of the temperature threshold and the third speed threshold, reference may be made to the related description of the above embodiment of the charging monitoring method, and details are not repeated here.
The server increases the third speed threshold based on the battery temperature, and can update the temperature control strategy of the electronic device, so that the temperature control strategy is closer to the actual charging condition of the electronic device. When the temperature of the battery rises, the charging speed of the electronic equipment in a target scene is reduced, the reduced charging speed is controlled to be not less than the third speed threshold so as to keep balance between the temperature and the charging speed, and the speed is increased as much as possible under the condition that the temperature of the electronic equipment is not too high.
In an optional embodiment, after the server determines that the charging of the electronic device is abnormal, a second prompt may be issued to prompt the charging of the electronic device to be abnormal.
For example, the server may issue the second prompt by voice, text, or the like.
The server can be convenient for an electronic equipment manufacturer to know the abnormal condition of the electronic equipment in the charging process in time by prompting the charging abnormality of the electronic equipment, so that the abnormal condition is processed, and the charging speed of the electronic equipment is improved.
In the embodiment of the application, after the average charging speed of the electronic device in the target scene is received, the average charging speed is compared with a first speed threshold, and if the average charging speed is smaller than the first speed threshold, it is indicated that the average charging speed is too low to meet the charging requirement of the electronic device, so that the charging abnormality of the electronic device in the target scene can be determined, and the determination of the charging abnormality of the electronic device is realized.
Fig. 6 is a schematic structural diagram of a charging monitoring device according to an embodiment of the present application, and for convenience of description, only a part related to the embodiment of the present application is shown.
The above-mentioned charge monitoring device includes:
the data acquisition module 61 is configured to acquire, during a charging process of the electronic device, a continuous charging time of the electronic device in a target scene and a battery capacity increment during the continuous charging time, where the target scene is a scene where the electronic device is located during the charging process;
the speed calculation module 62 is configured to calculate a first average charging speed based on the continuous charging time and the battery capacity increment, where the first average charging speed is an average charging speed of the electronic device in a target scene;
and a first determining module 63, configured to determine whether the electronic device is abnormally charged based on the first average charging speed.
Optionally, the first determining module 63 is specifically configured to:
and if the first average charging speed is smaller than a first speed threshold corresponding to the target scene, determining that the electronic equipment is abnormally charged.
Optionally, the first determining module 63 is specifically configured to:
and sending a first average charging speed to the server, wherein the first average charging speed is used for determining that the electronic equipment is abnormally charged when the first average charging speed is smaller than a first speed threshold value corresponding to the target scene.
Optionally, the first determining module 63 is specifically configured to:
and if the first average charging speed is greater than a second speed threshold corresponding to the target scene, sending the first average charging speed to the server.
Optionally, the data obtaining module 61 is specifically configured to:
when the electronic equipment stops charging in a target scene or the battery capacity stops updating, acquiring the continuous charging time of the electronic equipment in the target scene and the battery capacity increment in the continuous charging time;
or when the scene of the electronic device is switched, acquiring the continuous charging time of the electronic device in the scene before switching and the battery capacity increment in the continuous charging time, wherein the scene before switching and the scene after switching are both target scenes.
Optionally, the speed calculating module 62 is specifically configured to:
and if the charging speed mark is a first mark, calculating a first average charging speed based on the continuous charging time and the increment of the battery capacity, wherein the first mark indicates that the first average charging speed is not calculated in the current charging.
Optionally, the charging monitoring apparatus further includes:
the first updating module is used for updating the charging speed mark into a second mark, and the second mark indicates that the first average charging speed is calculated in the current charging;
and the second updating module is used for updating the charging speed mark to be the first mark if the electronic equipment is disconnected with the charging device.
Optionally, the charging monitoring apparatus further includes:
and the heat dissipation determining module is used for determining that the electronic equipment is abnormally charged as the electronic equipment has abnormal heat dissipation if at least one second average charging speed is greater than or equal to the first speed threshold, the second average charging speed is the average charging speed of the reference equipment in a target scene, and the reference equipment is the equipment which uses the same charging scheme as the electronic equipment.
Optionally, the charging monitoring apparatus further includes:
the temperature acquisition module is used for acquiring the battery temperature of the electronic equipment in a target scene;
the threshold value increasing module is used for increasing a third speed threshold value corresponding to the target scene if the temperature of the battery is smaller than a temperature threshold value corresponding to the target scene to obtain an increased speed threshold value, wherein the third speed threshold value is a lower limit value of the charging speed of the electronic equipment in the target scene;
or the data processing module is used for sending the battery temperature to the server and receiving the increased speed threshold value sent by the server, and the increased speed threshold value is sent by the server based on the battery temperature;
and the speed control module is used for controlling the charging speed of the electronic equipment in the target scene based on the increased speed threshold when the temperature of the battery is increased.
Optionally, the charging monitoring apparatus further includes:
the first prompt module is used for sending a first prompt to prompt that the electronic equipment is abnormal in charging.
The charging monitoring device provided in the embodiment of the present application can be applied to the foregoing charging monitoring method embodiment, and for details, reference is made to the description of the foregoing method embodiment, which is not repeated herein.
Fig. 7 is a schematic structural diagram of an abnormality determination device according to an embodiment of the present application, and only a part related to the embodiment of the present application is shown for convenience of description.
The abnormality determining device includes:
the speed receiving module 71 is configured to receive a first average charging speed of the electronic device, where the first average charging speed is an average charging speed of the electronic device in a target scene, and the target scene is a scene where the electronic device is located in a charging process;
a second determining module 72, configured to determine that the electronic device is abnormally charged if the first average charging speed is less than the first speed threshold corresponding to the target scene.
Optionally, the abnormality determining device further includes:
and the second prompting module is used for sending a second prompt to prompt that the electronic equipment is abnormal in charging.
Optionally, the abnormality determining device further includes:
and the heat dissipation determining module is used for determining that the electronic equipment is abnormally charged as the electronic equipment has abnormal heat dissipation if at least one second average charging speed is greater than or equal to the first speed threshold, the second average charging speed is the average charging speed of the reference equipment in a target scene, and the reference equipment is the equipment which uses the same charging scheme as the electronic equipment.
Optionally, the abnormality determining device further includes:
the temperature receiving module is used for receiving the battery temperature of the electronic equipment in a target scene;
the threshold increasing module is used for increasing a third speed threshold corresponding to the target scene if the temperature of the battery is smaller than a temperature threshold corresponding to the target scene to obtain an increased speed threshold, wherein the third speed threshold is a lower limit value of the charging speed of the electronic equipment in the target scene;
and the threshold value sending module is used for sending the increased speed threshold value to the electronic equipment, and the increased speed threshold value is used for controlling the charging speed of the electronic equipment in the target scene.
The abnormality determining apparatus provided in the embodiment of the present application may be applied to the foregoing abnormality determining method embodiment, and for details, reference is made to the description of the foregoing method embodiment, and details are not described herein again.
Fig. 8 is a schematic structural diagram of an electronic device according to an embodiment of the present application. As shown in fig. 8, the electronic apparatus 8 of this embodiment includes: one or more processors 80 (only one of which is shown), a memory 81, and a computer program 82 stored in the memory 81 and executable on the at least one processor 80. The processor 80 implements the steps in the above-described charge monitoring method embodiments when executing the computer program 82.
The electronic device 8 may include, but is not limited to, a processor 80, a memory 81. Those skilled in the art will appreciate that fig. 8 is merely an example of an electronic device 8 and does not constitute a limitation of the electronic device 8 and may include more or fewer components than shown, or some components may be combined, or different components, e.g., the electronic device may also include input-output devices, network access devices, buses, etc.
The Processor 80 may be a Central Processing Unit (CPU), and may be other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components, or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The storage 81 may be an internal storage unit of the electronic device 8, such as a hard disk or a memory of the electronic device 8. The memory 81 may also be an external storage device of the electronic device 8, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like, which are provided on the electronic device 8. Further, the memory 81 may also include both an internal storage unit and an external storage device of the electronic device 8. The memory 81 is used for storing the computer program and other programs and data required by the electronic device. The memory 81 may also be used to temporarily store data that has been output or is to be output.
Fig. 9 is a schematic structural diagram of a server according to an embodiment of the present application. As shown in fig. 9, the server 9 of this embodiment includes: one or more processors 90 (only one shown), a memory 91, and a computer program 92 stored in the memory 91 and executable on the at least one processor 90. The processor 90, when executing the computer program 92, implements the steps in the above-described method embodiment of anomaly determination.
The server 9 may include, but is not limited to, a processor 90, a memory 91. Those skilled in the art will appreciate that fig. 9 is merely an example of a server 9 and does not constitute a limitation of server 9 and may include more or fewer components than shown, or some components in combination, or different components, e.g., the server may also include input output devices, network access devices, buses, etc.
The processor 90 may be a CPU, but may also be other general purpose processors, DSPs, ASICs, FPGAs, or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The storage 91 may be an internal storage unit of the server 9, such as a hard disk or a memory of the server 9. The memory 91 may also be an external storage device of the server 9, such as a plug-in hard disk, SMC, SD card, flash memory card, etc. provided on the server 9. Further, the memory 91 may also include both an internal storage unit of the server 9 and an external storage device. The memory 91 is used for storing the computer program and other programs and data required by the server. The memory 91 may also be used to temporarily store data that has been output or is to be output.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-mentioned functions. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only used for distinguishing one functional unit from another, and are not used for limiting the protection scope of the present application. For the specific working processes of the units and modules in the above-mentioned apparatus, reference may be made to the corresponding processes in the foregoing method embodiments, which are not described herein again.
The embodiments of the present application further provide a computer-readable storage medium, where a computer program is stored, and when the computer program is executed by a processor, the computer program implements the steps that can be implemented in the above method embodiments.
The embodiments of the present application further provide a computer program product, which when running on an electronic device, enables the electronic device to implement the steps in the foregoing charging monitoring method embodiments when executed, or enables a server to implement the steps in the foregoing abnormality determining method embodiments when executed on the server.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus/electronic device/server and method may be implemented in other ways. For example, the above-described apparatus/electronic device/server embodiments are merely illustrative, and for example, the division of the modules or units is only one logical division, and there may be other divisions when actually implemented, for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
The integrated module/unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, all or part of the flow in the method of the embodiments described above can be realized by a computer program, which can be stored in a computer-readable storage medium and can realize the steps of the embodiments of the methods described above when the computer program is executed by a processor. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, and the like. It should be noted that the computer readable medium may contain content that is subject to appropriate increase or decrease as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer readable media does not include electrical carrier signals and telecommunications signals as is required by legislation and patent practice.
The above-mentioned embodiments are only used to illustrate the technical solutions of the present application, and not to limit the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present application and are intended to be included within the scope of the present application.