CN117175722A - Device charging method, device, computer device and computer readable storage medium - Google Patents

Device charging method, device, computer device and computer readable storage medium Download PDF

Info

Publication number
CN117175722A
CN117175722A CN202210707401.5A CN202210707401A CN117175722A CN 117175722 A CN117175722 A CN 117175722A CN 202210707401 A CN202210707401 A CN 202210707401A CN 117175722 A CN117175722 A CN 117175722A
Authority
CN
China
Prior art keywords
adapter
charging
protocol type
protocol
determining
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210707401.5A
Other languages
Chinese (zh)
Inventor
韦君
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huizhou TCL Mobile Communication Co Ltd
Original Assignee
Huizhou TCL Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huizhou TCL Mobile Communication Co Ltd filed Critical Huizhou TCL Mobile Communication Co Ltd
Priority to CN202210707401.5A priority Critical patent/CN117175722A/en
Publication of CN117175722A publication Critical patent/CN117175722A/en
Pending legal-status Critical Current

Links

Abstract

The embodiment of the application provides a device charging method, a device, computer equipment and a computer readable storage medium, which can acquire protocol characteristic information of an adapter connected with the device to be charged; determining the adapter protocol type of the adapter according to the protocol characteristic information; determining a charging parameter matching the adapter protocol type; controlling the adapter to charge the equipment to be charged according to the charging parameters; because the embodiment of the application can enable the equipment to be charged to identify the protocol type of the adapter based on the protocol characteristic information, based on the embodiment of the application, the charging parameters matched with the protocol type of the adapter can be determined, thereby controlling the adapter to rapidly charge the equipment to be charged.

Description

