A charging information detection method, device, electronic device and storage medium

By recording and analyzing charging information between the electronic device and the charger, generating and uploading charging point information, the problem of unreasonable design of the existing charging point is solved, and accurate monitoring and evaluation of the battery charging solution is achieved.

CN115051440BActive Publication Date: 2025-07-01GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202210730078.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-06-24
Publication Date
2025-07-01
Estimated Expiration
2042-06-24

AI Technical Summary

Technical Problem

The existing battery charging point design is unreasonable, resulting in the inability to conduct accurate analysis and the inability to effectively monitor and evaluate the performance of the battery charging solution.

Method used

A charging information detection method and device are provided, by recording charging information when an electronic device establishes a connection with a charger, obtaining charging time when disconnecting, determining the charging information type, and generating charging point information for uploading.

Benefits of technology

It realizes the acquisition of charging information when the charging time is sufficient, determine the charging information type, and upload the charging point information for further accurate analysis, and improves the monitoring and evaluation capabilities of the charging solution.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115051440B_ABST
    Figure CN115051440B_ABST
Patent Text Reader

Abstract

An embodiment of the present application discloses a charging information detection method, device, electronic device, and storage medium. When the electronic device establishes a connection with the charger, charging information recording starts; when the electronic device disconnects from the charger, the charging time is obtained; when the charging time is greater than or equal to a first time, the information type of the charging information is determined, and charging buried point information is generated based on the information type and the charging information, where the information type includes one of the following: non-charging information, slow charging information, and normal charging information; the charging buried point information is uploaded. In this way, only when the charging time is sufficient can enough charging information be obtained to represent a charging process, and the charging information type (including non-charging / slow charging / normal information) can be determined. The charging buried point information is generated using the information type and the charging information for uploading, which is used for further precise analysis of the charging information.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to battery charging technology, and in particular, to a method and device for detecting charging information, an electronic device, and a storage medium. Background Art

[0002] Battery performance is an important indicator for measuring the performance of electronic devices. To objectively and effectively monitor and evaluate the performance of battery charging schemes in actual applications, it is necessary to integrate a charging data point feedback mechanism, aiming to sort out the baseline of charging experience indicators and incorporate them into the planning, control, and improvement of charging services. Therefore, the design of battery charging data points has become a key point in monitoring and evaluating battery charging schemes. If the existing charging data point design is unreasonable and a lot of useless information is designed, it will make it impossible to accurately analyze the charging scheme. Therefore, optimizing the charging data point design scheme has become an urgent technical problem to be solved. Summary of the Invention

[0003] Embodiments of this application are expected to provide a method and device for detecting charging information, an electronic device, and a storage medium.

[0004] The technical solution of this application is implemented as follows:

[0005] In a first aspect, a method for detecting charging information is provided, including:

[0006] When the electronic device is connected to the charger, start recording charging information;

[0007] When the electronic device is disconnected from the charger, obtain the charging time;

[0008] When the charging time is greater than or equal to a first time, determine the information type of the charging information, and generate charging data point information based on the information type and the charging information, where the information type includes one of the following: non-charging information, slow-charging information, and normal-charging information;

[0009] Upload the charging data point information.

[0010] In a second aspect, a device for detecting charging information is provided, including:

[0011] A recording unit, configured to start recording charging information when the electronic device is connected to the charger, and obtain the charging time when the electronic device is disconnected from the charger;

[0012] A processing unit, configured to determine the information type of the charging information when the charging time is greater than or equal to a first time, and generate charging data point information based on the information type and the charging information, where the information type includes one of the following: non-charging information, slow-charging information, and normal-charging information;

[0013] An upload unit for uploading the charging buried point information.

[0014] In a third aspect, an electronic device is provided, including: a processor and a memory configured to store a computer program that can run on the processor,

[0015] wherein, when the processor is configured to run the computer program, it executes the steps of the foregoing method.

[0016] In a fourth aspect, a computer-readable storage medium is provided, on which a computer program is stored, wherein when the computer program is executed by a processor, it implements the steps of the foregoing method.

[0017] In the embodiments of the present application, a charging information detection method, device, electronic device and storage medium are provided. When the electronic device establishes a connection with the charger, the charging information is started to be recorded; when the electronic device disconnects from the charger, the charging time is obtained; when the charging time is greater than or equal to the first time, the information type of the charging information is judged, and charging buried point information is generated based on the information type and the charging information, wherein the information type includes one of the following: non-charging information, slow charging information and normal charging information; the charging buried point information is uploaded. In this way, only when the charging time is sufficient can enough charging information be obtained to represent a charging process, and the charging information type (including non-charging / slow charging / normal information) is judged, and charging buried point information is generated using the information type and the charging information for uploading, which is used for further accurate analysis of the charging information. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] Figure 1 It is the first flow diagram of the charging information detection method in the embodiments of the present application;

[0019] Figure 2 It is the flow diagram of non-charging detection in the embodiments of the present application;

[0020] Figure 3 It is the first part of the flow diagram of slow charging detection in the embodiments of the present application;

[0021] Figure 4 It is the second part of the flow diagram of slow charging detection in the embodiments of the present application;

[0022] Figure 5 It is the third part of the flow diagram of slow charging detection in the embodiments of the present application;

[0023] Figure 6 It is the flow diagram of the battery level interval switching in the embodiments of the present application;

[0024] Figure 7Schematic diagram of the first part of the routine information detection in the embodiments of the present application;

[0025] Figure 8 Schematic diagram of the second part of the routine information detection in the embodiments of the present application;

[0026] Figure 9 Schematic diagram of the composition structure of the charging information detection device in the embodiments of the present application;

[0027] Figure 10 Schematic diagram of the composition structure of the electronic device in the embodiments of the present application. Detailed implementation manners

[0028] In order to understand the features and technical content of the embodiments of the present application in more detail, the implementation of the embodiments of the present application will be described in detail below with reference to the accompanying drawings. The accompanying drawings are only for reference and illustration, and are not used to limit the embodiments of the present application.

[0029] Figure 1 Schematic diagram of the first process of the charging information detection method in the embodiments of the present application. As Figure 1 shown, the method may specifically include:

[0030] Step 101: Record charging information when the electronic device establishes a connection with the charger;

[0031] In practical applications, the electronic device establishes a wired or wireless connection with the charger, and records the charging information generated during the charging process when the connection starts. The charging information includes one or more pieces of information related to the charging performance during the current charging process.

[0032] Exemplarily, charger type, adapter type, charging power, information recorded at the start of charging, information recorded during the charging process.

[0033] Specifically, the charger type includes: wired, wireless, and unknown;

[0034] The adapter type includes: wired adapter type, wireless adapter type;

[0035] The information recorded at the start of charging includes: initial battery level, initial temperature;

[0036] The information recorded during the charging process includes: maximum temperature, screen-on time, screen-off time, charging capacity at the first preset time, average charging speed, total charging time when fast charging is full, total time for the full-charge icon to disappear, total charging cut-off time, reason for full charge, current-limiting statistical information.

[0037] Step 102: Obtain the charging time when the electronic device disconnects from the charger;

[0038] Here, the charging time refers to the time between when the electronic device is connected to the charger and when it is disconnected.

