Processing method and electronic equipment
By obtaining and analyzing the parameter information of the charging device, determining the matching status between the adapter and the electronic device, and prompting the user to replace the matching adapter, the problem of different charging effects caused by different charging devices is solved and a more efficient charging effect is achieved.
Patent Information
- Application Number
- CN202510397074.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-31
- Publication Date
- 2025-06-24
AI Technical Summary
The differences in attributes of different chargers or charging adapters lead to differences in the effects of charging electronic products. Users cannot clarify the charging effect of different charging devices, and thus cannot improve the charging effect of electronic products.
By obtaining parameter information and target parameters that characterize the access of the charging device, the decision result is determined based on the target parameters and target policies, and the prompt information is output to prompt the user to provide an adapter that can release the charging ability of the electronic device.
Ensure that the electronic device can be charged by an adapter that matches the electronic device, thereby producing an optimal charging effect, improving charging efficiency and reducing battery damage.
Smart Images

Figure CN120200350A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the technical field of charging control, and particularly to a processing method and an electronic device. Background Art
[0002] Currently, there are certain differences in the attributes of different chargers or charging adapters, resulting in differences in the charging effects when charging electronic products. However, the users of electronic products cannot clearly understand the charging effects of different charging devices, and thus cannot improve the charging effect for electronic products. Summary of the Invention
[0003] An object of embodiments of this application is to provide a processing method and an electronic device.
[0004] In a first aspect, embodiments of this application provide a processing method, including:
[0005] Obtaining parameter information characterizing the access of a charging device; wherein, the charging device is used to charge an electronic device;
[0006] Obtaining a target parameter;
[0007] Determining a decision result based on the target parameter and by a target policy;
[0008] Outputting a prompt message based on the decision result;
[0009] Wherein, the prompt message is used to prompt the user to provide an adapter that can release the charging capacity of the electronic device.
[0010] In a possible implementation manner, the target policy is used to determine that there is a scenario of charging through a charging cable with an adapter and the adapter does not match the electronic device.
[0011] In a possible implementation manner, the prompt message includes an interaction control, and the interaction control is used to instruct the user to perform the next operation;
[0012] The processing method further includes:
[0013] Responding to a trigger instruction of the interaction control, and displaying a display interface; wherein, the display interface includes information about an adapter that can release the charging capacity of the electronic device.
[0014] In a possible implementation manner, the determining the decision result based on the target parameter and by the target policy includes:
[0015] Processing the target parameter based on a target model to determine the decision result;
[0016] The target parameters include a first parameter characterizing charging data and a second parameter characterizing charging behavior.
[0017] In a possible implementation manner, the determining the decision result based on the target parameters and the target policy further includes:
[0018] Determining whether the first parameter included in the target parameters meets a first condition and whether the second parameter included in the target parameters meets a second condition to determine the decision result;
[0019] The first condition includes that the types of charging protocols supported by the charging device include the charging protocol type of the electronic device and the maximum charging power that the charging device can release reaches the charging requirement of the electronic device; the second condition includes that the current type when the charging device provides power is direct current, and the charging device can support data transmission, and the charging device is in a moving state.
[0020] In a possible implementation manner, the processing method further includes:
[0021] Comparing the magnitude between the maximum charging power and the target charging power, or comparing the ratio between the maximum charging power and the rated charging power with a first threshold to determine whether the charging device can release the maximum charging power of the electronic device to reach the charging requirement of the electronic device;
[0022] Wherein, charging based on the target charging power can release the charging capacity of the electronic device.
[0023] In a possible implementation manner, the processing method further includes:
[0024] Determining whether the position coordinates of the electronic device and the wireless network of the electronic device change within a set time period;
[0025] If so, determining that the charging device is in a moving state.
[0026] In a possible implementation manner, the outputting the prompt information based on the decision result includes:
[0027] When the decision result indicates that the adapter does not match the electronic device, updating the cumulative value; wherein, the cumulative value is the number of times that the decision result indicates that the adapter does not match the electronic device;
[0028] When the cumulative value is greater than or equal to a second threshold, generating and outputting the prompt information.
[0029] In a possible implementation, obtaining the target parameter includes:
[0030] Obtaining a handshake signal between the electronic device and the charging device;
[0031] Based on the handshake signal, obtaining a first parameter characterizing charging data and a second parameter characterizing charging behavior. The first parameter includes the type of charging protocol supported by the charging device and the maximum charging power that the charging device can release to the electronic device. The second parameter includes the current type when the charging device provides power, whether it can support data transmission, and whether it is in a moving state.
[0032] In a second aspect, an embodiment of the present application further provides an electronic device, including a battery, a charging port, and a processor;
[0033] The processor is configured to obtain parameter information characterizing the access of the charging device; wherein, the charging device is used to charge the electronic device;
[0034] Obtaining the target parameter;
[0035] Based on the target parameter and a decision result determined by a target policy;
[0036] Outputting a prompt message based on the decision result;
[0037] Wherein, the prompt message is used to prompt the user to provide an adapter that can release the charging capacity of the electronic device. Description of the Drawings
[0038] To more clearly illustrate the technical solutions in the present application or the prior art, the following will briefly introduce the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings in the following description are only some embodiments recorded in the present application. For those of ordinary skill in the art, without creative efforts, other drawings can also be obtained based on these drawings.
[0039] Figure 1 Shows a flowchart of a processing method provided by the present application;
[0040] Figure 2 Shows a flowchart of obtaining the target parameter in a processing method provided by the present application;
[0041] Figure 3 Shows a schematic diagram of a decision tree structure provided by the present application;
[0042] Figure 4 Shows a schematic diagram of a prompt message provided by the present application;
[0043] Figure 5 The structural schematic diagram of an electronic device provided by the present application is shown. Detailed implementation manners
[0044] Reference is made herein to the various solutions and features of the present application with reference to the accompanying drawings.
[0045] It should be understood that various modifications can be made to the embodiments applied herein. Therefore, the above description should not be regarded as a limitation, but only as an example of the embodiments. Those skilled in the art will think of other modifications within the scope and spirit of the present application.
[0046] The accompanying drawings, which are included in and form a part of this specification, illustrate embodiments of the present application and, together with the general description of the present application given above and the detailed description of the embodiments given below, serve to explain the principles of the present application.
[0047] These and other features of the present application will become apparent from the following description of the preferred forms of the embodiments, given by way of non-limiting example with reference to the accompanying drawings.
[0048] It should also be understood that, although the present application has been described with reference to some specific examples, those skilled in the art can surely implement many other equivalent forms of the present application, which have the features as described in the claims and thus are all within the protection scope defined thereby.
[0049] When combined with the accompanying drawings, in view of the following detailed description, the above and other aspects, features and advantages of the present application will become more apparent.
[0050] Hereinafter, specific embodiments of the present application will be described with reference to the accompanying drawings; however, it should be understood that the embodiments applied are only examples of the present application and can be implemented in various ways. Well-known and / or repeated functions and structures are not described in detail to avoid unnecessary or redundant details from obscuring the present application. Therefore, the specific structural and functional details applied herein are not intended to be limiting, but only as a basis and representative basis for the claims to teach those skilled in the art to use the present application in substantially any suitable detailed structure in a variety of ways.
[0051] This specification may use the phrase "in one embodiment", "in another embodiment", "in yet another embodiment" or "in other embodiments", which may all refer to one or more of the same or different embodiments according to the present application.
[0052] Currently, there are more and more types and models of electronic devices on the market, and users' demand for electronic devices is also increasing, such as requiring longer battery life of electronic devices and better charging effect of electronic devices. In order to meet the demand for better charging effect of electronic devices, different charging devices are configured for the same electronic device in the market. For example, a fast charging device can charge a large amount of electricity into the electronic device in a short time and has a high charging efficiency. Of course, there are also ordinary charging devices and the original charging devices corresponding to the electronic devices.
[0053] Among them, the attribute information of the fast charging device and the ordinary charging device, such as the charging power, may not be obtained or the obtained information is not accurate. Therefore, when using a non-original charging device, that is, a fast charging device or an ordinary charging device, the user cannot know the charging effect generated by the current charging device for charging the electronic device, let alone whether the current charging device can provide a good charging effect for the electronic device.
[0054] Based on the above problems, the present application provides a processing method, which is applied to an electronic device. The electronic device can obtain the target parameters corresponding to the charging device, so as to determine the decision result based on the target parameters and the target policy. When the decision result indicates that the charging device does not match the electronic device, the user is prompted to provide an adapter that can release the charging ability of the electronic device, and charging the electronic device through the adapter that can release the charging ability of the electronic device can produce a better charging effect.
[0055] For the convenience of understanding the present application, a processing method provided by the present application will be introduced in detail below.
[0056] As an example, Figure 1 shows the flowchart of the processing method provided by the embodiment of the present application, where the specific steps include S101-S104.
[0057] S101, obtain parameter information indicating the access of the charging device; where the charging device is used to charge the electronic device.
[0058] In specific implementation, the charging device is used to charge the electronic device, and the electronic device can detect in real time whether a charging device is connected. For example, it can detect whether a charging device is connected through a mechanical or electrical detection mechanism at the charging interface, detect whether a charging device is connected by monitoring whether the power signal changes, detect whether a charging device is connected by determining whether a charging protocol handshake signal is received, etc. The embodiment of the present application does not limit this.
[0059] When it is detected that a charging device is connected, parameter information characterizing the connection of the charging device is obtained. Optionally, the parameter information characterizing the connection of the charging device includes at least one of the following: capacitance change information at the charging interface, resistance change information at the charging interface, voltage change information of the power supply pin, and charging protocol handshake signal.
[0060] That is to say, the above parameter information can all characterize whether a charging device is connected to the electronic device.
[0061] S102, obtain the target parameter.
[0062] Among them, the target parameter is used to determine whether the charging device matches the electronic device, that is, to determine whether the charging device connected to the electronic device can achieve a better charging effect when charging the electronic device. Therefore, the target parameters in the embodiments of the present application include parameters characterizing charging data and parameters characterizing charging behavior, so as to analyze and process the parameters characterizing charging data and the parameters characterizing charging behavior to determine whether the charging device connected to the electronic device can achieve a better charging effect when charging the electronic device.
[0063] Optionally, Figure 2 A flowchart of obtaining the target parameter is shown, where the specific steps include S201 and S202.
[0064] S201, obtain the handshake signal between the electronic device and the charging device.
[0065] S202, based on the handshake signal, obtain a first parameter characterizing charging data and a second parameter characterizing charging behavior. The first parameter includes the type of charging protocol that the charging device can support and the maximum charging power that the charging device can release to the electronic device. The second parameter includes the current type when the charging device provides power, whether it can support data transmission, and whether it is in a moving state.
[0066] Optionally, after the charging device is connected to the electronic device, handshake signals are exchanged between the charging device and the electronic device. Among them, the handshake signal includes the type of charging protocol that the charging device can support, the current type and rated current when the charging device provides power, the rated voltage when the charging device provides power, the voltage levels that the charging device can support, the charging power that the charging device can provide, whether the charging device can support data transmission, the data transmission rate, and the type of the charging device (such as AC adapter (wall charger), mobile power supply, vehicle charger, etc.).
[0067] Based on the handshake signal, a first parameter representing charging data and a second parameter representing charging behavior are obtained. Among them, the first parameter in the embodiments of the present application includes the type of charging protocol that the charging device can support and the maximum charging power that the charging device can release to the electronic device, and the second parameter includes the current type when the charging device provides power, whether it can support data transmission, and whether it is in a moving state.
[0068] Among them, the type of charging protocol that the charging device can support, the maximum charging power that the charging device can release to the electronic device, the current type when the charging device provides power, and whether the charging device can support data can all be directly extracted from the handshake signal. When obtaining whether the charging device is in a moving state, the position of the charging device is obtained based on the type of the charging device included in the handshake signal and the state parameters collected by the electronic device. Among them, the state parameters collected by the electronic device include the position coordinates of the electronic device, the moving state of the electronic device, and the wireless network information of the electronic device.
[0069] Optionally, the position coordinates of the electronic device can be collected based on the Global Positioning System (GPS); the moving state of the electronic device includes stationary and moving, and when the electronic device is moving, its moving speed can also be collected, which can be collected by one or more of an acceleration sensor, a gyroscope sensor, and a gravity sensor; the wireless network information of the electronic device can be collected based on its wireless communication module.
[0070] S103. Determine the decision result based on the target parameter and the target policy.
[0071] After obtaining the target parameter, determine the decision result based on the target parameter and the target policy. Among them, the target policy is used to determine that there is a scenario of charging through a charging cable with an adapter and the adapter does not match the electronic device, that is, the charging device connected to the electronic device cannot provide a good charging effect for the electronic device.
[0072] As an example, when determining the decision result based on the target parameter and the target policy, the target parameter can be processed by the target model to determine the decision result, that is, the first parameter representing charging data and the second parameter representing charging behavior included in the target parameter are input into the target model, so that the target model processes the first parameter and the second parameter, and then outputs the decision result. Among them, the decision result at least includes whether the adapter matches the electronic device, the number of mismatches, etc.
[0073] Optionally, the target model is trained based on a large amount of training data, and it includes, for example Figure 3The shown decision tree structure, that is, after inputting the first parameter and the second parameter into the target model, the target model processes and judges the first parameter and then the second parameter according to this decision tree structure to obtain a decision result and output it outside the target model.
[0074] Referring to Figure 3 The shown decision tree structure first judges the charging behavior of the charging device. The second parameter characterizing the charging behavior includes the current type when the charging device provides power, whether it can support data transmission, and whether it is in a moving state. Among them, if the current type when the charging device provides power is direct current, the node outputs 0 correspondingly, otherwise it is 1; if the charging device can support data transmission, the node outputs 0 correspondingly, otherwise it is 1; if the charging device is in a moving state, the node outputs 0 correspondingly, otherwise it is 1. When the judgment of the charging behavior of the charging device is completed and the judgment result of {1, 1, 1} is obtained, the charging data of the charging device is further judged.
[0075] Among them, if after judging the charging behavior of the charging device, the obtained judgment result includes 0, such as {0, 1, 1}, {1, 0, 1}, {1, 1, 0}, {0, 1, 0}, etc., it is determined not to generate a prompt message.
[0076] Continuing to refer to Figure 3 , when judging the charging data of the charging device, it is determined whether the maximum charging power that the charging device can release for the electronic device reaches the charging requirement of the electronic device. If so, it is determined not to generate a prompt message; if not, it is further judged whether the charging protocol type that the charging device can support includes the charging protocol type of the electronic device. If so, it is determined not to generate a prompt message; if not, a prompt message is generated and output.
[0077] Of course, Figure 3 The shown decision tree structure is only an example, and the present application does not make specific limitations on this.
[0078] In another example, when determining the decision result based on the target parameter and the target policy, the first parameter and the second parameter can be directly analyzed and judged simultaneously based on the target policy to obtain the decision result. For example, after obtaining the target parameter, it is determined whether the first parameter included in the target parameter meets the first condition and whether the second parameter included in the target parameter meets the second condition to determine the decision result. Among them, the first condition includes that the charging protocol type that the charging device can support includes the charging protocol type of the electronic device and the maximum charging power that the charging device can release for the electronic device reaches the charging requirement of the electronic device; the second condition includes that the current type when the charging device provides power is direct current, and the charging device can support data transmission, and the charging device is in a moving state.
[0079] Optionally, when determining whether the first parameter included in the target parameter meets the first condition, the charging protocol types supported by the charging device are compared with the charging protocol type of the electronic device. If there is the same charging protocol type, it is determined that the sub-condition of "the charging protocol types supported by the charging device include the charging protocol type of the electronic device" in the first condition is met.
[0080] In practical applications, each charging device is configured with an output power, and each electronic device is configured with its corresponding rated charging power and target charging power. Among them, the target charging power corresponding to the electronic device can be the rated charging power, or can be determined according to the power consumption situation and battery performance of the electronic device, such as through testing, or can also be determined according to the maximum power of the electronic device, such as 60% of the maximum power, etc. Here, charging the electronic device based on the target charging power can release the charging capacity of the electronic device. Preferably, charging the electronic device based on the target charging power can release the maximum charging power, and at this time, charging the electronic device based on the target charging power can achieve a better charging effect.
[0081] Optionally, when determining whether the first parameter included in the target parameter meets the first condition, the magnitude between the maximum charging power and the target charging power is compared, or the magnitude between the ratio of the maximum charging power to the rated charging power and the first threshold is compared to determine whether the charging device can release the maximum charging power of the electronic device to meet the charging requirements of the electronic device. For example, if the maximum charging power is greater than or equal to the target charging power, or the maximum charging power is greater than or equal to the rated charging power, it is determined that the sub-condition of "the charging device can release the maximum charging power of the electronic device to meet the charging requirements of the electronic device" in the first condition is met.
[0082] Optionally, when determining whether the second parameter included in the target parameter meets the second condition, directly based on the current type when the charging device provides power included in the handshake signal and whether the charging device can support data transmission, it can be determined whether the target parameter meets the two sub-conditions of "the current type when the charging device provides power is direct current" and "the charging device can support data transmission" in the second condition.
[0083] When determining whether the target parameter meets the sub-condition of "the charging device is in a moving state" in the second condition, within a set time period, the position of the electronic device and whether the wireless network of the electronic device has changed are determined. If so, it is determined that the charging device is in a moving state, that is, whether the target parameter meets the sub-condition of "the charging device is in a moving state" in the second condition.
[0084] In an embodiment of the present application, if the first parameter included in the target parameter does not meet the first condition and the second parameter included in the target parameter does not meet the second condition, the determined decision result indicates that the adapter does not match the electronic device, that is, when the charging device connected to the electronic device charges the electronic device, a better charging effect cannot be achieved.
[0085] For example, when the charging device connected to the electronic device charges the electronic device, according to the above steps, it is determined that the charging protocol types supported by the charging device do not include the charging protocol type of the electronic device, and the charging device cannot release the maximum charging power of the electronic device to meet the charging requirements of the electronic device, and the current type when the charging device provides power is alternating current, and the charging device does not support data transmission, and the charging device is in a stationary state. At this time, it is characterized that the adapter for charging the electronic device does not match the electronic device.
[0086] S104, output a prompt message based on the decision result.
[0087] After determining the decision result, a prompt message is output based on the decision result. As an example, a cumulative value is stored in the electronic device, and the cumulative value is the number of times the decision result indicates that the adapter does not match the electronic device. After determining the decision result, if the decision result indicates that the adapter does not match the electronic device, the cumulative value is updated, and when the cumulative value is greater than or equal to the second threshold, a prompt message is generated and output.
[0088] Among them, the prompt message is used to prompt the user to provide an adapter that can release the charging ability of the electronic device. As an example, the prompt message includes an interactive control, and the interactive control is used to instruct the user to perform the next operation, such as Figure 4 As shown in the schematic diagram of the prompt message, the prompt message includes that the adapter that can release the charging ability of the electronic device is XX charger, and the area where "Get the charger" belongs is configured as an interactive control, that is, a virtual button. The user clicks on the area where the interactive control, that is, "Get the charger" belongs, to achieve the purpose of entering the next step. Of course, Figure 4 This is only one example, and the present application is not limited thereto.
[0089] Optionally, after the user performs the next operation based on the interactive control, such as clicking on the interactive control, at this time, the electronic device responds to the trigger instruction of the interactive control and displays a display interface. Among them, the display interface includes information about the adapter that can release the charging ability of the electronic device. The information about the adapter that can release the charging ability of the electronic device includes a purchase page, a selling store, and the store location, etc., so that the user can conveniently and accurately obtain the adapter that can release the charging ability of the electronic device.
[0090] In the embodiments of the present application, an electronic device can obtain target parameters corresponding to a charging device, determine a decision result based on the target parameters and a target policy, and when the decision result indicates that the charging device does not match the electronic device, prompt the user to provide an adapter that can release the charging capacity of the electronic device, and charge the electronic device through the adapter that can release the charging capacity of the electronic device to ensure a better charging effect. Here, the better charging effect mentioned in the embodiments of the present application at least includes higher charging efficiency and lower battery damage.
[0091] It should be noted that if any sub-condition in the first condition is satisfied by the first parameter included in the target parameters, and / or any sub-condition in the second condition is satisfied by the second parameter included in the target parameters, it cannot be determined that the adapter does not match the electronic device, so there is no need to output a prompt message for this decision result.
[0092] For example, if the charging device can support data transmission, that is, the charging device connected to the electronic device not only has a charging function. For example, when a mobile phone and a laptop are connected by a connecting line, the laptop can not only charge the mobile phone but also transmit data with the mobile phone. This scenario does not meet the scenario of charging through a charging cable with an adapter targeted by the target policy. At this time, there is no need to output a prompt message for the laptop.
[0093] Another example is that the charging device is in a moving state. At this time, the charging device connected to the electronic device may be a mobile power supply or a vehicle-mounted power supply, etc. In this scenario, it also does not meet the scenario of charging through a charging cable with an adapter targeted by the target policy. Therefore, there is no need to output a prompt message for the mobile power supply or the vehicle-mounted power supply either.
[0094] That is to say, the embodiments of the present application evaluate the charging device that charges the electronic device through a charging cable with an adapter, and only output a prompt message when the adapter does not match the electronic device to prompt the user for information about the adapter that can release the charging capacity of the electronic device, so as to achieve the purpose of prompting the user to replace the adapter that matches the electronic device, so that when charging the electronic device with an adapter that matches the electronic device, a better charging effect can be produced.
[0095] The second aspect of the present application also provides an electronic device corresponding to a processing method. Since the principle of solving problems by the electronic device in the present application is similar to the above-mentioned processing method of the present application, the implementation of the electronic device can refer to the implementation of the method, and the repeated parts will not be described again.
[0096] Figure 5 shows a schematic diagram of the electronic device provided by the embodiments of the present application. Referring to Figure 5 it can be seen that the electronic device includes a battery, a charging port, and a processor;
[0097] The processor is used to obtain parameter information characterizing the access of a charging device; wherein, the charging device is used to charge an electronic device;
[0098] Obtain a target parameter;
[0099] Based on the target parameter and a target policy, determine a decision result;
[0100] Based on the decision result, output a prompt message;
[0101] Wherein, the prompt message is used to prompt the user to provide an adapter that can release the charging capacity of the electronic device.
[0102] Exemplarily, the target policy is used to determine that there is a scenario of charging through a charging cable with an adapter and the adapter does not match the electronic device.
[0103] Exemplarily again, the prompt message includes an interaction control, and the interaction control is used to instruct the user to perform the next operation;
[0104] The processor is further used to:
[0105] In response to a trigger instruction of the interaction control, display a display interface; wherein, the display interface includes information about an adapter that can release the charging capacity of the electronic device.
[0106] Exemplarily again, when the processor determines a decision result based on a target parameter and a target policy, it includes:
[0107] Process the target parameter based on a target model to determine the decision result;
[0108] The target parameter includes a first parameter characterizing charging data and a second parameter characterizing a charging behavior.
[0109] Exemplarily again, when the processor determines a decision result based on a target parameter and a target policy, it further includes:
[0110] Determine whether the first parameter included in the target parameter meets a first condition and whether the second parameter included in the target parameter meets a second condition to determine the decision result;
[0111] The first condition includes that the charging protocol type supported by the charging device includes the charging protocol type of the electronic device and the maximum charging power that the charging device can release reaches the charging requirement of the electronic device; the second condition includes that the current type when the charging device provides power is direct current, and the charging device can support data transmission, and the charging device is in a mobile state.
[0112] In another example, the processor is further configured to:
[0113] Compare the magnitude between the maximum charging power and the target charging power, or compare the ratio between the maximum charging power and the rated charging power with a first threshold, to determine whether the charging device can release the maximum charging power of the electronic device to meet the charging requirements of the electronic device;
[0114] Wherein, charging the electronic device based on the target charging power can release the charging capacity of the electronic device.
[0115] In another example, the processor is further configured to:
[0116] Determine whether the position coordinates of the electronic device and the wireless network of the electronic device change within a set time period;
[0117] If so, determine that the charging device is in a moving state.
[0118] In another example, when the processor outputs a prompt message based on the decision result, it includes:
[0119] Update the cumulative value when the decision result indicates that the adapter does not match the electronic device; wherein, the cumulative value is the number of times the decision result indicates that the adapter does not match the electronic device;
[0120] Generate and output the prompt message when the cumulative value is greater than or equal to a second threshold.
[0121] In another example, when the processor obtains the target parameters, it includes:
[0122] Obtain the handshake signal between the electronic device and the charging device;
[0123] Based on the handshake signal, obtain a first parameter representing charging data and a second parameter representing charging behavior. The first parameter includes the type of charging protocol supported by the charging device and the maximum charging power that the charging device can release for the electronic device, and the second parameter includes the type of current when the charging device provides power, whether it can support data transmission, and whether it is in a moving state.
[0124] In the embodiments of the present application, the processor of the electronic device can obtain the target parameters corresponding to the charging device, based on the target parameters and the decision result determined by the target strategy, and when the decision result indicates that the charging device does not match the electronic device, prompt the user to provide an adapter that can release the charging capacity of the electronic device, and charge the electronic device through the adapter that can release the charging capacity of the electronic device to ensure a better charging effect.
[0125] Optionally, in this embodiment, the above storage medium may include, but is not limited to: USB flash drives, read-only memories (ROMs), random access memories (RAMs), external hard drives, magnetic disks, optical discs, and other media that can store program codes. Optionally, in this embodiment, the processor executes the method steps described in the above embodiments according to the program codes stored in the storage medium. Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments and optional implementation manners, and will not be elaborated herein. Obviously, those skilled in the art should understand that the above modules or steps of the present application can be implemented by a general-purpose computing device. They can be concentrated on a single computing device or distributed on a network composed of multiple computing devices. Optionally, they can be implemented by program codes executable by the computing device. Thus, they can be stored in a storage device and executed by the computing device. And in some cases, the steps shown or described can be executed in a sequence different from that here, or they can be separately fabricated into individual integrated circuit modules, or multiple modules or steps among them can be fabricated into a single integrated circuit module to be implemented. In this way, the present application is not limited to any specific combination of hardware and software.
[0126] In addition, although exemplary embodiments have been described herein, the scope includes any and all embodiments based on the present application having equivalent elements, modifications, omissions, combinations (e.g., schemes of cross-combination of various embodiments), adaptations, or alterations. The elements in the claims will be broadly interpreted based on the language adopted in the claims and are not limited to the examples described in this specification or during the implementation of the present application. The examples will be interpreted as non-exclusive. Therefore, this specification and the examples are only to be considered as examples, and the true scope and spirit are indicated by the following claims and the entire scope of their equivalents.
[0127] The above description is intended to be illustrative rather than restrictive. For example, the above examples (or one or more of their schemes) can be used in combination with each other. For example, those of ordinary skill in the art can use other embodiments when reading the above description. Additionally, in the above specific implementation manners, various features can be grouped together to simplify the present application. This should not be construed as an intention that the disclosed features not claimed are necessary for any claim. On the contrary, the subject matter of the present application may be less than all the features of a specific disclosed embodiment. Thus, the following claims are incorporated herein as examples or embodiments into the specific implementation manners, where each claim independently serves as a separate embodiment, and considering these embodiments, they can be combined with each other in various combinations or permutations. The scope of the present application should be determined with reference to the appended claims and the entire scope of the equivalent forms empowered by these claims.
[0128] The above has described multiple embodiments of the present application in detail. However, the present application is not limited to these specific embodiments. Based on the concept of the present application, those skilled in the art can make various variations and modifications to the embodiments, and these variations and modifications should all fall within the scope claimed by the present application.
Claims
1. A processing method comprising: Obtaining parameter information characterizing access to a charging device; wherein the charging device is used to charge an electronic device; Get target parameters; Decision results are determined based on target parameters and by target strategies; Outputting prompt information based on the decision result; The prompt information is used to prompt the user to provide an adapter that can release the charging capability of the electronic device. 2 . The processing method according to claim 1 , wherein the target strategy is used to determine that there is a scenario in which charging is performed via a charging cable with an adapter and the adapter is not compatible with the electronic device.
3. The processing method according to claim 1, wherein the prompt information includes an interactive control, and the interactive control is used to instruct the user to perform the next operation; The processing method also includes: In response to a trigger instruction of the interactive control, a display interface is displayed; wherein the display interface includes information of an adapter that can release the charging capability of the electronic device.
4. The processing method according to claim 2, wherein the decision result is determined based on the target parameter and the target strategy, comprising: Processing the target parameters based on the target model to determine the decision result; The target parameter includes a first parameter characterizing charging data and a second parameter characterizing charging behavior.
5. The processing method according to claim 2, wherein the step of determining the decision result based on the target parameter and the target strategy further comprises: Determine whether a first parameter included in the target parameter satisfies a first condition and whether a second parameter included in the target parameter satisfies a second condition, so as to determine the decision result; The first condition includes that the charging protocol type that the charging device can support includes the charging protocol type of the electronic device and that the charging device can release the maximum charging power of the electronic device to meet the charging requirements of the electronic device; the second condition includes that the current type when the charging device provides power is direct current, that the charging device can support data transmission, and that the charging device is in a mobile state.
6. The processing method according to claim 5, further comprising: Comparing the maximum charging power with the target charging power, or comparing the ratio of the maximum charging power to the rated charging power with a first threshold, to determine whether the charging device can release the maximum charging power of the electronic device to meet the charging requirement of the electronic device; Among them, charging the electronic device based on the target charging power can release the charging capacity of the electronic device.
7. The processing method according to claim 5, further comprising: Determine, within a set time period, whether the location coordinates of the electronic device and the wireless network of the electronic device have changed; If so, it is determined that the charging device is in a mobile state.
8. The processing method according to claim 1, wherein outputting prompt information based on the decision result comprises: In the case where the decision result indicates that the adapter does not match the electronic device, updating the cumulative value; wherein the cumulative value is the number of times the decision result indicates that the adapter does not match the electronic device; When the accumulated value is greater than or equal to a second threshold, the prompt information is generated and output.
9. The processing method according to claim 1, wherein obtaining the target parameter comprises: Acquire a handshake signal between the electronic device and the charging device; Based on the handshake signal, a first parameter characterizing the charging data and a second parameter characterizing the charging behavior are obtained, wherein the first parameter includes the type of charging protocol that the charging device can support and the maximum charging power that the charging device can release to the electronic device, and the second parameter includes the type of current when the charging device provides power, whether it can support data transmission, and whether it is in a mobile state.
10. An electronic device comprising a battery, a charging port and a processor; The processor is used to obtain parameter information characterizing the access of the charging device; wherein, The charging device is used to charge the electronic device; Get target parameters; Decision results are determined based on target parameters and by target strategies; Outputting prompt information based on the decision result; The prompt information is used to prompt the user to provide an adapter that can release the charging capability of the electronic device.