Device charging method, device, computer device and computer readable storage medium
Technical Field
The present application relates to the field of charging technologies, and in particular, to a device charging method, a device, a computer device, and a computer readable storage medium.
Background
With the development of charging technology, there is an increasing demand for charging technology, for example, a quick charging technology is required to quickly charge devices to improve charging efficiency.
However, the current quick charging technology has the problem that the quick charging protocol is not compatible in the application process, so that the equipment and the adapter cannot be identified, and the equipment cannot realize quick charging through the adapter.
Disclosure of Invention
The embodiment of the application provides a device charging method, a device, computer equipment and a computer readable storage medium, which can enable equipment to be charged to identify an adapter and enable the equipment to realize quick charging through the adapter.
A method of charging a device, comprising:
acquiring protocol characteristic information of an adapter connected with equipment to be charged;
determining the adapter protocol type of the adapter according to the protocol characteristic information;
determining a charging parameter matching the adapter protocol type;
and controlling the adapter to charge the equipment to be charged according to the charging parameters.
Accordingly, an embodiment of the present application provides a device charging apparatus, including:
the acquisition unit can be used for acquiring the protocol characteristic information of the adapter connected with the equipment to be charged;
the first determining unit can be used for determining the adapter protocol type of the adapter according to the protocol characteristic information;
a second determining unit operable to determine a charging parameter matching the adapter protocol type;
and the charging unit can be used for controlling the adapter to charge the equipment to be charged according to the charging parameters.
In some embodiments, the device charging apparatus further includes an establishing unit, where the establishing unit may specifically be configured to establish a first adapter protocol type connection with the adapter through a first chip of the device to be charged; or, establishing a second adapter protocol type connection with the adapter through the second chip of the device to be charged.
In some embodiments, the first determining unit may be configured to obtain a mapping relation set, where the mapping relation set includes a mapping relation between preset protocol feature information and a preset adapter protocol type; determining target preset feature information matched with the protocol feature information from preset protocol feature information of the mapping relation set according to the protocol feature information; determining a target preset adapter protocol type corresponding to the target preset characteristic information; and determining the adapter protocol type of the adapter according to the target preset adapter protocol type.
In some embodiments, the second determining unit may be configured to determine, when the adapter protocol type is the first adapter protocol type, a charging parameter matched with the first adapter protocol type through the first chip of the device to be charged; when the adapter protocol type is the second adapter protocol type, determining a charging parameter matched with the second adapter protocol type through a second chip of the charging device.
In some embodiments, the charging unit may be configured to obtain a current original charging parameter of the adapter; according to the charging parameters, the original charging parameters of the adapter are adjusted to obtain adjusted charging parameters; and charging according to the adjusted charging parameters.
In some embodiments, the charging parameter comprises a charging voltage, and the original charging parameter comprises an original charging voltage; the charging unit is specifically configured to boost the original charging voltage of the adapter according to the charging voltage to obtain a boosted charging voltage; and determining the adjusted charging parameters according to the boosted charging voltage.
In some embodiments, the charging unit may be further configured to obtain a current original charging parameter of the adapter if the adapter protocol type of the adapter is not determined according to the protocol feature information; and controlling the adapter to charge the equipment to be charged according to the original charging parameters.
In addition, the embodiment of the application also provides computer equipment, which comprises a memory and a processor; the memory stores a computer program, and the processor is configured to execute the computer program in the memory to perform any one of the device charging methods provided by the embodiments of the present application.
In addition, the embodiment of the application also provides a computer readable storage medium, and the computer readable storage medium stores a computer program, and the computer program is suitable for being loaded by a processor to execute any device charging method provided by the embodiment of the application.
The embodiment of the application acquires the protocol characteristic information of the adapter connected with the equipment to be charged; determining the adapter protocol type of the adapter according to the protocol characteristic information; determining a charging parameter matching the adapter protocol type; controlling the adapter to charge the equipment to be charged according to the charging parameters; because the embodiment of the application can enable the equipment to be charged to identify the protocol type of the adapter based on the protocol characteristic information, based on the embodiment of the application, the charging parameters matched with the protocol type of the adapter can be determined, thereby controlling the adapter to rapidly charge the equipment to be charged.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the description of the embodiments will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic view of a scenario of a device charging method according to an embodiment of the present application;
fig. 2 is a schematic flow chart of a device charging method according to an embodiment of the present application;
fig. 3 is a schematic flow chart two diagrams of a device charging method according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of a device charging apparatus according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of a computer device according to an embodiment of the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present application, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to fall within the scope of the application.
The embodiment of the application provides a device charging method, a device charging device, computer equipment and a computer readable storage medium. The device charging device may be integrated in a computer device, which may be a server or a terminal.
The server may be an independent physical server, a server cluster or a distributed system formed by a plurality of physical servers, or a cloud server providing cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, network acceleration services (Content Delivery Network, CDN), basic cloud computing services such as big data and an artificial intelligent platform. The terminal may be, but is not limited to, a smart phone, a tablet computer, a notebook computer, a desktop computer, a smart speaker, a smart watch, etc. The terminal and the server may be directly or indirectly connected through wired or wireless communication, and the present application is not limited herein.
For example, referring to fig. 1, taking a device charging apparatus integrated in a device to be charged, where the device to be charged is a computer device, and the computer device is a mobile terminal, the mobile terminal obtains protocol feature information of an adapter connected to the mobile terminal; determining the adapter protocol type of the adapter according to the protocol characteristic information; determining a charging parameter matching the adapter protocol type; and controlling the adapter to charge the mobile terminal according to the charging parameters.
Wherein the adapter may refer to a power adapter.
The protocol feature information may refer to feature information for identifying the adapter protocol type.
The charging parameters may include voltage, current, etc.
The following will describe in detail. The following description of the embodiments is not intended to limit the preferred embodiments.
The embodiment will be described from the viewpoint of a device charging apparatus, which may be integrated in a computer device, and the computer device may be a server or a terminal; the terminal may include a tablet computer, a notebook computer, a personal computer (PC, personal Computer), a wearable device, a virtual reality device, or other devices that may obtain data.
As shown in fig. 2, the specific flow of the device charging method is as follows:
s101, acquiring protocol characteristic information of an adapter connected with equipment to be charged.
Wherein the adapter may refer to a power adapter.
The protocol feature information may refer to feature information for identifying the adapter protocol type. The characterization form of the protocol characteristic information can be an identifier, a keyword or the like.
In the embodiment of the application, when the adapter is connected with the equipment to be charged through the USB line, the equipment to be charged recognizes that the adapter is connected, and based on the adapter, the adapter can send the protocol characteristic information to the equipment to be charged so that the equipment to be charged can acquire the protocol characteristic information of the adapter connected with the equipment to be charged.
Before step S101, the embodiment of the present application further includes: establishing connection with an adapter through a first chip of equipment to be charged; or, establishing connection with the adapter through the second chip of the device to be charged.
The first chip is used for identifying whether the adapter is of a first adapter protocol type and communicating with the adapter, and can perform operations such as boosting, reducing and the like on the adapter. The second chip is used for identifying whether the adapter is of a second adapter protocol type and communicating with the adapter, and can perform operations such as boosting, reducing and the like on the adapter.
Specifically, the first chip that may be used in the embodiment of the present application may be a Z350 chip, and the second chip may be an ET7303 chip. Specifically, in the embodiment of the application, the first adapter protocol type connection can be established between the Z350 chip and the adapter, and the second adapter protocol type connection can be established between the ET7303 chip and the adapter.
When the first adapter protocol type connection is established between the device to be charged and the adapter through the Z350 chip, the device to be charged and the adapter communicate through two signal lines, namely a DP (Data Positive signal line) and a DM (Data Minus signal line). When the embodiment of the application establishes the second adapter protocol type connection with the adapter through the ET7303 chip, the equipment to be charged and the adapter are communicated through a CC (Configuration Channel ) signal line.
The first adapter protocol type may be a type of QC (Quick Charge) protocol, and the second adapter protocol type may be a type of PD (Power Delivery) protocol.
In addition to the above, the embodiment of the application may further adopt a third chip of the device to be charged to detect the USB cable, where the third chip uses plug identification of the USB cable, positive and negative plug identification of the USB cable, and so on.
The third chip may be an SGM7220 chip.
S102, determining the adapter protocol type of the adapter according to the protocol characteristic information.
According to the protocol characteristic information, the mode of determining the adapter protocol type of the adapter can be as follows: obtaining a mapping relation set, wherein the mapping relation set comprises mapping relation between preset protocol characteristic information and preset adapter protocol types; determining target preset feature information matched with the protocol feature information from preset protocol feature information of the mapping relation set according to the protocol feature information; determining a target preset adapter protocol type corresponding to the target preset characteristic information; and determining the adapter protocol type of the adapter according to the target preset adapter protocol type.
In particular, embodiments of the present application may identify different adapter protocol types through different chips.
According to the embodiment of the application, whether the adapter is of the second adapter protocol type can be identified firstly through the second chip based on the protocol characteristic information; if the adapter is not of the second adapter protocol type, identifying whether the adapter is of the first adapter protocol type or not through the first chip based on the protocol characteristic information.
The specific process of determining the adapter protocol type of the adapter based on the protocol feature information can be referred to above for the specific process of identifying the type of the adapter based on the first chip and the second chip, and only the adopted chips are different, which is not repeated here.
S103, determining a charging parameter matched with the protocol type of the adapter.
The manner of determining the charging parameters matched with the adapter protocol type in the embodiment of the application can be as follows: when the adapter protocol type is the first adapter protocol type, determining a charging parameter matching the adapter protocol type includes: determining a charging parameter matched with a first adapter protocol type through a first chip of equipment to be charged; when the adapter protocol type is the second adapter protocol type, determining the charging parameters matching the adapter protocol type includes: a charging parameter matching the second adapter protocol type is determined by the second chip of the charging device.
In the embodiment of the present application, the manner of determining, by the first chip of the device to be charged, the charging parameter matched with the first adapter protocol type may be: acquiring a first preset charging parameter through a first chip of the charging equipment; the first preset charging parameter is determined as a charging parameter matching the first adapter protocol type.
In the embodiment of the present application, the manner of determining, by the second chip of the charging device, the charging parameter matched with the second adapter protocol type may be: acquiring a second preset charging parameter through a second chip of the charging equipment; and determining the second preset charging parameter as a charging parameter matched with the second adapter protocol type.
S104, controlling the adapter to charge the equipment to be charged according to the charging parameters.
The method for controlling the adapter to charge the equipment to be charged according to the charging parameters in the embodiment of the application can be as follows: acquiring the current original charging parameters of the adapter; according to the charging parameters, the original charging parameters of the adapter are adjusted to obtain adjusted charging parameters; and charging according to the adjusted charging parameters.
According to the embodiment of the application, the device to be charged can be rapidly charged by adjusting the original charging parameters of the adapter.
Wherein the charging parameter comprises a charging voltage and the original charging parameter comprises an original charging voltage; based on this, according to the charging parameters, the method for adjusting the original charging parameters of the adapter to obtain the adjusted charging parameters may be as follows: according to the charging voltage, performing boosting treatment on the original charging voltage of the adapter to obtain a boosted charging voltage; and determining the adjusted charging parameters according to the boosted charging voltage.
After step S101, the embodiment of the present application further includes: if the adapter protocol type of the adapter is not determined according to the protocol characteristic information, acquiring the current original charging parameters of the adapter; and controlling the adapter to charge the equipment to be charged according to the original charging parameters.
That is, after the adapter protocol type of the adapter is not detected, the embodiment of the application can charge the equipment to be charged based on the original charging parameters, so as to realize non-rapid charging, namely ordinary charging.
Based on the foregoing, embodiments of the present application are further described. As shown in fig. 3, the device to be charged in the embodiment of the present application obtains protocol feature information of an adapter connected to the device to be charged; then, based on the protocol characteristic information, judging whether the adapter protocol type of the adapter is a second adapter protocol type or not through a second chip of the equipment to be charged; if the adapter protocol type of the adapter is the second adapter protocol type, acquiring a second preset charging parameter through a second chip; determining a second preset charging parameter as a charging parameter matched with a second adapter protocol type; and controlling the adapter to charge the equipment to be charged according to the charging parameters.
If the adapter protocol type of the adapter is not the second adapter protocol type, judging whether the adapter protocol type of the adapter is the first adapter protocol type or not through a first chip of the equipment to be charged based on the protocol characteristic information; if the adapter protocol type of the adapter is the second adapter protocol type, acquiring a first preset charging parameter through a first chip of the charging equipment; determining a first preset charging parameter as a charging parameter matched with a first adapter protocol type; and controlling the adapter to charge the equipment to be charged according to the charging parameters.
If the adapter protocol type of the adapter is not the first adapter protocol type, acquiring the current original charging parameters of the adapter; and controlling the adapter to charge the equipment to be charged according to the original charging parameters.
The embodiment of the application acquires the protocol characteristic information of the adapter connected with the equipment to be charged; determining the adapter protocol type of the adapter according to the protocol characteristic information; determining a charging parameter matching the adapter protocol type; controlling the adapter to charge the equipment to be charged according to the charging parameters; because the embodiment of the application can enable the equipment to be charged to identify the protocol type of the adapter based on the protocol characteristic information, based on the embodiment of the application, the charging parameters matched with the protocol type of the adapter can be determined, thereby controlling the adapter to rapidly charge the equipment to be charged.
According to the method described in the above embodiments, examples are described in further detail below.
The specific implementation of each operation above may be referred to the previous embodiments, and will not be described herein.
In order to better implement the above method, the embodiment of the present application further provides a device charging apparatus, where the device charging apparatus may be integrated into a computer device, such as a server or a terminal, where the terminal may include a tablet computer, a notebook computer, and/or a personal computer.
For example, as shown in fig. 4, the device charging apparatus may include an acquisition unit 301, a first determination unit 302, a second determination unit 303, a charging unit 304, and a setup unit 305, as follows:
(1) An acquisition unit 301;
the obtaining unit 301 may be configured to obtain protocol feature information of an adapter connected to the device to be charged.
(2) A first determination unit 302;
the first determining unit 302 may be configured to determine an adapter protocol type of the adapter according to the protocol feature information.
The first determining unit 302 may be specifically configured to obtain a mapping relationship set, where the mapping relationship set includes a mapping relationship between preset protocol feature information and a preset adapter protocol type; determining target preset feature information matched with the protocol feature information from preset protocol feature information of the mapping relation set according to the protocol feature information; determining a target preset adapter protocol type corresponding to the target preset characteristic information; and determining the adapter protocol type of the adapter according to the target preset adapter protocol type.
(3) A second determination unit 303;
the second determining unit 303 may be used to determine a charging parameter matching the adapter protocol type.
In some embodiments, the second determining unit 303 may be configured to determine, when the adapter protocol type is the first adapter protocol type, a charging parameter matched with the first adapter protocol type through the first chip of the device to be charged; when the adapter protocol type is the second adapter protocol type, determining a charging parameter matched with the second adapter protocol type through a second chip of the charging device.
(4) A charging unit 304;
the charging unit 304 may be configured to control the adapter to charge the device to be charged according to the charging parameter.
In some embodiments, the charging unit 304 may be configured to obtain current original charging parameters of the adapter; according to the charging parameters, the original charging parameters of the adapter are adjusted to obtain adjusted charging parameters; and charging according to the adjusted charging parameters.
In some embodiments, the charging parameter comprises a charging voltage, and the original charging parameter comprises an original charging voltage; the charging unit 304 may be configured to boost the original charging voltage of the adapter according to the charging voltage, to obtain a boosted charging voltage; and determining the adjusted charging parameters according to the boosted charging voltage.
In some embodiments, the charging unit 304 may be further configured to obtain a current original charging parameter of the adapter if the adapter protocol type of the adapter is not determined according to the protocol feature information; and controlling the adapter to charge the equipment to be charged according to the original charging parameters.
(5) A setting-up unit 305;
an establishing unit 305, configured to establish a first adapter protocol type connection with the adapter through the first chip of the device to be charged; or, establishing a second adapter protocol type connection with the adapter through the second chip of the device to be charged.
As can be seen from the above, the obtaining unit 301 of the embodiment of the present application may be configured to obtain the protocol feature information of the adapter connected to the device to be charged; the first determining unit 302 may be configured to determine an adapter protocol type of the adapter according to the protocol feature information; the second determining unit 303 may be configured to determine a charging parameter that matches the adapter protocol type; the charging unit 304 may be configured to control the adapter to charge the device to be charged according to the charging parameter; because the embodiment of the application can enable the equipment to be charged to identify the protocol type of the adapter based on the protocol characteristic information, based on the embodiment of the application, the charging parameters matched with the protocol type of the adapter can be determined, thereby controlling the adapter to rapidly charge the equipment to be charged.
The embodiment of the application also provides a computer device, as shown in fig. 5, which shows a schematic structural diagram of the computer device according to the embodiment of the application, specifically:
the computer device may include one or more processors 401 of a processing core, memory 402 of one or more computer readable storage media, a power supply 403, and an input unit 404, among other components. Those skilled in the art will appreciate that the computer device structure shown in FIG. 5 is not limiting of the computer device and may include more or fewer components than shown, or may be combined with certain components, or a different arrangement of components. Wherein:
the processor 401 is a control center of the computer device, connects various parts of the entire computer device using various interfaces and lines, performs various functions of the computer device and processes data by running or executing software programs and/or modules stored in the memory 402, and calling data stored in the memory 402. Optionally, processor 401 may include one or more processing cores; preferably, the processor 401 may integrate an application processor and a modem processor, wherein the application processor mainly processes an operating system, a user interface, a computer program, etc., and the modem processor mainly processes wireless communication. It will be appreciated that the modem processor described above may not be integrated into the processor 401.
The memory 402 may be used to store software programs and modules, and the processor 401 executes various functional applications and data processing by executing the software programs and modules stored in the memory 402. The memory 402 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, a computer program (such as a sound playing function, an image playing function, etc.) required for at least one function, and the like; the storage data area may store data created according to the use of the computer device, etc. In addition, memory 402 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device. Accordingly, the memory 402 may also include a memory controller to provide the processor 401 with access to the memory 402.
The computer device further comprises a power supply 403 for supplying power to the various components, preferably the power supply 403 may be logically connected to the processor 401 by a power management system, so that functions of charge, discharge, and power consumption management may be performed by the power management system. The power supply 403 may also include one or more of any of a direct current or alternating current power supply, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and the like.
The computer device may also include an input unit 404, which input unit 404 may be used to receive input digital or character information communications and to generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control.
Although not shown, the computer device may further include a display unit or the like, which is not described herein. In particular, in this embodiment, the processor 401 in the computer device loads executable files corresponding to the processes of one or more computer programs into the memory 402 according to the following instructions, and the processor 401 executes the computer programs stored in the memory 402, so as to implement various functions, as follows:
acquiring protocol characteristic information of an adapter connected with equipment to be charged; determining the adapter protocol type of the adapter according to the protocol characteristic information; determining a charging parameter matching the adapter protocol type; and controlling the adapter to charge the equipment to be charged according to the charging parameters.
The specific implementation of each operation above may be referred to the previous embodiments, and will not be described herein.
It will be appreciated by those of ordinary skill in the art that all or part of the steps of the various methods of the above embodiments may be performed by a computer program, or by computer program control related hardware, which may be stored in a computer readable storage medium and loaded and executed by a processor.
To this end, an embodiment of the present application provides a computer-readable storage medium in which a computer program is stored, the computer program being capable of being loaded by a processor to perform any of the device charging methods provided by the embodiment of the present application.
The specific implementation of each operation above may be referred to the previous embodiments, and will not be described herein.
Wherein the computer-readable storage medium may comprise: read Only Memory (ROM), random access Memory (RAM, random Access Memory), magnetic or optical disk, and the like.
Because the instructions stored in the computer readable storage medium may execute the steps in any device charging method provided by the embodiments of the present application, the beneficial effects that any device charging method provided by the embodiments of the present application can be achieved, which are detailed in the previous embodiments and are not described herein.
Wherein according to an aspect of the application, a computer program product or a computer program is provided, the computer program product or computer program comprising computer instructions stored in a computer readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device performs the methods provided in the various alternative implementations provided in the above embodiments.
The foregoing has described in detail the method, apparatus, computer device and computer readable storage medium for charging devices according to the embodiments of the present application, and specific examples have been applied to illustrate the principles and embodiments of the present application, and the above description of the embodiments is only for aiding in understanding the method and core idea of the present application; meanwhile, as those skilled in the art will vary in the specific embodiments and application scope according to the ideas of the present application, the present description should not be construed as limiting the present application in summary.