[0039] Step 103: When the charging time is greater than or equal to the first time, determine the information type of the charging information, and generate charging buried point information based on the information type and the charging information, where the information type includes one of the following: non-charging information, slow charging information, and normal charging information;

[0040] Here, the charging time being greater than or equal to the first time is a prerequisite for allowing the determination of the charging information type and for allowing the reporting of charging buried point information. The charging time being greater than or equal to the first time means that when the charging time is sufficient, the recorded charging information can represent a charging process, and analyzing the charging information can obtain an accurate analysis result of the charging process and upload valid charging buried point information.

[0041] Exemplarily, in some embodiments, the method further includes: when the charging time is less than the first time, determining that the charging information is invalid information. That is, when the charging time is short, the recorded charging information is not sufficient to represent a charging process, and analyzing the charging information cannot obtain an accurate analysis result of the charging process. Therefore, it is defined as invalid information and not uploaded, thereby improving the accuracy of the charging process analysis and avoiding uploading invalid information.

[0042] Exemplarily, the first time can be 1 minute, 2 minutes, 3 minutes, 4 minutes, 5 minutes, or other time.

[0043] Exemplarily, in some embodiments, the determining the information type of the charging information includes: obtaining the time when the charging current value of the battery is greater than 0 in the charging state and the total charging time; when the ratio of the time when the charging current value is greater than 0 to the total charging time is greater than a first preset ratio, determining that the charging type is non-charging.

[0044] Exemplarily, in some embodiments, the determining the information type of the charging information includes: obtaining the charger type and the adapter type; when the charger type is unknown or the adapter type is unknown, determining that the information type is slow charging information;

[0045] When the charger type is known and the adapter type is known, obtain a corresponding charging speed reference table based on the charger type and the adapter type, where the charging speed reference table includes reference currents corresponding to at least two power ranges; obtain the increased power and charging time of the battery in the first power range, where the first power range is any one of the at least two power ranges; divide the increased power of the battery by the charging time to obtain the average current in the first power range; if the average current in the first power range is less than the reference current in the first power range, determine that the information type is slow charging information.

[0046] That is to say, when the charger type is unknown or the adapter type is unknown, it is determined that the charging is slow; when the charger type is known and the adapter type is known, for different charging schemes, if the average current in different power ranges is less than the reference current, it is determined that the charging is slow.

[0047] Exemplarily, in some embodiments, the method further includes: obtaining the reference charging time in the first power range; if the charging time in the first power range is greater than the reference charging time and the average current in the first power range is less than the reference current in the first power range, determine that the information type is slow charging information.

[0048] That is to say, in addition to the average current in different power ranges being less than the reference current, the charging time also needs to be greater than the reference charging time to be determined as slow charging. Exemplarily, the charging speed reference table may further include reference charging times corresponding to at least two power ranges.

[0049] Further, in some embodiments, the method further includes: when the charger type is known and the adapter type is known, if a corresponding charging speed reference table cannot be obtained based on the charger type and the adapter type, determine that the information type is not slow charging information.

[0050] Exemplarily, in some embodiments, the method further includes: when it is determined that the information type is neither no charging information nor slow charging information, determine that the information type is normal charging information.

[0051] It should be noted that in the embodiments of the present application, the priority of judging no charging is higher than the priority of judging slow charging, and the priority of judging slow charging is higher than the priority of judging normal charging information. That is to say, first judge no charging, and if it is determined that there is no charging, generate no charging buried point information and upload it; when it is determined that charging is occurring, judge slow charging, and if it is determined that the charging is slow, generate slow charging buried point information and upload it; when it is determined that the information type is not slow charging information (that is, it is determined that the information type is normal charging information), generate normal buried point information and upload it.

[0052] Step 104: Upload the charging buried point information.

[0053] It should be noted that only one charging buried point information is uploaded during one charging process, and there will be no repeated upload.

[0054] Exemplarily, in some embodiments, uploading the charging buried point information includes: uploading the charging buried point information after delaying for a second preset time; wherein, when the information type is non-charging information, the second preset time is the second time; when the information type is slow charging information, the second preset time is the third time; when the information type is normal charging information, the second preset time is the fourth time.

[0055] In practical applications, the second time, the third time, and the fourth time may be the same or different. Exemplarily, they are all 1s, 1.5s, 2s, 5s, 10s, 12s, etc., or the second time is 1.5s or 7s, and the third time and the fourth time are 12s.

[0056] Exemplarily, in some embodiments, the method further includes: within the second preset time, when it is determined that there is an interruption in the charging between the electronic device and the charger, the charging buried point information is not uploaded; within the second preset time, when it is determined that there is no interruption in the charging between the electronic device and the charger, the charging buried point information is uploaded.

[0057] That is to say, uploading the charging buried point information after delaying for the second preset time is to determine whether there is an interruption in the charging. Only when there is no interruption in the charging is it uploaded. In order to avoid uploading the charging buried point information multiple times due to an interruption in the charging, and the second preset time is sufficient for the reconnection of the interrupted charging. In practical applications, if there is an interruption, the interrupted buried point information can also be uploaded.

[0058] Exemplarily, the method further includes: recording the change time when the charging voltage changes from the normal voltage to 0v and then from 0v to the normal voltage; when the change time is less than the third preset time, it is determined that there is an interruption; when the change time is greater than or equal to the third preset time, it is determined that there is no interruption. Here, the interruption can be understood as an abnormal disconnection that is not a user behavior. For example, the charging voltage changes from 5v to 0v and then from 0v to 5v in a very short time.

[0059] By adopting the above technical solution, only when there is enough charging time can enough charging information be obtained to represent one charging process, and the charging information type (including non-charging / slow charging / normal information) can be judged. The charging buried point information is generated using the information type and the charging information for uploading, which is used for further accurate analysis of the charging information. And only one buried point information is uploaded during one charging process, and there will be no repeated upload.

[0060] To better illustrate the purpose of this application, based on the above embodiments of this application, a further example of the charging information detection method will be given.

[0061] The charging information to be specifically monitored includes the following:

[0062] 1. Charger type (Power_mode), adapter type (adapter_type), and charging power (power), which are represented by strings during charging. Specifically,

[0063] Power_mode: Used to distinguish between wireless and wired power supply types. The default is unknow, wired is wired, wireless is wireless, or abbreviated as "wls".

[0064] When Power_mode is wired, there will be three fields: namely adapter_type\adapter_id (if any)\power

[0065] When Power_mode is wireless, there will be three fields: namely adapter_type\dock_type (if any)\power

[0066] Specifically, according to the adapter type (adapter_type), its fields are as follows:

[0067] (1) When the charger type is not recognized (power_mode = "unknow"), it is represented by the string: $$power_mode@@unknow. When generating charging buried point information, different charging information is separated by a first separator, and the charging information includes the information name and the specific content, and the information name and the specific content are separated by a second separator. Here, "$$" is the first separator, and "@@" is the second separator;

[0068] (2) When the charger type is recognized as wired and the adapter type is sdp or cdp or dcp, it is represented by the string:

[0069] $$power_mode@@wired$$adapter_type@@sdp$$power@@2500 or

[0070] $$power_mode@@wired$$adapter_type@@cdp$$power@@7500 or

