CN113141556A - Communication method, system and storage medium - Google Patents

Communication method, system and storage medium Download PDF

Info

Publication number
CN113141556A
CN113141556A CN202010054599.2A CN202010054599A CN113141556A CN 113141556 A CN113141556 A CN 113141556A CN 202010054599 A CN202010054599 A CN 202010054599A CN 113141556 A CN113141556 A CN 113141556A
Authority
CN
China
Prior art keywords
charging
voltage signal
signal
modulation
electronic device
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
CN202010054599.2A
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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN202010054599.2A priority Critical patent/CN113141556A/en
Publication of CN113141556A publication Critical patent/CN113141556A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R1/00Details of transducers, loudspeakers or microphones
    • H04R1/10Earpieces; Attachments therefor ; Earphones; Monophonic headphones
    • H04R1/1091Details not provided for in groups H04R1/1008 - H04R1/1083
    • GPHYSICS
    • G08SIGNALLING
    • G08CTRANSMISSION SYSTEMS FOR MEASURED VALUES, CONTROL OR SIMILAR SIGNALS
    • G08C19/00Electric signal transmission systems
    • G08C19/16Electric signal transmission systems in which transmission is by pulses
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R1/00Details of transducers, loudspeakers or microphones
    • H04R1/10Earpieces; Attachments therefor ; Earphones; Monophonic headphones
    • H04R1/1025Accumulators or arrangements for charging
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R3/00Circuits for transducers, loudspeakers or microphones
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R2201/00Details of transducers, loudspeakers or microphones covered by H04R1/00 but not provided for in any of its subgroups
    • H04R2201/10Details of earpieces, attachments therefor, earphones or monophonic headphones covered by H04R1/10 but not provided for in any of its subgroups

Abstract

The embodiment of the application discloses a communication method, a system and a storage medium, wherein the method comprises the following steps: acquiring first communication information; the first communication information comprises first communication content transmitted to the electronic equipment by the charging equipment; coding the first communication information to obtain a first modulation signal; modulating the charging voltage signal by using the first modulation signal to obtain a first modulation voltage signal; the charging voltage signal is a voltage signal output by the charging equipment when the charging equipment charges the electronic equipment; providing the first modulated voltage signal to the electronic device, wherein the first modulated voltage signal includes the first communication content and the charging voltage signal.

Description

Communication method, system and storage medium
Technical Field
The present application relates to the field of portable listening devices, and in particular, to a communication method, system and storage medium.
Background
With the continuous development of science and technology, the wireless earphone has obtained extensive application owing to its convenient characteristics of use, and the volume is littleer and littleer. In Wireless headsets, such as bluetooth sports headsets, True Wireless Stereo (TWS) headsets, etc., in order to achieve longer endurance, a charging box with a function of receiving and charging is generally required to be specially equipped. In order to enable the charging box to better control the charging of the wireless headset, communication between the wireless headset and the charging box is required.
At present, a charging mode and a communication mode between a charging box and a wireless earphone cannot work simultaneously; for example, in the charging mode, if communication is required to obtain the electric quantity information of the wireless headset, charging is suspended at this time, and the wireless headset is switched to the communication mode, so that communication delay is inevitably caused; in addition, the switching between the charging mode and the communication mode requires a control switch, which increases the complexity of the control, and also increases the cost and reduces the reliability of the product due to the addition of the switching device.
Disclosure of Invention
The embodiment of the application provides a communication method, a communication system and a storage medium, which can realize simultaneous work of charging and communication, can also improve the reliability of products and have low cost.
The technical scheme of the application is realized as follows:
in a first aspect, an embodiment of the present application provides a communication method, which is applied to a charging device, and the method includes:
acquiring first communication information; the first communication information comprises first communication content transmitted to the electronic equipment by the charging equipment;
coding the first communication information to obtain a first modulation signal;
modulating the charging voltage signal by using the first modulation signal to obtain a first modulation voltage signal; the charging voltage signal is a voltage signal output by the charging equipment when the charging equipment charges the electronic equipment;
providing the first modulated voltage signal to the electronic device, wherein the first modulated voltage signal includes the first communication content and the charging voltage signal.
In a second aspect, an embodiment of the present application provides a communication method, which is applied to an electronic device, and the method includes:
receiving a first modulation voltage signal provided by a charging device, and charging based on the first modulation voltage signal;
demodulating the first modulation voltage signal to obtain a first demodulation signal;
and decoding the first demodulation signal to obtain first communication information.
In a third aspect, an embodiment of the present application provides a system, including:
the charging equipment comprises a first acquisition unit, a first coding unit, a first modulation unit and a first sending unit; wherein the content of the first and second substances,
a first acquisition unit configured to acquire first communication information; the first communication information comprises first communication content transmitted to the electronic equipment by the charging equipment;
the first coding unit is configured to code the first communication information to obtain a first modulation signal;
the first modulation unit is configured to modulate the charging voltage signal by using the first modulation signal to obtain a first modulation voltage signal; the charging voltage signal is a voltage signal provided by the charging equipment when the charging equipment charges the electronic equipment;
a first transmitting unit configured to provide the first modulated voltage signal to the electronic device, wherein the first modulated voltage signal includes the first communication content and the charging voltage signal;
an electronic device including a second receiving unit, a second demodulating unit, and a second decoding unit; wherein the content of the first and second substances,
the second receiving unit is configured to receive a first modulation voltage signal provided by the charging equipment and perform charging based on the first modulation voltage signal;
a second demodulation unit configured to demodulate the first modulation voltage signal to obtain a first demodulation signal;
and the second decoding unit is configured to decode the first demodulation signal to obtain the first communication information.
In a fourth aspect, an embodiment of the present application provides a system, including:
a charging device comprising a first memory and a first processor; wherein the content of the first and second substances,
a first memory for storing a computer program operable on the first processor;
a first processor for performing the method of the first aspect when running the computer program;
an electronic device comprising a second memory and a second processor; wherein the content of the first and second substances,
a second memory for storing a computer program operable on the second processor;
a second processor for performing the method according to the second aspect when running the computer program.
In a fifth aspect, embodiments of the present application provide a computer storage medium storing a communication program, where the communication program implements the method according to the first aspect when executed by a first processor or implements the method according to the second aspect when executed by a second processor.
The communication method, the communication system and the storage medium provided by the embodiment of the application are applied to charging equipment. The method comprises the steps of acquiring first communication information, wherein the first communication information comprises first communication content transmitted to electronic equipment by charging equipment; coding the first communication information to obtain a first modulation signal; modulating the charging voltage signal by using a first modulation signal to obtain a first modulation voltage signal; providing a first modulated voltage signal to the electronic device; therefore, the first modulation voltage signal comprises the first communication content and the charging voltage signal, and the charging voltage signal is a voltage signal output by the charging equipment when the charging equipment charges the electronic equipment, so that the charging and communication between the charging equipment and the electronic equipment can work simultaneously; and the communication between the charging equipment and the electronic equipment (such as detecting whether the electronic equipment enters a box or not, the charging state of the electronic equipment and the like) can be realized without adding extra devices, so that the cost can be reduced, the reliability of the product can be improved, and the utilization rate of the equipment is improved.
Drawings
Fig. 1 is a schematic view of an application scenario of a system according to an embodiment of the present application;
fig. 2 is a schematic flowchart of a communication method according to an embodiment of the present disclosure;
fig. 3 is a schematic hardware circuit diagram of a charging device according to an embodiment of the present disclosure;
fig. 4A is a schematic waveform diagram of a charging voltage signal according to an embodiment of the present disclosure;
fig. 4B is a schematic waveform diagram of a first modulation signal according to an embodiment of the present disclosure;
fig. 4C is a schematic waveform diagram of a first modulation voltage signal according to an embodiment of the present disclosure;
fig. 5A is a schematic hardware circuit diagram of another charging device according to an embodiment of the present disclosure;
fig. 5B is a schematic hardware circuit diagram of another charging device according to an embodiment of the present disclosure;
fig. 6 is a block diagram of a charging device according to an embodiment of the present disclosure;
fig. 7 is a detailed flowchart of a communication method according to an embodiment of the present disclosure;
fig. 8 is a schematic flowchart of another communication method according to an embodiment of the present disclosure;
fig. 9A is a schematic hardware circuit diagram of an electronic device according to an embodiment of the present disclosure;
fig. 9B is a hardware circuit diagram of another electronic device according to an embodiment of the present disclosure;
fig. 10A is a waveform diagram of a first demodulated signal according to an embodiment of the present application;
fig. 10B is a schematic waveform diagram of another first demodulated signal according to an embodiment of the present application;
fig. 11 is a block diagram illustrating a structure of an electronic device according to an embodiment of the present disclosure;
fig. 12 is a schematic flowchart of another communication method according to an embodiment of the present application;
FIG. 13A is a schematic waveform diagram of a modulation signal and a modulation voltage signal according to an embodiment of the present application;
FIG. 13B is a schematic waveform diagram of another modulation signal and modulation voltage signal according to an embodiment of the present application;
fig. 14 is a schematic flowchart of another communication method according to an embodiment of the present application;
fig. 15 is a detailed flowchart of another communication method according to an embodiment of the present disclosure;
fig. 16 is a schematic structural diagram of a charging device according to an embodiment of the present disclosure;
fig. 17 is a schematic diagram of a specific hardware structure of a charging device according to an embodiment of the present disclosure;
fig. 18 is a schematic structural diagram of an electronic device according to an embodiment of the present application;
fig. 19 is a schematic hardware structure diagram of an electronic device according to an embodiment of the present disclosure;
fig. 20 is a schematic structural diagram of a system according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application. It is to be understood that the specific embodiments described herein are merely illustrative of the relevant application and are not limiting of the application. It should be noted that, for the convenience of description, only the parts related to the related applications are shown in the drawings.
Referring to fig. 1, a schematic diagram of an application scenario of a system provided in an embodiment of the present application is shown. As shown in fig. 1, in this application scenario, an electronic device 11 and a charging device 12 are included, and the charging device 12 may accommodate the electronic device 11. A battery can be integrated in the electronic device 11, and a mobile power supply is integrated in the charging device 12; in this way, after the electronic device 11 is placed in the charging device 12, if the electronic device 11 enters the charging mode, the battery in the electronic device 11 can be charged by the mobile power supply in the charging device 12.
It should be noted that the electronic device 11 may be implemented in various forms, for example, the electronic device may include a smart phone, smart glasses, Personal Digital Assistant (PDA), Portable Media Player (PMP), wearable device, TWS headset, neck headphones, wireless-by-wire headset, wireless headset, bluetooth sound box, etc.; the charging device 12 may be a charging box configured to be connected to the electronic device 11, or may also be a test fixture configured to be connected to the electronic device 11, and the embodiment of the present application is not limited in particular. Exemplarily, in fig. 1, the electronic device 11 is a TWS headset, and the charging device 12 is a charging box configured to the TWS headset.
The following description will be made of the related art by taking the electronic device 11 as a TWS headset and the charging device 12 as a charging box matched with the TWS headset as an example.
For the TWS earphone, the left and right earplugs of the TWS earphone can work independently without cable connection by realizing wireless separation of left and right sound channels. Also in TWS headsets, there are two POGO PINs (POGO PINs) at the bottom; therefore, when the TWS earphone is placed in the charging box, the circuit between the TWS earphone and the charging box can be conducted, and therefore the TWS earphone can be charged or used for communication. Currently, common POGO PINs include two PINs and three PINs, and the positions are respectively located at corresponding positions on the TWS headset and the charging box (for example, the POGO PIN in the TWS headset is placed below the earplugs); so, when the TWS earphone is placed in the box that charges, POGO PIN in the TWS earphone and POGO PIN in the box that charges can just contact and make the circuit switch on to the charging and the communication that have realized charging box and TWS earphone use.
In the current scheme, a charging mode and a communication mode between a charging box and a TWS earphone cannot work simultaneously; that is, during the charging process, communication cannot be performed simultaneously, i.e., only charging or communication can be performed at the same time.
The embodiment of the application provides a communication method which is applied to charging equipment. The method comprises the steps of acquiring first communication information, wherein the first communication information comprises first communication content transmitted to electronic equipment by charging equipment; coding the first communication information to obtain a first modulation signal; modulating the charging voltage signal by using a first modulation signal to obtain a first modulation voltage signal; providing a first modulated voltage signal to the electronic device; therefore, the first modulation voltage signal comprises the first communication content and the charging voltage signal, and the charging voltage signal is a voltage signal output by the charging equipment when the charging equipment charges the electronic equipment, so that the charging and communication between the charging equipment and the electronic equipment can work simultaneously; and the communication between the charging equipment and the electronic equipment (such as detecting whether the electronic equipment enters a box or not, the charging state of the electronic equipment and the like) can be realized without adding extra devices, so that the cost can be reduced, the reliability of the product can be improved, and the utilization rate of the equipment is improved.
Embodiments of the present application will be described in detail below with reference to the accompanying drawings.
In an embodiment of the present application, referring to fig. 2, a flowchart of a communication method provided in the embodiment of the present application is shown. As shown in fig. 2, the method may include:
s201: acquiring first communication information; the first communication information comprises first communication content transmitted to the electronic equipment by the charging equipment;
it should be noted that the communication method is applied to the charging device. Wherein, the electronic device (such as the TWS earphone) can be built in the charging device (such as a charging box configured by the TWS earphone), and then the charging device charges the electronic device.
It should be noted that, during the process of charging the electronic device by the charging device, interactive communication is performed between the charging device and the electronic device. On one hand, the charging device can transmit communication content to the electronic device, and on the other hand, the electronic device can also transmit communication content to the charging device, so that communication between the charging device and the electronic device is achieved.
Specifically, when the charging device needs to determine the box entering state of the electronic device, the charging device may send first communication information to the electronic device, and then, based on a response of the electronic device to the first communication information, the charging device may receive a first response signal fed back by the electronic device, and may determine whether the electronic device enters the box according to the first response signal; or when the charging device needs to determine the electric quantity state of the electronic device, the charging device may also send the first communication information to the electronic device, and then based on a response of the electronic device to the first communication information, the charging device may receive a first response signal fed back by the electronic device, and according to the first response signal, the charging device may also determine the electric quantity of the electronic device; that is, the first communication information may be information for sending a communication request to the electronic device to determine a relevant state of the electronic device (such as a box-in state, a charging state, or a power state); in addition, the first communication information may also be related to sending the charging device itself to the electronic device, for example, the charging device actively sends its charging state (including a charging start state and a charging stop state) to the electronic device; here, the first communication information is specifically set according to an actual scene and a user requirement, and the embodiment of the present application is not limited at all.
S202: coding the first communication information to obtain a first modulation signal;
it should be noted that after the first communication information is acquired, the first communication information may be encoded to obtain a first modulation signal. Here, the first modulation signal may be a square wave signal (or referred to as a pulse signal), or may be other signals, such as a sine wave signal, a triangular wave signal, or the like; the first modulation signal may be a square wave signal, but the embodiment of the present application is not limited in any way.
It should be further noted that, in order to avoid that the amplitude of the first modulation signal is too large, which results in low charging efficiency, and to avoid that the amplitude of the first modulation signal is too small and the interference resistance is weak, which results in that the electronic device cannot demodulate the first modulation signal; it is generally desirable to have the amplitude of the first modulation signal within a preset amplitude range. Therefore, in some embodiments, for S202, the encoding the first communication information to obtain a first modulated signal may include:
generating a square wave signal by using the first communication information;
judging whether the amplitude of the square wave signal meets a preset amplitude range or not;
if the judgment result is yes, determining the square wave signal as the first modulation signal;
if the judgment result is negative, amplitude adjustment is carried out on the square wave signal, and the square wave signal after adjustment is determined to be the first modulation signal.
That is, after the square wave signal is generated according to the first communication information, whether the amplitude of the square wave signal meets a preset amplitude range can be judged; if the amplitude of the square wave signal meets the preset amplitude range, the square wave signal can be directly determined as a first modulation signal; if the amplitude of the square wave signal does not meet the preset amplitude range, amplitude adjustment can be performed on the square wave signal so that the adjusted square wave signal meets the preset amplitude range, and then the adjusted square wave signal is determined as the first modulation signal.
Further, in some embodiments, the amplitude adjusting the square wave signal and determining the adjusted square wave signal as the first modulation signal may include:
amplitude adjustment is carried out on the square wave signal by utilizing a voltage dividing resistor to obtain an adjusted square wave signal; determining the adjusted square wave signal as the first modulation signal.
Here, the preset amplitude range represents a preset signal amplitude range, and may be used as a measure for determining whether the amplitude of the first modulation signal needs to be adjusted. When the amplitude of the square wave signal is too large and does not meet the preset amplitude range, in order to improve the charging efficiency, the amplitude of the square wave signal can be adjusted by using the voltage dividing resistor, that is, the amplitude of the square wave signal is reduced, so that the adjusted square wave signal meets the preset amplitude range. In the embodiment of the application, the amplitude of the square wave signal can be reduced by dividing the voltage through the voltage dividing resistor, so that the amplitude of the square wave signal can be adjusted, but the embodiment of the application is not limited.
S203: modulating the charging voltage signal by using the first modulation signal to obtain a first modulation voltage signal;
the charging voltage signal is a voltage signal output when the charging device charges the electronic device. Here, the charging voltage signal is modulated by the first modulation signal, so that the charging and the communication of the charging equipment can be simultaneously carried out; that is to say, in the process that the charging equipment charges the electronic equipment, the charging mode and the communication mode can be ensured to work simultaneously.
It should be further noted that, for S203, the modulating the charging voltage signal by using the first modulation signal to obtain a first modulation voltage signal may include:
and superposing the first modulation signal and the charging voltage signal to obtain the first modulation voltage signal.
In the embodiment of the application, the modulation modes are various and can be divided into an analog modulation method and a digital modulation mode; the analog modulation method may include amplitude modulation and frequency modulation, and the digital modulation method may include amplitude keying, frequency shift keying, phase shift keying, quadrature amplitude modulation, and the like. Here, the modulation method may be specifically set according to an actual scene and a user requirement, and the embodiment of the present application is not limited at all.
Specifically, taking amplitude modulation as an example, after the first modulation signal and the charging voltage signal are obtained, the first modulation signal and the charging voltage signal may be subjected to superposition processing, so that modulation of the charging voltage signal by the first modulation signal is also achieved.
It will be appreciated that the charging voltage signal may be provided by the output power module. As shown in fig. 3, the charging device may include an output power module 301, a first resistor R1, and a second resistor R2. Wherein, the output power module can output a charging voltage signal (denoted by Vout). In this hardware circuit, the voltage at the FeedBack (FB) pin is denoted by Verf, and Vout ═ 1+ R1/R2) × Vref; the first modulation signal may be superimposed at the FB pin at this time. According to the internal structure of the output power supply module 301, a dc bias is provided at the FB pin, and then the first modulation signal is superimposed on the FB pin, so that the first communication information can be superimposed on the Vout charging voltage signal, thereby realizing simultaneous charging and communication.
Exemplarily, as shown in fig. 4A, it shows a waveform example of the charging voltage signal (denoted by Vout); here, Vout is a constant voltage value; as shown in fig. 4B, it shows a waveform example of the first modulation signal, here, the first modulation signal is a square wave signal; as such, when the first modulation signal is superimposed at the FB pin, as shown in fig. 4C, it shows a waveform example of the first modulation voltage signal, that is, a waveform example of the modulated charging voltage signal. As can be seen from fig. 4C, the charging voltage signal Vout output after superimposing the first modulation signal has a superimposed first modulation signal; after receiving the signal, the subsequent electronic equipment demodulates the signal to obtain a first communication signal; thus, communication can be performed while charging is performed.
It will also be appreciated that the modulation module may include a modulation capacitor. As shown in fig. 5A, the charging device may further include a first processor 302 and a modulation capacitor C1 based on the hardware circuit shown in fig. 3. The first processor 302 is configured to generate a square wave signal according to the first communication signal, and then superimpose the first modulation signal onto the FB pin through the adjustment capacitor C1, so that the first modulation signal is loaded onto the charging voltage signal Vout; in fig. 5A, the adjustment module may include only the modulation capacitor C1.
Further, to avoid that the charging efficiency is low due to the too large amplitude of the first modulation signal on the charging voltage signal Vout, and to avoid that the electronic device cannot demodulate the first modulation signal due to the too small amplitude and the weak anti-interference capability of the first modulation signal; the first modulated signal may be amplitude adjusted at this time. As shown in fig. 5B, the charging device may further include a third resistor R3 and a fourth resistor R4 based on the hardware circuit shown in fig. 5A. The square wave signal output by the first processor 302 can be amplitude-adjusted according to the third resistor R3 and the fourth resistor R4, so as to achieve amplitude adjustment of the first modulation signal. In fig. 5B, the modulation module may include a modulation capacitor C1, a third resistor R3, and a fourth resistor R4.
In this way, both with the hardware circuit shown in fig. 5A and with the hardware circuit shown in fig. 5B, it is possible to modulate the charging voltage signal with the first modulation signal, and obtain the first modulation voltage signal.
S204: providing a first modulated voltage signal to the electronic device; wherein the first modulated voltage signal includes the first communication content and the charging voltage signal.
Thus, after obtaining the first modulated voltage signal, the first modulated voltage signal may be provided to the electronic device; the electronic device is convenient to demodulate the first modulation voltage signal, so that the electronic device can obtain the first communication information transmitted by the charging device.
In some embodiments, after S204, the method may further include:
receiving a first response signal generated and sent by the electronic equipment according to first communication content in the first modulation voltage signal;
determining a state of the electronic device based on the first response signal; wherein the state of the electronic device comprises at least one of: the in-box state of the electronic device, the electric quantity state of the electronic device and the charging state of the electronic device.
It should be noted that, after the charging device provides the first modulation voltage signal to the electronic device, the electronic device may demodulate the first modulation voltage signal to obtain the first communication information transmitted by the charging device; the electronic device may then send a first reply signal to the charging device; at this time, the charging device can receive the first response signal sent by the electronic device, and can determine the state of the electronic device according to the first response signal.
The state of the electronic equipment can be a box-in state of the electronic equipment and is used for determining whether the electronic equipment is placed in a box; or the power state of the electronic device, and is used for determining the power of the electronic device, determining whether the power of the electronic device is full, and the like; the charging state of the electronic device may also be used to determine whether the electronic device continues to be charged or is charged to an end, and the like. Therefore, the first modulation signal is superposed on the charging voltage signal, so that communication can be simultaneously carried out in the charging process.
Referring to fig. 6, a schematic diagram of a composition structure of a charging device provided in an embodiment of the present application is shown. As shown in fig. 6, the charging device may include a first processor 601, an indication module 602, a power supply module 603, an output power module 604, and a modulation module 605; the first processor 601 serves as a control center of the charging device, is connected with each part of the charging device, and executes various functions and processing data of the charging device to realize overall monitoring of the charging device; the indication module 602 is configured to indicate or display information input by a user or information provided to the user, so as to determine various states of the charging device; the power supply module 603 is used for supplying power to the first processor 601, and can also charge the charging device by an external power supply; the output power module 604 is used for the charging device to provide a charging voltage signal to the electronic device, and the output power module 604 may be a Direct Current-Direct Current (DC-DC) conversion module; the modulation module 605 is configured to modulate the first communication information to be transmitted into the output power module to obtain a first modulation voltage signal; and then the electronic equipment analyzes the first modulation voltage signal after receiving the first modulation voltage signal, so that the charging and the communication can be carried out simultaneously. That is, a first modulation signal (such as a square wave signal) is superimposed on the charging voltage signal, and specifically, as shown in fig. 3, the first modulation signal may be superimposed at the FB pin of the output power module, so that the signal is loaded into the output power module, and charging and communication can be performed simultaneously.
The embodiment provides a communication method applied to charging equipment. Acquiring first communication information; the first communication information comprises first communication content transmitted to the electronic equipment by the charging equipment; coding the first communication information to obtain a first modulation signal; modulating the charging voltage signal by using a first modulation signal to obtain a first modulation voltage signal; providing a first modulated voltage signal to the electronic device; therefore, the first modulation voltage signal comprises the first communication content and the charging voltage signal, and the charging voltage signal is a voltage signal provided by the charging equipment when the charging equipment charges the electronic equipment, so that the charging and communication between the charging equipment and the electronic equipment can work simultaneously; and the communication between the charging equipment and the electronic equipment can be realized without adding extra devices, so that the cost can be reduced, the reliability of the product can be improved, and the utilization rate of the equipment is improved.
Further, in some embodiments, referring to fig. 7, a detailed flowchart of a communication method provided in the embodiments of the present application is shown. As shown in fig. 7, when applied to a charging device, the detailed process may include:
s701: detecting whether the charging equipment is opened;
s702: when the charging equipment is in an uncapped state, controlling the charging equipment to output a charging voltage signal;
it should be noted that, for whether the electronic device is loaded into the box, that is, whether the electronic device is inside the charging device is determined, it is first necessary to control the charging device to output a charging voltage signal. Generally speaking, when the charging device is detected to be in the uncapped state, the charging device may be controlled to output a charging voltage signal at this time to charge the electronic device; however, other processing manners are also possible, such as controlling the charging device to output a charging voltage signal to charge the electronic device when the distance between the electronic device and the charging device satisfies a preset distance threshold; the embodiments of the present application are not particularly limited.
S703: acquiring first communication information;
s704: coding the first communication information to obtain a first modulation signal;
it should be noted that the first modulation signal and the output charging voltage signal may be output simultaneously, or the first modulation signal may be output first, and then the charging voltage signal is output; or the charging voltage signal is output first, and then the first modulation signal is output; that is, both steps S701 to S702 and steps S703 to S704 may be output in parallel or may be output in series to obtain the charging voltage signal and the first modulation signal.
S705: modulating the charging voltage signal by using a first modulation signal to obtain a first modulation voltage signal;
s706: providing the first modulated voltage signal to the electronic device;
it should be noted that, after the charging voltage signal and the first modulation signal are acquired, the charging voltage signal may be modulated by the first modulation signal, so as to obtain a first modulation voltage signal. Specifically, the first modulation signal and the charging voltage signal may be superimposed, so that the first modulation signal modulates the charging voltage signal, and then the modulated first modulation voltage signal is sent to the electronic device, so that the subsequent electronic device demodulates the signal to obtain the first communication information transmitted by the charging device, and the electronic device also sends the first response signal to the charging device.
S707: receiving a first response signal generated and sent by the electronic equipment according to first communication content in the first modulation voltage signal;
s708: determining a state of the electronic device based on the first reply signal.
Here, the charging device may determine a state of the electronic device, such as a box-in state of the electronic device, a power state of the electronic device, a charging state of the electronic device, and the like, according to the first reply signal transmitted by the electronic device after receiving the first reply signal.
In addition, if it is determined that the electronic equipment is not loaded into the box, the charging equipment is empty at this time, and the charging equipment can output charging voltage signals at intervals according to a preset period, so that power consumption can be saved; when it is determined that the electronic device is placed in the box, the electronic device is placed in the charging device, and the charging device needs to output a charging voltage signal all the time, so that the electronic device is charged on one hand, and interactive communication can be performed between the electronic device and the charging device on the other hand.
The embodiment provides a communication method applied to charging equipment. The specific implementation of the foregoing embodiment is explained in detail through this embodiment, and it can be seen that the charging and communication between the charging device and the electronic device are implemented simultaneously; and the communication between the charging equipment and the electronic equipment can be realized without adding extra devices, so that the cost can be reduced, the reliability of the product can be improved, and the utilization rate of the equipment is improved.
In another embodiment of the present application, referring to fig. 8, a flowchart of another communication method provided in the embodiment of the present application is shown. As shown in fig. 8, the method may include:
s801: receiving a first modulation voltage signal provided by a charging device, and charging based on the first modulation voltage signal;
it should be noted that the communication method is applied to electronic equipment. Wherein, the electronic device (such as the TWS earphone) can be built in the charging device (such as a charging box configured by the TWS earphone), and then the charging device charges the electronic device.
In this way, in the process that the charging equipment charges the electronic equipment, when the charging equipment sends the first communication information to be transmitted to the electronic equipment, the first communication information and the charging voltage signal are modulated on the charging equipment side at this time to obtain a first modulated voltage signal, and then the first modulated voltage signal is sent to the electronic equipment by the charging equipment; therefore, on the electronic equipment side, the first modulation voltage signal can be received to analyze the first communication information, and on the other hand, charging can be performed according to the first modulation voltage signal.
S802: demodulating the first modulation voltage signal to obtain a first demodulation signal;
it should be noted that demodulation is a process of recovering information from a modulated signal carrying information. In various information transmission or processing systems, a transmitting end (such as a charging device) modulates a carrier wave with information to be transmitted to generate a signal carrying the information; the receiving end (e.g., electronic device) then needs to recover the carried information, which is demodulation.
In particular, demodulation is the inverse of modulation. The modulation method is different, and the demodulation method is also different. The demodulation method can be classified into sine wave demodulation (also referred to as continuous wave demodulation) and pulse wave demodulation, corresponding to the classification of the modulation method. The sine wave demodulation can be further divided into amplitude demodulation, frequency demodulation, phase demodulation, and the like, and some variant demodulation modes, such as single sideband signal demodulation, vestigial sideband signal demodulation, and the like. Also, pulse wave demodulation can be classified into pulse amplitude demodulation, pulse phase demodulation, pulse width demodulation, pulse code demodulation, and the like. Here, the demodulation method may be specifically set according to an actual scene and a user requirement, and the embodiment of the present application is not limited at all.
In some embodiments, for S802, the demodulating the first modulated voltage signal to obtain a first demodulated signal may include:
analyzing the first modulation voltage signal through a blocking capacitor device to obtain a square wave signal;
determining the square wave signal as the first demodulated signal.
It should be noted that the square wave signal can be resolved from the first modulation voltage signal by using the demodulation module. The demodulation module may include a demodulation capacitor (alternatively referred to as a dc blocking capacitor), which is mainly used to isolate dc, and may resolve the modulated square wave signal from the first modulation voltage signal.
It will be appreciated that the modulation module may include a modulation capacitor. As shown in fig. 9A, the electronic device may include a charging module 901, a second processor 902, and a demodulation capacitor C2. On the electronic device side, the received first modulation voltage signal is denoted by Vcharger, and the waveform of the first modulation voltage signal is shown in fig. 4C; here, the first modulated voltage signal enters the charging module 901 to charge the battery in the electronic device, and passes through the demodulation capacitor C2 to resolve a first demodulated signal (i.e., a square wave signal), the waveform of which is shown in fig. 10A; the resolved square wave signal is then sent to the second processor 902 so that the second processor 902 can identify the first communication information sent by the charging device.
Further, after the square wave signal is analyzed, in order to avoid the amplitude of the square wave signal being too small or too large, the amplitude of the square wave signal can be adjusted. Thus, in some embodiments, the determining the square wave signal as the first demodulated signal may include:
judging whether the amplitude of the square wave signal meets a preset amplitude range or not;
if the judgment result is yes, determining the square wave signal as the first demodulation signal;
if the judgment result is negative, amplitude adjustment is carried out on the square wave signal, and the square wave signal after adjustment is determined to be the first demodulation signal.
That is, after the square wave signal is analyzed, whether the amplitude of the square wave signal meets the preset amplitude range can be further judged; if the amplitude of the square wave signal meets the preset amplitude range, the square wave signal can be directly determined as a first demodulation signal; if the amplitude of the square wave signal does not satisfy the preset amplitude range, amplitude adjustment may be performed on the square wave signal so that the adjusted square wave signal satisfies the preset amplitude range, and then the adjusted square wave signal is determined as the first demodulation signal.
Further, in some embodiments, the amplitude adjusting the square wave signal and determining the adjusted square wave signal as the first demodulation signal may include:
utilizing an amplifier to carry out amplitude adjustment on the square wave signal so as to obtain an adjusted square wave signal; determining the adjusted square wave signal as the first demodulation signal.
Here, the preset amplitude range represents a preset signal amplitude range, and may be used as a measure for determining whether the amplitude of the first demodulation signal needs to be adjusted. When the amplitude of the square wave signal is too small and does not satisfy the preset amplitude range, in order to improve the recognition degree of the electronic device on the demodulated signal, amplitude adjustment may be performed on the square wave signal, for example, the amplitude of the square wave signal is increased, so that the adjusted square wave signal satisfies the preset amplitude range. In the embodiment of the present application, the amplitude of the square wave signal may be increased by an amplifier, so that the amplitude adjustment of the square wave signal may be achieved, but the embodiment of the present application is not limited.
It is understood that the amplitude of the square wave signal may be adjusted at this time in order to avoid the electronic device from being unable to recognize the demodulated signal due to the too small amplitude of the square wave signal. As shown in fig. 9B, the electronic device may further include an amplifier 903 on the basis of the hardware circuit shown in fig. 9A; after the square wave signal is obtained through the demodulation capacitor C1, the square wave signal may be further amplitude-adjusted according to the amplifier 903 to increase the amplitude of the square wave signal, and then sent to the second processor 902. Here, as shown in fig. 10B, it shows an example of a waveform of an amplitude-amplified square wave signal, and the amplified signal is helpful for information identification, that is, the first communication information transmitted by the charging device can be identified more conveniently and accurately.
S803: and decoding the first demodulation signal to obtain first communication information.
It should be noted that, after obtaining the first demodulated signal, the first demodulated signal may be sent to the second processor; the second processor then performs correlation processing, such as decoding, on the first demodulated signal, so as to identify the first communication information transmitted by the charging device.
In some embodiments, after S803, the method may further include:
generating a first response signal based on the first communication information;
transmitting the first response signal to the charging device.
It should be noted that, after the electronic device obtains the first communication information, the electronic device may further generate a first response signal and send the first response signal to the charging device, so that the charging device can know a relevant state of the electronic device, such as a box entering state of the electronic device, to determine whether the electronic device enters the box; or the electric quantity state of the electronic equipment to determine the electric quantity of the electronic equipment and whether the electric quantity is full; or the charging state of the electronic equipment to determine whether the electronic equipment continues to be charged or is charged, and the like, so that the communication between the charging equipment and the electronic equipment can be better realized.
Referring to fig. 11, a schematic diagram of a composition structure of an electronic device provided in an embodiment of the present application is shown. As shown in fig. 11, the electronic device may include a second processor 1101, a parsing module 1102, a power module 1103, and a sound emitting module 1104. The second processor 1101 is used as a control center of the electronic device, is connected to each part of the electronic device, and executes various functions and processes data of the electronic device, so as to realize overall monitoring of the electronic device; the second processor 1101 may further include a bluetooth chip, and may be configured to perform bluetooth data transmission, etc.; the analyzing module 1102 is configured to perform signal analysis to determine first communication information transmitted by the charging device; the power module 1103 is configured to provide power to the second processor 1101, and on the other hand, the power module 1103 may further include a charging module capable of charging an electronic device; the sound generation module 1104 may include a speaker that can be used to output sound signals. Thus, after the first modulation voltage signal carrying the first communication information to be transmitted is received by the power module 1103, the first modulation voltage signal can be demodulated by the parsing module 1102, and then the first modulation voltage signal is subjected to related processing by the second processor 1101 to obtain the first communication information; and the charging voltage signal in the first modulation voltage signal can charge the electronic equipment, so that the charging and the communication can be carried out simultaneously. That is to say, the modulation signal carried in the process of charging the electronic device by the charging device is demodulated, so that charging and communication can be realized at the same time.
The embodiment provides a communication method applied to electronic equipment. The method comprises the steps that a first modulation voltage signal provided by charging equipment is received, and charging is carried out based on the first modulation voltage signal; demodulating the first modulation voltage signal to obtain a first demodulation signal; decoding the first demodulation signal to obtain first communication information; therefore, the charging and communication between the charging equipment and the electronic equipment can be realized simultaneously; and the communication between the charging equipment and the electronic equipment (such as detecting whether the electronic equipment enters a box or not, the charging state of the electronic equipment and the like) can be realized without adding extra devices, so that the cost can be reduced, the reliability of the product can be improved, and the utilization rate of the equipment is improved.
Further, in addition to the charging device encoding and modulating the communication information, the embodiment of the present application may also perform signal encoding and modulating processing on the communication by the electronic device, and then transmit the obtained second modulation voltage signal to the charging device, and perform signal demodulation by the charging device, which will be described in detail below.
In another embodiment of the present application, refer to fig. 12, which shows a flowchart of another communication method provided in the embodiment of the present application. As shown in fig. 12, applied to an electronic device, the method may include:
s1201: acquiring second communication information; the second communication information comprises second communication content transmitted to the charging equipment by the electronic equipment;
s1202: coding the second communication information to obtain a second modulation signal;
s1203: modulating the charging voltage signal received by the electronic equipment by using the second modulation signal to obtain a second modulation voltage signal;
s1204: feeding back the second modulation voltage signal to the charging device, wherein the second modulation voltage signal includes the second communication content and the charging voltage signal.
It should be noted that the communication method is still applied to the electronic device. When the electronic device sends the second communication information to be transmitted to the charging device, the electronic device can encode and modulate the second communication information, then send the obtained second modulation voltage signal to the charging device, and then the charging device demodulates the second modulation voltage signal.
It should be noted that the execution subject of steps S1201 to S1204 is an electronic device, and the execution subject of steps S201 to S204 is a charging device; however, the embodiments in steps S1201 to S1204 are similar to those in steps S201 to S204, and will not be described in detail here.
Further, before S1203, the method may further include:
and when the charging equipment is in an uncapped state, receiving a charging voltage signal sent by the charging equipment.
It should be noted that, when it is detected that the charging device is in the open-cover state, the charging device may be controlled to output the charging voltage signal at this time, so that the electronic device may receive the charging voltage signal output by the charging device and perform charging according to the charging voltage signal.
In this way, after the charging voltage signal and the second modulation signal are acquired, the charging voltage signal may be modulated with the first modulation signal, thereby obtaining the second modulation voltage signal. Specifically, the second modulation signal and the charging voltage signal may be superimposed, so that the second modulation signal modulates the charging voltage signal, and then the second modulation voltage signal obtained after modulation is sent to the charging device, so that the subsequent charging device demodulates the second modulation voltage signal to obtain the second communication information transmitted by the electronic device, and the charging device also sends a second response signal to the electronic device.
In some embodiments, after S1204, the method may further include:
receiving a second response signal sent by the charging equipment;
determining a state of the charging device based on the second answer signal; wherein the state of the charging device includes at least one of: the cover opening state of the charging device, the charging state of the charging device and the box entering state of the electronic device.
It should be noted that, after the electronic device provides the second modulation voltage signal to the charging device, the charging device may demodulate the second modulation voltage signal to obtain the second communication information transmitted by the electronic device; the charging device may then send a second reply signal to the electronic device; at this time, the electronic device can receive the second response signal sent by the charging device, and then can determine the state of the charging device according to the second response signal.
Further, when the charging device does not output the charging voltage signal, the electric quantity of the electronic device is fully charged at this time, or the charging device is in a no-electric quantity state; at this time, the electronic device may directly feed back the second modulation signal as the second modulation voltage signal to the charging device after obtaining the second modulation signal. Thus, in some embodiments, after S1202, the method may further include:
determining the second modulation signal as a second modulation voltage signal when the charging device is not outputting a charging voltage signal;
and feeding back the second modulation voltage signal to the charging equipment.
It should be noted that, when the charging device does not output the charging voltage signal, the charging voltage signal (such as Vcharger signal) received by the electronic device at this time has no power; after the electronic device obtains a second modulation signal according to the second communication information, the second modulation signal can be modulated to the Vcharger end through the modulation capacitor and fed back to the charging device; then, the charging device performs demodulation processing, and the charging device can obtain the second communication information sent by the electronic device, so that the information on the electronic device side can be transmitted to the charging device side.
It should be further noted that, the electronic device may first determine whether the charging device outputs the charging voltage signal, so that, when the charging device outputs the charging voltage signal, steps S1203 and S1204 may be executed, that is, the charging voltage signal received by the electronic device is modulated by using the second modulation signal to obtain a second modulation voltage signal, and then the second modulation voltage signal is fed back to the charging device; when the charging device does not output the charging voltage signal, the second modulation signal can be directly determined to be the second modulation voltage signal, and then the second modulation voltage signal is fed back to the charging device.
That is, the second modulation signal may or may not have a dc level on the Vcharger signal when the electronic device provides the modulation signal. Specifically, taking the hardware circuit shown in fig. 9A or 9B as an example, the demodulation capacitor C2 can be regarded as a modulation capacitor at this time. When the charging device does not output a charging voltage signal, no power is applied to the Vcharger signal at this time, that is, no direct current level is applied to the Vcharger signal; at this time, the waveforms of the second modulation signal before modulating the capacitor and the second modulation voltage signal after modulating the capacitor are the same, as shown in fig. 13A; when the charging device outputs a charging voltage signal, the Vcharger signal is electrified at the moment, namely the Vcharger signal has a direct current level; at this time, the waveforms of the second modulation signal before modulating the capacitor and the second modulation voltage signal after modulating the capacitor are different, the second modulation signal before modulating the capacitor is a square wave signal, and the second modulation voltage signal after modulating the capacitor is obtained by superimposing the modulation signal on a direct current level, as shown in fig. 13B; in this way, after the second modulated voltage signal is obtained, it can be fed back to the charging device and then interpreted by the charging device.
The embodiment provides a communication method applied to electronic equipment. The specific implementation of the foregoing embodiment is explained in detail through this embodiment, and it can be seen that, since the second modulation voltage signal is obtained by modulating the charging voltage signal by using the second modulation signal, and the charging voltage signal represents a voltage signal provided by the charging device when the charging device charges the electronic device, the charging and communication between the charging device and the electronic device can be simultaneously performed; and the communication between the charging equipment and the electronic equipment can be realized without adding extra devices, so that the cost can be reduced, the reliability of the product can be improved, and the utilization rate of the equipment is improved.
In yet another embodiment of the present application, referring to fig. 14, a flowchart of another communication method provided in the embodiment of the present application is shown. As shown in fig. 14, applying the charging device, the method may include:
s1401: receiving a second modulation voltage signal sent by the electronic equipment;
s1402: demodulating the second modulation voltage signal to obtain a second demodulation signal;
s1403: decoding the second demodulation signal to obtain second communication information; the second communication information comprises second communication content transmitted to the charging equipment by the electronic equipment.
It should be noted that the communication method is applied to the charging device. Here, when the electronic device sends the second communication information to be transmitted to the charging device, the electronic device encodes and modulates the second communication information at this time, and then sends the obtained second modulated voltage signal to the charging device; after the charging device receives the second modulated voltage signal, it may be signal demodulated by the charging device.
It is to be noted that the execution subject of steps S1401 to S1403 is a charging device, and the execution subject of steps S801 to S803 is an electronic device; however, the embodiments of steps S1401 to S1403 are similar to those of steps S801 to S803, and are not described in detail here.
In this way, after the electronic device acquires the second communication information, the electronic device may perform encoding and modulation processing on the second communication information to obtain a second modulation voltage signal; the electronic device then transmits the second modulated voltage signal to the charging device. After the charging device receives the second modulation voltage signal sent by the electronic device, the second modulation voltage signal can be demodulated to obtain a second demodulation signal; then, decoding the second demodulation signal to obtain second communication information; thus, simultaneous charging and communication, namely, charging and communication are realized.
Further, after S1403, the method may further include:
generating a second response signal based on the second communication information;
and sending the second response signal to the electronic equipment.
It should be noted that, after the charging device obtains the second communication information, the charging device may further generate a second response signal and send the second response signal to the electronic device, so that the electronic device can know a related state of the charging device, such as a cover-opening state of the charging device, to determine whether the charging device has been opened; or the charging state of the charging equipment so as to determine the charging start or the charging end of the charging equipment and the like; or the electronic equipment enters the box state to determine whether the charging equipment already knows that the electronic equipment enters the box or not, so that the communication between the charging equipment and the electronic equipment can be better realized.
The embodiment provides a communication method applied to charging equipment. The specific implementation of the foregoing embodiment is explained in detail through this embodiment, and it can be seen that the second communication information is obtained by receiving and demodulating the second modulation voltage signal provided by the electronic device, thereby implementing simultaneous operations of charging and communication between the charging device and the electronic device; and the communication between the charging equipment and the electronic equipment can be realized without adding extra devices, so that the cost can be reduced, the reliability of the product can be improved, and the utilization rate of the equipment is improved.
Based on the same inventive concept of the foregoing embodiments, refer to fig. 15, which shows a detailed flowchart of another communication method provided in the embodiments of the present application. As shown in fig. 15, the detailed flow may include:
s1501: the charging equipment is in an uncovering state;
s1502: the charging equipment outputs a charging voltage signal to the electronic equipment;
s1503: a Vcharger signal in the electronic equipment is electrified;
s1504: the electronic equipment acquires second communication information;
s1505: the electronic equipment encodes the second communication information to obtain a second modulation signal;
s1506: modulating the charging voltage signal by using a second modulation signal to obtain a second modulation voltage signal;
s1507: the electronic equipment feeds the second modulation voltage signal back to the charging equipment;
it should be noted that, when the charging device has an output charging voltage signal, at this time, a charging voltage signal (e.g., Vcharger signal) received by the electronic device has a charge; after the electronic device obtains the second modulation signal according to the second communication information, the second modulation signal can be modulated to the Vcharger end through the modulation capacitor, and at this time, the waveforms of the second modulation signal before the modulation capacitor and the second modulation voltage signal after the modulation capacitor are different, that is, the second modulation voltage signal after the modulation capacitor is obtained by superimposing the second modulation signal on the direct current level and then feeding back the second modulation signal to the charging device.
It should be further noted that, when the charging device does not output the charging voltage signal, the charging voltage signal (such as Vcharger signal) received by the electronic device at this time has no power; after the electronic device obtains the second modulation signal according to the second communication information, the second modulation signal may be modulated to the Vcharger terminal through the modulation capacitor, and at this time, the waveforms of the second modulation signal before the modulation capacitor and the second modulation voltage signal after the modulation capacitor are the same, that is, the second modulation signal may be determined as the second modulation voltage signal, and then the second modulation voltage signal is fed back to the charging device.
S1508: the charging equipment demodulates the second modulation voltage signal to obtain a second demodulation signal;
s1509: the charging equipment decodes the second demodulation signal to obtain second communication information;
s1510: the charging equipment generates a second response signal based on the second communication information;
s1511: the charging equipment sends the second response signal to the electronic equipment;
s1512: the electronic device determines the state of the charging device based on the second response signal.
Here, the state of the charging device includes at least one of: the cover opening state of the charging device, the charging state of the charging device and the box entering state of the electronic device. That is, after the electronic device provides the second modulated voltage signal to the charging device, the charging device may demodulate the second modulated voltage signal to obtain the second communication information transmitted by the electronic device; the charging device may then send a second reply signal to the electronic device; at this time, after receiving the second response signal sent by the charging device, the electronic device may determine the state of the charging device according to the second response signal.
In the embodiment of the application, when the charging equipment is in an uncapped state, a POGO PIN of the charging equipment can output a charging voltage signal; when the electronic equipment is placed in the charging equipment, if the electronic equipment detects a charging voltage signal, the electronic equipment can send a modulation signal to the charging equipment at this time, and after the charging equipment receives the modulation signal and carries out demodulation processing, whether the electronic equipment is placed in a box or not can be judged; therefore, the scheme of the embodiment of the application not only realizes the simultaneous charging and communication, avoids the time waste caused by the switching between the charging and the communication, and can obviously reduce the time; in addition, according to the scheme of the embodiment of the application, additional devices such as a change-over switch, an infrared proximity sensor, a touch switch or a Hall device do not need to be added, and communication between the charging equipment and the electronic equipment (such as detecting whether the electronic equipment is put into a box or not, the charging state of the electronic equipment and the like) can be realized only by adding the capacitor; particularly, for the box entering detection function, an additional box entering detection circuit needs to be added in the existing scheme (particularly, the infrared proximity sensor scheme is expensive), so that the cost is increased more, and the scheme of the embodiment of the application does not need the additional box entering detection circuit, so that the cost is obviously reduced; in addition, the scheme of the embodiment of the application does not need to change the shape of the POGO PIN, and the structural design complexity is low, so that the size and the structural complexity of the product are obviously reduced; the scheme of this application embodiment compares with the switch scheme of dabbing, can also promote the reliability of detecting the function and the shell protection reliability of box that charges to still show the reliability that has promoted the product.
The embodiment provides a communication method, which details the specific implementation of the foregoing embodiment, and it can be seen that the charging and communication between the charging device and the electronic device work simultaneously; and the communication between the charging equipment and the electronic equipment (such as detecting whether the electronic equipment enters a box or not, the charging state of the electronic equipment and the like) can be realized without adding extra devices, so that the cost can be reduced, the reliability of the product can be improved, and the utilization rate of the equipment is improved.
Based on the same inventive concept of the foregoing embodiment, referring to fig. 16, which shows a composition of a charging apparatus 160 provided in an embodiment of the present application, the charging apparatus 160 may include a first obtaining unit 1601, a first encoding unit 1602, a first modulating unit 1603, and a first transmitting unit 1604; wherein the content of the first and second substances,
a first obtaining unit 1601 configured to obtain first communication information; the first communication information comprises first communication content transmitted to the electronic equipment by the charging equipment;
a first encoding unit 1602, configured to encode the first communication information to obtain a first modulation signal;
a first modulating unit 1603 configured to modulate the charging voltage signal with the first modulating signal to obtain a first modulating voltage signal; the charging voltage signal is a voltage signal provided by the charging equipment when the charging equipment charges the electronic equipment;
a first transmitting unit 1604 configured to provide the first modulated voltage signal to an electronic device, wherein the first modulated voltage signal includes the first communication content and the charging voltage signal.
In the above scheme, referring to fig. 16, the charging device 160 may further include a first receiving unit 1605 configured to receive a first response signal generated and transmitted by the electronic device according to the first communication content in the first modulation voltage signal; and determining a state of the electronic device based on the first response signal; wherein the state of the electronic device includes at least one of: the in-box state of the electronic device, the electric quantity state of the electronic device and the charging state of the electronic device.
In the above scheme, referring to fig. 16, the charging device 160 may further include a first demodulation unit 1606 and a first decoding unit 1607; wherein the content of the first and second substances,
a first receiving unit 1605, further configured to receive a second modulated voltage signal transmitted by the electronic device;
a first demodulation unit 1606 configured to demodulate the second modulation voltage signal to obtain a second demodulation signal;
a first decoding unit 1607 configured to decode the second demodulated signal to obtain second communication information; the second communication information comprises second communication content transmitted to the charging device by the electronic device.
It is understood that in this embodiment, a "unit" may be a part of a circuit, a part of a processor, a part of a program or software, etc., and may also be a module, or may also be non-modular. Moreover, each component in the embodiment may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware or a form of a software functional module.
Based on the understanding that the technical solution of the present embodiment essentially or a part contributing to the prior art, or all or part of the technical solution may be embodied in the form of a software product stored in a storage medium, and include several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor (processor) to execute all or part of the steps of the method of the present embodiment. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
Accordingly, the present embodiment provides a computer storage medium applied to the charging device 160, and the computer storage medium stores a communication program, and the communication program implements the method of any one of the foregoing embodiments when executed by the first processor.
Based on the above-mentioned composition of the charging device 160 and the computer storage medium, referring to fig. 17, it shows a specific hardware structure of the charging device 160 provided in the embodiment of the present application, which may include: a first communication interface 1701, a first memory 1702, and a first processor 1703; the various components are coupled together by a first bus system 1704. It is understood that a first bus system 1704 is used to enable communications among the components for connection. The first bus system 1704 includes a power bus, a control bus, and a status signal bus in addition to the data bus. For clarity of illustration, however, the various buses are labeled in fig. 17 as the first bus system 1704. A first communication interface 1701 for receiving and transmitting signals during information transmission and reception with an electronic device;
a first memory 1702 for storing a computer program capable of running on the first processor 1703;
a first processor 1703, configured to execute, when running the computer program:
acquiring first communication information; the first communication information comprises first communication content transmitted to the electronic equipment by the charging equipment;
coding the first communication information to obtain a first modulation signal;
modulating the charging voltage signal by using the first modulation signal to obtain a first modulation voltage signal; the charging voltage signal is a voltage signal output by the charging equipment when the charging equipment charges the electronic equipment;
providing the first modulated voltage signal to the electronic device, wherein the first modulated voltage signal includes the first communication content and the charging voltage signal.
It will be appreciated that the first memory 1702 in the embodiments of the subject application can be either volatile memory or nonvolatile memory, or both volatile and nonvolatile memory. The non-volatile Memory may be a Read-Only Memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an Electrically Erasable PROM (EEPROM), or a flash Memory. Volatile Memory can be Random Access Memory (RAM), which acts as external cache Memory. By way of illustration and not limitation, many forms of RAM are available, such as Static random access memory (Static RAM, SRAM), Dynamic Random Access Memory (DRAM), Synchronous Dynamic random access memory (Synchronous DRAM, SDRAM), Double Data Rate Synchronous Dynamic random access memory (ddr Data Rate SDRAM, ddr SDRAM), Enhanced Synchronous SDRAM (ESDRAM), Synchlink DRAM (SLDRAM), and Direct Rambus RAM (DRRAM). The first memory 1702 of the systems and methods described herein is intended to comprise, without being limited to, these and any other suitable types of memory.
And the first processor 1703 may be an integrated circuit chip having signal processing capability. In implementation, the steps of the method may be performed by integrated logic circuits of hardware or instructions in the form of software in the first processor 1703. The first Processor 1703 may be a general-purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, or discrete hardware components. The various methods, steps, and logic blocks disclosed in the embodiments of the present application may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The method disclosed in connection with the foregoing embodiments may be directly implemented by a hardware decoding processor, or may be implemented by a combination of hardware and software modules in the decoding processor. The software module may be located in ram, flash memory, rom, prom, or eprom, registers, etc. storage media as is well known in the art. The storage medium is located in the first memory 1702, and the first processor 1703 reads the information in the first memory 1702, and completes the steps of the method in combination with the hardware thereof.
It is to be understood that the embodiments described herein may be implemented in hardware, software, firmware, middleware, microcode, or any combination thereof. For a hardware implementation, the Processing units may be implemented within 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), general purpose processors, controllers, micro-controllers, microprocessors, other electronic units configured to perform the functions described herein, or a combination thereof. For a software implementation, the techniques described herein may be implemented with modules (e.g., procedures, functions, and so on) that perform the functions described herein. The software codes may be stored in a memory and executed by a processor. The memory may be implemented within the processor or external to the processor.
Optionally, as another embodiment, the first processor 1703 is further configured to execute the method of any one of the previous embodiments when running the computer program.
The present embodiment provides a charging apparatus, which may include a first acquisition unit, a first encoding unit, a first modulation unit, and a first transmission unit. Therefore, the first modulation voltage signal is obtained by modulating the charging voltage signal by using the first modulation signal, and the charging voltage signal represents the voltage signal provided by the charging equipment when the charging equipment charges the electronic equipment, so that the charging and communication between the charging equipment and the electronic equipment can work simultaneously; and the communication between the charging equipment and the electronic equipment can be realized without adding extra devices, so that the cost can be reduced, the reliability of the product can be improved, and the utilization rate of the equipment is improved.
Based on the same inventive concept of the foregoing embodiment, refer to fig. 18, which shows a schematic structural diagram of an electronic device 180 provided in an embodiment of the present application. As shown in fig. 18, the electronic device 180 may include: second receiving section 1801, second demodulation section 1802, and second decoding section 1803, wherein,
a second receiving unit 1801, configured to receive a first modulated voltage signal provided by a charging device, and perform charging based on the first modulated voltage signal;
a second demodulation unit 1802 configured to demodulate the first modulation voltage signal to obtain a first demodulated signal;
a second decoding unit 1803, configured to decode the first demodulated signal to obtain the first communication information.
In the foregoing scheme, referring to fig. 18, the electronic device 180 may further include a second obtaining unit 1804, a second encoding unit 1805, a second modulating unit 1806, and a second sending unit 1807; wherein the content of the first and second substances,
a second obtaining unit 1804 configured to obtain the second communication information; the second communication information comprises second communication content transmitted to the charging equipment by the electronic equipment;
a second encoding unit 1805, configured to encode the second communication information to obtain a second modulation signal;
a second modulating unit 1806, configured to modulate the charging voltage signal received by the electronic device with the second modulating signal, so as to obtain a second modulating voltage signal;
a second sending unit 1807, further configured to feed back a second modulated voltage signal to the charging device, where the second modulated voltage signal includes the second communication content and the charging voltage signal.
In the foregoing solution, the second receiving unit 1801 is further configured to receive a second response signal generated and sent by the charging device according to the second communication content in the second modulation voltage signal; and determining a state of the charging device based on the second answer signal; wherein the state of the charging device comprises at least one of: the cover opening state of the charging device, the charging state of the charging device and the box entering state of the electronic device.
It is understood that in this embodiment, a "unit" may be a part of a circuit, a part of a processor, a part of a program or software, etc., and may also be a module, or may also be non-modular. Moreover, each component in the embodiment may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware or a form of a software functional module.
The integrated unit, if implemented in the form of a software functional module and not sold or used as a stand-alone product, may be stored in a computer readable storage medium. With this understanding, the present embodiment provides another computer storage medium applied to the electronic device 180, and the computer storage medium stores a communication program, which implements the method of any one of the foregoing embodiments when executed by the second processor.
Based on the above-mentioned composition of the electronic device 180 and the computer storage medium, referring to fig. 19, it shows a specific hardware structure of the electronic device 180 provided in the embodiment of the present application, which may include: a second communication interface 1901, a second memory 1902, and a second processor 1903; the various components are coupled together by a second bus system 1904. It is understood that the second bus system 1904 is used to enable connection communications between these components. The second bus system 1904 includes a power bus, a control bus, and a status signal bus in addition to the data bus. But for clarity of illustration, the various buses are labeled as the second bus system 1904 in figure 19. The second communication interface 1901 is configured to receive and transmit signals in the process of receiving and transmitting information with the charging device;
a second memory 1902 for storing a computer program operable on the second processor 1903;
a second processor 1903, configured to, when running the computer program, perform:
receiving a first modulation voltage signal provided by a charging device, and charging based on the first modulation voltage signal;
demodulating the first modulation voltage signal to obtain a first demodulation signal;
and decoding the first demodulation signal to obtain first communication information.
Optionally, as another embodiment, the second processor 1903 is further configured to execute the method of any of the previous embodiments when running the computer program.
It is to be appreciated that the second memory 1902 has hardware functionality similar to that of the first memory 1702, and that the second processor 1903 has hardware functionality similar to that of the first processor 1703; and will not be described in detail herein.
The present embodiment provides an electronic device that may include a first receiving unit, a first demodulating unit, and a first decoding unit. Therefore, the first communication information is obtained by receiving and demodulating the first modulation voltage signal provided by the charging equipment, so that the charging and communication between the charging equipment and the electronic equipment can work simultaneously; and the communication between the charging equipment and the electronic equipment can be realized without adding extra devices, so that the cost can be reduced, the reliability of the product can be improved, and the utilization rate of the equipment is improved.
Referring to fig. 20, a schematic diagram of a component structure of a system provided in an embodiment of the present application is shown. As shown in fig. 20, the system 200 may include the charging device 160 according to any one of the previous embodiments and the electronic device 180 according to any one of the previous embodiments. Thus, the system of the embodiment of the application can realize the simultaneous work of charging and communication between the charging device 160 and the electronic device 180; and the communication between the charging equipment and the electronic equipment can be realized without adding extra devices, so that the cost can be reduced, the reliability of the product can be improved, and the utilization rate of the equipment is improved.
It should be noted that, in the present application, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The above-mentioned serial numbers of the embodiments of the present application are merely for description and do not represent the merits of the embodiments.
The methods disclosed in the several method embodiments provided in the present application may be combined arbitrarily without conflict to obtain new method embodiments.
Features disclosed in several of the product embodiments provided in the present application may be combined in any combination to yield new product embodiments without conflict.
The features disclosed in the several method or apparatus embodiments provided in the present application may be combined arbitrarily, without conflict, to arrive at new method embodiments or apparatus embodiments.
The above description is only for the specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present application, and shall be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (9)

1. A communication method is applied to a charging device, and the method comprises the following steps:
acquiring first communication information; the first communication information comprises first communication content transmitted to the electronic equipment by the charging equipment;
coding the first communication information to obtain a first modulation signal;
modulating the charging voltage signal by using the first modulation signal to obtain a first modulation voltage signal; the charging voltage signal is a voltage signal output by the charging equipment when the charging equipment charges the electronic equipment;
providing the first modulated voltage signal to the electronic device, wherein the first modulated voltage signal includes the first communication content and the charging voltage signal.
2. The method of claim 1, wherein after said providing the first modulated voltage signal to the electronic device, the method further comprises:
receiving a first response signal generated and sent by the electronic equipment according to first communication content in the first modulation voltage signal;
determining a state of the electronic device based on the first response signal; wherein the state of the electronic device comprises at least one of: the in-box state of the electronic device, the electric quantity state of the electronic device and the charging state of the electronic device.
3. The method according to claim 1 or 2, characterized in that the method further comprises:
receiving a second modulation voltage signal sent by the electronic equipment;
demodulating the second modulation voltage signal to obtain a second demodulation signal;
decoding the second demodulation signal to obtain second communication information; the second communication information comprises second communication content transmitted to the charging device by the electronic device.
4. A communication method is applied to an electronic device, and the method comprises the following steps:
receiving a first modulation voltage signal provided by a charging device, and charging based on the first modulation voltage signal;
demodulating the first modulation voltage signal to obtain a first demodulation signal;
and decoding the first demodulation signal to obtain first communication information.
5. The method of claim 4, further comprising:
acquiring second communication information; the second communication information comprises second communication content transmitted to the charging equipment by the electronic equipment;
coding the second communication information to obtain a second modulation signal;
modulating the charging voltage signal received by the electronic equipment by using the second modulation signal to obtain a second modulation voltage signal;
feeding back the second modulation voltage signal to the charging device, wherein the second modulation voltage signal includes the second communication content and the charging voltage signal.
6. The method of claim 5, wherein after the feeding back the second modulated voltage signal to the charging device, the method further comprises:
receiving a second response signal generated and sent by the charging equipment according to second communication content in the second modulation voltage signal;
determining a state of the charging device based on the second answer signal; wherein the state of the charging device includes at least one of: the cover opening state of the charging device, the charging state of the charging device and the box entering state of the electronic device.
7. A system, characterized in that the system comprises:
the charging equipment comprises a first acquisition unit, a first coding unit, a first modulation unit and a first sending unit; wherein the content of the first and second substances,
the first acquisition unit is configured to acquire first communication information; the first communication information comprises first communication content transmitted to the electronic equipment by the charging equipment;
the first coding unit is configured to code the first communication information to obtain a first modulation signal;
the first modulation unit is configured to modulate the charging voltage signal by using the first modulation signal to obtain a first modulation voltage signal; the charging voltage signal is a voltage signal provided by the charging equipment when the charging equipment charges the electronic equipment;
the first transmitting unit is configured to provide the first modulated voltage signal to the electronic device, wherein the first modulated voltage signal includes the first communication content and the charging voltage signal;
an electronic device including a second receiving unit, a second demodulating unit, and a second decoding unit; wherein the content of the first and second substances,
the second receiving unit is configured to receive a first modulation voltage signal provided by a charging device and perform charging based on the first modulation voltage signal;
the second demodulation unit is configured to demodulate the first modulation voltage signal to obtain a first demodulation signal;
the second decoding unit is configured to decode the first demodulation signal to obtain the first communication information.
8. A system, characterized in that the system comprises:
a charging device comprising a first memory and a first processor; wherein the content of the first and second substances,
the first memory for storing a computer program operable on the first processor;
the first processor, when running the computer program, for performing the method of any of claims 1 to 3;
an electronic device comprising a second memory and a second processor; wherein the content of the first and second substances,
the second memory for storing a computer program operable on the second processor;
the second processor, when executing the computer program, is configured to perform the method of any of claims 4 to 6.
9. A computer storage medium, characterized in that it stores a communication program that, when executed by a first processor, implements the method of any one of claims 1 to 3, or when executed by a second processor, implements the method of any one of claims 4 to 6.
CN202010054599.2A 2020-01-17 2020-01-17 Communication method, system and storage medium Pending CN113141556A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010054599.2A CN113141556A (en) 2020-01-17 2020-01-17 Communication method, system and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010054599.2A CN113141556A (en) 2020-01-17 2020-01-17 Communication method, system and storage medium

Publications (1)

Publication Number Publication Date
CN113141556A true CN113141556A (en) 2021-07-20

Family

ID=76808594

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010054599.2A Pending CN113141556A (en) 2020-01-17 2020-01-17 Communication method, system and storage medium

Country Status (1)

Country Link
CN (1) CN113141556A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023174164A1 (en) * 2022-03-15 2023-09-21 华为技术有限公司 Charging apparatus, electronic device, communication method, and charging system

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013236479A (en) * 2012-05-09 2013-11-21 Toyota Industries Corp Power supply device, charger, power supply method, and power supply program
JP2013240144A (en) * 2012-05-11 2013-11-28 Toyota Industries Corp Feeding device and charging device, feeding method, and feeding program
WO2017114475A1 (en) * 2015-12-31 2017-07-06 Byd Company Limited Method and device for charging wirelessly, terminal and computer readable storge medium
CN108711902A (en) * 2018-05-25 2018-10-26 上海与德通讯技术有限公司 Wireless charging transmission method, system, charging unit and electronic equipment
CN109218889A (en) * 2018-09-18 2019-01-15 歌尔科技有限公司 A kind of means of communication, system, wireless headset and charging box
CN109600509A (en) * 2018-11-22 2019-04-09 惠州Tcl移动通信有限公司 Method and system, charging equipment and the storage medium of the state of prompting mobile terminal
CN109888882A (en) * 2019-03-27 2019-06-14 维沃移动通信有限公司 A kind of communication means, terminal device and power supply adaptor

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013236479A (en) * 2012-05-09 2013-11-21 Toyota Industries Corp Power supply device, charger, power supply method, and power supply program
JP2013240144A (en) * 2012-05-11 2013-11-28 Toyota Industries Corp Feeding device and charging device, feeding method, and feeding program
WO2017114475A1 (en) * 2015-12-31 2017-07-06 Byd Company Limited Method and device for charging wirelessly, terminal and computer readable storge medium
CN108711902A (en) * 2018-05-25 2018-10-26 上海与德通讯技术有限公司 Wireless charging transmission method, system, charging unit and electronic equipment
CN109218889A (en) * 2018-09-18 2019-01-15 歌尔科技有限公司 A kind of means of communication, system, wireless headset and charging box
CN109600509A (en) * 2018-11-22 2019-04-09 惠州Tcl移动通信有限公司 Method and system, charging equipment and the storage medium of the state of prompting mobile terminal
CN109888882A (en) * 2019-03-27 2019-06-14 维沃移动通信有限公司 A kind of communication means, terminal device and power supply adaptor

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023174164A1 (en) * 2022-03-15 2023-09-21 华为技术有限公司 Charging apparatus, electronic device, communication method, and charging system

Similar Documents

Publication Publication Date Title
US10992189B2 (en) Method for wireless charging, transmitter, receiver and power management apparatus
CN107533386B (en) Active stylus
KR102332621B1 (en) Signal Receiving and Transmitting circuit and electronic device including the same
CN104363637B (en) Dynamic adjusts method, system and the mobile terminal of WIFI hot spot transmission power
US9791888B2 (en) Power reception device and power transmission system
CN107769306B (en) Wireless charging method, transmitting end, receiving end, power management chip and medium
KR102242362B1 (en) Position indicator
US10615849B2 (en) Power receiving device and power feeding system
US20150303704A1 (en) Charging system automatically switching between wired charging mode and wireless charging mode, and related charging control method and wireless power receiver circuit
US20100234756A1 (en) Human body communication apparatus
US20160179223A1 (en) Near field communications (nfc)-based active stylus
US20140186044A1 (en) System and method for infrared dongle
US9923605B2 (en) Electronic apparatus
US20160178378A1 (en) Auxiliary guiding device and system for the blind
CN113141556A (en) Communication method, system and storage medium
KR102475781B1 (en) Digital pen for charging battery and method for operating thefeof
KR20100004599A (en) Portable terminal having non-contact wireless power supply/data communication function, wireless power supply and data communication method thereof
CN113392661A (en) Card copying method and device, electronic equipment and readable storage medium
CN102918784A (en) Apparatuses and methods for data transmission and reception
CN109920215A (en) Searching articles method and relevant device
KR20110068816A (en) Hybrid type bicycle rent method, its system
KR20170134863A (en) OBD Device for Broadcasting Asynchronous Radio Signal
US20050075146A1 (en) Apparatus and method for powering wireless inter-component audio transmission
KR20130003466A (en) Smart wireless charging system that combines smart card function
JP2016067075A (en) Electronic apparatus

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20210720