Claims (10)

1. A method of charging a device, comprising:
acquiring protocol characteristic information of an adapter connected with equipment to be charged;
according to the protocol characteristic information, determining an adapter protocol type of the adapter;
determining a charging parameter matching the adapter protocol type;
and controlling the adapter to charge the equipment to be charged according to the charging parameters.
2. The device charging method according to claim 1, wherein before the protocol feature information of the adapter connected to the device to be charged is acquired, the method further comprises:
establishing connection with the adapter through a first chip of the equipment to be charged;
or establishing connection with the adapter through the second chip of the device to be charged.
3. The device charging method according to claim 1, wherein the determining the adapter protocol type of the adapter according to the protocol feature information includes:
obtaining a mapping relation set, wherein the mapping relation set comprises mapping relation between preset protocol characteristic information and preset adapter protocol types;
determining target preset characteristic information matched with the protocol characteristic information from preset protocol characteristic information of the mapping relation set according to the protocol characteristic information;
determining a target preset adapter protocol type corresponding to the target preset characteristic information;
and determining the adapter protocol type of the adapter according to the target preset adapter protocol type.
4. The device charging method of claim 1, wherein the determining a charging parameter that matches the adapter protocol type comprises:
when the adapter protocol type is a first adapter protocol type, the determining a charging parameter that matches the adapter protocol type includes: determining charging parameters matched with the first adapter protocol type through a first chip of the equipment to be charged;
when the adapter protocol type is a second adapter protocol type, the determining the charging parameter matched with the adapter protocol type includes: and determining a charging parameter matched with the second adapter protocol type through a second chip of the charging equipment.
5. The device charging method according to claim 1, wherein the controlling the adapter to charge the device to be charged according to the charging parameter includes:
acquiring the current original charging parameters of the adapter;
according to the charging parameters, the original charging parameters of the adapter are adjusted to obtain adjusted charging parameters;
and charging according to the adjusted charging parameters.
6. The device charging method of claim 5, wherein the charging parameter comprises a charging voltage and the raw charging parameter comprises a raw charging voltage; the adjusting the original charging parameters of the adapter according to the charging parameters to obtain adjusted charging parameters includes:
according to the charging voltage, boosting the original charging voltage of the adapter to obtain a boosted charging voltage;
and determining the adjusted charging parameters according to the boosted charging voltage.
7. The device charging method according to claim 1, wherein after the protocol feature information of the adapter connected to the device to be charged is acquired, the method further comprises:
if the adapter protocol type of the adapter is not determined according to the protocol characteristic information, acquiring the current original charging parameters of the adapter;
and controlling the adapter to charge the equipment to be charged according to the original charging parameters.
8. A device charging apparatus, comprising:
the device comprises an acquisition unit, a charging unit and a charging unit, wherein the acquisition unit is used for acquiring protocol characteristic information of an adapter connected with equipment to be charged;
the first determining unit is used for determining the adapter protocol type of the adapter according to the protocol characteristic information;
a second determining unit, configured to determine a charging parameter that matches the adapter protocol type;
and the charging unit is used for controlling the adapter to charge the equipment to be charged according to the charging parameters.
9. A computer device comprising a memory and a processor; the memory stores a computer program, and the processor is configured to execute the computer program in the memory to perform the device charging method according to any one of claims 1 to 7.
10. A computer readable storage medium, characterized in that the computer readable storage medium stores a computer program adapted to be loaded by a processor for performing the device charging method of any one of claims 1 to 7.
CN202210707401.5A 2022-06-21 2022-06-21 Device charging method, device, computer device and computer readable storage medium Pending CN117175722A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210707401.5A CN117175722A (en) 2022-06-21 2022-06-21 Device charging method, device, computer device and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210707401.5A CN117175722A (en) 2022-06-21 2022-06-21 Device charging method, device, computer device and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN117175722A true CN117175722A (en) 2023-12-05