[0071] $$power_mode@@wired$$adapter_type@@dcp$$power@@10000

[0072] (3) When it is recognized that the charger type is wired and the adapter type is pd or qc or pps or ufcs, it is represented by a string as:

[0073] $$power_mode@@wired$$adapter_type@@pd$$power@@18000 or

[0074] $$power_mode@@wired$$adapter_type@@qc$$power@@18000 or

[0075] $$power_mode@@wired$$adapter_type@@pps$$power@@30000 or

[0076] $$power_mode@@wired$$adapter_type@@ufcs$$power@@100000

[0077] Among them, the default power of pps is 30000 milliwatts, and the default power of ufcs is 100000 milliwatts. Each project can configure the charging power according to its actual project.

[0078] (4) When it is recognized that the charger type is wired and the adapter type is a fast charging adapter, it is represented by a string as:

[0079] $$power_mode@@wired$$adapter_type@@xxx$$adapter_id@@xxx$$power@@xxx where

[0080] Adapter_type is vooc or svooc

[0081] Adapter_id is the id code sent by the adapter. For example, the 65W fast charging adapter is 0x14

[0082] Power is the power supported by each fast charging adapter.

[0083] (5) When it is recognized that the charger type is wireless and the adapter type is bpp or epp, it is represented by a string as:

[0084] $$power_mode@@wls$$adapter_type@@bpp$$power@@5000 or

[0085] $$power_mode@@wls$$adapter_type@@epp$$power@@10000

[0086] (6) When wireless VOOC / SVOOC is recognized:

[0087] $$power_mode@@wls$$adapter_type@@xxx$$dock_type@xxx$$power@@xxx

[0088] Adapter_type is airvooc or airsvooc

[0089] The dock type (Dock_type) is model_0 - model_15, "third_party", that is, for wireless charging, the charging information also includes the dock type

[0090] Power is the maximum power received by the A2 code

[0091] 2. Information recorded at the start of charging:

[0092] The initial battery level at the start of charging: $$start_soc@@xxx

[0093] The initial temperature at the start of charging: $$start_temp@@xxx

[0094] 3. Information recorded during charging:

[0095] The highest temperature (max_temp) during charging: $$max_temp@@xxx

[0096] The total time with the screen on and the total time with the screen off (ledon_time): $$ledon_time@@xxx$$ledoff_time@@xxx

[0097] The charging capacity in 5 minutes (chg_five_mins_cap): $$chg_five_mins_cap@@xxx (This field is not available if the charging time is less than 5 minutes)

[0098] The charging capacity in 10 minutes (chg_ten_mins_cap): $$chg_ten_mins_cap@@xxx (This field is not available if the charging time is less than 10 minutes). Here, 5 minutes and 10 minutes refer to the first preset time.

[0099] Average charging speed (chg_average_speed): $$chg_average_speed@@xxx (mAh increased per minute during the period when wireless or wired fast charging is fully charged / normal charging is stopped / disconnected)

[0100] Total charging time when fast charging is fully charged (fast_full_time): $$fast_full_time@@xxx (From the start time of charging to the time when wireless or wired fast charging reports full charge. For wired charging, it reports "full", and for wireless charging, it is the moment when it switches to ffc. If it is not fast charging or does not report full charge when disconnected, this field does not exist.)

[0101] Total time for the full charge icon to disappear (report_full_time): $$report_full_time@@xxx (This field exists only when it reports full charge). From the start time of charging to the time when the full charge icon disappears. This period includes fast charging and part of the normal charging time;

[0102] Total charging time until charging is stopped (normal_full_time): $$normal_full_time@@xxx (The total continuous time when charging is truly stopped). From the start time of charging to the time when fast charging reports full charge, and then to the time when it is truly fully charged after switching to normal charging.)

[0103] Reason for reporting full charge (full_reason): $$@@xxx, full_reason includes full charge under normal conditions (full_normal), full charge at low temperature (full_low_temp), full charge at high temperature (full_high_temp), third-party battery (full_third_batt), no battery (full_no_batt),

[0104] Current limiting statistical information. To control the temperature of the electronic device, the charging current is limited. Exemplarily, the charging current is divided into 32 levels (cool_down). The charging current level is determined according to the temperature of the electronic device, and the proportion of each level of cool_down in the total charging time is statistically calculated. It is represented as a string: $$cool_down@@L_0, XXX;...; L_31, XXX.

[0105] In practical applications, the charging information may also include other information (other), represented as a string: $$other@@xxx. Exemplarily, the other information may be the information of the print log (print_log) for development.

[0106] The type_reason (information type) of the non-charging buried point information is no_charging (not charging). When there is no need to judge the specific reason, the flag_reason (reason identifier) is no_charging.

[0107] The type_reason of the slow-charging buried point information is Charger_slow (slow charging), and the flag_reason is BattTempWarm (high battery temperature), BattTempCold (low battery temperature), BattCapHighWhenPlugin (high battery power when starting to charge), CoolDownCtlLongTime (long current-limiting time), or Other (others).

[0108] The type_reason of the normal charging buried point information is general_record (normal information). When there is no need to judge the specific reason, the flag_reason is ChargerInfo (charging information).

[0109] In the embodiments of the present application, the standard for judging whether it is not charging is as follows:

[0110] If the time ratio of the charging current value (Icharging) of the battery in the current charging state (Prop_status = charging) being greater than 0 to the total charging time exceeds 70%, it is determined that it is not charging. Here, the absolute values of the charging current value and the discharging current value are the same, but the sign of the charging current value is positive, and the sign of the discharging current value is negative.

[0111] Figure 2 It is a schematic flow diagram of non-charging detection in the embodiments of the present application. As Figure 2 shown, the specific judgment process is as follows:

[0112] 1. When starting to charge and the charger is not disconnected, judge whether the charging start identifier Track_reset = true? If Track_reset = true, start recording the starting temperature, power, starting time, starting capacity, and start the threads for monitoring the charging speed at 5 minutes and 10 minutes, and set Track_reset = false;

[0113] 2. If Track_reset = false, obtain the charger type and count the screen-on time, average charging speed, charging capacity at 5 minutes and 10 minutes, full charge time, and cool_down statistics; determine whether it is truly in the charging state (charing); when prop_status = charing, record the total charging time, i.e., Chg_total_cnt; and record the time when the charging current value (Icharging)>0, i.e., No_charging_cnt.

[0114] 3. When the charger is disconnected, determine whether the connection charger time (i.e., the charging time) exceeds 2 minutes; if it does not exceed 2 minutes, the current charging information is invalid and not uploaded; if it exceeds 2 minutes, determine whether it is not charging, i.e., if chg_total_cnt is equal to 0, directly record the non-charging return value ret = true to indicate non-charging. If the ratio of no_charging_cnt to chg_total_cnt exceeds 70%, temporarily record the non-charging return value ret = true to indicate non-charging, otherwise record ret = false to indicate charging. Finally, turn on the debug debugging node and set debug_no_charging to true, then judge that the non-charging return value ret = true.

[0115] 4. When the return value is equal to true, it is judged that there is no charging. When disconnecting, the priority of judging no charging is the highest. In the case of no charging, the sensitive information to be pre-uploaded this time will be packaged, and then the work of the no-charging buried point will be called after a delay of 1.5 seconds or 7 seconds. The previously packaged sensitive information will be uploaded to the server. The waiting time is because this disconnection may be intermittent, so this buffer time needs to be waited to determine whether it is intermittent. After determining that it is not intermittent, it will be uploaded. If it is judged to be intermittent, then the work of the current non-charging upload will be cancelled in the code where it is judged to be intermittent.

[0116] 5. Since the logic of no charging is difficult to trigger, a test debug node is provided. Echo 1>debug_no_charging can trigger it.

[0117] Exemplarily, the format of the no-charging buried point information is as follows:

[0118] Oplus Charger, charge_monitor, payload@@charge_monitor$$type_reason@@no_charging$$flag_reason@@no_charging$$time@@[2022-01-13 12:38:10]$$power_mode@@wired$$adapter_type@@sdp$$power@@2500$$start_soc@@0$$start_temp@@279$$max_temp@@283$$led_on_pct@@0$$chg_five_mins_cap@@0$$chg_ten_mins_cap@@1$$chg_average_speed@@0$$fast_full_time@@60$$report_full_time@@60$$normal_full_time@@60$$full_reason@@full_normal$$cool_down@@L_0,1520;L_1,0;L_2,0;L_3,0;L_4,0;L_5,0;L_6,0;L_7,0;L_8,0;L_9,0;L_10,0;L_11,0;L_12,0;L_13,0;L_14,0;L_15,0;L_16,0;L_17,0;L_18,0;L_19,0;L_20,0;L_21,0;L_22,0;L_23,0;L_24,0;L_25,0;L_26,0;L_27,0;L_28,0;L_29,0;L_30,0;L_31,0$$other@@CHGR[0 0 0 3 0],BAT[1 0 0 0 1 0],GAUGE[275 3707 3693 -217 -1 3 3 17 128 4386],STATUS[0 0 0 0 0 0x0 0 0 0],OTHER[0 1 0 0 0 0]$$Time@@1642048690。

[0119] By adopting the above non-charging detection method, the actual non-charging situation of the electronic device can be accurately detected, that is, it can well detect the abnormal rate of non-charging due to device abnormalities or software failures, providing data support for the statistical analysis and early warning of the non-charging abnormal mechanism.

[0120] In the embodiment of the present application, the criterion for determining whether the charging is slow is: if the average current in different power ranges is less than the reference current, it is determined that the charging is slow, and further the reason for the slow charging is judged.

[0121] First, define a charging speed reference table for different power ranges under different charger types and adapter types. Specifically, the charging speed reference table for the wired charger type is shown in Table 1. The first column in it is the maximum power supported by the electronic device. That is to say, this method further includes: when the charger type is known and the adapter type is known, based on the charger type and the maximum power supported by the electronic device, obtain the corresponding charging speed reference table.

[0122] Table 1

[0123]

[0124] The charging speed reference table for the wireless charger type is shown in Table 2:

[0125] Table 2

[0126]

[0127] Among them, the software needs to configure the wired and wireless solutions in dtsi. Then the software code finds the charging speed reference table for judging slow charging through the index of dtsi, and then calculates the average current in each power range of 0 - 50% \ 50% - 75% \ 75% - 90%. The average current = the increased battery power in the power range / the charging time. When the average current is less than the reference current in the corresponding power segment, as long as one power range is satisfied, it is judged that the charging is slow, and further judge the reason for the slow charging.

[0128] Specifically, the average current = the increased battery power in each power range / the charging time = (the battery power at 90% when disconnected - the battery power when connected) / the charging time.

[0129] Figure 3 This is the schematic diagram of the first part of the process for detecting slow charging in the embodiments of this application. As Figure 3 shown, the steps for detecting slow charging include:

[0130] 1. When the buried point drive is loaded, it will parse the index of the charging speed reference table used for calculating the wired \ wireless fast charging \ wireless EPP \ wireless BPP configured in dtsi; the reference table of the average current for slow charging of various solutions has been pre-configured in the software code. Then map the index to the pointer of the speed reference table. It is necessary to determine whether the configured index is illegal. If it is determined to be legal within the array length range, directly assign the corresponding speed reference table pointer to the entity. Therefore, the software needs to configure the index in dtsi. If it is determined to be illegal outside the array length range, the corresponding charging speed reference table pointer remains the default NULL.

[0131] 2. When the charger is disconnected, check if the connection time of the charger (i.e., the charging time) exceeds 2 minutes. If it does not exceed 2 minutes, the current charging information is invalid and not uploaded. If it exceeds 2 minutes, a judgment on slow charging will be executed (see Figure 5 ). If it is determined that the charging is slow, the sensitive information to be pre-uploaded this time will be packaged. When the charger type is wireless, the work of the slow charging buried point information will be called and uploaded after a 7-second delay. When the charger type is wired, the work of the slow charging buried point information will be called and uploaded after a 1.5-second delay.

[0132] Figure 4 This is the schematic diagram of the second part of the slow charging detection in the embodiment of the present application, which executes the judgment of slow charging and also includes the judgment of the reason for slow charging.

[0133] 3. When the charger is connected, the increased battery power mah in the low battery power segment of 0%-50%, the medium battery power segment of 50%-75%, and the high battery power segment of 75%-90% will first be converted into mas per single cell and in seconds. If Power_type = unknow (the charger type is unknown), it is directly determined that the charging is slow (Chg_slow = true). If Power_type = wls (the charger type is wireless) and adapter_type = unknow (the adapter type is unknown), it is directly determined that the charging is slow;

[0134] 4. If Power_type = wls, if adapter_type = unknow, it is directly determined that the charging is slow; if adapter_type = epp, check if the reference speed pointer of epp is NULL. If it is NULL, it is determined that the charging is not slow (Chg_slow = false); otherwise, calculate the charging speed using the reference speed table of epp. Then, check if the duration in the low / medium / high battery power intervals is 0. If all are 0, it is determined that the charging is slow; if the duration in the low battery power segment exceeds 6 seconds and the increased power in the low battery power segment / the duration in the low battery power segment < the average current in the low battery power segment of the reference table, it is determined that the charging is slow; if the duration in the medium battery power segment exceeds 8 seconds and the increased power in the medium battery power segment / the duration in the medium battery power segment < the average current in the medium battery power segment of the reference table, it is determined that the charging is slow; if the duration in the high battery power segment exceeds 10 seconds and the increased power in the high battery power segment / the duration in the high battery power segment < the average current in the high battery power segment of the reference table, it is determined that the charging is slow.

[0135] If Power_type = wls, and if adapter_type = bpp, then determine whether the reference speed pointer of bpp is NULL. If it is NULL, then it is determined as not slow charging; otherwise, calculate the charging speed and select the reference speed table of bpp; then determine whether the duration of the low / mid / high battery level intervals is 0. If all are 0, then it is determined as slow charging; if the duration of the low battery segment exceeds 6s and the increased battery power in the low battery segment / the duration of the low battery segment < the average current in the low battery segment of the reference table, then it is determined as slow charging; if the duration of the mid battery segment exceeds 8s and the increased battery power in the mid battery segment / the duration of the mid battery segment < the average current in the mid battery segment of the reference table, then it is determined as slow charging; if the duration of the high battery segment exceeds 10s and the increased battery power in the high battery segment / the duration of the high battery segment < the average current in the high battery segment of the reference table, then it is determined as slow charging.

