CN112564294B - Charging method, device and storage medium - Google Patents

Charging method, device and storage medium Download PDF

Info

Publication number
CN112564294B
CN112564294B CN201910904363.0A CN201910904363A CN112564294B CN 112564294 B CN112564294 B CN 112564294B CN 201910904363 A CN201910904363 A CN 201910904363A CN 112564294 B CN112564294 B CN 112564294B
Authority
CN
China
Prior art keywords
charging
equipment
data packet
communication connection
electronic equipment
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.)
Active
Application number
CN201910904363.0A
Other languages
Chinese (zh)
Other versions
CN112564294A (en
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.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software 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 Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN201910904363.0A priority Critical patent/CN112564294B/en
Publication of CN112564294A publication Critical patent/CN112564294A/en
Application granted granted Critical
Publication of CN112564294B publication Critical patent/CN112564294B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J50/00Circuit arrangements or systems for wireless supply or distribution of electric power
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J5/00Circuit arrangements for transfer of electric power between ac networks and dc networks
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J50/00Circuit arrangements or systems for wireless supply or distribution of electric power
    • H02J50/80Circuit arrangements or systems for wireless supply or distribution of electric power involving the exchange of data, concerning supply or distribution of electric power, between transmitting devices and receiving devices
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J7/00Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
    • H02J7/0029Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries with safety or protection devices or circuits
    • H02J7/0031Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries with safety or protection devices or circuits using battery or load disconnect circuits
    • H04B5/79
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02EREDUCTION OF GREENHOUSE GAS [GHG] EMISSIONS, RELATED TO ENERGY GENERATION, TRANSMISSION OR DISTRIBUTION
    • Y02E60/00Enabling technologies; Technologies with a potential or indirect contribution to GHG emissions mitigation
    • Y02E60/10Energy storage using batteries

Abstract

The disclosure provides a charging method, a charging device and a storage medium, and belongs to the technical field of charging. The method comprises the following steps: establishing short-distance communication connection with the charging equipment; sending a first data packet comprising charging configuration information to the charging equipment through the near field communication connection, wherein the charging equipment is used for providing charging current for the electronic equipment according to the charging configuration information; charging is performed based on a charging current provided by the charging device. Because the data packet is directly transmitted between the electronic equipment and the charging equipment through the short-range communication connection, the electronic equipment does not modulate the data packet based on the load modulation function, the situation that the modulated modulation signals are wrong because the electronic equipment performs other operations when modulating the data packet is avoided, the situation that the electronic equipment cannot be charged is prevented, and the stability of wireless charging for the electronic equipment is improved.

Description

Charging method, device and storage medium
Technical Field
The disclosure relates to the field of charging technologies, and in particular, to a charging method, a charging device and a storage medium.
Background
With the wide application of electronic devices and the increasing demands of people on the convenience of charging electronic devices, wired charging methods cannot meet the daily demands of people, and wireless charging methods are becoming mainstream.
In the related art, communication is performed between an electronic device and a charging device based on a load modulation function, the electronic device obtains a data packet including charging configuration information, modulates the data packet to obtain a modulation signal, and sends the modulation signal to the charging device. The charging equipment receives the modulation signal, demodulates the modulation signal to obtain the data packet, and provides charging current for the electronic equipment according to the charging configuration information in the data packet, so as to charge the electronic equipment.
In the modulation process, the electronic device may perform other operations, which causes a load to change, and further causes an error in the modulation signal, and the charging device cannot demodulate the modulation signal, so that the electronic device cannot be charged.
Disclosure of Invention
In order to overcome the problems in the related art, the present disclosure provides a charging method, a device and a storage medium, where the technical scheme is as follows:
according to a first aspect of embodiments of the present disclosure, there is provided a charging method applied to an electronic device, the method including:
establishing short-distance communication connection with the charging equipment;
sending a first data packet comprising charging configuration information to the charging equipment through the near field communication connection, wherein the charging equipment is used for providing charging current for the electronic equipment according to the charging configuration information;
Charging is performed based on a charging current provided by the charging device.
In one possible implementation manner, the establishing a close range communication connection with the charging device includes:
establishing a Bluetooth communication connection with the charging equipment; or alternatively, the process may be performed,
establishing wireless fidelity (WiFi) communication connection with the charging equipment; or alternatively, the process may be performed,
and establishing a Near Field Communication (NFC) communication connection with the charging device.
In another possible implementation manner, the establishing a close range communication connection with the charging device includes:
based on a load modulation function, sending an identification acquisition request to the charging equipment, wherein the charging equipment is used for receiving the identification acquisition request based on the load modulation function and returning a first equipment identification of the charging equipment according to the identification acquisition request;
receiving a first equipment identifier sent by the charging equipment based on the load modulation function;
and establishing short-distance communication connection with the charging equipment according to the first equipment identifier.
In another possible implementation manner, the sending, based on the load modulation function, an identification acquisition request to the charging device includes:
Acquiring a second data packet comprising the identifier acquisition request, and modulating the second data packet to obtain a first modulation signal;
and sending the first modulation signal to the charging equipment, wherein the charging equipment is used for demodulating the first modulation signal to obtain the second data packet, and acquiring the identifier acquisition request in the second data packet.
In another possible implementation manner, the receiving, based on the load modulation function, the first device identifier sent by the charging device includes:
receiving a second modulation signal sent by the charging equipment, wherein the second modulation signal
Modulating a third data packet containing the first equipment identifier by the charging equipment;
demodulating the second modulation signal to obtain the third data packet;
and acquiring the first equipment identifier in the third data packet.
In another possible implementation, the method further includes:
when the near field communication connection is established, a load modulation function is closed; or alternatively, the process may be performed,
and when the short-distance communication connection is detected to be disconnected, starting the load modulation function, and charging based on the load modulation function.
According to a second aspect of embodiments of the present disclosure, there is provided a charging method, applied to a charging device, the method including:
establishing close-range communication connection with the electronic equipment;
receiving a first data packet which is sent by the electronic equipment and comprises charging configuration information through the short-range communication connection;
and providing charging current for the electronic equipment according to the charging configuration information, wherein the electronic equipment is used for charging based on the charging current provided by the charging equipment.
In one possible implementation, the establishing a close range communication connection with the electronic device includes:
establishing a Bluetooth communication connection with the electronic equipment; or alternatively, the process may be performed,
establishing wireless fidelity (WiFi) communication connection with the electronic equipment; or alternatively, the process may be performed,
and establishing a Near Field Communication (NFC) communication connection with the electronic device.
In another possible implementation manner, the establishing a close range communication connection with the electronic device includes:
based on a load modulation function, receiving an identification acquisition request sent by the electronic equipment;
and based on the load modulation function, sending a first equipment identifier of the charging equipment to the electronic equipment according to the identifier acquisition request, and establishing short-distance communication connection with the charging equipment.
In another possible implementation manner, the receiving, based on the load modulation function, the identifier obtaining request sent by the electronic device includes:
receiving a first modulation signal sent by the electronic equipment, wherein the first modulation signal is obtained by modulating a second data packet comprising the identifier acquisition request by the electronic equipment;
demodulating the first modulation signal to obtain the second data packet;
and acquiring the identification acquisition request included in the second data packet.
In another possible implementation manner, the sending, based on the load modulation function, the first device identifier of the charging device to the electronic device according to the identifier acquisition request includes:
according to the identifier acquisition request, acquiring a third data packet containing the first equipment identifier, and modulating the third data packet to obtain a second modulation signal;
and sending the second modulation signal to the electronic equipment, wherein the electronic equipment is used for demodulating the second modulation signal when receiving the second modulation signal to obtain the third data packet, and obtaining the first equipment identifier in the third data packet.
According to a third aspect of embodiments of the present disclosure, there is provided a charging apparatus, for application in an electronic device, the apparatus including:
the first establishing module is used for establishing close-range communication connection with the charging equipment;
the sending module is used for sending a first data packet comprising charging configuration information to the charging equipment through the short-range communication connection, and the charging equipment is used for providing charging current for the electronic equipment according to the charging configuration information;
and the charging module is used for charging based on the charging current provided by the charging equipment.
In one possible implementation manner, the first establishing module is further configured to establish a bluetooth communication connection with the charging device; or establishing a wireless fidelity (WiFi) communication connection with the charging equipment; or establishing a Near Field Communication (NFC) communication connection with the charging device.
In another possible implementation manner, the first establishing module includes:
the charging device comprises a first sending unit, a second sending unit and a second sending unit, wherein the first sending unit is used for sending an identification acquisition request to the charging device based on a load modulation function, and the charging device is used for receiving the identification acquisition request based on the load modulation function and returning a first device identification of the charging device according to the identification acquisition request;
An identifier receiving unit, configured to receive a first device identifier sent by the charging device based on the load modulation function;
and the first establishing unit is used for establishing short-distance communication connection with the charging equipment according to the first equipment identifier.
In another possible implementation manner, the first sending unit is further configured to obtain a second data packet including the identifier obtaining request, and modulate the second data packet to obtain a first modulated signal; and sending the first modulation signal to the charging equipment, wherein the charging equipment is used for demodulating the first modulation signal to obtain the second data packet, and acquiring the identifier acquisition request in the second data packet.
In another possible implementation manner, the first sending unit is further configured to receive a second modulation signal sent by the charging device, where the second modulation signal is obtained by modulating, by the charging device, a third data packet including the first device identifier; demodulating the second modulation signal to obtain the third data packet; and acquiring the first equipment identifier in the third data packet.
In another possible implementation, the apparatus further includes:
The closing module is used for closing the load modulation function when the near field communication connection is established; or the starting module is used for starting the load modulation function and charging based on the load modulation function when the short-distance communication connection is detected to be disconnected.
According to a fourth aspect of embodiments of the present disclosure, there is provided a charging apparatus, for use in an electronic device, the apparatus including:
the second establishing module is used for establishing close-range communication connection with the electronic equipment;
the data packet receiving module is used for receiving a first data packet which is sent by the electronic equipment and comprises charging configuration information through the short-range communication connection;
the electronic equipment is used for charging based on the charging current provided by the charging equipment.
In one possible implementation manner, the second establishing module is further configured to establish a bluetooth communication connection with the electronic device; or establishing a wireless fidelity (WiFi) communication connection with the electronic equipment; or establishing a Near Field Communication (NFC) communication connection with the electronic device.
In another possible implementation manner, the second establishing module includes:
a request receiving unit, configured to receive an identifier acquisition request sent by the electronic device based on a load modulation function;
and the second establishing unit is used for sending the first equipment identifier of the charging equipment to the electronic equipment according to the identifier acquisition request based on the load modulation function and establishing short-distance communication connection with the electronic equipment.
In another possible implementation manner, the request receiving unit is further configured to receive a first modulation signal sent by the electronic device, where the first modulation signal is obtained by modulating, by the electronic device, a second data packet including the identifier obtaining request; demodulating the first modulation signal to obtain the second data packet; and acquiring the identification acquisition request included in the second data packet.
In another possible implementation manner, the second sending unit is further configured to obtain a third data packet including the first device identifier according to the identifier obtaining request, and modulate the third data packet to obtain a second modulated signal; and sending the second modulation signal to the electronic equipment, wherein the electronic equipment is used for demodulating the second modulation signal when receiving the second modulation signal to obtain the third data packet, and obtaining the first equipment identifier in the third data packet.
According to a fifth aspect of embodiments of the present disclosure, there is provided a charging device, the device comprising:
one or more processors;
volatile or non-volatile memory for storing the one or more processor-executable instructions;
wherein the one or more processors are configured to perform the operations performed in the charging method as described in the first or second aspect.
According to a sixth aspect provided by embodiments of the present disclosure, the computer-readable storage medium has at least one instruction stored therein, the instruction being loaded and executed by a processor to implement the operations performed in the charging method according to the first or second aspect.
The technical scheme provided by the embodiment of the disclosure has the beneficial effects that at least:
according to the charging method, the charging device and the storage medium, the electronic equipment establishes short-range communication connection with the charging equipment, a first data packet comprising charging configuration information is sent to the charging equipment through the short-range communication connection, the charging equipment provides charging current for the electronic equipment according to the charging configuration information, and the electronic equipment charges based on the charging current. Because the data packet is directly transmitted between the electronic equipment and the charging equipment through the short-range communication connection, the electronic equipment does not modulate the data packet based on the load modulation function, the situation that the modulated modulation signals are wrong because the electronic equipment performs other operations when modulating the data packet is avoided, the situation that the electronic equipment cannot be charged is prevented, and the stability of wireless charging for the electronic equipment is improved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description, serve to explain the principles of the disclosure.
FIG. 1 is a flow chart illustrating a method of charging according to an exemplary embodiment;
FIG. 2 is a flow chart illustrating a method of charging according to an exemplary embodiment;
FIG. 3 is a flow chart illustrating a method of charging according to an exemplary embodiment;
fig. 4 is a schematic structural view of a charging device according to an exemplary embodiment;
fig. 5 is a schematic structural view of another charging device according to an exemplary embodiment;
fig. 6 is a schematic structural view of a charging device according to an exemplary embodiment;
fig. 7 is a schematic structural view of another charging device according to an exemplary embodiment;
fig. 8 is a block diagram of an electronic device, according to an example embodiment.
Detailed Description
For the purposes of clarity, technical solutions and advantages of the present disclosure, the following further details the embodiments of the present disclosure with reference to the accompanying drawings.
According to the method, the electronic equipment establishes short-range communication connection with the charging equipment, a data packet comprising charging configuration information is sent to the charging equipment through the short-range communication connection, the charging equipment receives the data packet, charging current is provided for the electronic equipment according to the charging configuration information, and the electronic equipment is charged based on the charging current provided by the charging equipment.
The method provided by the embodiment of the disclosure can be applied to a scene of wireless charging of the electronic equipment, and when the electronic equipment and the charging equipment are located in a connectable range, the electronic equipment can establish close-range communication connection with the charging equipment by adopting the method provided by the embodiment of the disclosure, and wireless charging is performed through the close-range communication connection.
Fig. 1 is a flowchart illustrating a charging method according to an exemplary embodiment, the method being applied to an electronic device, referring to fig. 1, the method including:
in step 101, a close range communication connection with the charging device is established.
In step 102, a first data packet including charging configuration information is transmitted to a charging device via a short-range communication connection.
The charging device is used for providing charging current for the electronic device according to the charging configuration information.
In step 103, charging is performed based on a charging current provided by the charging device.
According to the method provided by the embodiment of the disclosure, the electronic equipment establishes close-range communication connection with the charging equipment, a first data packet comprising charging configuration information is sent to the charging equipment through the close-range communication connection, the charging equipment provides charging current for the electronic equipment according to the charging configuration information, and the electronic equipment charges based on the charging current. Because the data packet is directly transmitted between the electronic equipment and the charging equipment through the short-range communication connection, the electronic equipment does not modulate the data packet based on the load modulation function, the situation that the modulated modulation signals are wrong because the electronic equipment performs other operations when modulating the data packet is avoided, the situation that the electronic equipment cannot be charged is prevented, and the stability of wireless charging for the electronic equipment is improved.
In one possible implementation, establishing a close range communication connection with a charging device includes:
establishing Bluetooth communication connection with the charging equipment; or alternatively, the process may be performed,
establishing wireless fidelity (WiFi) communication connection with the charging equipment; or alternatively, the process may be performed,
an NFC communication connection is established with the charging device.
In another possible implementation, establishing a close range communication connection with a charging device includes:
based on the load modulation function, sending an identification acquisition request to the charging equipment, wherein the charging equipment is used for receiving the identification acquisition request based on the load modulation function and returning a first equipment identification of the charging equipment according to the identification acquisition request;
based on a load modulation function, receiving a first equipment identifier sent by charging equipment;
and establishing short-range communication connection with the charging equipment according to the first equipment identifier.
In another possible implementation manner, based on the load modulation function, sending an identification acquisition request to the charging device includes:
acquiring a second data packet comprising an identification acquisition request, and modulating the second data packet to obtain a first modulation signal;
and sending a first modulation signal to the charging equipment, wherein the charging equipment is used for demodulating the first modulation signal to obtain a second data packet and acquiring an identification acquisition request in the second data packet.
In another possible implementation manner, based on the load modulation function, receiving a first device identifier sent by the charging device includes:
receiving a second modulation signal sent by the charging equipment, wherein the second modulation signal is obtained by modulating a third data packet containing the first equipment identifier by the charging equipment;
demodulating the second modulation signal to obtain a third data packet;
and acquiring a first equipment identifier in the third data packet.
In another possible implementation, the method further includes:
when the near field communication connection is established, the load modulation function is closed; or alternatively, the process may be performed,
when the disconnection of the short-range communication connection is detected, the load modulation function is started, and charging is performed based on the load modulation function.
Fig. 2 is a flowchart illustrating a charging method according to an exemplary embodiment, the method being applied to a charging device, see fig. 2, the method comprising:
in step 201, a close range communication connection with an electronic device is established.
In step 202, a first data packet including charging configuration information sent by an electronic device is received via a short-range communication connection.
In step 203, a charging current is provided to the electronic device in accordance with the charging configuration information.
The electronic device is used for charging based on the charging current provided by the charging device.
According to the method provided by the embodiment of the disclosure, the electronic equipment establishes close-range communication connection with the charging equipment, a first data packet comprising charging configuration information is sent to the charging equipment through the close-range communication connection, the charging equipment provides charging current for the electronic equipment according to the charging configuration information, and the electronic equipment charges based on the charging current. Because the data packet is directly transmitted between the electronic equipment and the charging equipment through the short-range communication connection, the electronic equipment does not modulate the data packet based on the load modulation function, the situation that the modulated modulation signals are wrong because the electronic equipment performs other operations when modulating the data packet is avoided, the situation that the electronic equipment cannot be charged is prevented, and the stability of wireless charging for the electronic equipment is improved.
In one possible implementation, establishing a close range communication connection with an electronic device includes:
establishing Bluetooth communication connection with the electronic equipment; or alternatively, the process may be performed,
establishing wireless fidelity (WiFi) communication connection with the electronic equipment; or alternatively, the process may be performed,
A near field communication, NFC, communication connection is established with the electronic device.
In another possible implementation, establishing a close range communication connection with an electronic device includes:
based on the load modulation function, receiving an identification acquisition request sent by the electronic equipment;
and based on the load modulation function, sending a first equipment identifier of the charging equipment to the electronic equipment according to the identifier acquisition request, and establishing close-range communication connection with the electronic equipment.
In another possible implementation manner, based on a load modulation function, receiving an identifier acquisition request sent by an electronic device includes:
receiving a first modulation signal sent by electronic equipment, wherein the first modulation signal is obtained by modulating a second data packet comprising an identification acquisition request by the electronic equipment;
demodulating the first modulation signal to obtain a second data packet;
an identification acquisition request included in the second data packet is acquired.
In another possible implementation manner, based on the load modulation function, sending, according to an identification acquisition request, a first device identification of a charging device to an electronic device, includes:
according to the identifier acquisition request, acquiring a third data packet containing the first equipment identifier, and modulating the third data packet to obtain a second modulation signal;
And sending a second modulation signal to the electronic equipment, wherein the electronic equipment is used for demodulating the second modulation signal when receiving the second modulation signal to obtain a third data packet and obtaining a first equipment identifier in the third data packet.
Fig. 3 is a flow chart illustrating a method of charging, see fig. 3, according to an exemplary embodiment, the method comprising:
in step 301, the electronic device sends an identification acquisition request to the charging device based on the load modulation function.
The electronic device may be a mobile phone, a tablet computer, a personal computer, etc. The charging device may be a wireless charging board, a wireless charger, or the like having a wireless charging function.
The load modulation function refers to a function of transmitting information based on a modulated signal, and in one possible implementation, the function may include in a specific implementation: the electronic equipment acquires a data packet, modulates the data packet to obtain a modulation signal, sends the modulation signal to the charging equipment, receives the modulation signal, demodulates the modulation signal to obtain the data packet, and executes the operation indicated in the data packet according to the data packet.
In one possible implementation, the communication mode of the load modulation function may be an FSK (Frequency-shift modulation) communication mode, an ASK (Amplitude-shift keying) communication mode, or other communication modes.
The data packet may carry charging configuration information of the electronic device, device identifier of the electronic device, or other types of information.
When charging is performed between the electronic device and the charging device based on the load modulation function, the electronic device sends an identification acquisition request to the charging device based on the load modulation function, wherein the identification acquisition request is a request for indicating to acquire the device identification of the charging device.
The device identifier of the charging device may be a MAC (Media Access Control ) address, an IP (Internet Protocol, internet protocol) address, a device name, a device account number, or the like of the charging device.
In one possible implementation, this step 301 may include: the electronic equipment acquires a second data packet comprising the identification acquisition request, modulates the second data packet to obtain a first modulation signal, and sends the first modulation signal to the charging equipment.
Wherein the first modulation signal is a signal representing the second data packet, since the first modulation signal is modulated according to the second data packet. When the charging equipment analyzes the first modulation signal, a second data packet corresponding to the first modulation signal can be obtained.
Optionally, the second data packet in the electronic device is stored in a memory of the electronic device or in a memory of the electronic device.
In step 302, the charging device receives an identification acquisition request based on the load modulation function, and returns a first device identification of the charging device to the electronic device according to the identification acquisition request.
The charging equipment can receive an identifier acquisition request sent by the electronic equipment based on the load modulation function, acquire a first equipment identifier of the charging equipment according to the identifier acquisition request, and return the first equipment identifier to the electronic equipment.
In one possible implementation manner, after the electronic device sends the first modulation signal to the charging device, the charging device receives the first modulation signal, demodulates the first modulation signal to obtain a second data packet, obtains a third data packet containing the first device identifier of the charging device based on an identifier obtaining request contained in the second data packet, modulates the third data packet to obtain a second modulation signal, and the charging device can send the second modulation signal to the electronic device.
Since the second modulated signal is used to represent the first device identification of the charging device, the charging device sends the second modulated signal to the electronic device, i.e. the charging device returns the first device identification to the electronic device.
And the electronic equipment and the charging equipment are communicated based on magnetic field coupling of a load modulation function, when the magnetic field generated by the electronic equipment and the magnetic field generated by the charging equipment are coupled, the charging equipment can send a modulation signal to the electronic equipment according to the coupled magnetic field, and at the moment, the charging equipment does not need to determine the electronic equipment according to equipment identification of the electronic equipment, and then sends the modulation signal to the electronic equipment.
In step 303, the electronic device receives a first device identification sent by the charging device based on the load modulation function.
The charging device sends a second modulation signal to the electronic device based on the load modulation function, and the electronic device can receive the first device identifier sent by the charging device based on the load modulation function. And the subsequent electronic equipment can establish close-range communication connection with the charging equipment according to the first equipment identifier.
In one possible implementation manner, the charging device sends the second modulation signal to the electronic device, and the electronic device receives the second modulation signal and demodulates the second modulation signal to obtain a third data packet indicated by the second modulation signal, that is, may obtain the first device identifier in the third data packet.
It should be noted that, in the embodiment of the present disclosure, steps 301 to 303 of the electronic device obtaining the first device identifier of the charging device through the load modulation function are optional steps. Because the load modulation function communicates in a magnetic field coupling mode, when the magnetic fields of the electronic equipment and the charging equipment are coupled, the equipment identification can be transmitted by utilizing the load modulation function, and the convenience of transmitting the equipment identification is improved. In another embodiment, steps 301-303 may be replaced with the following steps 3011-3013:
3011. the electronic device broadcasts a wireless signal.
The wireless signal is used for indicating other devices to send device identifiers to the electronic device, and the wireless signal carries a second device identifier of the electronic device. The second device identifier is used for indicating the electronic device, and other devices can send data to the electronic device according to the second device identifier. The second device identification of the electronic device may be a MAC (Media Access Control ) address, IP (Internet Protocol, internet protocol) address, device name, device account number, etc. of the electronic device.
3012. And when the charging equipment receives the wireless signal, the first equipment identification of the charging equipment is sent to the electronic equipment according to the second equipment identification.
When the charging equipment receives the wireless signal, the wireless signal is analyzed, a second equipment identifier in the wireless signal can be obtained, and the charging equipment can also obtain a first equipment identifier of the charging equipment according to the wireless signal and send the first equipment identifier to the electronic equipment.
In one possible implementation manner, after the charging device acquires the first device identifier, the first device identifier is carried in the return request, and the destination address of the return request is the first device identifier, so that the return request can be sent to the electronic device.
3013. The electronic equipment receives a first equipment identifier sent by the charging equipment.
In one possible implementation manner, when the electronic device receives the first device identifiers sent by the plurality of charging devices, the electronic device displays the received first device identifiers of the plurality of charging devices in a display interface, and then when the electronic device detects a triggering operation on any one of the first device identifiers, a close-range communication connection between the electronic device and the charging device indicated by the first device identifier is established according to the first device identifier.
The triggering operation may be a single click operation, a double click operation, a long press operation, or other operations.
In the embodiment of the disclosure, the electronic device can acquire the first device identifier of the charging device by broadcasting the wireless signal, establish the close-range communication connection with the charging device according to the received first device identifier, and the subsequent electronic device can perform wireless charging based on the close-range communication connection, so that the stability of wireless charging is improved.
In step 304, the electronic device establishes a close range communication connection with the charging device based on the first device identification.
After receiving the first equipment identifier sent by the charging equipment, the electronic equipment can send a connection establishment request to the charging equipment according to the first equipment identifier, after receiving the connection establishment request, the charging equipment sends a confirmation response to the electronic equipment according to the connection establishment request, and after receiving the confirmation response, the electronic equipment can establish close-range communication connection with the charging equipment, namely connection pairing between the electronic equipment and the charging equipment is achieved.
In one possible implementation, the close range communication connection established between the electronic device and the charging device is a bluetooth connection, or the close range communication connection established between the electronic device and the charging device is a WiFi communication connection, or the close range communication connection established between the electronic device and the charging device is an NFC communication connection.
It should be noted that, the embodiments of the present disclosure only take the charging device to return the first device identifier of the charging device to the electronic device as an example. In another embodiment, after the electronic device sends the identifier acquisition request or the wireless signal to the charging device, because the charging device does not have the short-range communication function, the charging device does not return the first device identifier to the electronic device based on the identifier acquisition request after the charging device receives the identifier acquisition request sent by the electronic device, and the electronic device does not establish the short-range communication connection with the charging device when the electronic device does not receive the first device identifier returned by the charging device within the first preset duration, and directly performs wireless charging based on the load modulation function.
The first preset duration may be set by the electronic device or set by a developer. The preset duration may be 3 seconds, 4 seconds, 5 seconds, or other values.
In step 305, the electronic device sends a data packet including charging configuration information to the charging device through the short-range communication connection.
After the electronic device establishes the close-range communication connection with the charging device, the electronic device can acquire a first data packet comprising charging configuration information, and the first data packet is sent to the charging device through the close-range communication connection.
The charging configuration information may be charging power of the electronic device during charging, charging power to be adjusted during charging of the electronic device, charging power received by the electronic device, and the like.
In one possible implementation, the data packet is a CEP (Control Error packet, control error data packet) when the charging configuration information is the charging power that needs to be adjusted when charging the electronic device. Alternatively, when the charging configuration information is the charging power received by the electronic device, the data packet is an RPP (Receiver Power Packet ).
The CEP is used to indicate the charging power that the charging device needs to adjust each time during charging. The RPP is used to indicate the charging power received by the electronic device during the charging process. When the charging equipment receives the RPP, whether the surrounding of the electronic equipment has metal foreign matters can be determined according to the charging power of the electronic equipment in the RPP and the charging power provided by the charging equipment.
When the charging device provides the charging current for the electronic device, if the metal foreign matter exists around the electronic device, the metal foreign matter can absorb a part of the charging current provided by the charging device to the electronic device, the charging power of the electronic device can be reduced, at the moment, the charging device can determine whether the metal foreign matter exists around the electronic device according to the received RPP, and when the metal foreign matter exists around the electronic device, the charging device can reduce the charging power or adjust the charging power to 0. When no metal foreign matter exists around the electronic equipment, the charging equipment continues to charge the electronic equipment.
In one possible implementation manner, the charging device obtains a difference value of the charging power according to the provided charging power and the received charging power of the electronic device, when the difference value is greater than a preset threshold value, the situation that metal foreign matters exist around the electronic device is indicated, and when the difference value is less than the preset threshold value, the situation that metal foreign matters do not exist around the electronic device is indicated.
Wherein the preset threshold may be determined by the charging device or by a developer.
It should be noted that, during the charging process, the electronic device will send a data packet through the close range communication connection every second preset time period.
The second preset duration may be set by the electronic device or by a developer. The second preset time period may be 20 milliseconds, 50 milliseconds, or other value.
In one possible implementation, the electronic device sends the RPP to the charging device once every a first preset duration and sends the CEP to the charging device once every a second preset duration over the established close range communication connection.
The first preset duration and the second preset duration may be the same or different.
And when the first preset time length is the same as the second preset time length, namely the electronic equipment simultaneously sends CEP and RPP to the charging equipment.
When the first preset duration and the second preset duration are different, the CEP is used for indicating the adjusted charging power in the charging process, the RPP is used for detecting whether metal foreign matters exist, and the period for detecting the metal foreign matters is not required to be too small, so that the first preset duration is adjusted to be smaller than the second preset duration, the stability of wireless charging can be ensured, and the transmitted data size can be reduced.
In step 306, the charging device provides a charging current to the electronic device according to the charging configuration information.
After receiving a first data packet including charging configuration information sent by the electronic device, the charging device adjusts the provided charging current according to the charging configuration information, and provides the adjusted charging current for the electronic device.
In step 307, the electronic device is charged based on the charging current provided by the charging device.
The electronic equipment obtains the charging current provided by the charging equipment, and the charging can be performed based on the charging current.
In one possible implementation, when the charging of the electronic device is completed, the electronic device may send a charging completion instruction to the charging device based on the established close range communication connection, and when the charging device receives the charging completion instruction, no charging current is provided to the electronic device.
In another possible implementation, when the charging of the electronic device is completed, the electronic device disconnects the established close range communication connection, i.e. disconnects the wireless charging between the electronic device and the charging device, and the electronic device does not perform the wireless charging any more.
It should be noted that, in the embodiment of the present disclosure, when the close range communication connection is established, the load modulation function is turned off, that is, the electronic device performs wireless charging only by adopting the close range communication connection mode, and does not perform wireless charging by adopting the load modulation function. Or when the short-range communication connection is detected to be disconnected, the electronic equipment cannot be wirelessly charged with the charging equipment through the short-range communication connection, and the load modulation function is started at the moment, so that the wireless charging is performed based on the load modulation function.
According to the method provided by the embodiment of the disclosure, the electronic equipment establishes close-range communication connection with the charging equipment, a first data packet comprising charging configuration information is sent to the charging equipment through the close-range communication connection, the charging equipment provides charging current for the electronic equipment according to the charging configuration information, and the electronic equipment charges based on the charging current. Because the data packet is directly transmitted between the electronic equipment and the charging equipment through the short-range communication connection, the electronic equipment does not modulate the data packet based on the load modulation function, the situation that the modulated modulation signals are wrong because the electronic equipment performs other operations when modulating the data packet is avoided, the situation that the electronic equipment cannot be charged is prevented, and the stability of wireless charging for the electronic equipment is improved.
Fig. 4 is a schematic structural view of a charging device according to an exemplary embodiment. Referring to fig. 4, the apparatus includes:
a first establishing module 401, configured to establish a close range communication connection with a charging device;
a sending module 402, configured to send, through a short-range communication connection, a first data packet including charging configuration information to a charging device, where the charging device is configured to provide a charging current for an electronic device according to the charging configuration information;
a charging module 403 for charging based on a charging current provided by the charging device.
According to the device provided by the embodiment of the disclosure, the electronic equipment establishes close-range communication connection with the charging equipment, a first data packet comprising charging configuration information is sent to the charging equipment through the close-range communication connection, the charging equipment provides charging current for the electronic equipment according to the charging configuration information, and the electronic equipment charges based on the charging current. Because the data packet is directly transmitted between the electronic equipment and the charging equipment through the short-range communication connection, the electronic equipment does not modulate the data packet based on the load modulation function, the situation that the modulated modulation signals are wrong because the electronic equipment performs other operations when modulating the data packet is avoided, the situation that the electronic equipment cannot be charged is prevented, and the stability of wireless charging for the electronic equipment is improved.
In one possible implementation, the first establishing module 401 is further configured to establish a bluetooth communication connection with the charging device; or establishing wireless fidelity WiFi communication connection with the charging equipment; or, establishing a near field communication NFC communication connection with the charging device.
In another possible implementation, referring to fig. 5, the first setup module 401 includes:
a first sending unit 4011, configured to send an identifier acquisition request to a charging device based on a load modulation function, where the charging device is configured to receive the identifier acquisition request based on the load modulation function, and return a first device identifier of the charging device according to the identifier acquisition request;
an identification receiving unit 4012, configured to receive, based on the load modulation function, a first device identification sent by the charging device;
the first establishing unit 4013 is configured to establish a short-range communication connection with the charging device according to the first device identifier.
In another possible implementation manner, the first sending unit 4011 is further configured to obtain a second data packet including the identifier obtaining request, and modulate the second data packet to obtain a first modulated signal; and sending a first modulation signal to the charging equipment, wherein the charging equipment is used for demodulating the first modulation signal to obtain a second data packet and acquiring an identification acquisition request in the second data packet.
In another possible implementation manner, the first sending unit 4011 is further configured to receive a second modulation signal sent by the charging device, where the second modulation signal is obtained by modulating, by the charging device, a third data packet including the first device identifier; demodulating the second modulation signal to obtain a third data packet; and acquiring a first equipment identifier in the third data packet.
In another possible implementation, referring to fig. 5, the apparatus further includes:
a closing module 404, configured to close the load modulation function when the close range communication connection is established; or, the starting module 405 is configured to start the load modulation function and perform charging based on the load modulation function when the disconnection of the near field communication is detected.
It should be noted that: in the charging device provided in the foregoing embodiment, only the division of the functional modules is used for illustration, and in practical application, the functional allocation may be performed by different functional modules according to needs, that is, the internal structure of the electronic device is divided into different functional modules, so as to complete all or part of the functions described above. In addition, the charging device and the charging method provided in the foregoing embodiments belong to the same concept, and specific implementation processes thereof are detailed in the method embodiments and are not described herein again.
Fig. 6 is a schematic structural view of a charging device according to an exemplary embodiment. Referring to fig. 6, the apparatus includes:
a second establishing module 601, configured to establish a close range communication connection with an electronic device;
the data packet receiving module 602 is configured to receive, through a short-range communication connection, a first data packet including charging configuration information sent by an electronic device;
the providing module 603 is configured to provide a charging current for the electronic device according to the charging configuration information, where the electronic device is configured to perform charging based on the charging current provided by the charging device.
In one possible implementation, the second establishing module 601 is further configured to establish a bluetooth communication connection with the electronic device; or establishing wireless fidelity WiFi communication connection with the electronic equipment; or, establishing a near field communication NFC communication connection with the electronic device.
In another possible implementation, referring to fig. 7, the second establishing module 601 includes:
a request receiving unit 6011 for receiving an identifier acquisition request sent by the electronic device based on the load modulation function;
the second establishing unit 6012 is configured to send, to the electronic device, the first device identifier of the charging device according to the identifier acquisition request based on the load modulation function, and establish a close range communication connection with the electronic device.
In another possible implementation manner, the request receiving unit 6011 is further configured to receive a first modulation signal sent by the electronic device, where the first modulation signal is obtained by modulating, by the electronic device, a second data packet including the identifier obtaining request; demodulating the first modulation signal to obtain a second data packet; an identification acquisition request included in the second data packet is acquired.
In another possible implementation manner, the second sending unit 6012 is further configured to obtain, according to the identifier obtaining request, a third data packet including the first device identifier, and modulate the third data packet to obtain a second modulated signal; and sending a second modulation signal to the electronic equipment, wherein the electronic equipment is used for demodulating the second modulation signal when receiving the second modulation signal to obtain a third data packet and obtaining a first equipment identifier in the third data packet.
It should be noted that: in the charging device provided in the foregoing embodiment, only the division of the above functional modules is used for illustration, and in practical application, the above functional allocation may be performed by different functional modules according to needs, that is, the internal structure of the charging device is divided into different functional modules, so as to complete all or part of the functions described above. In addition, the charging device and the charging method provided in the foregoing embodiments belong to the same concept, and specific implementation processes thereof are detailed in the method embodiments and are not described herein again.
Fig. 8 is a block diagram of an electronic device, according to an example embodiment. For example, electronic device 800 may be a mobile phone, computer, digital broadcaster, messaging device, game console, tablet device, medical device, exercise device, personal digital assistant, and the like.
Referring to fig. 8, an electronic device 800 may include one or more of the following components: a processing component 802, a memory 804, a power component 806, a multimedia component 808, an audio component 810, an input/output (I/O) interface 812, a sensor component 814, and a communication component 816.
The processing component 802 generally controls overall operation of the electronic device 800, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 802 may include one or more processors 820 to execute instructions to perform all or part of the steps of the methods described above. Further, the processing component 802 can include one or more modules that facilitate interactions between the processing component 802 and other components. For example, the processing component 802 can include a multimedia module to facilitate interaction between the multimedia component 808 and the processing component 802.
The memory 804 is configured to store various types of data to support operations at the electronic device 800. Examples of such data include instructions for any application or method operating on the electronic device 800, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 804 may be implemented by any type or combination of volatile or nonvolatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disk.
The power supply component 806 provides power to the various components of the electronic device 800. The power components 806 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for the electronic device 800.
The multimedia component 808 includes a screen between the electronic device 800 and the user that provides an output interface. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from a user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensor may sense not only the boundary of a touch or slide action, but also the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 808 includes a front camera and/or a rear camera. When the electronic device 800 is in an operational mode, such as a shooting mode or a video mode, the front camera and/or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have focal length and optical zoom capabilities.
The audio component 810 is configured to output and/or input audio signals. For example, the audio component 810 includes a Microphone (MIC) configured to receive external audio signals when the electronic device 800 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may be further stored in the memory 804 or transmitted via the communication component 816. In some embodiments, audio component 810 further includes a speaker for outputting audio signals.
The I/O interface 812 provides an interface between the processing component 802 and peripheral interface modules, which may be a keyboard, click wheel, buttons, etc. These buttons may include, but are not limited to: homepage button, volume button, start button, and lock button.
The sensor assembly 814 includes one or more sensors for providing status assessment of various aspects of the electronic device 800. For example, the sensor assembly 814 may detect an on/off state of the electronic device 800, a relative positioning of the components, such as a display and keypad of the electronic device 800, the sensor assembly 814 may also detect a change in position of the electronic device 800 or a component of the electronic device 800, the presence or absence of a user's contact with the electronic device 800, an orientation or acceleration/deceleration of the electronic device 800, and a change in temperature of the electronic device 800. The sensor assembly 814 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 814 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 814 may also include an acceleration sensor, a gyroscopic sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 816 is configured to facilitate communication between the electronic device 800 and other devices, either wired or wireless. The electronic device 800 may access a wireless network based on a communication standard, such as Wi-Fi,2G, or 3G, or a combination thereof. In one exemplary embodiment, the communication component 816 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In one exemplary embodiment, the communication component 816 further includes a Near Field Communication (NFC) module to facilitate short range communications.
In an exemplary embodiment, the electronic device 800 may be implemented by one or more Application Specific Integrated Circuits (ASICs), digital Signal Processors (DSPs), digital Signal Processing Devices (DSPDs), programmable Logic Devices (PLDs), field Programmable Gate Arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic elements for performing the above-described charging methods.
In an exemplary embodiment, a non-transitory computer readable storage medium is also provided, such as memory 804 including instructions executable by processor 820 of electronic device 800 to perform the above-described method. For example, the non-transitory computer readable storage medium may be ROM, random Access Memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, etc.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any adaptations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It is to be understood that the present disclosure is not limited to the precise arrangements and instrumentalities shown in the drawings, and that various modifications and changes may be effected without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (18)

1. A charging method, for use in an electronic device, the method comprising:
based on a load modulation function, sending an identification acquisition request to a charging device, wherein the charging device is used for receiving the identification acquisition request based on the load modulation function and returning a first device identification of the charging device according to the identification acquisition request;
Receiving a first equipment identifier sent by the charging equipment based on the load modulation function;
according to the first equipment identifier, establishing short-distance communication connection with the charging equipment;
transmitting a Receiver Power Packet (RPP) to the charging equipment at intervals of a first preset time length through the short-range communication connection, and transmitting a control error data packet (CEP) to the charging equipment at intervals of a second preset time length, wherein the charging equipment is used for determining whether metal foreign matters absorbing charging current exist around the electronic equipment according to the RPP, the charging equipment is used for providing the charging current for the electronic equipment according to the RPP or the CEP, the RPP is used for indicating the charging power received during charging of the electronic equipment, and the CEP is used for indicating the charging power which needs to be regulated each time during charging of the electronic equipment;
charging based on a charging current provided by the charging device;
when the near field communication connection is established, the load modulation function is closed; or alternatively, the process may be performed,
and when the short-distance communication connection is detected to be disconnected, starting the load modulation function, and carrying out wireless charging based on the load modulation function.
2. The method of claim 1, wherein the establishing a close range communication connection with the charging device comprises:
establishing a Bluetooth communication connection with the charging equipment; or alternatively, the process may be performed,
establishing wireless fidelity (WiFi) communication connection with the charging equipment; or alternatively, the process may be performed,
and establishing a Near Field Communication (NFC) communication connection with the charging device.
3. The method of claim 1, wherein the sending an identification acquisition request to the charging device based on the load modulation function comprises:
acquiring a second data packet comprising the identifier acquisition request, and modulating the second data packet to obtain a first modulation signal;
and sending the first modulation signal to the charging equipment, wherein the charging equipment is used for demodulating the first modulation signal to obtain the second data packet, and acquiring the identifier acquisition request in the second data packet.
4. The method of claim 3, wherein the receiving, based on the load modulation function, the first device identification sent by the charging device comprises:
receiving a second modulation signal sent by the charging equipment, wherein the second modulation signal is obtained by modulating a third data packet containing the first equipment identifier by the charging equipment;
Demodulating the second modulation signal to obtain the third data packet;
and acquiring the first equipment identifier in the third data packet.
5. A charging method, characterized by being applied to a charging device, the method comprising:
based on the load modulation function, receiving an identification acquisition request sent by the electronic equipment;
based on the load modulation function, sending a first equipment identifier of the charging equipment to the electronic equipment according to the identifier acquisition request, and establishing short-distance communication connection with the electronic equipment;
receiving a Receiver Power Packet (RPP) sent by the electronic equipment at intervals of a first preset time length through the short-range communication connection, and receiving a control error data packet (CEP) sent by the electronic equipment at intervals of a second preset time length, wherein the RPP is used for indicating the charging power received when the electronic equipment is charged, and the CEP is used for indicating the charging power which needs to be adjusted each time when the electronic equipment is charged;
determining whether a metal foreign body absorbing charging current exists around the electronic equipment according to the RPP, providing the charging current for the electronic equipment according to the RPP or the CEP, and charging the electronic equipment based on the charging current provided by the charging equipment;
When the near field communication connection is established, the load modulation function is closed; or alternatively, the process may be performed,
and when the short-distance communication connection is detected to be disconnected, starting the load modulation function, wherein the electronic equipment is used for carrying out wireless charging based on the load modulation function.
6. The method of claim 5, wherein the establishing a close range communication connection with the electronic device comprises:
establishing a Bluetooth communication connection with the electronic equipment; or alternatively, the process may be performed,
establishing wireless fidelity (WiFi) communication connection with the electronic equipment; or alternatively, the process may be performed,
and establishing a Near Field Communication (NFC) communication connection with the electronic device.
7. The method of claim 5, wherein receiving the identifier acquisition request sent by the electronic device based on the load modulation function comprises:
receiving a first modulation signal sent by the electronic equipment, wherein the first modulation signal is obtained by modulating a second data packet comprising the identifier acquisition request by the electronic equipment;
demodulating the first modulation signal to obtain the second data packet;
and acquiring the identification acquisition request included in the second data packet.
8. The method of claim 7, wherein the sending, based on the load modulation function, the first device identification of the charging device to the electronic device according to the identification acquisition request comprises:
according to the identifier acquisition request, acquiring a third data packet containing the first equipment identifier, and modulating the third data packet to obtain a second modulation signal;
and sending the second modulation signal to the electronic equipment, wherein the electronic equipment is used for demodulating the second modulation signal when receiving the second modulation signal to obtain the third data packet, and obtaining the first equipment identifier in the third data packet.
9. A charging apparatus for use in an electronic device, the apparatus comprising:
the first establishing module is used for sending an identification acquisition request to the charging equipment based on the load modulation function, wherein the charging equipment is used for receiving the identification acquisition request based on the load modulation function and returning a first equipment identification of the charging equipment according to the identification acquisition request; receiving a first equipment identifier sent by the charging equipment based on the load modulation function; according to the first equipment identifier, establishing short-distance communication connection with the charging equipment;
The device comprises a sending module, a receiving module and a control error data packet (CEP), wherein the sending module is used for sending a Receiver Power Packet (RPP) to the charging equipment at intervals of a first preset duration and sending a control error data packet (CEP) to the charging equipment at intervals of a second preset duration through the short-range communication connection, the charging equipment is used for determining whether metal foreign matters absorbing charging current exist around the electronic equipment according to the RPP, the charging equipment is used for providing the charging current for the electronic equipment according to the RPP or the CEP, the RPP is used for indicating the charging power received during charging of the electronic equipment, and the CEP is used for indicating the charging power which needs to be regulated each time during charging of the electronic equipment;
a charging module for charging based on a charging current provided by the charging device;
the closing module is used for closing the load modulation function when the close range communication connection is established; or alternatively, the process may be performed,
and the starting module is used for starting the load modulation function when the short-distance communication connection is detected to be disconnected, and carrying out wireless charging based on the load modulation function.
10. The apparatus of claim 9, wherein the first establishing module is further configured to establish a bluetooth communication connection with the charging device; or establishing a wireless fidelity (WiFi) communication connection with the charging equipment; or establishing a Near Field Communication (NFC) communication connection with the charging device.
11. The apparatus of claim 9, wherein the first establishing module includes a first transmitting unit configured to acquire a second data packet including the identifier acquisition request, and modulate the second data packet to obtain a first modulated signal; and sending the first modulation signal to the charging equipment, wherein the charging equipment is used for demodulating the first modulation signal to obtain the second data packet, and acquiring the identifier acquisition request in the second data packet.
12. The apparatus of claim 11, wherein the first transmitting unit is further configured to receive a second modulated signal sent by the charging device, where the second modulated signal is obtained by modulating, by the charging device, a third data packet that includes the first device identifier; demodulating the second modulation signal to obtain the third data packet; and acquiring the first equipment identifier in the third data packet.
13. A charging device for use in a charging apparatus, the device comprising:
the second building module is used for receiving an identification acquisition request sent by the electronic equipment based on the load modulation function; based on the load modulation function, sending a first equipment identifier of the charging equipment to the electronic equipment according to the identifier acquisition request, and establishing short-distance communication connection with the electronic equipment;
The data packet receiving module is used for receiving a Receiver Power Packet (RPP) sent by the electronic equipment at intervals of a first preset time length through the short-range communication connection, receiving a control error data packet (CEP) sent by the electronic equipment at intervals of a second preset time length, wherein the RPP is used for indicating the charging power received when the electronic equipment is charged, and the CEP is used for indicating the charging power which needs to be adjusted each time when the electronic equipment is charged;
the electronic equipment comprises an RPP (remote control platform) and a CEP (power consumption control platform), wherein the RPP is used for providing charging current for the electronic equipment;
the closing module is used for closing the load modulation function when the close range communication connection is established; or alternatively, the process may be performed,
and the starting module is used for starting the load modulation function when the short-distance communication connection is detected to be disconnected, and the electronic equipment is used for carrying out wireless charging based on the load modulation function.
14. The apparatus of claim 13, wherein the second establishing module is further configured to establish a bluetooth communication connection with the electronic device; or establishing a wireless fidelity (WiFi) communication connection with the electronic equipment; or establishing a Near Field Communication (NFC) communication connection with the electronic device.
15. The apparatus of claim 13, wherein the second setup module comprises a request receiving unit configured to receive a first modulation signal sent by the electronic device, where the first modulation signal is obtained by modulating, by the electronic device, a second data packet that includes the identifier acquisition request; demodulating the first modulation signal to obtain the second data packet; and acquiring the identification acquisition request included in the second data packet.
16. The apparatus of claim 15, wherein the second establishing module further comprises a second establishing unit, the second establishing unit configured to obtain a third data packet including the first device identifier according to the identifier obtaining request, and modulate the third data packet to obtain a second modulated signal; and sending the second modulation signal to the electronic equipment, wherein the electronic equipment is used for demodulating the second modulation signal when receiving the second modulation signal to obtain the third data packet, and obtaining the first equipment identifier in the third data packet.
17. A charging device, the device comprising:
One or more processors;
volatile or non-volatile memory for storing the one or more processor-executable instructions;
wherein the one or more processors are configured to perform the operations performed in the charging method of any one of claims 1-4 or of any one of claims 5-8.
18. A computer readable storage medium having stored therein at least one instruction that is loaded and executed by a processor to implement the operations performed in the charging method of any one of claims 1 to 4 or any one of claims 5 to 8.
CN201910904363.0A 2019-09-24 2019-09-24 Charging method, device and storage medium Active CN112564294B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910904363.0A CN112564294B (en) 2019-09-24 2019-09-24 Charging method, device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910904363.0A CN112564294B (en) 2019-09-24 2019-09-24 Charging method, device and storage medium

Publications (2)

Publication Number Publication Date
CN112564294A CN112564294A (en) 2021-03-26
CN112564294B true CN112564294B (en) 2023-08-29

Family

ID=75028968

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910904363.0A Active CN112564294B (en) 2019-09-24 2019-09-24 Charging method, device and storage medium

Country Status (1)

Country Link
CN (1) CN112564294B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106410303A (en) * 2015-07-27 2017-02-15 小米科技有限责任公司 Charging method and charging apparatus
CN109728617A (en) * 2017-10-31 2019-05-07 北京小米移动软件有限公司 Wireless charging method and mobile terminal

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2636157A4 (en) * 2010-11-03 2014-06-04 Xped Holdings Pty Ltd Wireless device detection and communication apparatus and system
CN106527642A (en) * 2016-11-26 2017-03-22 北京小米移动软件有限公司 Power supply control method and device for extension socket, and extension socket
CN107147169A (en) * 2017-05-27 2017-09-08 上海斐讯数据通信技术有限公司 A kind of wireless charging control method and wireless charging device
CN107248890A (en) * 2017-05-31 2017-10-13 广东欧珀移动通信有限公司 Wireless communications method, device, storage medium and terminal
CN107730859B (en) * 2017-09-22 2021-03-12 Tcl通力电子(惠州)有限公司 Wireless device pairing method, device and storage medium

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106410303A (en) * 2015-07-27 2017-02-15 小米科技有限责任公司 Charging method and charging apparatus
CN109728617A (en) * 2017-10-31 2019-05-07 北京小米移动软件有限公司 Wireless charging method and mobile terminal

Also Published As

Publication number Publication date
CN112564294A (en) 2021-03-26

Similar Documents

Publication Publication Date Title
CN108520746B (en) Method and device for controlling intelligent equipment through voice and storage medium
CN110622616B (en) Control method and device for inactivity timer
EP3125615A1 (en) Method, apparatus and system for smart device to access router
US20220256497A1 (en) Methods and apparatuses for receiving paging signaling, and methods and apparatuses for transmitting paging signaling
EP3565374A1 (en) Region configuration method and device
EP3893594A1 (en) User device pairing method and apparatus
US20240063980A1 (en) System information reception method and apparatus, and system information transmission method and apparatus
WO2020029025A1 (en) Flight path configuration method and device
CN114430920A (en) Capability reporting method and device, and capability determining method and device
CN109040651B (en) Video communication method and device
CN105578391B (en) Information processing method, device and system and terminal equipment
CN108718439B (en) Data transmission method and device
CN105978663B (en) Data transmission method and device
CN111541922A (en) Method, device and storage medium for displaying interface input information
CN112564294B (en) Charging method, device and storage medium
CN108401529B (en) System message acquisition method and device, and system message transmission method and device
CN106550482B (en) Communication connection establishing method and device and electronic equipment
CN112262606B (en) Time gap request method and device, and time gap configuration method and device
CN112640569B (en) Connection establishment method and device
WO2022052070A1 (en) Connection control method and connection control apparatus
CN114615647A (en) Call control method, device and storage medium
EP3962174A1 (en) Network switching resource determining method and network switching resource configuration method
CN113170474A (en) Resource allocation method, device, terminal equipment, access network equipment and storage medium
CN111800836A (en) Communication method, communication device, electronic equipment and storage medium
CN111601363A (en) Method, device and storage medium for assisting intelligent equipment to automatically access wireless network

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
GR01 Patent grant
GR01 Patent grant