Family

ID=88943689

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210707401.5A Pending CN117175722A (en) 2022-06-21 2022-06-21 Device charging method, device, computer device and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN117175722A (en)

Similar Documents

Publication Publication Date Title
US10424954B2 (en) Power adaptor, terminal and charging system
US9197075B2 (en) Charging port based on power state signal
US9961465B2 (en) Method for improving speaker performance and terminal device
CN104536711A (en) Control method of terminal display
US10863562B2 (en) Peripheral device pairing
CN112087354A (en) Communication protocol testing method and device, electronic equipment and storage medium
WO2019047665A1 (en) Unlocking control methods and related products
CN111509818B (en) Charger, data line and charging equipment
CN108287605A (en) charge control method, device, terminal device and storage medium
CN106972558B (en) Charging control method and electronic equipment
CN104427118A (en) Method for recommending contents and mobile terminal
CN117175722A (en) Device charging method, device, computer device and computer readable storage medium
CN114650211B (en) Fault repairing method, device, electronic equipment and computer readable storage medium
CN110970954B (en) Charging control method and device, storage medium and split type electronic equipment
CN108874521A (en) A kind of photographing program application method, device, terminal and computer storage medium
CN114882895A (en) Audio processing method, device, computer equipment and computer readable storage medium
CN109149706B (en) Charging method, split terminal and computer storage medium
CN110970944B (en) Power supply method and device of split terminal, terminal and storage medium
CN117412275A (en) Device control method, device, computer device and computer readable storage medium
CN107908802A (en) log processing method, device, terminal device and storage medium
CN115986964A (en) Charging power adjusting method and device based on reverse wireless charging and storage medium
CN117437893A (en) Brightness processing method, brightness processing device, computer equipment and computer readable storage medium
CN113849356B (en) Equipment testing method and device, electronic equipment and storage medium
CN117175525A (en) Power supply processing method, device, computer equipment and computer readable storage medium
CN116049096B (en) Data migration method, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination