CN109980731B - Processing method and electronic device - Google Patents

Processing method and electronic device Download PDF

Info

Publication number
CN109980731B
CN109980731B CN201910256502.3A CN201910256502A CN109980731B CN 109980731 B CN109980731 B CN 109980731B CN 201910256502 A CN201910256502 A CN 201910256502A CN 109980731 B CN109980731 B CN 109980731B
Authority
CN
China
Prior art keywords
electronic device
communication link
electronic equipment
module
electrical parameter
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910256502.3A
Other languages
Chinese (zh)
Other versions
CN109980731A (en
Inventor
周加品
高娜
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing 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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201910256502.3A priority Critical patent/CN109980731B/en
Publication of CN109980731A publication Critical patent/CN109980731A/en
Application granted granted Critical
Publication of CN109980731B publication Critical patent/CN109980731B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H01ELECTRIC ELEMENTS
    • H01MPROCESSES OR MEANS, e.g. BATTERIES, FOR THE DIRECT CONVERSION OF CHEMICAL ENERGY INTO ELECTRICAL ENERGY
    • H01M10/00Secondary cells; Manufacture thereof
    • H01M10/42Methods or arrangements for servicing or maintenance of secondary cells or secondary half-cells
    • H01M10/44Methods for charging or discharging
    • H02J7/0077
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J7/00Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
    • H02J7/00032Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries characterised by data exchange
    • H02J7/00034Charger exchanging data with an electronic device, i.e. telephone, whose internal battery is under charge
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02EREDUCTION OF GREENHOUSE GAS [GHG] EMISSIONS, RELATED TO ENERGY GENERATION, TRANSMISSION OR DISTRIBUTION
    • Y02E60/00Enabling technologies; Technologies with a potential or indirect contribution to GHG emissions mitigation
    • Y02E60/10Energy storage using batteries

Landscapes

  • Engineering & Computer Science (AREA)
  • Manufacturing & Machinery (AREA)
  • Chemical & Material Sciences (AREA)
  • Chemical Kinetics & Catalysis (AREA)
  • Electrochemistry (AREA)
  • General Chemical & Material Sciences (AREA)
  • Telephone Function (AREA)
  • Charge And Discharge Circuits For Batteries Or The Like (AREA)

Abstract

The present disclosure provides a processing method, comprising: obtaining a first electrical parameter between two detection points of first electronic equipment, wherein at least one first connection end of two first connection ends of the first electronic equipment is connected with the two detection points; and in the event that the first electrical parameter matches a preset parameter, opening a first communication link of a first electronic device, wherein the first electronic device is configured to: and under the condition that the two first connecting ends are connected with the second electronic equipment, the power is supplied to the second electronic equipment through the two first connecting ends. The present disclosure also provides an electronic device.

Description

Processing method and electronic device
Technical Field
The disclosure relates to a processing method and an electronic device.
Background
With the rapid development of electronic devices, the popularity of handheld terminals (such as smartphones, tablet computers, etc.) is increasing. In order to facilitate the charging of the handheld terminal, the charging device is integrated into the charging seat of various intelligent devices for operation.
When a charging seat integrated in an intelligent device charges and identifies a handheld terminal, a third pin needs to be additionally arranged to be connected with the handheld terminal so as to identify the handheld terminal, and thus, communication connection with the handheld terminal is established. The third pin will certainly increase the cost of the charging stand. Moreover, when the portable terminal is connected with a plurality of pins, as long as one pin is in poor contact, the portable terminal cannot be charged.
Disclosure of Invention
One aspect of the present disclosure provides a method of processing, the method comprising: obtaining a first electrical parameter between two detection points of first electronic equipment, wherein at least one first connection end of two first connection ends of the first electronic equipment is connected with the two detection points; and opening a first communication link of the first electronic device under the condition that the first electrical parameter is matched with the preset parameter. Wherein the first electronic device is configured to: and under the condition that the two first connecting ends are connected with the second electronic equipment, the power is supplied to the second electronic equipment through the two first connecting ends.
Optionally, the obtaining of the first electrical parameter between the two detection points of the first electronic device includes: the method comprises the steps of obtaining electrical parameters of two ends of a target device of first electronic equipment to obtain first electrical parameters, wherein the target device is connected with one of two first connecting ends, and the first electrical parameters are obtained according to current signals sent by second electronic equipment under the condition that the two first connecting ends are connected with the second electronic equipment.
Optionally, the processing method further includes; when the time that the first communication link is in the opening state is longer than first preset time and the first communication link is not communicated, closing the first communication link; and/or, in the case that the first communication link is connected by the second communication link of the second electronic device, closing the first communication link in response to the operation of disconnecting the second electronic device by the two first connection ends.
Optionally, in case the first communication link is connected by a second communication link of a second electronic device: receiving multimedia information sent by second electronic equipment; and performing a first operation matching the multimedia information. Wherein the multimedia information is transmitted by the second electronic device under the condition of executing the first operation; or the multimedia information is sent by the second electronic device under the condition that the multimedia information is obtained according to the voice information, and the voice information is collected by the first electronic device and then sent to the second electronic device.
Another aspect of the disclosure provides a method of processing, the method comprising: obtaining a second electrical parameter between two second connection ends of the second electronic device; and in the case that the second electrical parameter satisfies a preset condition: sending a current signal matched with a preset parameter; and opening a second communication link of the second electronic device. Wherein the second electronic device is configured to: under the condition that the two second connecting ends are connected with the first electronic equipment, the second electronic equipment is charged through the two second connecting ends, the current signal is used as a basis for the first electronic equipment to obtain a first electrical parameter matched with a preset parameter, and the first electronic equipment can open the first communication link according to the first electrical parameter.
Optionally, the processing method further includes: obtaining link performance of the detected at least one first communication link; ranking at least one first communication link according to the strength of the link performance; and communicating the second communication link of the second electronic device with the first communication link located at the predetermined location.
Optionally, the processing method further includes: when the time that the second communication link is in the opening state is longer than second preset time and the second communication link is not communicated with the first communication link, closing the second communication link; and/or, in the case that the second communication link is connected with the first communication link of the first electronic device, the second communication link is closed in response to the operation that the two second connection terminals disconnect the first electronic device.
Optionally, the processing method further includes: in the case where the second communication link is in communication with the first communication link of the first electronic device: and sending the multimedia information to the first electronic equipment for enabling the first electronic equipment to execute a first operation matched with the multimedia information. The second electronic equipment transmits the multimedia information under the condition of executing the first operation; or the second electronic equipment sends the multimedia information under the condition of receiving the voice information collected by the first electronic equipment and obtaining the multimedia information according to the voice information.
Another aspect of the present disclosure provides an electronic device including: the device comprises two first connecting ends, a first communication module, a first control module and a power supply module. At least one of the two first connecting ends is connected with two detection points. The first communication module is provided with a first communication link for communicating with a second electronic device other than the electronic device. The first control module is connected with the first communication module and the two detection points and used for obtaining a first electrical parameter between the two detection points and starting the first communication link under the condition that the first electrical parameter is matched with a preset parameter. The power supply module is connected with the two first connecting ends and the first control module and used for supplying power to the second electronic equipment through the two first connecting ends when the two first connecting ends are connected with the second electronic equipment under the control of the first control module.
Optionally, the electronic device further includes a target device, the target device is disposed between the two detection points, and the first electrical parameter obtained by the first control module is an electrical parameter at two ends of the target device. And under the condition that the two first connecting ends are connected with the second electronic equipment, the electrical parameters at the two ends of the target device are obtained according to a current signal sent by the second electronic equipment.
Optionally, the first control module is further configured to close the first communication link when the time that the first communication link is in the open state is longer than a first preset time and the first communication link is not connected; and/or the first control module is also used for closing the first communication link in response to the operation that the two first connecting ends disconnect the second electronic device under the condition that the first communication link is connected by the second communication link of the second electronic device.
Optionally, the first communication module is further configured to receive, via the first communication link, multimedia information sent by the second electronic device. Correspondingly, the electronic device further comprises a first multimedia module, wherein the first multimedia module is connected with the first control module and is used for executing a first operation matched with the multimedia information under the control of the first control module. The multimedia information is sent by the second electronic equipment under the condition of executing the first operation; or the multimedia information is sent by the second electronic device under the condition that the multimedia information is obtained according to the voice information, wherein the voice information is collected by the electronic device and then sent to the second electronic device.
Another aspect of the present disclosure provides an electronic device including: two second link, second communication module, second control module and power storage module. The two second connecting ends are used for connecting first electronic equipment except the electronic equipment. The second communication module is provided with a second communication link. The second control module is connected with second communication module and two second link, and this second control module specifically is used for: obtaining a second electrical parameter between the two second connection ends; sending a current signal matched with the preset parameter under the condition that the second electrical parameter meets the preset condition; and opening the second communication link in the event that the current signal is issued. The power storage module is connected with the second control module and the two second connecting ends and used for charging through the two second connecting ends when the two second connecting ends are connected with the first electronic equipment under the control of the second control module.
Optionally, the second communication module is further configured to detect at least one first communication link within a predetermined range. The second control module is further configured to: obtaining link performance of at least one first communication link detected by a second communication module; ranking at least one first communication link according to the strength of the link performance; and controlling the second communication link to communicate with the first communication link located at the predetermined location.
Optionally, the second control module is further configured to close the second communication link when the time that the second communication link is in the open state is longer than a second preset time and the second communication link is not connected to the first communication link; and/or the second control module is also used for closing the second communication link in response to the operation that the two second connecting ends disconnect the first electronic equipment under the condition that the first communication link of the second communication link connecting the first electronic equipment is connected.
Optionally, the second communication module is further configured to, when the second communication link is connected to the first communication link of the first electronic device, send multimedia information via the second communication link under the control of the second control module, so that the first electronic device performs a first operation matched with the multimedia information; correspondingly, the electronic device further comprises a second multimedia module, the second multimedia module is connected with a second control module, and the second control module is used for controlling the second communication module to send multimedia information under the condition that the second multimedia module executes the first operation; or the second control module is used for controlling the second communication module to send the multimedia information under the condition that the second communication module receives the voice information acquired by the first electronic equipment and obtains the multimedia information according to the voice information.
Another aspect of the present disclosure provides a processing apparatus, including: the device comprises a first electrical parameter acquisition module, a first communication link control module and a power supply control module. The first electrical parameter obtaining module is used for obtaining a first electrical parameter between two detection points of the first electronic device, and at least one first connection end of the two first connection ends of the first electronic device is connected with the two detection points. The first communication link control module is used for starting a first communication link of the first electronic device under the condition that the first electrical parameter is matched with the preset parameter. The power supply control module is used for controlling the first electronic equipment to supply power to the second electronic equipment through the two first connecting ends under the condition that the two first connecting ends of the first electronic equipment are connected with the second electronic equipment.
Optionally, the first electrical parameter obtaining module is specifically configured to obtain electrical parameters at two ends of a target device of the first electronic device to obtain the first electrical parameter, where the target device is connected to one of the two first connection ends. And under the condition that the two first connecting ends are connected with the second electronic equipment, the first electrical parameter is obtained according to a current signal sent by the second electronic equipment.
Optionally, the first communication link control module is further configured to: when the time that the first communication link is in the opening state is longer than first preset time and the first communication link is not communicated, closing the first communication link; and/or, in the case that the first communication link is connected by the second communication link of the second electronic device, closing the first communication link in response to the operation of disconnecting the second electronic device by the two first connection ends.
Optionally, the processing device further includes a multimedia information receiving module and an operation control module. The multimedia information receiving module is used for receiving the multimedia information sent by the second electronic equipment under the condition that the first communication link is communicated by the second communication link of the second electronic equipment. The operation control module is used for controlling the first electronic equipment to execute a first operation matched with the multimedia information received by the multimedia information receiving module. Wherein the multimedia information is transmitted by the second electronic device under the condition of executing the first operation; or the multimedia information is sent by the second electronic device under the condition that the multimedia information is obtained according to the voice information, and the voice information is collected by the first electronic device and then sent to the second electronic device.
Another aspect of the present disclosure provides a processing apparatus, including: the device comprises a second electrical parameter acquisition module, a current signal sending control module, a second communication link control module and a charging control module. The second electrical parameter obtaining module is used for obtaining a second electrical parameter between two second connecting ends of the second electronic device. The current signal sending control module is used for controlling the second electronic equipment to send a current signal matched with the preset parameter under the condition that the second electrical parameter meets the preset condition. The second communication link control module is used for starting a second communication link of the second electronic device under the condition that the current signal sending control module controls the second electronic device to send the current signal. The charging control module is used for controlling the second electronic equipment to be charged through the two second connecting ends under the condition that the two second connecting ends of the second electronic equipment are connected with the first electronic equipment, the current signal is used as a basis for the first electronic equipment to obtain a first electrical parameter matched with a preset parameter, and the first electronic equipment can start a first communication link according to the first electrical parameter.
Optionally, the processing apparatus further includes a link performance obtaining module and a link arranging module. The link performance acquisition module is used for acquiring the link performance of at least one first communication link detected by the second electronic equipment. The link arranging module is used for arranging at least one first communication link according to the strength of the link performance. Correspondingly, the second communication link control module is further configured to control the second communication link of the second electronic device to communicate with the first communication link located at the predetermined location.
Optionally, the second communication link control module is further configured to: when the time that the second communication link is in the opening state is longer than second preset time and the second communication link is not communicated with the first communication link, closing the second communication link; and/or the second communication link control module is also used for closing the second communication link in response to the operation that the two second connecting ends of the second electronic device disconnect the first electronic device under the condition that the first communication link of the second communication link connecting the first electronic device is connected.
Optionally, the processing apparatus further includes a multimedia information sending module, configured to send the multimedia information to the first electronic device when the second communication link of the second electronic device is connected to the first communication link of the first electronic device, so that the first electronic device performs a first operation matched with the multimedia information. The multimedia information sending module is used for sending the multimedia information under the condition that the second electronic equipment executes the first operation; or the multimedia information sending module is used for sending the multimedia information when the second electronic equipment receives the voice information collected by the first electronic equipment and obtains the multimedia information according to the voice information.
Drawings
For a more complete understanding of the present disclosure and the advantages thereof, reference is now made to the following descriptions taken in conjunction with the accompanying drawings, in which:
fig. 1 schematically shows an application scenario diagram of an electronic device and a processing method according to an embodiment of the present disclosure;
fig. 2A schematically shows a structural schematic diagram of an electronic device according to a first embodiment of the present disclosure;
FIG. 2B schematically shows a flow chart of a processing method according to a first embodiment of the disclosure;
3A-3B schematically illustrate a flow chart of a processing method according to a second embodiment of the disclosure;
fig. 4A schematically shows a structural schematic diagram of an electronic device according to a second embodiment of the present disclosure;
FIG. 4B schematically shows a flow chart of a processing method according to a third embodiment of the present disclosure;
fig. 5A schematically shows a structural schematic diagram of an electronic device according to a third embodiment of the present disclosure;
FIG. 5B schematically shows a flow chart of a processing method according to a fourth embodiment of the present disclosure;
FIG. 6 schematically shows a flow chart of a processing method according to a fifth embodiment of the present disclosure;
FIGS. 7A-7B schematically illustrate a flow chart of a processing method according to a sixth embodiment of the disclosure;
fig. 8A schematically shows a structural schematic diagram of an electronic device according to a fourth embodiment of the present disclosure;
FIG. 8B schematically shows a flow chart of a processing method according to a seventh embodiment of the present disclosure;
fig. 9 schematically shows a block diagram of a processing apparatus according to a first embodiment of the present disclosure;
fig. 10 schematically shows a block diagram of a processing apparatus according to a second embodiment of the present disclosure; and
fig. 11 schematically shows a block diagram of an electronic device adapted to perform a processing method according to an embodiment of the present disclosure.
Detailed Description
Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. It should be understood that the description is illustrative only and is not intended to limit the scope of the present disclosure. In the following detailed description, for purposes of explanation, numerous specific details are set forth in order to provide a thorough understanding of the embodiments of the disclosure. It may be evident, however, that one or more embodiments may be practiced without these specific details. Moreover, in the following description, descriptions of well-known structures and techniques are omitted so as to not unnecessarily obscure the concepts of the present disclosure.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the disclosure. The terms "comprises," "comprising," and the like, as used herein, specify the presence of stated features, steps, operations, and/or components, but do not preclude the presence or addition of one or more other features, steps, operations, or components.
All terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art unless otherwise defined. It is noted that the terms used herein should be interpreted as having a meaning that is consistent with the context of this specification and should not be interpreted in an idealized or overly formal sense.
Where a convention analogous to "at least one of A, B and C, etc." is used, in general such a construction is intended in the sense one having skill in the art would understand the convention (e.g., "a system having at least one of A, B and C" would include but not be limited to systems that have a alone, B alone, C alone, a and B together, a and C together, B and C together, and/or A, B, C together, etc.). Where a convention analogous to "A, B or at least one of C, etc." is used, in general such a construction is intended in the sense one having skill in the art would understand the convention (e.g., "a system having at least one of A, B or C" would include but not be limited to systems that have a alone, B alone, C alone, a and B together, a and C together, B and C together, and/or A, B, C together, etc.).
Some block diagrams and/or flow diagrams are shown in the figures. It will be understood that some blocks of the block diagrams and/or flowchart illustrations, or combinations thereof, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the instructions, which execute via the processor, create means for implementing the functions/acts specified in the block diagrams and/or flowchart block or blocks. The techniques of this disclosure may be implemented in hardware and/or software (including firmware, microcode, etc.). In addition, the techniques of this disclosure may take the form of a computer program product on a computer-readable storage medium having instructions stored thereon for use by or in connection with an instruction execution system.
An embodiment of the present disclosure provides a processing method, including: obtaining a first electrical parameter between two detection points of first electronic equipment, wherein at least one first connection end of two first connection ends of the first electronic equipment is connected with the two detection points; and opening a first communication link of the first electronic device under the condition that the first electrical parameter is matched with the preset parameter. Wherein the first electronic device is configured to: and under the condition that the two first connecting ends are connected with the second electronic equipment, the power is supplied to the second electronic equipment through the two first connecting ends.
In the processing method, the first electronic device supplies power to the second electronic device through the two first connecting ends, and whether the first electronic device is connected to the matched second electronic device is determined by detecting and judging whether the first electrical parameter between the two detection points is matched with the preset parameter. After the matched second electronic equipment is accessed, the first communication link of the first electronic equipment is automatically started to be connected with the second communication link of the second electronic equipment, so that the communication between the two pieces of electronic equipment is realized. Wherein need not additionally to set up the third link and can realize first electronic equipment to the discernment and the communication connection of the second electronic equipment of matching to can effectively reduce first electronic equipment's cost, and improve the stability that first electronic equipment supplies power for second electronic equipment.
Fig. 1 schematically shows an application scenario diagram of an electronic device and a processing method according to an embodiment of the disclosure. It should be noted that fig. 1 is only an example of a scenario in which the embodiments of the present disclosure may be applied to help those skilled in the art understand the technical content of the present disclosure, but does not mean that the embodiments of the present disclosure may not be applied to other devices, systems, environments or scenarios.
As shown in fig. 1, an application scenario 100 according to an embodiment of the present disclosure includes a first electronic device 110 and a second electronic device 120.
As shown in an enlarged view a in fig. 1, the first electronic device 110 has two first connection terminals 111. Accordingly, as shown in an enlarged view B in fig. 1, the second electronic device 120 has two second connection terminals 121. The two first connection ends 111 and the two second connection ends 121 are matched with each other for plugging the second electronic device 120 with the first electronic device 110.
According to an embodiment of the present disclosure, the first electronic device 110 is specifically a terminal device having a power supply function to supply power to the plugged second electronic device 120. The first electronic device 110 may be, for example, an intelligent household appliance provided with a charging seat, and specifically may be an intelligent video playback device, an intelligent kitchen ware, an intelligent bathroom, and the like. As shown in fig. 1, the first electronic device 110 may be a smart speaker.
According to an embodiment of the present disclosure, the second electronic device 120 is specifically a terminal device with an electricity storage function to store the electric energy provided by the first electronic device 110. The second electronic device 120 may be, for example, a smart terminal provided with an electric storage battery, a smart personal care product, a smart wearable device, or the like. As shown in fig. 1, the second electronic device 120 may be a smart phone, a tablet computer, or the like.
According to the embodiment of the present disclosure, the two first connection ends or the two second connection ends may be integrated into an interface form, for example, a Type-C interface, a micro USB interface, a Lightning interface, or the like, where the present disclosure does not limit the Type of the above interfaces as long as the two first connection ends and the two second connection ends can be matched for use.
According to the embodiment of the present disclosure, the first electronic device 110 further has, for example, a processing function and a detecting function, and is configured to detect an electrical parameter between two detecting points connected to the at least one first connection end, so as to determine whether to access the second electronic device 120 according to the electrical parameter to supply power to the second electronic device 120. Moreover, the first electronic device 110 may be further configured to determine whether the second electronic device 120 is a matched device, and after determining that the matched second electronic device is accessed, open a communication link for the second electronic device 120 to connect in a communication manner.
According to the embodiment of the present disclosure, the second electronic device 120 also has, for example, a processing function and a detecting function, and is configured to detect an electrical parameter between the two second connection terminals, to determine whether to insert the first electronic device 110 according to the electrical parameter, and to store the power provided by the first electronic device 110 after determining to insert the first electronic device 110. Meanwhile, when the second electronic device 120 is connected to the first electronic device 110, the communication link is opened, and specific current information is sent so that the first electronic device 110 can recognize that the second electronic device 120 is a matched device, so that the first electronic device 110 opens the communication link, and communication connection between the two electronic devices is realized.
According to an embodiment of the present disclosure, as shown in fig. 1, the application scenario 100 may further include a processing device 130, for example, the processing device 130 is connected to the first electronic device 110 and the second electronic device 120, so as to control the two electronic devices and achieve communication connection between the first electronic device 110 and the second electronic device 120, in this case, improvements to the first electronic device 110 and the second electronic device 120 may be reduced to some extent.
It should be noted that the processing method provided by the embodiment of the present disclosure may be generally executed by the first electronic device 110 or the second electronic device 120. Accordingly, the electronic device provided by the embodiments of the present disclosure may be the first electronic device 110 or the second electronic device 120. The processing method provided by the embodiment of the present disclosure may also be executed by other electronic devices (for example, the processing apparatus 130) different from the first electronic device 110 and the second electronic device 120 and capable of communicating with the first electronic device 110 and the second electronic device 120.
It is understood that the structures and types of the first electronic device 110, the second electronic device 120 and the processing apparatus 130 in fig. 1 are only schematic, and any structures and types of the first electronic device 110, the second electronic device 120 and the processing apparatus 130 may be provided according to implementation requirements.
Fig. 2A schematically shows a structural diagram of an electronic device according to a first embodiment of the present disclosure, and fig. 2B schematically shows a flowchart of a processing method according to the first embodiment of the present disclosure.
The electronic device provided by the embodiment of the present disclosure may refer to the first electronic device 110 in fig. 1, and as shown in fig. 2A, the first electronic device 110 may specifically include two first connection ends 111, a first communication module 202, a first control module 203, and a power supply module 204.
At least one first connection end 111 of the two first connection ends 111 is connected to two detection points 205, and the two first connection ends 111 are connected to the power supply module 204. According to the embodiment of the present disclosure, one of the two first connection terminals 111 is configured to serve as a positive electrode for connecting with the positive electrode of the power supply module 204, and the other end is configured to serve as a negative electrode for connecting with the negative electrode of the power supply module 204. According to an embodiment of the present disclosure, the two first connection ends may adopt a Pin structure, for example.
The first control module 203 may be connected to the power supply module 204, for example, to control the power supply module 204 to supply power to the second electronic device 120 through the two first connection terminals 111 after the second electronic device 120 is connected to the two first connection terminals 111 of the first electronic device 110, so that the first electronic device 110 has a power supply function.
In the embodiment of the present disclosure, since the first electronic device 110 has only two first connection terminals 111, the power supply function of the first electronic device 110 can be realized only, and in order to enable the first electronic device 110 to communicate with the matched second electronic device 120, it is further required to determine whether the accessed second electronic device 120 is a matched electronic device. The matching second electronic device 120 may send a specific current signal (for example, a pulse current) after connecting the two first connection terminals 111, so that the first electronic device 110 determines that the connected matching second electronic device 120 is according to the specific current signal.
According to the embodiment of the disclosure, after the matched second electronic device 120 is connected to the two first connection ends 111, the power supply module 204 can supply power to the matched second electronic device 120. That is, the first electronic device 110 and the second electronic device 120 are electrically connected, the electrical parameter between the two detecting points 205 is a parameter corresponding to the specific current signal sent by the second electronic device 120. Therefore, in the embodiment of the present disclosure, the first control module 203 may further be connected to the two detection points 205, for example, to obtain a first electrical parameter between the two detection points 205, and determine whether the accessed second electronic device 120 is a matched second electronic device according to the first electrical parameter.
According to the embodiment of the disclosure, as shown in fig. 2A, the first electronic device 110 may further include, for example, a target device 206, where the target device 206 is disposed between the two detecting points 205, the first electrical parameter is an electrical parameter at two ends of the target device 206, and the electrical parameter at two ends of the target device 206 is obtained according to a current signal sent by the second electronic device 120. According to the embodiment of the present disclosure, the target device 206 may be connected between the two first connection terminals 111 or connected to any one first connection terminal 111 of the two first connection terminals 111, for example. According to an embodiment of the present disclosure, the target device 206 may be, for example, a resistor device, and in order to obtain the first electrical parameter for detection, the target device 206 may be specifically connected to, for example, a first connection terminal serving as a cathode in the two first connection terminals 111.
According to an embodiment of the present disclosure, the current signal emitted by the matched second electronic device 120 may be a current matched with preset parameters, wherein the preset parameters may include a frequency value, an amplitude value, and/or a duty cycle value. Here, in order to distinguish from the unmatched second electronic device, the current signal here may be specifically a pulse current, and then the duty ratio value here is smaller than 1. The first control module 203 may determine whether the accessed second electronic device is the matched second electronic device by determining whether the obtained first electrical parameter between the two detection points 205 matches the preset parameter. According to the embodiment of the disclosure, in order to improve the accuracy of the determination, the preset parameter may include a frequency value, an amplitude value, and a duty ratio value at the same time, and the current signal is specifically a pulse current corresponding to the frequency value, the amplitude value, and the duty ratio value. The amplitude value in the preset parameter may be, for example, 1A, the frequency value is 500Hz, and the duty ratio value is 99%, so that the current signal is a pulse current with an amplitude of 1A, a frequency of 500Hz, and a duty ratio of 99%. Accordingly, after the matched second electronic device 120 is connected to the first electronic device 110, the pulse voltage across the target device 206 can be detected, and a first electrical parameter can be obtained according to the pulse voltage, where the first electrical parameter can include a current amplitude value, a frequency value, and a duty ratio value. Then, knowing the resistance value of the target device 206, the first electrical parameter can be obtained according to the pulse voltage value and the resistance value conversion, so as to determine whether the first electrical parameter matches the preset parameter (where the matching may be equal specifically). It is to be understood that the preset parameters and current signals described above are only examples to facilitate understanding of the present disclosure, and the present disclosure is not limited thereto.
According to an embodiment of the present disclosure, in order for the first electronic device 110 to communicate with the accessed matching second electronic device, the first communication module 202 may be provided with a first communication link. Correspondingly, the first control module 203 may also be connected to the first communication module 202 for implementing control of the first communication link.
According to an embodiment of the present disclosure, in order to save power and avoid unnecessary overhead, the first communication link may be opened only in case of accessing the matching second electronic device. The first control module 203 may, in a case that it is determined that the first electrical parameter matches the preset parameter, turn on the first communication link of the first electronic device 110, so that the second communication link is connected, and implement communication connection between the first electronic device 110 and the matched second electronic device 120.
In order to implement the above functions of the first electronic device and open the first communication link only when the matched second electronic device is accessed, as shown in fig. 2B, an embodiment of the present disclosure further provides a processing method. The method comprises the following steps: in operation S210, obtaining a first electrical parameter between two detection points of a first electronic device, where at least one of two first connection ends of the first electronic device is connected to the two detection points; and in operation S220, in case the first electrical parameter matches a preset parameter, opening a first communication link of a first electronic device, wherein the first electronic device is configured to: and under the condition that the two first connecting ends are connected with the second electronic equipment, the power is supplied to the second electronic equipment through the two first connecting ends.
According to an embodiment of the present disclosure, the operation S210 may specifically include: the method comprises the steps of obtaining electrical parameters of two ends of a target device of first electronic equipment to obtain first electrical parameters, wherein the target device is connected with one of two first connecting ends, and the first electrical parameters are obtained according to current signals sent by second electronic equipment under the condition that the two first connecting ends are connected with the second electronic equipment.
According to an embodiment of the present disclosure, if the first electronic device in the processing method may be the first electronic device 110 described in fig. 2A, and the second electronic device may be the second electronic device 120 in fig. 1, the processing method may be performed by the first electronic device 110. According to an embodiment of the present disclosure, in order to reduce the improvement of the electronic device as much as possible, the first electronic device here may not be the electronic device in fig. 2A, but may be different from the electronic device in fig. 2A in that the first electronic device does not include the first control module 203. The processing method can be executed by the processing apparatus 130 shown in fig. 1, and the processing apparatus 130 is connected to both the first electronic device and the second electronic device. The operations S210 to S220 are similar to the operations performed by the first control module 203 in fig. 2A, and are not described herein again.
In summary, the electronic device and the processing method according to the embodiments of the disclosure can supply power to the second electronic device 120 through the two first connection ends, and simultaneously open the first communication link when the electrical parameters at the two ends of the target device 206 are matched with the preset parameters, so as to communicate with the accessed matched second electronic device 120. That is, according to the electronic device and the processing method provided by the embodiment of the present disclosure, through the setting of the target device 206, the identification and the determination of the matched second electronic device can be achieved without additionally setting a connection end, so that the cost of the electronic device can be increased to a certain extent, and the connection stability between the first electronic device and the second electronic device can be improved.
Fig. 3A to 3B schematically show a flow chart of a processing method according to a second embodiment of the present disclosure.
According to an embodiment of the present disclosure, the first communication link and the second communication link described above may be, for example, communication links of a short-range wireless connection (e.g., bluetooth). It is considered that when the first communication link of the first electronic device 110 is in the open state, it may be detected by other electronic devices that are not accessing the first electronic device 110 but are within the communication range of the first communication link, and thus there may be a case where the first communication link is misconnected by other electronic devices that are not accessing the first electronic device 110. Furthermore, if the first communication link is not connected, additional resources are consumed if the first communication link is in an open state for a long time.
According to an embodiment of the present disclosure, in order to solve the above defect, a connection time limit of the first communication link may be set for the accessed second electronic device 120, and if the second electronic device 120 is not connected to the first communication link within the time limit, the first communication link is closed, so as to prevent other electronic devices that are not accessed from accessing the first communication link. Therefore, as shown in fig. 3A, the processing method of the embodiment of the disclosure may further include an operation S330, in addition to the operations S210 to S220, of closing the first communication link when the time that the first communication link is in the open state is greater than the first preset time and the first communication link is not connected. The first preset time may be set according to an actual requirement, for example, the first preset time is not 30S. Correspondingly, the first control module 203 included in the first electronic device 110 in fig. 2A is further configured to close the first communication link when the time that the first communication link is in the open state is greater than the first preset time and the first communication link is not connected.
According to the embodiment of the present disclosure, in the case that the second electronic device 120 communicates with the first communication link through the second communication link thereof, in order to avoid the situation that the first electronic device 110 and the second electronic device 120 maintain communication after the second electronic device 120 is electrically disconnected from the first electronic device 110; or to avoid the first communication link being detected by other electronic devices to be connected after the second electronic device 120 moves outside the communication range of the first communication link. As shown in fig. 3B, the processing method of the embodiment of the disclosure may further include operation S340, in addition to operation S210 to operation S220, in which in a case where the first communication link is connected by the second communication link of the second electronic device, the first communication link is closed in response to an operation of disconnecting the second electronic device 120 by the two first connection terminals. I.e. the first communication link is closed as soon as the second electronic device 120 is disconnected from both first connection terminals 111 of the first electronic device 110. Accordingly, the first electronic device 110 in fig. 2A includes the first control module 203, which is further configured to close the first communication link in response to the two first connection ends disconnecting the second electronic device when the first communication link is connected by the second communication link of the second electronic device.
In summary, the processing method of the embodiment of the disclosure can avoid connection between the other electronic devices that are not connected to the first communication link of the first electronic device to a certain extent, so that the problem of disordered communication connection between the second electronic devices and the first electronic device in an application scenario in which the second electronic devices are provided within the communication range of the first communication link can be solved, and therefore, user experience can be improved to a certain extent.
Fig. 4A schematically shows a structural diagram of an electronic device according to a second embodiment of the present disclosure, and fig. 4B schematically shows a flowchart of a processing method according to a third embodiment of the present disclosure.
According to the embodiment of the present disclosure, since the first communication link of the first communication module 202 is opened after the first electronic device 110 accesses the matched second electronic device 120, the second communication link of the second electronic device 120 can be connected to realize the interactive communication between the two electronic devices.
In order to better embody the interactive effect, the second electronic device 120 may also send the multimedia information currently played by the second electronic device to the first electronic device 110 through the communication link for playing. Accordingly, as shown in fig. 4A, the electronic device (i.e., the first electronic device 110 in fig. 1) of the embodiment of the disclosure may further include a first multimedia module 407 in addition to the structure described in fig. 2A. In particular, the first electronic device 110 includes the first communication module 202 for receiving the multimedia information transmitted by the second electronic device 120 via the first communication link. The first multimedia module 407 is connected to the first control module 203, and is configured to execute a first operation matched with multimedia information under the control of the first control module 203. Wherein the multimedia information is transmitted by the second electronic device 120 through the second communication link of the second electronic device 120 while the first operation is performed.
According to an embodiment of the present disclosure, the first electronic device 110 may further have, for example, a voice collecting module for collecting voice information in real time, so that the first electronic device can perform an operation corresponding to the voice information in response to the collected voice information. The first electronic device often needs to analyze and process the voice information to obtain voice features, and obtains operation information matched with the voice features from a server or a cloud system to execute corresponding operations. Considering that the first electronic device 110 may have a low processing capability or cannot be connected to the server or the cloud system, when the second electronic device 120 is connected to the first electronic device 110 and the second electronic device 120 is connected to the server or the cloud system, the first electronic device 110 may be connected to the second electronic device 120 through communication, so that the second electronic device obtains the matched multimedia information according to the voice information. Accordingly, in a case where the first communication link of the first electronic device 110 is communicated with the second communication link of the second electronic device 120, the first electronic device 110 may transmit the collected voice information to the second electronic device 120 through the first communication link. The second electronic device 120 sends to the first electronic device 110 if multimedia information is acquired according to the received voice information. Therefore, the first electronic device 110 can receive the multimedia information sent by the second electronic device 120 via the first communication link, and control the first multimedia module 407 to perform the first operation matching the multimedia information under the control of the first control module 203.
Accordingly, as shown in fig. 4B, the processing method provided by the embodiment of the present disclosure may further include operations S450 to S460 in addition to operations S210 to S220.
In operation S450, in the case that the first communication link of the first electronic device 110 is connected by the second communication link of the second electronic device 120, receiving multimedia information transmitted by the second electronic device 120; and performing a first operation matching the multimedia information in operation S460. Wherein the multimedia information is transmitted by the second electronic device 120 in case of performing the first operation; alternatively, the multimedia information is sent by the second electronic device 120 under the condition that the multimedia information is obtained according to the voice information, and the voice information is collected by the first electronic device 110 and then sent to the second electronic device 120.
The processing method of the embodiment of the present disclosure may be executed by the first electronic device 110 described in fig. 4A. Alternatively, the processing method may be executed by the processing device 130 that connects the first electronic device 110 and the second electronic device 120 at the same time, and accordingly, the operation S460 may specifically be that the processing device 130 controls the first multimedia module 407 of the first electronic device 110 to execute the first operation matched with the multimedia information.
According to an embodiment of the present disclosure, the first multimedia module 407 may specifically include, for example, a video player or a display, and the multimedia information may specifically be image information, audio information and/or text information. If the multimedia message includes image information and/or text information, the first multimedia module 407 includes a display; if the multimedia information includes audio information, the first multimedia module 407 includes an audio/video player. It is understood that the first multimedia module 407 and the multimedia information are only examples to facilitate understanding of the present disclosure, and the present disclosure is not limited thereto.
According to an embodiment of the present disclosure, for example, both the first electronic device 110 and the second electronic device 120 may have a client application installed thereon, and in a case that both the first electronic device 110 and the second electronic device 120 have the same first client application (e.g., a home assistant application), then the process of executing the first operation transferred from the second electronic device 120 to the first electronic device 110 may be implemented by means of the first client application, and the first client of the first electronic device may be simultaneously turned on in a case that the first communication link is turned on.
Fig. 5A schematically shows a structural diagram of an electronic device according to a third embodiment of the present disclosure, and fig. 5B schematically shows a flowchart of a processing method according to a fourth embodiment of the present disclosure.
According to an embodiment of the present disclosure, in order to enable the first electronic device 110 described in fig. 2A and fig. 4A to identify the matched second electronic device 120, an embodiment of the present disclosure further provides an electronic device, which may specifically be the second electronic device 120 described with reference to fig. 1.
As shown in fig. 5A, the second electronic device 120 includes two second connection terminals 121, a second communication module 502, a second control module 503 and a power storage module 504.
The two second connection ends 121 are used to connect other electronic devices, and specifically, when the second electronic device 120 is connected to the first electronic device 110, the two second connection ends 121 are respectively connected to the two first connection ends 111. One of the two second connection terminals 121 serves as a positive electrode to be connected with the first connection terminal 111 serving as a positive electrode, and the other second connection terminal 121 serves as a negative electrode to be connected with the first connection terminal 111 serving as a negative electrode. The two second connection terminals 121 are connected to the power storage module 504 and the second control module 503, so that after the second electronic device 120 is connected to the first electronic device 110, the power storage module 504 can be charged through the two second connection terminals 121 under the control of the second control module 503. Thereby storing power for the first electronic device 110 in the power storage module 504. According to the embodiment of the present disclosure, the two second connection ends 121 and the two first connection ends 111 have a similar structure, for example, a Pin structure may be adopted, and details are not repeated herein.
According to the embodiment of the present disclosure, the second control module 503 may detect and obtain the second electrical parameter between the two second connection terminals 121 through the connection with the two second connection terminals 121. In order to facilitate the control of charging the second electronic device 120, when the second control module 503 senses that the first electronic device 110 capable of supplying power is connected through the two second connection terminals 121, a voltage value with a predetermined magnitude may be allocated to the two second connection terminals 121 to represent that the first electronic device 110 with a power supply function is accessed by the second electronic device 120. The second control module 503 can charge the electricity storage module 504 through the two second connection terminals 121 when the second electrical parameter satisfies the preset condition. The preset condition may be that a voltage value between the two second connection terminals 121 represented by the second electrical parameter is a voltage value of the predetermined magnitude, where the voltage value may be 5V.
When the second electronic device 120 is an electronic device matched with the first electronic device 110, in order to facilitate identification of the first electronic device 110, the second control module 503 may further send a current signal matched with the preset parameter after the second electronic device 120 is connected to the first electronic device 110, that is, under the condition that the second electrical parameter meets the preset condition. The current signal matched with the preset parameter may be used as a basis for the first electronic device 110 in fig. 2A to obtain the first electrical parameter matched with the preset parameter, so that the first electronic device 110 opens the first communication link according to the first electrical parameter. It is understood that the specific settings of the preset parameters and the current signals have been described in the foregoing, and are not described in detail herein.
Furthermore, in order to facilitate the communication connection between the second electronic device 120 and the first electronic device 110, the second control module 503 may be further connected to the second communication module 502, and the second communication module 502 is provided with a second communication link, so that in case of sending out the current signal, the second communication link can be turned on under the control of the second control module 503, so as to detect the first communication link of the first electronic device 110 and communicate with the first communication link.
In order to facilitate the control of the charging of the second electronic device 120 and the communication connection between the second electronic device 120 and the first electronic device 110, the embodiment of the present disclosure further provides a processing method. As shown in fig. 5B, the method includes operations S510 to S530. In operation S510, a second electrical parameter between the two second connection terminals 121 of the second electronic device 120 is obtained. In operation S520, in case that the second electrical parameter satisfies a preset condition, a current signal matching the preset parameter is emitted. In operation S530, a second communication link of the second electronic device 120 is opened. Wherein the second electronic device 120 is configured to: in the case that the two second connection terminals 121 are connected to the first electronic device 110, the second electronic device 120 is charged through the two second connection terminals 121, the current signal is used as a basis for the first electronic device 110 to obtain a first electrical parameter matching with a preset parameter, and the first electronic device 110 can open the first communication link according to the first electrical parameter. The type of the second communication link is similar to the type of the first communication link, and is not described herein again.
According to an embodiment of the present disclosure, the processing method may be performed by the second electronic device 120 in fig. 5A. Operations S510 to S530 are performed by the second control module 503. Alternatively, in order to reduce the modifications of the second electronic device 120 as much as possible, the second electronic device may be different from the electronic device in fig. 5A in that the second electronic device does not include the second control module 503 instead of the electronic device in fig. 5A. The processing method can be executed by the processing apparatus 130 shown in fig. 1, and the processing apparatus 130 is connected to both the first electronic device and the second electronic device. Operations S510 to S530 are similar to the operations performed by the first control module 203 in fig. 2A, and are not described herein again.
In summary, according to the electronic device and the processing method of the embodiment of the disclosure, the second electronic device 120 can be charged through the two second connection terminals, and the current signal with the preset parameter is sent out after the first electronic device is determined to be connected, so that the first electronic device 110 identifies the second electronic device 120, and the second communication link is opened for communicating with the first electronic device 110. That is, according to the electronic device and the processing method provided by the embodiment of the present disclosure, by sending the current signal, the first electronic device can recognize and determine the matched second electronic device without additionally providing a connection terminal, so that the cost of the electronic device can be increased to a certain extent, and the connection stability between the first electronic device and the second electronic device is improved.
Fig. 6 schematically shows a flow chart of a processing method according to a fifth embodiment of the present disclosure.
According to the embodiment of the present disclosure, since the first communication link and the second communication link may be communication links (e.g., bluetooth) wirelessly connected in a short distance, in a case where there are a plurality of first electronic devices 110 near the second electronic device 120, there may be a case where the second communication link of the second electronic device 120 erroneously connects to the first communication links of other electronic devices except the accessed first electronic device, and thus the second electronic device cannot effectively communicate with the accessed first electronic device.
In order to avoid the above situation, as shown in fig. 6, the processing method of the embodiment of the present disclosure may further include operations S640 to S660 in addition to operations S510 to S530.
In operation S640, link performance of the detected at least one first communication link is obtained. In operation S650, at least one first communication link is ranked according to the strength of the link performance. In operation S660, the second communication link of the second electronic device 120 is connected to the first communication link located at the predetermined location. According to the embodiment of the present disclosure, after the second electronic device 120 accesses the first electronic device 110, the link performance of the first communication link of the accessed first electronic device 110 is the strongest considering that the accessed first electronic device 110 is the closest to the second electronic device 120. Therefore, the operation may specifically be to connect the second communication link with the first communication link with the strongest link performance, and the predetermined location is specifically the first location.
Accordingly, the second electronic device 120 in fig. 5A may further include a second communication module 502 for detecting at least one first communication link within a predetermined range. The second electronic device 120 comprises a second control module 503 for: obtaining link performance of at least one first communication link detected by a second communication module; ranking at least one first communication link according to the strength of the link performance; and controlling the second communication link to communicate with the first communication link located at the predetermined location.
In summary, the processing method in the embodiment of the disclosure can avoid, to a certain extent, the situation that the second communication link of the second electronic device communicates with the first communication link of the other electronic device that is not accessed. Therefore, the problem that communication connection between the plurality of first electronic devices and the second electronic device is disordered in an application scene with the plurality of first electronic devices can be solved, and the user experience can be improved to a certain extent.
Fig. 7A to 7B schematically show a flow chart of a processing method according to a sixth embodiment of the present disclosure.
When the second electronic device 120 is connected to the first electronic device 110, but no communication connection is required between the two devices, if the second communication link is always in the on state, unnecessary power consumption of the second electronic device 120 is inevitably caused. To solve this problem, as shown in fig. 7A, the processing method of the embodiment of the present disclosure may further include an operation S770 of closing the second communication link when the time that the second communication link is in the open state is longer than a second preset time and the second communication link is not connected to the first communication link, in addition to the operations S510 to S530. Correspondingly, in fig. 5A, the second control module 503 included in the second electronic device 120 may be further configured to close the second communication link when the time that the second communication link is in the open state is longer than the first preset time and the second communication link is not connected to the first communication link. The second preset time may be set according to an actual requirement, for example, the second preset time may be the same as or different from the first preset time, and the second preset time may be 30S, for example.
After the second electronic device 120 is connected to the first electronic device 110, if the electrical connection with the first electronic device 110 is disconnected, the communication connection with the first electronic device 110 is no longer required. In this case, if the second communication link is always in the on state, unnecessary power consumption of the second electronic device 120 is inevitably caused. To solve this problem, as shown in fig. 7B, the processing method of the embodiment of the present disclosure may further include operation S780, in addition to operation S510 to operation S530, in which in a case where the second communication link connects the first communication link of the first electronic device, the second communication link is closed in response to an operation of disconnecting the first electronic device by the two second connection terminals. Accordingly, the second control module 503 of the second electronic device 120 in fig. 5A may be further configured to close the second communication link in response to the operation of disconnecting the first electronic device 110 from the two second connection terminals in the case that the first communication link of the second communication link connected with the first electronic device 110 is connected.
Fig. 8A schematically shows a structural diagram of an electronic device according to a fourth embodiment of the present disclosure, and fig. 8B schematically shows a flowchart of a processing method according to a seventh embodiment of the present disclosure.
As shown in fig. 8A, the electronic device (i.e., the second electronic device 120) according to the embodiment of the disclosure may further include, for example, a second multimedia module 805 in addition to the two second connection terminals 121, the second communication module 502, the second control module 503 and the power storage module 504, where the second multimedia module 805 is connected to the second control module 503 for playing multimedia information under the control of the second control module 503. The second multimedia module 805 is similar to the first multimedia module 407 described in fig. 4A in structure and function, and the multimedia information may include image information, audio information and/or text information, and is not described herein again.
In order to better embody the interactive effect, the second electronic device 120 may further send the multimedia information corresponding to the first operation to the first electronic device 110 for playing when the second multimedia module 805 performs the first operation (e.g., a playing operation) through the second communication link. The second communication module 502 in fig. 8A is further configured to transmit the multimedia information via the second communication link under the control of the second control module 503 in a case where the second communication link is in communication with the first communication link of the first electronic device 110, so that the first electronic device performs the first operation matching with the multimedia information. Accordingly, as shown in fig. 8B, the processing method of the embodiment of the disclosure may further include an operation S890, in addition to the operations S510 to S530, of transmitting the multimedia information to the first electronic device 110 in a case where the second communication link connects the first communication link of the first electronic device 110.
In the case that the first electronic device 110 has low processing capability or cannot be connected to a server or a cloud system, and the second electronic device 120 accesses the first electronic device 110 and is in communication connection with the first electronic device 110, the second electronic device 120 in fig. 8A may further receive the voice information collected by the first electronic device 110 through the second communication link of the second communication module 502. The second control module 503 may further analyze and process the voice information to obtain a voice feature after the second communication module receives the voice information, then obtain multimedia information corresponding to the voice information from the server or the cloud system according to the voice feature, and finally control the second communication module 502 to send the multimedia information to the first electronic device 110 through the second communication link when the multimedia information is obtained. Thereby enabling the first electronic device 110 to perform a first operation matching the multimedia information in response to the voice information.
Fig. 9 schematically shows a block diagram of a processing apparatus according to a first embodiment of the present disclosure.
As shown in fig. 9, the present disclosure also provides a processing apparatus 900, which includes a first electrical parameter obtaining module 910, a first communication link control module 920, and a power supply control module 930.
The first electrical parameter obtaining module 910 is configured to obtain a first electrical parameter between two detection points of the first electronic device 110, where at least one of the two first connection terminals 111 of the first electronic device 110 is connected to the two detection points (operation S210).
The first communication link control module 920 is configured to open the first communication link of the first electronic device 110 if the first electrical parameter matches a preset parameter (operation S220).
The power supply control module 930 is configured to control the first electronic device 110 to supply power to the second electronic device 120 through the two first connection terminals 111 when the two first connection terminals 111 of the first electronic device 110 are connected to the second electronic device 120.
According to an embodiment of the present disclosure, the first electrical parameter obtaining module 910 is specifically configured to obtain electrical parameters at two ends of a target device of the first electronic device 110, so as to obtain the first electrical parameter, where the target device is connected to one of the two first connection ends 111. In the case that the two first connection terminals 111 are connected to the second electronic device 120, the first electrical parameter is obtained according to a current signal sent by the second electronic device 120.
According to an embodiment of the present disclosure, the first communication link control module 920 is further configured to: closing the first communication link if the time that the first communication link is in the open state is greater than a first preset time and the first communication link is not connected (operation S330); and/or, in case the first communication link is connected by the second communication link of the second electronic device 120, in response to the operation of disconnecting the second electronic device 120 by the two first connection terminals 111, closing the first communication link (operation S340).
According to an embodiment of the present disclosure, as shown in fig. 9, the processing device 900 may further include a multimedia information receiving module 940 and an operation control module 950. Wherein, the multimedia information receiving module 940 is configured to receive the multimedia information sent by the second electronic device 120 when the first communication link is connected by the second communication link of the second electronic device 120 (operation S450). The operation control module 950 is configured to control the first electronic device 110 to perform a first operation matching the multimedia information received by the multimedia information receiving module 940 (operation S460). Wherein the multimedia information is transmitted by the second electronic device under the condition of executing the first operation; or the multimedia information is sent by the second electronic device under the condition that the multimedia information is obtained according to the voice information, and the voice information is collected by the first electronic device and then sent to the second electronic device.
According to an embodiment of the present disclosure, the processing device 900 may be disposed in the first electronic device 110 in fig. 1, or may be the processing device 130 in fig. 1, for example.
Fig. 10 schematically shows a block diagram of a processing apparatus according to a second embodiment of the present disclosure.
As shown in fig. 10, the present disclosure also provides a processing device 1000, where the processing device 1000 includes a second electrical parameter obtaining module 1010, a current signal sending control module 1020, a second communication link control module 1030, and a charging control module 1040.
The second electrical parameter obtaining module 1010 is configured to obtain a second electrical parameter between the two second connection terminals 121 of the second electronic device 120 (operation S510).
The current signal transmission control module 1020 is configured to control the second electronic device to transmit a current signal matching the preset parameter when the second electrical parameter satisfies the preset condition (operation S520). The current signal is used as a basis for the first electronic device 110 to obtain a first electrical parameter matching the preset parameter, and the first electronic device 110 can open the first communication link according to the first electrical parameter.
The second communication link control module 1030 is configured to open the second communication link of the second electronic device 120 if the current signal transmission control module controls the second electronic device to transmit the current signal (operation S530).
The charging control module 1040 is configured to control the second electronic device 120 to be charged through the two second connection terminals 121 when the two second connection terminals of the second electronic device 120 are connected to the first electronic device 110.
According to an embodiment of the disclosure, as shown in fig. 10, the processing apparatus 1000 further includes a link performance obtaining module 1050 and a link arrangement module 1060. The link performance obtaining module 1050 is configured to obtain the link performance of the at least one first communication link detected by the second electronic device 120 (operation S640). The link ranking module 1060 is configured to rank strengths of the at least one first communication link according to link performance (operation S650). Accordingly, the second communication link control module 1030 is further configured to communicate the second communication link of the second electronic device 120 with the first communication link located at the predetermined location (operation S660).
According to an embodiment of the present disclosure, as shown in fig. 10, the second communication link control module 1030 is further configured to: in the case that the time when the second communication link is in the on state is greater than the second preset time and the second communication link is not connected to the first communication link, the second communication link is closed (operation S770). And/or, the second communication link control module 1030 is further configured to close the second communication link in response to the operation of disconnecting the first electronic device 110 from the two second connection terminals of the second electronic device 120, in case that the first communication link of the second communication link connected to the first electronic device 110 is connected (operation S780).
According to an embodiment of the present disclosure, as shown in fig. 10, the processing apparatus 1000 may further include a multimedia information sending module 1070, configured to send multimedia information to the first electronic device 110 when the second communication link of the second electronic device 120 is connected to the first communication link of the first electronic device 110 (operation S890), so that the first electronic device 110 performs a first operation matching the multimedia information. The multimedia information sending module 1070 is configured to send the multimedia information if the second electronic device 120 performs the first operation; or, the multimedia information sending module 1070 is configured to send the multimedia information when the second electronic device 120 receives the voice information collected by the first electronic device 110 and obtains the multimedia information according to the voice information.
According to an embodiment of the present disclosure, the processing device 1000 may be disposed in the second electronic device 120 in fig. 1, or may be the processing device 130 in fig. 1, for example.
Any number of modules, sub-modules, units, sub-units, or at least part of the functionality of any number thereof according to embodiments of the present disclosure may be implemented in one module. Any one or more of the modules, sub-modules, units, and sub-units according to the embodiments of the present disclosure may be implemented by being split into a plurality of modules. Any one or more of the modules, sub-modules, units, sub-units according to embodiments of the present disclosure may be implemented at least in part as a hardware circuit, such as a Field Programmable Gate Array (FPGA), a Programmable Logic Array (PLA), a system on a chip, a system on a substrate, a system on a package, an Application Specific Integrated Circuit (ASIC), or may be implemented in any other reasonable manner of hardware or firmware by integrating or packaging a circuit, or in any one of or a suitable combination of software, hardware, and firmware implementations. Alternatively, one or more of the modules, sub-modules, units, sub-units according to embodiments of the disclosure may be at least partially implemented as a computer program module, which when executed may perform the corresponding functions.
For example, one or more of the first electrical parameter acquisition module 910, the first communication link control module 920, the power supply control module 930, the multimedia information receiving module 940 and the operation control module 950, or one or more of the second electrical parameter acquisition module 1010, the current signal transmission control module 1020, the second communication link control module 1030, the charging control module 1040, the link performance acquisition module 1050, the link arrangement module 1060 and the multimedia information transmitting module 1070 may be combined and implemented in one module, or any one of them may be split into a plurality of modules. Alternatively, at least part of the functionality of one or more of these modules may be combined with at least part of the functionality of the other modules and implemented in one module. According to the embodiment of the present disclosure, at least one of the first electrical parameter obtaining module 910, the first communication link control module 920, the power supply control module 930, the multimedia information receiving module 940 and the operation control module 950, or at least one of the second electrical parameter obtaining module 1010, the current signal transmission control module 1020, the second communication link control module 1030, the charging control module 1040, the link performance obtaining module 1050, the link arrangement module 1060 and the multimedia information transmitting module 1070 may be at least partially implemented as a hardware circuit, such as a Field Programmable Gate Array (FPGA), a Programmable Logic Array (PLA), a system on a chip, a system on a substrate, a system on a package, an Application Specific Integrated Circuit (ASIC), or may be implemented by hardware or firmware such as any other reasonable way of integrating or packaging the circuit, or implemented by software, a computer, or a computer readable medium, Hardware, and firmware, or in any suitable combination of any of the three. Alternatively, at least one of the first electrical parameter acquisition module 910, the first communication link control module 920, the power supply control module 930, the multimedia information receiving module 940 and the operation control module 950, or at least one of the second electrical parameter acquisition module 1010, the current signal transmission control module 1020, the second communication link control module 1030, the charging control module 1040, the link performance acquisition module 1050, the link arrangement module 1060 and the multimedia information transmission module 1070 may be at least partially implemented as a computer program module, which, when executed, may perform a corresponding function.
Fig. 11 schematically shows a block diagram of an electronic device adapted to perform a processing method according to an embodiment of the present disclosure.
As shown in fig. 11, electronic device 1100 includes a processor 1110, a computer-readable storage medium 1120, a signal transmitter 1130, and a signal receiver 1140. The electronic device 1100 may perform a method according to an embodiment of the disclosure. The electronic device 1100 may comprise, for example, the processing apparatus 130 of fig. 1, according to an embodiment of the disclosure.
In particular, processor 1110 may include, for example, a general purpose microprocessor, an instruction set processor and/or related chip set and/or a special purpose microprocessor (e.g., an Application Specific Integrated Circuit (ASIC)), and/or the like. The processor 1110 may also include onboard memory for caching purposes. Processor 1110 may be a single processing unit or multiple processing units for performing different actions of a method flow according to embodiments of the disclosure.
Computer-readable storage medium 1120, for example, may be a non-volatile computer-readable storage medium, specific examples including, but not limited to: magnetic storage devices, such as magnetic tape or Hard Disk Drives (HDDs); optical storage devices, such as compact disks (CD-ROMs); a memory, such as a Random Access Memory (RAM) or a flash memory; and so on.
The computer-readable storage medium 1120 may include a computer program 1121, and the computer program 1121 may include code/computer-executable instructions that, when executed by the processor 1110, cause the processor 1110 to perform a method according to an embodiment of the present disclosure, or any variation thereof.
The computer programs 1121 can be configured to have, for example, computer program code including computer program modules. For example, in an example embodiment, code in computer program 1121 may include one or more program modules, including, for example, 1121A, 1121B, … …. It should be noted that the division and number of modules are not fixed, and those skilled in the art may use suitable program modules or program module combinations according to actual situations, so that the processor 1110 may execute the method according to the embodiment of the present disclosure or any variation thereof when the program modules are executed by the processor 1110.
According to an embodiment of the present disclosure, the processor 1110 may interact with the signal transmitter 1130 and the signal receiver 1140 to realize information interaction with the first electronic device 110 and the second electronic device 120, so as to perform the method of the embodiment of the present disclosure or any variation thereof.
According to an embodiment of the present invention, at least one of the first electrical parameter obtaining module 910, the first communication link control module 920, the power supply control module 930, the operation control module 950, the second electrical parameter obtaining module 1010, the current signal transmission control module 1020, the second communication link control module 1030, the charging control module 1040, the link performance obtaining module 1050, and the link arrangement module 1060 may be implemented as a computer program module described with reference to fig. 11, which when executed by the processor 1110 may implement the corresponding operations described above. Accordingly, the multimedia information receiving module 940 may be implemented as the information receiver 1140 described with reference to fig. 11, and the multimedia information transmitting module 1070 may be implemented as the information transmitter 1130 described with reference to fig. 11.
The present disclosure also provides a computer-readable storage medium, which may be contained in the apparatus/device/system described in the above embodiments; or may exist separately and not be assembled into the device/apparatus/system. The computer-readable storage medium carries one or more programs which, when executed, implement the method according to an embodiment of the disclosure.
According to embodiments of the present disclosure, the computer-readable storage medium may be a non-volatile computer-readable storage medium, which may include, for example but is not limited to: a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
Those skilled in the art will appreciate that various combinations and/or combinations of features recited in the various embodiments and/or claims of the present disclosure can be made, even if such combinations or combinations are not expressly recited in the present disclosure. In particular, various combinations and/or combinations of the features recited in the various embodiments and/or claims of the present disclosure may be made without departing from the spirit or teaching of the present disclosure. All such combinations and/or associations are within the scope of the present disclosure.
While the disclosure has been shown and described with reference to certain exemplary embodiments thereof, it will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the spirit and scope of the disclosure as defined by the appended claims and their equivalents. Accordingly, the scope of the present disclosure should not be limited to the above-described embodiments, but should be defined not only by the appended claims, but also by equivalents thereof.

Claims (10)

1. A method of processing, comprising:
obtaining a first electrical parameter between two detection points of first electronic equipment, wherein the first electrical parameter comprises the electrical parameters at two ends of a target device of the first electronic equipment, the first electrical parameter is obtained, at least one first connection end of two first connection ends of the first electronic equipment is connected with the two detection points, and the target device is arranged between the two detection points and is connected with one first connection end of the two first connection ends; and
opening a first communication link of the first electronic device if the first electrical parameter matches a preset parameter,
wherein the first electronic device is configured to: under the condition that the two first connecting ends are connected with second electronic equipment, the two first connecting ends supply power to the second electronic equipment, the preset parameters are used for judging whether the second electronic equipment is matched with the first electronic equipment or not, so that the first communication link is opened after the matched second electronic equipment is determined to be connected, and the first communication link comprises a wireless communication link.
2. The method of claim 1, wherein the first electrical parameter is obtained from a current signal emitted by the second electronic device in case the two first connection terminals are connected to the second electronic device.
3. The method of claim 1, further comprising:
when the time that the first communication link is in the opening state is longer than first preset time and the first communication link is not communicated, closing the first communication link; and/or
In the case that the first communication link is connected by a second communication link of the second electronic device, the first communication link is closed in response to an operation that the two first connection ends disconnect the second electronic device.
4. The method of claim 1, further comprising: in the event that the first communication link is connected by a second communication link of the second electronic device:
receiving multimedia information sent by the second electronic equipment; and
performing a first operation matching the multimedia information,
wherein the multimedia information is transmitted by the second electronic device while performing the first operation; or the multimedia information is sent by the second electronic device under the condition that the multimedia information is obtained according to voice information, and the voice information is collected by the first electronic device and then sent to the second electronic device.
5. A method of processing, comprising:
obtaining a second electrical parameter between two second connection ends of the second electronic device; and
in the case that the second electrical parameter satisfies a preset condition:
sending a current signal matched with a preset parameter by the second electronic equipment; and
opening a second communication link of the second electronic device,
wherein the second electronic device is configured to: under the condition that the two second connecting ends are connected with first electronic equipment, the second electronic equipment is charged through the two second connecting ends, the current signal is used as a basis for the first electronic equipment to obtain a first electrical parameter matched with the preset parameter, the first electronic equipment can open a first communication link according to the first electrical parameter, the preset parameter is used for judging whether the second electronic equipment is the second electronic equipment matched with the first electronic equipment or not, so that the first communication link is opened after the matched second electronic equipment is determined to be connected, and the first communication link comprises a wireless communication link.
6. The method of claim 5, further comprising:
obtaining link performance of the detected at least one first communication link;
ranking the at least one first communication link according to the strength of the link performance; and
communicating the second communication link of the second electronic device with the first communication link located at the predetermined location.
7. An electronic device, comprising:
at least one first connecting end is connected with two detection points;
the first communication module is provided with a first communication link and is used for communicating with second electronic equipment except the electronic equipment;
the first control module is connected with the first communication module and the two detection points and used for obtaining a first electrical parameter between the two detection points and starting the first communication link under the condition that the first electrical parameter is matched with a preset parameter;
the target device is arranged between the two detection points, and the first electrical parameters obtained by the first control module are electrical parameters at two ends of the target device; and
a power supply module connected with the two first connection ends and the first control module and used for supplying power to the second electronic equipment through the two first connection ends when the two first connection ends are connected with the second electronic equipment under the control of the first control module,
the preset parameters are used for judging whether the second electronic equipment is matched with the first electronic equipment or not, so that the first communication link is opened after the matched second electronic equipment is determined to be connected, and the first communication link comprises a wireless communication link.
8. The apparatus of claim 7, wherein the electrical parameter across the target device is obtained from a current signal emitted by the second electronic device in a case where the two first connection terminals are connected to the second electronic device.
9. An electronic device, comprising:
the two second connecting ends are used for connecting first electronic equipment except the electronic equipment;
the second communication module is provided with a second communication link;
the second control module is connected with the second communication module and the two second connecting ends and used for:
obtaining a second electrical parameter between the two second connection ends;
sending a current signal matched with a preset parameter under the condition that the second electrical parameter meets a preset condition; and
opening the second communication link if the current signal is emitted; and
the power storage module is connected with the second control module and the two second connecting ends and used for charging through the two second connecting ends when the two second connecting ends are connected with the first electronic equipment under the control of the second control module,
the current signal is used as a basis for the first electronic device to obtain a first electrical parameter matched with the preset parameter, the first electronic device can open a first communication link according to the first electrical parameter, the preset parameter is used for judging whether a second electronic device is a second electronic device matched with the first electronic device, so that the first communication link is opened after the matched second electronic device is determined to be connected, and the first communication link comprises a wireless communication link.
10. The apparatus of claim 9, wherein:
the second communication module is further configured to: detecting at least one first communication link within a predetermined range; and
the second control module is further configured to:
obtaining link performance of the at least one first communication link detected by the second communication module;
ranking the at least one first communication link according to the strength of the link performance; and
and controlling the second communication link to be communicated with the first communication link at the preset position.
CN201910256502.3A 2019-03-29 2019-03-29 Processing method and electronic device Active CN109980731B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910256502.3A CN109980731B (en) 2019-03-29 2019-03-29 Processing method and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910256502.3A CN109980731B (en) 2019-03-29 2019-03-29 Processing method and electronic device

Publications (2)

Publication Number Publication Date
CN109980731A CN109980731A (en) 2019-07-05
CN109980731B true CN109980731B (en) 2021-11-16

Family

ID=67082114

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910256502.3A Active CN109980731B (en) 2019-03-29 2019-03-29 Processing method and electronic device

Country Status (1)

Country Link
CN (1) CN109980731B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102570546A (en) * 2011-12-28 2012-07-11 中兴通讯股份有限公司 Mobile terminal and charge device and method thereof
CN104065144A (en) * 2014-07-10 2014-09-24 上海斐讯数据通信技术有限公司 System and method for dynamically adjusting output voltage and output current of USB charger through VBUS signal
CN104124740A (en) * 2013-04-23 2014-10-29 苏州引角信息科技有限公司 Portable charging adapter
CN105140985A (en) * 2015-08-05 2015-12-09 青岛海信移动通信技术股份有限公司 Mobile terminal, direct-charge power adapter and charging method
CN107708114A (en) * 2017-10-09 2018-02-16 上海与德科技有限公司 A kind of method and portable power source for connecting wireless network

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105282326A (en) * 2015-09-14 2016-01-27 联想(北京)有限公司 Control method, electronic equipment and electronic device
CN106060269A (en) * 2016-06-30 2016-10-26 努比亚技术有限公司 Data processing method and electronic device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102570546A (en) * 2011-12-28 2012-07-11 中兴通讯股份有限公司 Mobile terminal and charge device and method thereof
CN104124740A (en) * 2013-04-23 2014-10-29 苏州引角信息科技有限公司 Portable charging adapter
CN104065144A (en) * 2014-07-10 2014-09-24 上海斐讯数据通信技术有限公司 System and method for dynamically adjusting output voltage and output current of USB charger through VBUS signal
CN105140985A (en) * 2015-08-05 2015-12-09 青岛海信移动通信技术股份有限公司 Mobile terminal, direct-charge power adapter and charging method
CN107708114A (en) * 2017-10-09 2018-02-16 上海与德科技有限公司 A kind of method and portable power source for connecting wireless network

Also Published As

Publication number Publication date
CN109980731A (en) 2019-07-05

Similar Documents

Publication Publication Date Title
JP6083878B2 (en) Method and apparatus for determining the direction of power supply
US10671135B2 (en) Intelligent mobile power supply and method for USB data communication therewith
CN108718020B (en) Concentrator
US9588560B2 (en) Baseband PD communication over USB standard a connector
US9431841B2 (en) Device to device charging via USB type-C interfaces
KR102258143B1 (en) Charging circuit for electronic device
US9448611B2 (en) Interface expending method and device for tablet computer
KR101682386B1 (en) A portable charging apparatus and a charging method thereof and a charging system
US8332545B1 (en) USB switch which allows primary USB connection in response to USB signaling
US8949631B2 (en) USB power supply method and device, and end device and system using the same
EP2929613A1 (en) Apparatus and methods for utilizing a wireless charger in a wireless docking environment
EP2860639A1 (en) Communication control pins in a dual row connector
WO2017049459A1 (en) Method and device for controlling charging and electronic device
US20130234668A1 (en) Universal serial bus apparatus and power supply method thereof
CN104272216A (en) Electronic device and control method therefor
CN103078365A (en) Bluetooth headset charging box and charging method thereof
CN110191215B (en) Terminal and processing method
CN104378838A (en) Method and device for building wireless connection
CN110492575B (en) Quick charging system and method for handheld device and handheld device
CN107508354B (en) A kind of charging method and mobile terminal
CN110224469A (en) The control method and device and charging system of charging system
CN105389225A (en) Touch screen reporting point processing method and apparatus
CN109980731B (en) Processing method and electronic device
CN110518668A (en) For the quick charging system and method for handheld device, handheld device
CN106026232A (en) Detecting method and apparatus for USB port type

Legal Events

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