[0136] If Power_type = wls, and if adapter_type = airvooc\airsvooc, then determine whether the reference speed pointer of airvooc\airsvooc is NULL. If it is NULL, then it is determined as not slow charging; otherwise, calculate the charging speed and select the reference speed table of air vooc\airsvooc; then determine whether the duration of the low / mid / high battery level intervals is 0. If all are 0, then it is determined as slow charging; if the duration of the low battery segment exceeds 6s and the increased battery power in the low battery segment / the duration of the low battery segment < the average current in the low battery segment of the reference table, then it is determined as slow charging; if the duration of the mid battery segment exceeds 8s and the increased battery power in the mid battery segment / the duration of the mid battery segment < the average current in the mid battery segment of the reference table, then it is determined as slow charging; if the duration of the high battery segment exceeds 10s and the increased battery power in the high battery segment / the duration of the high battery segment < the average current in the high battery segment of the reference table, then it is determined as slow charging.

[0137] If Power_type = wired (the charger type is wired), determine whether the wired reference speed pointer is NULL. If it is NULL, then it is determined as not slow charging; otherwise, calculate the charging speed and select the wired reference speed table; then determine whether the duration of the low / mid / high battery level intervals is 0. If all are 0, then it is determined as slow charging; if the duration of the low battery segment exceeds 6s and the increased battery power in the low battery segment / the duration of the low battery segment < the average current in the low battery segment of the reference table, then it is determined as slow charging; if the duration of the mid battery segment exceeds 8s and the increased battery power in the mid battery segment / the duration of the mid battery segment < the average current in the mid battery segment of the reference table, then it is determined as slow charging; if the duration of the high battery segment exceeds 10s and the increased battery power in the high battery segment / the duration of the high battery segment < the average current in the high battery segment of the reference table, then it is determined as slow charging.

[0138] 5. When it is judged that the charging is slow, it is necessary to judge the reason for the slow charging. The triggering reasons are as follows according to the priority:

[0139] (1) Has the battery been high temperature or low temperature during charging?

[0140] Flag_reason (reason for slow charging): BattTempWarm (high battery temperature) / BattTempCold (low battery temperature)

[0141] (2) Is the charger type unknown, or is the power of the wired charger less than the maximum wired power supported by the mobile phone in this project, or is the maximum power of the wireless charger less than the maximum wireless power supported by this project - 10W when it is not EPP and not bpp?

[0142] flag_reason: NonStandardAdatpter (non-standard adapter)

[0143] (3) Is the battery level at the start of charging higher than 90%? flag_reason: BattCapHighWhenPlugin (high battery level when starting to charge)

[0144] (4) Does the time of the Cool_down function exceed 70%? flag_reason: CoolDownCtlLongTime (long current limiting time)

[0145] (5) If the time of the Cool_down function does not exceed 70%, for other reasons OTHER, flag_reason: Other (other).

[0146] Figure 5 This is the schematic diagram of the third part of the process for detecting slow charging in the embodiments of this application and the information recorded during the charging process.

[0147] 6. When the charger is connected for charging, it depends on the charging 5s thread to perform the statistical work of each parameter in the charging process every 5s. When the battery temperature is not high temperature / not low temperature, that is, no high temperature or low temperature is recorded and the battery temperature enters the high temperature range or low temperature range, then the flag of high battery temperature or low battery temperature is set to true. This flag is required when judging the reason for slow charging when the charger is disconnected; count the effective Cool_down time, that is, count when Cool_down>0, and count the time of Cool_down>0 when disconnected or fully charged, and count the increased battery power in each power segment to facilitate the statistics of the reason for slow charging.

[0148] 7. Determine whether the battery reports full charge. If it reports full charge, do not continue to count the increased battery power in each power range. If it does not report full charge, that is, in the charging state, then at the beginning of charging, the power range section_status = DEFAULT. Then, the initial values of the increased battery power and duration in each power range segment are set to the default value 0, and the initial time go_time and initial battery power go_rm are recorded when switching to the next state. This is to accurately count the increased battery power and duration in each power range when the value of section_status is different and the state switches repeatedly. Subtract the initial battery power go_rm from the current battery power, and subtract the initial time go_time from the current time.

[0149] 8. Section_status has 5 states. DEFAULT is the default state, LOW corresponds to the power range of 0 - 50%, MEDIUM corresponds to the power range of 50% - 75%, HIGH corresponds to the power range of 75% - 90%, and OVER corresponds to the power above 90%. Adjacent two states can switch. For example, when the connected power is 20%, continuously count the increased battery power and duration from 20% to 50%. Then, when it reaches 50%, it switches to the MEDIUM state and will re - count the increased battery power and duration from 50% to 75%. The same applies to other cases. Its function: oplus_chg_track_cal_section_soc_inc_rm().

[0150] Figure 6 is the schematic diagram of the power range switching process in the embodiment of this application. As Figure 6 shown, whenever the power range section_status = low, that is, for 0 - 50 in real - time, calculate the increased battery power and duration in this section. First, settle the increased battery power and duration in this range segment (subtract the initial battery power go_rm from the current battery power, and subtract the initial time go_time from the current time). When section_status changes from low to medium, update go_time and go_rm for entering the next state, and calculate the increased battery power and duration when section_status = medium. The same principle applies to the switching of other power ranges.

[0151] Exemplarily, the slow - charging buried - point information format is as follows:

[0152] Oplus Charger, charge_monitor, payload@@charge_monitor$$type_reason@@Charger_slow$$flag_reason@@BattTempWarm$$time@@[2022-01-12 23:57:43]$$power_mode@@wired$$adapter_type@@sdp$$power@@2500$$start_soc@@32$$start_temp@@295$$max_temp@@298$$ledon_time@@7$$ledoff_time@@7$$chg_five_mins_cap@@0$$chg_average_speed@@5$$fast_full_time@@1$$report_full_time@@1$$normal_full_time@@2$$full_reason@@full_normal$$cool_down@@L_0,135; L_1,0; L_2,0; L_3,0; L_4,0; L_5,0; L_6,0; L_7,0; L_8,0; L_9,0; L_10,0; L_11,0; L_12,0; L_13,0; L_14,0; L_15,0; L_16,0; L_17,0; L_18,0; L_19,0; L_20,0; L_21,0; L_22,0; L_23,0; L_24,0; L_25,0; L_26,0; L_27,0; L_28,0; L_29,0; L_30,0; L_31,0$$other@@CHGR[0 0 0 3 0], BAT[1 0 0 0 1 0], GAUGE[2983842 3841 -208 -1 33 33 17 1414 4396], STATUS[0 0 0 0 0 0x0 0 0 0], OTHER[0 1 00 0 0]$$Time@@1642003063

[0153] Using the above charging slow detection method, it can accurately identify slow charging and can well classify the reasons for slow charging in case of slow charging; secondly, the reported buried point data of slow charging can provide data support for the statistical analysis and early warning of the abnormal mechanism of slow charging.

[0154] Figure 7 This is the schematic diagram of the first part of the process for detecting conventional information in the embodiment of the present application, as Figure 7 shown,

[0155] 1. When the charger is disconnected, check if the connection time (i.e., charging time) exceeds 2 minutes. If it does not exceed 2 minutes, the current charging information is invalid and not uploaded. If it exceeds 2 minutes, it is considered a valid charge. Then, check if there was a fast charge full report or a normal charge full report before disconnection. If there was, the average charging speed is not calculated at the time of disconnection because it was already calculated at the time of the full report. If there was no full report, subtract the battery level at the connection time from the battery level at the disconnection time to get the increased battery level during this period. Then, divide the increased battery level by the total charging time to get the average charging speed, i.e., the increased mah per unit time (min). Before uploading, first check if this is a non - charging or slow - charging situation. The judgment priority of normal charging information is the lowest. Only when the non - charging and slow - charging conditions are not triggered, it is determined as normal charging information and the normal charging information is uploaded. The reported information is connected and packed into a single sensitive string to generate normal buried - point information, and delay work is started. The work for uploading the normal buried - point information is called and uploaded 12 seconds later. The reason for not uploading immediately is that it is necessary to check for charging interruption. Only when it is determined that there is no charging interruption is the current buried - point information uploaded, and 12 seconds is enough time for the charging interruption connection.

[0156] If the non - charging and slow - charging conditions are triggered, the buried - point information of non - charging / slow - charging is reported.

[0157] 2. Regardless of whether it exceeds 2 minutes at the time of disconnection, set track_reset = true. This track_reset = true facilitates recording the starting temperature / battery level / starting time / starting capacity at the next connection and starting the threads for monitoring the charging speed at 5 minutes and 10 minutes. Also, the time marker exceeding 2 minutes is reset, so that the timing can start again at the next connection. Because it is possible that the time from connection to disconnection does not meet 5 minutes or 10 minutes, the threads for recording the charging capacity at 5 minutes and 10 minutes need to be cancelled after disconnection. Finally, the status related to buried - point is reset to the default value.

[0158] 3. When starting to charge and the charger is not disconnected, check if the charging start flag Track_reset = true? If Track_reset = true, start recording the starting temperature / battery level / starting time / starting capacity and start the threads for monitoring the charging speed at 5 minutes and 10 minutes, and set Track_reset = false.

[0159] 4. If Track_reset = false, obtain the charger type. When Power_type = wired (the charger type is wired), the wired charger first obtains the basic sdp / cdp / dcp types, then obtains the enhanced pd / qc / pps / ufcs types, and then obtains the fast_chg_type fast charging type. Then, match these type numbers to the corresponding strings to obtain the structure type of power_info, including character information such as power_mode / adapter_type / power. Similarly, for wireless charging, first obtain the adapter_type, then obtain the dock_type, and finally obtain the maximum power supported by the dock. Here, to be compatible with the new wireless architectures of fussi / YingShi and baize, the linux version number is used for differentiation.

[0160] Figure 8 This is the schematic diagram of the second part of the regular information detection process in the embodiment of the present application. As Figure 8 shown, continue to execute starting from Figure 7 node ① in

[0161] 5. Replace the maximum charging temperature (case temperature) in real time during the charging process; count the proportion of each cool_down. First, it will be judged whether the value of cool_down is within the legal range of 0 - 31. If it is and the device is also in the charging state (Prop_status == charging), then the time of the corresponding cool_down will be incremented by 1; then count the proportion of the screen-on time. If the device is in the charging state and the screen is on (led_on = 1), then the recorded screen-on time will be incremented by 1.

[0162] 6. If the device is not in the charging state or the screen is off, count the full charge time. When the fast charging full charge time is equal to the initial value and (wired fast charging is full or wireless switches to ffc or debug is full), then record the duration from connection to fast charging full. If it is less than 1 minute, it will be calculated as 1 minute. At this time, the average charging speed needs to be counted; when reporting full to the system layer and the full charge icon disappears, the total time for the full charge icon to disappear will also be recorded (usually it reports when the duration is 100% for 1 minute). At this time, the reason for the full charge will be counted. Specifically, according to the string in notify containing the full charge attribute, the main reasons for the full charge are counted (normal full charge / high temperature full charge / low temperature full charge / battery not connected / non-standard battery); when the charging actually stops, when the charging_state of wired charging is FULL, or the wls_chg_done of wireless charging or debug is full, then the stop time will be recorded. If it is less than 1 minute, it will be calculated as 1 minute, and the average charging speed from stop to full will be counted.

[0163] 7. Finally, testing can be carried out. Disconnect after connecting for 2 minutes and check whether there is data point uploading and whether the generated data point information meets the expectations.

[0164] Exemplarily, the format of the conventional data point information is as follows:

[0165] OplusCharger,charge_monitor,payload@@charge_monitor$$type_reason@@general_record$$flag_reason@@ChargerInfo$time@@[2022-01-12 23:57:43]$$power_mode@@wired$$adapter_type@@sdp$$power@@2500$$start_soc@@32$$start_temp@@295$$max_temp@@298$$ledon_time@@7$$ledoff_time@@7$$chg_five_mins_cap@@0$$chg_average_speed@@5$$fast_full_time@@1$$report_full_time@@1$$normal_full_time@@2$$full_reason@@full_normal$$cool_down@@L_0,135;L_1,0;L_2,0;L_3,0;L_4,0;L_5,0;L_6,0;L_7,0;L_8,0;L_9,0;L_10,0;L_11,0;L_12,0;L_13,0;L_14,0;L_15,0;L_16,0;L_17,0;L_18,0;L_19,0;L_20,0;L_21,0;L_22,0;L_23,0;L_24,0;L_25,0;L_26,0;L_27,0;L_28,0;L_29,0;L_30,0;L_31,0$$other@@CHGR[0 0 0 3 0],BAT[1 0 0 0 1 0],GAUGE[2983842 3841 -208 -1 33 33 17 1414 4396],STATUS[0 0 0 0 0 0x0 0 0 0],OTHER[0 1 00 0 0]$$Time@@1642003063

[0166] By determining which conventional charging information is needed through preliminary research and then how the software monitors and reports this conventional information, the standardization and accuracy of reporting conventional charging data point information are achieved, providing reliable data support for various statistical comparison analyses in the charging field.

[0167] To implement the method of the embodiments of the present application, based on the same inventive concept, the embodiments of the present application also provide a charging information detection device, as Figure 9 shown. The charging information detection device 90 includes:

[0168] A recording unit 901, configured to start recording charging information when the electronic device is connected to the charger; and obtain the charging time when the electronic device is disconnected from the charger;

[0169] A processing unit 902, configured to determine the information type of the charging information when the charging time is greater than or equal to a first time, and generate charging buried point information based on the information type and the charging information, where the information type includes one of the following: non-charging information, slow charging information, and normal charging information;

[0170] An uploading unit 903, configured to upload the charging buried point information.

[0171] Exemplarily, in some embodiments, the charging information includes: charger type, adapter type, charging power, information recorded at the start of charging, and information recorded during the charging process.

[0172] Exemplarily, in some embodiments, the charger type includes: wired, wireless, and unknown;

[0173] The adapter type includes: wired adapter type, wireless adapter type;

[0174] The information recorded at the start of charging includes: initial battery level, initial temperature;

[0175] The information recorded during the charging process includes: maximum temperature, screen-on time, screen-off time, charging capacity at a first preset time, average charging speed, total charging time when fast charging is full, total time for the full-charge icon to disappear, total charging cut-off time, reason for full charge, current-limiting statistical information.

[0176] Exemplarily, in some embodiments, the processing unit 902 is configured to obtain the time when the charging current value of the battery in the charging state is greater than 0, and the total charging time; when the ratio of the time when the charging current value is greater than 0 to the total charging time is greater than a first preset ratio, determine that the charging type is non-charging.

[0177] Exemplarily, in some embodiments, the processing unit 902 is configured to obtain the charger type and the adapter type; when the charger type is unknown or the adapter type is unknown, determine that the information type is slow charging information; when the charger type is known and the adapter type is known, obtain a corresponding charging speed reference table based on the charger type and the adapter type, where the charging speed reference table includes reference currents corresponding to at least two power ranges; obtain the increased power of the battery and the charging time in a first power range, where the first power range is any one of the at least two power ranges; divide the increased power of the battery by the charging time to obtain the average current in the first power range; if the average current in the first power range is less than the reference current in the first power range, determine that the information type is slow charging information.

[0178] Exemplarily, in some embodiments, the processing unit 902 is configured to obtain the charging reference time for the first power range; if the charging time in the first power range is greater than the charging reference time and the average current in the first power range is less than the reference current in the first power range, determine that the information type is slow charging information.

[0179] Exemplarily, in some embodiments, the processing unit 902 is configured to, when the charger type is known and the adapter type is known, if no corresponding charging speed reference table is obtained based on the charger type and the adapter type, determine that the information type is not slow charging information.

[0180] Exemplarily, in some embodiments, when the processing unit 902 determines that the information type is slow charging information, it is configured to determine the reason for slow charging; generate charging buried point information based on the information type, the reason for slow charging, and the charging information;

[0181] Specifically, the processing unit 902 is configured to, when the historical temperature of the battery during charging is greater than the first temperature threshold, determine that the reason for slow charging is high battery temperature;

[0182] When the historical temperature of the battery during charging is less than the second temperature threshold, determine that the reason for slow charging is low battery temperature;

[0183] When the charger type is unknown, determine that the reason for slow charging is a non-standard adapter;

[0184] When the charger type is known and the charging power is less than the maximum power corresponding to the charger type, determine that the reason for slow charging is a non-standard adapter;

[0185] When the ratio of the initial battery power to the battery capacity is greater than the second preset ratio, it is determined that the reason for slow charging is that the battery power is high at the start of charging;

[0186] When the ratio of the current-limiting action time to the total charging time is greater than the second preset ratio, it is determined that the reason for slow charging is that the current-limiting action time is long.

[0187] Exemplarily, in some embodiments, the processing unit 902 is configured to determine that the information type is normal charging information when the information type is neither the non-charging information nor the slow-charging information.

[0188] Exemplarily, in some embodiments, the uploading unit 903 is configured to upload the charging buried point information after delaying for a second preset time;

[0189] Wherein, when the information type is non-charging information, the second preset time is the second time;

[0190] When the information type is slow-charging information, the second preset time is the third time;

[0191] When the information type is normal charging information, the second preset time is the fourth time.

[0192] Exemplarily, in some embodiments, the uploading unit 903 is configured to not upload the charging buried point information when it is determined that there is intermittent charging between the electronic device and the charger within the second preset time;

[0193] When it is determined that there is no intermittent charging between the electronic device and the charger within the second preset time, upload the charging buried point information.

[0194] Exemplarily, in some embodiments, the processing unit 902 is configured to determine that the charging information is invalid information when the charging time is less than the first time.

[0195] Based on the hardware implementation of each unit in the above charging information detection device, an embodiment of the present application further provides an electronic device, as Figure 10 shown, the electronic device 100 includes: a processor 1001 and a memory 1002 configured to store a computer program that can run on the processor;

[0196] Wherein, when the processor 1001 is configured to run the computer program, it executes the method steps in the foregoing embodiments.

[0197] Of course, in actual application, as Figure 10As shown, each component in the electronic device 100 is coupled together through a bus system 1003. It can be understood that the bus system 1003 is used to implement the connection and communication between these components. In addition to including a data bus, the bus system 1003 also includes a power bus, a control bus, and a status signal bus. However, for the sake of clear illustration, various buses are labeled as the bus system X03 in the figure.

[0198] In practical applications, the above-mentioned processor can be at least one of an application-specific integrated circuit (ASIC), a digital signal processing device (DSPD), a programmable logic device (PLD), a field-programmable gate array (FPGA), a controller, a microcontroller, and a microprocessor. It can be understood that for different devices, the electronic devices used to implement the functions of the above-mentioned processor can also be others, and the embodiments of the present application do not make specific limitations.

[0199] The above-mentioned memory can be a volatile memory, such as a random-access memory (RAM); or a non-volatile memory, such as a read-only memory (ROM), a flash memory, a hard disk drive (HDD), or a solid-state drive (SSD); or a combination of the above types of memories, and provides instructions and data to the processor.

[0200] In practical applications, the above-mentioned device can be an electronic device or a chip applied to an electronic device. In the present application, the device can implement the functions of multiple units through software, hardware, or a combination of software and hardware, so that the device can execute the charging information detection method provided in any of the above embodiments. And the technical effects of the technical solutions of the device can refer to the technical effects of the corresponding technical solutions in the charging information detection method, and the present application will not elaborate on them one by one.

[0201] In an exemplary embodiment, the embodiments of the present application also provide a computer-readable storage medium, such as a memory including a computer program, and the computer program can be executed by a processor of an electronic device to complete the steps of the foregoing method.

[0202] The embodiments of the present application also provide a computer program product, including computer program instructions.

[0203] Optionally, the computer program product can be applied to the electronic device in the embodiments of the present application, and the computer program instructions cause the computer to execute the corresponding processes implemented by the electronic device in each method of the embodiments of the present application. For the sake of brevity, details are not described herein again.

[0204] The embodiments of the present application also provide a computer program.

[0205] Optionally, the computer program can be applied to the electronic device in the embodiments of the present application. When the computer program runs on the computer, it causes the computer to execute the corresponding processes implemented by the electronic device in each method of the embodiments of the present application. For the sake of brevity, details are not described herein again.

[0206] It should be understood that in the embodiments of the present application, when it comes to charging information, when the embodiments of the present application are applied to specific products or technologies, user permission or consent needs to be obtained, and the collection, use, and processing of relevant data need to comply with the relevant laws, regulations, and standards of relevant countries and regions.

[0207] It should be understood that the terms used in the present application are for the purpose of describing specific embodiments only and are not intended to limit the present application. The singular forms "a", "the", and "said" used in the present application and the appended claims are also intended to include the plural forms, unless the context clearly indicates otherwise. It should also be understood that the term "and / or" used herein refers to and includes any or all possible combinations of one or more of the associated listed items. The expressions "have", "may have", "include", and "contain", or "may include" and "may contain" used in the present application can be used to indicate the existence of corresponding features (for example, elements such as numerical values, functions, operations, or components), but do not exclude the existence of additional features.

[0208] It should be understood that although the terms first, second, third, etc. may be used in the present application to describe various information, such information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other and do not necessarily describe a specific order or sequence. For example, without departing from the scope of the present invention, the first information can also be referred to as the second information, and similarly, the second information can also be referred to as the first information.

[0209] Among the technical solutions described in the embodiments of the present application, they can be arbitrarily combined without conflict.

[0210] In several embodiments provided by the present application, it should be understood that the disclosed methods, apparatuses, and devices can be implemented in other ways. The embodiments described above are merely illustrative. For example, the division of units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined, or can be integrated into another system, or some features can be ignored, or not executed. In addition, the coupling, direct coupling, or communication connection between the displayed or discussed components can be through some interfaces. The indirect coupling or communication connection of devices or units can be electrical, mechanical, or other forms.

[0211] The units described above as separate components may or may not be physically separated. The components displayed as units may or may not be physical units, that is, they may be located in one place or distributed to multiple network units; some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0212] In addition, each functional unit in the embodiments of the present application can be all integrated in a processing unit, or each unit can be separately used as a unit, or two or more units can be integrated in a unit; the above-mentioned integrated units can be implemented in the form of hardware, or in the form of hardware plus software functional units.

[0213] The above is only the specific implementation manner of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art within the technical scope disclosed by the present application can easily think of changes or substitutions, which should all be covered within the protection scope of the present application.

Claims

1. A charging information detection method, characterized in that The method includes: When the electronic device is connected to the charger, start recording charging information; When the electronic device is disconnected from the charger, obtain the charging time; When the charging time is greater than or equal to the first time, determine the information type of the charging information, and generate charging buried point information based on the information type and the charging information, where the information type includes one of the following: non-charging information, slow charging information, and normal charging information; Upload the charging buried point information; The charging information includes at least the charger type and the adapter type; The determining the information type of the charging information includes: When the charger type is known and the adapter type is known, obtain the corresponding charging speed reference table based on the charger type and the adapter type, where the charging speed reference table includes reference currents corresponding to at least two power ranges; Obtain the increased battery power and the charging time in the first power range, where the first power range is any one of the at least two power ranges; Divide the increased battery power by the charging time to obtain the average current in the first power range; When the average current in the first power range is less than the reference current in the first power range, determine that the information type is slow charging information.

2. The method according to claim 1, wherein The charging information includes: charger type, adapter type, charging power, information recorded at the start of charging, information recorded during the charging process.

3. The method according to claim 2, wherein The charger type includes: wired, wireless, and unknown; The adapter type includes: wired adapter type, wireless adapter type; The information recorded at the start of charging includes: initial battery power, initial temperature; The information recorded during the charging process includes: maximum temperature, screen-on time, screen-off time, charging capacity at the first preset time, average charging speed, total charging time when fast charging is full, total time for the full charge icon to disappear, total charging cut-off time, reason for full charge, current limiting statistical information.

4. The method according to claim 1, wherein The determining the information type of the charging information includes: Obtain the time when the charging current value of the battery during charging is greater than 0, and the total charging time; When the ratio of the time when the charging current value is greater than 0 to the total charging time is greater than the first preset ratio, determine that the information type is non-charging information.

5. The method according to claim 1, characterized in that, The determining the information type of the charging information includes: Obtain the charger type and the adapter type; When the charger type is unknown or the adapter type is unknown, determine that the information type is slow charging information.

6. The method according to claim 5, characterized in that The method further includes: Obtain the charging reference time in the first power range; When the charging time in the first power range is greater than the charging reference time and the average current in the first power range is less than the reference current in the first power range, determine that the information type is slow charging information.

7. The method according to claim 5, characterized in that The method further includes: When the charger type is known and the adapter type is known, and no corresponding charging speed reference table is obtained based on the charger type and the adapter type, determine that the information type is not slow charging information.

8. The method according to any one of claims 5 to 7, characterized in that The method further includes: when determining that the information type is slow charging information, determining the reason for slow charging; generating charging buried point information based on the information type, the reason for slow charging, and the charging information; The determining the reason for slow charging includes: When the historical temperature of the battery during charging is greater than the first temperature threshold, determining that the reason for slow charging is high battery temperature; When the historical temperature of the battery during charging is less than the second temperature threshold, determining that the reason for slow charging is low battery temperature; When the charger type is unknown, determining that the reason for slow charging is a non-standard adapter; When the charger type is known and the charging power is less than the maximum power corresponding to the charger type, determining that the reason for slow charging is a non-standard adapter; When the ratio of the initial battery charge and the battery capacity is greater than the second preset ratio, determining that the reason for slow charging is high battery charge at the start of charging; When the ratio of the current limiting time and the total charging time is greater than the second preset ratio, determining that the reason for slow charging is long current limiting time.

9. The method according to claim 1, characterized in that, The method further includes: When determining that the information type is neither no charging information nor slow charging information, determining that the information type is normal charging information.

10. The method according to claim 1, characterized in that, The uploading the charging buried point information includes: uploading the charging buried point information after delaying for the second preset time; Wherein, when the information type is no charging information, the second preset time is the second time; When the information type is slow charging information, the second preset time is the third time; When the information type is normal charging information, the second preset time is the fourth time.

11. The method according to claim 10, wherein The method further includes: During the second preset time, when determining that there is intermittent charging between the electronic device and the charger, not uploading the charging buried point information; During the second preset time, when determining that there is no intermittent charging between the electronic device and the charger, uploading the charging buried point information.

12. The method according to claim 1, wherein The method further includes: When the charging time is less than the first time, determining that the charging information is invalid information.

13. A charging information detection device, characterized in that, The charging information detection device includes: A recording unit, configured to start recording charging information when the electronic device is connected to the charger; and obtain the charging time when the electronic device is disconnected from the charger; A processing unit, configured to, when the charging time is greater than or equal to the first time, determine the information type of the charging information, and generate charging buried point information based on the information type and the charging information, wherein the information type includes one of the following: no charging information, slow charging information, and normal charging information; An uploading unit, configured to upload the charging buried point information; The charging information at least includes the charger type and the adapter type; The processing unit, when the charger type is known and the adapter type is known, obtains a corresponding charging speed reference table based on the charger type and the adapter type, wherein the charging speed reference table includes reference currents corresponding to at least two power ranges; Obtaining the increased battery charge and the charging time in the first power range, wherein the first power range is any one of the at least two power ranges; The increased battery power is divided by the charging time to obtain the average current in the first power range; If the average current in the first power range is less than the reference current in the first power range, it is determined that the information type is slow charging information.

14. An electronic device, characterized in that, The electronic device includes: a processor and a memory configured to store a computer program that can run on the processor, wherein, when the processor is configured to run the computer program, it executes the steps of the method according to any one of claims 1 to 12.

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

Citation Information

Patent Citations

  • Improvement in seat-fasteners

    US100010A

  • Charging management method and device, medium and electronic equipment applying method

    CN110556884A

  • Data processing method, vehicle and computer readable storage medium

    CN114461671A