CN112738908A - Electronic equipment connection method and device and electronic equipment - Google Patents

Electronic equipment connection method and device and electronic equipment Download PDF

Info

Publication number
CN112738908A
CN112738908A CN202011566735.2A CN202011566735A CN112738908A CN 112738908 A CN112738908 A CN 112738908A CN 202011566735 A CN202011566735 A CN 202011566735A CN 112738908 A CN112738908 A CN 112738908A
Authority
CN
China
Prior art keywords
electronic device
target
connection
electrical signal
electronic
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202011566735.2A
Other languages
Chinese (zh)
Inventor
杨颖�
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN202011566735.2A priority Critical patent/CN112738908A/en
Publication of CN112738908A publication Critical patent/CN112738908A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R1/00Details of transducers, loudspeakers or microphones
    • H04R1/10Earpieces; Attachments therefor ; Earphones; Monophonic headphones
    • H04R1/1041Mechanical or electronic switches, or control elements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication

Abstract

The application discloses an electronic equipment connection method and device and electronic equipment, belongs to the technical field of communication and aims to solve the problem that the connection accuracy of the electronic equipment is low. The method comprises the following steps: receiving a target electrical signal; wherein the target electrical signal is transmitted in the form of current by the second electronic device; and responding to a pairing request sent by the second electronic equipment, and establishing target connection with the second electronic equipment. The method and the device are applied to the directional connection scene of the electronic equipment.

Description

Electronic equipment connection method and device and electronic equipment
Technical Field
The application belongs to the technical field of communication, and particularly relates to an electronic device connection method and device and an electronic device.
Background
With the development of communication technology, the frequency of connecting the user with the electronic device by using the wireless headset is higher and higher, and the requirement of the user on the accuracy of connecting the electronic device with the wireless headset is also higher and higher.
Currently, when a user wants to connect the electronic device 1 and the wireless headset 1, the headset box of the wireless headset 1 may be opened first, and at this time, the wireless headset 1 may send a pairing request to the electronic device 1. The electronic device 1 will then pop up to ask whether to connect to the wireless headset 1, at which point the user can click the "connect" option and the electronic device 1 will connect to the wireless headset 1.
However, since the wireless headset 1 may send the pairing request to each of the plurality of electronic devices including the electronic device 1, and any one of the plurality of electronic devices may be connected to the wireless headset 1, if some users unintentionally or maliciously connect their electronic devices to the wireless headset 1, the electronic device 1 may not be connected to the wireless headset 1. Therefore, the connection accuracy of the electronic device is low.
Disclosure of Invention
The embodiment of the application aims to provide an electronic equipment connection method, an electronic equipment connection device and electronic equipment, and the problem that the connection accuracy of the electronic equipment is low can be solved.
In order to solve the technical problem, the present application is implemented as follows:
in a first aspect, an embodiment of the present application provides an electronic device connection method, which is applied to a first electronic device, and includes: receiving a target electrical signal; wherein the target electrical signal is transmitted in the form of current by the second electronic device; and responding to a pairing request sent by the second electronic equipment, and establishing target connection with the second electronic equipment.
In a second aspect, an embodiment of the present application provides another electronic device connection method, which is applied to a second electronic device, and includes: sending a target electrical signal and a pairing request, the target electrical signal being transmitted in the form of an electrical current; establishing a target connection with a first electronic device; the first electronic device is a device which receives the target electric signal and the pairing request.
In a third aspect, an embodiment of the present application provides an electronic device connecting apparatus, including: the device comprises a receiving module and a connecting module; the receiving module is used for receiving a target electric signal; wherein the target electrical signal is transmitted in the form of current by the second electronic device; the connection module is configured to establish a target connection with the second electronic device in response to a pairing request sent by the second electronic device.
In a fourth aspect, an embodiment of the present application provides another electronic device connection apparatus, including: a sending module and a connecting module; the sending module is used for sending a target electric signal and a pairing request, wherein the target electric signal is transmitted in a current form; the connection module is used for establishing target connection with the first electronic equipment; the first electronic device is a device which receives the target electrical signal and the pairing request.
In a fifth aspect, the present application provides an electronic device, which includes a processor, a memory, and a program or instructions stored on the memory and executable on the processor, and when executed by the processor, the program or instructions implement the steps of the method according to the first aspect or the second aspect.
In a sixth aspect, embodiments of the present application provide a readable storage medium, on which a program or instructions are stored, which when executed by a processor implement the steps of the method according to the first or second aspect.
In a seventh aspect, an embodiment of the present application provides a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and the processor is configured to execute a program or instructions to implement the method according to the first aspect or the second aspect.
In the embodiment of the present application, first, the first electronic device may receive a target electrical signal; wherein the target electrical signal is transmitted in the form of current by the second electronic device. The first electronic device may then establish a target connection with the second electronic device in response to a pairing request sent by the second electronic device. Through the scheme, compared with the scheme that the electronic equipment can be connected with the wireless earphone under the condition that the electronic equipment receives the pairing request sent by the wireless earphone in the related art, the first electronic equipment in the application can respond to the pairing request sent by the second electronic equipment and establish target connection with the second electronic equipment only by receiving the target electric signal. Therefore, the first electronic device and the second electronic device which need to establish target connection can be locked through the target electric signals, and therefore the connection accuracy of the electronic devices can be improved.
Drawings
Fig. 1 is a schematic flowchart of a method for connecting an electronic device according to an embodiment of the present disclosure;
fig. 2 is a schematic interface diagram applied to an electronic device connection method according to an embodiment of the present disclosure;
fig. 3 is a schematic flowchart of another electronic device connection method according to an embodiment of the present disclosure;
fig. 4 is a schematic structural diagram of an electronic device connection apparatus according to an embodiment of the present disclosure;
fig. 5 is a schematic structural diagram of another electronic device connection apparatus according to an embodiment of the present disclosure;
fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure;
fig. 7 is a second schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The terms first, second and the like in the description and in the claims of the present application are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the application are capable of operation in sequences other than those illustrated or described herein. The objects distinguished by "first", "second", and the like are usually a class, and the number of the objects is not limited, and for example, the first object may be one or a plurality of objects. In addition, "and/or" in the specification and claims means at least one of connected objects, a character "/" generally means that a preceding and succeeding related objects are in an "or" relationship.
The electronic device connection method provided by the embodiment of the present application is described in detail below with reference to the accompanying drawings through specific embodiments and application scenarios thereof.
Fig. 1 is a schematic flowchart of a connection method for an electronic device, which is applied to a first electronic device and includes steps 201 and 202:
step 201: the first electronic device receives a target electrical signal.
Wherein the target electrical signal is transmitted by the second electronic device in the form of current.
In the embodiment of the present application, the first electronic device and the second electronic device are both in the target state. For example, the target state may be bluetooth enabled, or access to a network (e.g., access to the same lan), etc., which is not limited in this embodiment of the application.
In an embodiment of the application, a first electronic device has a first current sensor. Wherein, the first current sensor is used for receiving the target electric signal. For example, the first current sensor may be disposed inside the first electronic device (for example, inside the housing of the mobile phone), or may be disposed outside the first electronic device (for example, outside the housing of the mobile phone), which is not limited in this embodiment of the present application.
It should be noted that, in the case where the first current sensor is disposed inside the first electronic device, the transmission of the target electrical signal is not affected by the housing of the first electronic device and other devices, that is, the housing of the first electronic device and other devices may be conductive, so that the transmission target electrical signal is not blocked.
The first current sensor may be a dedicated current sensor that receives the target electrical signal. For example, in the case where the first current sensor is disposed inside the first electronic device, the first current sensor may be insulated (or signal-shielded) from other devices inside the first electronic device, so that the other devices inside the first electronic device may not receive the target electrical signal.
In an embodiment of the application, the second electronic device has a second current sensor. Wherein the second current sensor is used for transmitting the target electric signal. For example, the second current sensor may be disposed inside the second electronic device (for example, inside the earphone housing or inside the earphone box housing), or may be disposed outside the second electronic device (for example, outside the earphone housing or outside the earphone box housing), which is not limited in this embodiment of the application.
It should be noted that, in the case where the second current sensor is disposed inside the second electronic device, the transmission of the target electrical signal is not affected by the housing and other devices of the second electronic device, that is, the housing and other devices of the second electronic device may be conductive, so that the transmission target electrical signal is not blocked.
It is understood that the target electrical signal is transmitted from the second electronic device to the first electronic device.
In this embodiment of the application, the second electronic device may directly transmit the target electrical signal to the first electronic device, or may indirectly transmit the target electrical signal to the first electronic device, which is not limited in this embodiment of the application.
In one example, the second electronic device may transmit the target electrical signal directly to the first electronic device. For example, the second electronic device may be in direct contact with the first electronic device.
In another example, the second electronic device may indirectly transmit the target electrical signal to the first electronic device. Specifically, the second electronic device may transmit the target electrical signal to the first electronic device using any conductive medium. For example, the second electronic device may transmit the target electrical signal to the first electronic device using a human body as a conductive medium.
For example, taking the first electronic device as a mobile phone and the second electronic device as a wireless headset including a headset box as an example, when a user wants to connect the mobile phone and the wireless headset, the user can hold the headset box of the wireless headset with one hand and hold the mobile phone with the other hand. Then, when the user opens the earphone box of the wireless earphone, the earphone box can send an electric signal and transmit the electric signal by using a human body as a conductor medium, and finally the mobile phone can receive the electric signal. In this way, for other mobile phones, since the other mobile phones cannot receive the electric signal, a target connection, such as a bluetooth connection, cannot be subsequently established with the wireless headset, thereby preventing a wrong connection device.
In the case that the second electronic device utilizes a human body as a conductive medium, in order to ensure that the human body is not damaged, the current corresponding to the target electrical signal is less than or equal to the human body safety current.
Optionally, in this embodiment of the application, the target electrical signal may include first device information of the second electronic device.
It should be noted that, the above-mentioned target electrical signal may include the first device information of the second electronic device, and it is understood that: the target electrical signal may carry first device information of the second electronic device. Illustratively, the first device information may include at least one of: device name, device model, physical address of the device. It should be noted that the first device information includes, but is not limited to, the aforementioned three information.
In the embodiment of the present application, the second electronic device may continuously transmit the target electrical signal. It should be noted that the continuous transmission of the target electrical signal by the second electronic device may be understood as: the second electronic device continuously transmits the target electrical signal, or the second electronic device transmits the target electrical signal at predetermined time intervals (e.g., every 1 second). It can be understood that the first electronic device can always maintain the receiving state to ensure that the target electrical signal can be received at any time.
Alternatively, in the case where the second electronic device includes the functional device and the outer box, the second electronic device may transmit the target electric signal in the case where the outer box is in the opened state; in the case where the outer case is in the closed state, the target electric signal is not transmitted.
Illustratively, the functional device may be any one of the following: wireless earphone (like bluetooth earphone), wireless bracelet (like bluetooth bracelet), wireless wrist-watch (like bluetooth bracelet).
It should be noted that the functional device may be any device capable of short-distance communication connection.
For example, taking the second electronic device as a wireless headset including a headset case (i.e., the outer case), when the headset case of the wireless headset is in a closed state, the headset case does not transmit an electrical signal; when the earphone box of the wireless earphone is in an open state, the current sensor in the earphone box can continuously send an electric signal.
Step 202: in response to a pairing request sent by a second electronic device, the first electronic device establishes a target connection with the second electronic device.
In this embodiment, the pairing request may be sent by the second electronic device to a plurality of electronic devices including the first electronic device; alternatively, when the second electronic device and the first electronic device mutually determine, the second electronic device only transmits to the first electronic device, which is not limited in this embodiment of the present application. In this embodiment, the pairing request may be sent by the second electronic device to the first electronic device through bluetooth, a network, or the like.
In one example, the first electronic device needs to establish a target connection with the second electronic device in response to a pairing request sent by the second electronic device if it is determined that a target electrical signal is received. Wherein the pairing request is transmitted by the second electronic device to a plurality of electronic devices including the first electronic device.
In another example, the first electronic device may determine a mutual determination with the second electronic device based on the target electrical signal. Then, after receiving the pairing request sent by the second electronic device, the first electronic device may establish a target connection with the second electronic device in response to the pairing request. Wherein the pairing request is sent by the second electronic device only to the first electronic device.
For example, in a case where the second electronic device includes a functional device and an outer box, the aforementioned establishing of the target connection between the first electronic device and the second electronic device may be: the first electronic device and the functional device establish a target connection.
According to the electronic equipment connection method provided by the embodiment of the application, first, a first electronic equipment can receive a target electric signal; wherein the target electrical signal is transmitted in the form of current by the second electronic device. The first electronic device may then establish a target connection with the second electronic device in response to a pairing request sent by the second electronic device. Through the scheme, compared with the scheme that the electronic equipment can be connected with the wireless earphone under the condition that the electronic equipment receives the pairing request sent by the wireless earphone in the related art, the first electronic equipment in the application can respond to the pairing request sent by the second electronic equipment and establish target connection with the second electronic equipment only by receiving the target electric signal. Therefore, the first electronic device and the second electronic device which need to establish target connection can be locked through the target electric signals, and therefore the connection accuracy of the electronic devices can be improved.
Optionally, in this embodiment of the present application, the first electronic device may establish the target connection with the second electronic device through at least two possible implementation manners.
In a first possible implementation:
for example, in the case that the target electrical signal may include first device information of the second electronic device, before the target connection is established with the second electronic device in response to the pairing request sent by the second electronic device in step 202, the method may further include the following steps 202a and 202 b:
step 202 a: the first electronic device transmits second device information to the second electronic device based on the target electrical signal.
The second device information is device information of the first electronic device. It is to be understood that the above-mentioned second device information is used to indicate the first electronic device.
Illustratively, the aforementioned second device information may include at least one of: device name, device model, physical address of the device. It should be noted that the second device information includes, but is not limited to, the aforementioned three information.
For example, after receiving the target electrical signal, the first electronic device may determine the second electronic device according to the first device information included in the target electrical signal, and send the second device information to the second electronic device.
Step 202 b: the first electronic device receives the pairing request.
Wherein the pairing request is sent by the second electronic device only to the first electronic device.
For example, after the second electronic device receives the second device information fed back by the first electronic device, the second electronic device may determine the first electronic device according to the second device information, so that the second electronic device and the first electronic device may be locked with each other, and thus the second electronic device may accurately send the pairing request to the first electronic device.
For example, taking the first electronic device as a mobile phone and the second electronic device as a wireless headset including a headset box as an example, when a user wants to connect the mobile phone and the wireless headset, the user can hold the headset box of the wireless headset with one hand and hold the mobile phone with the other hand. Then, when the user opens the earphone box of the wireless earphone, the earphone box may transmit an electric signal including the name of the wireless earphone and perform transmission using the human body as a conductor medium. Then, after the mobile phone receives the electric signal through the human body, the wireless earphone can be determined, and the name of the mobile phone is fed back to the wireless earphone. After the wireless headset receives the handset name fed back by the handset, the handset can be determined. In this way, the handset and wireless headset may be locked to each other. Finally, the wireless headset may only send a directional pairing request to the handset, and after the handset receives the directional pairing request, the handset may pair and connect with the wireless headset in response to the directional pairing request.
It should be noted that, in the present application, after the first electronic device and the second electronic device are paired, a specific connection process may refer to an existing manner, and details are not described here.
In a second possible implementation:
illustratively, the step 202 may specifically include the following step 202 c:
step 202 c: and under the condition that the first electronic equipment determines to receive the target electric signal, responding to a pairing request sent by the second electronic equipment, and establishing target connection with the second electronic equipment.
For example, the pairing request is transmitted from the second electronic device to a plurality of electronic devices including the first electronic device.
For example, the target electrical signal may or may not include the first device information, which is not limited in this embodiment of the application.
For example, the first electronic device may receive the target electrical signal before receiving the pairing request, may receive the target electrical signal after receiving the pairing request, and may also receive the target electrical signal while receiving the pairing request, which is not limited in this embodiment of the application.
For example, taking the first electronic device as a mobile phone and the second electronic device as a wireless headset including a headset box as an example, when a user wants to connect the mobile phone and the wireless headset, the user can hold the headset box of the wireless headset with one hand and hold the mobile phone with the other hand. Then, when the user opens the earphone box of the wireless earphone, the wireless earphone may transmit a pairing request and an electrical signal to the mobile phone, wherein the wireless earphone may transmit the electrical signal to the mobile phone using the human body as a conductor medium. Then, in a case where the mobile phone receives the pairing request, the mobile phone may determine whether an electrical signal is received, and in a case where it is determined that the electrical signal is received, the mobile phone may pair-connect with the wireless headset in response to the pairing request.
It should be noted that, when the user opens the earphone box of the wireless earphone, the wireless earphone may send a pairing request to each of the plurality of mobile phones, that is, each of the plurality of mobile phones may receive the pairing request, but only the mobile phone that receives the electrical signal is paired with the wireless earphone.
In a first possible implementation manner, the first electronic device may determine the second electronic device by using the received target electrical signal, and feedback device information to the second electronic device, so that before the second electronic device sends a pairing request, mutual determination between the first electronic device and the second electronic device may be achieved, and after the first electronic device receives the pairing request sent by the second electronic device, the first electronic device may establish target connection with the second electronic device, so that the connection accuracy of the electronic device is improved; in a second possible implementation manner, the first electronic device establishes the target connection with the second electronic device only when the first electronic device determines that the target electrical signal is received, so that the connection accuracy of the electronic device is improved.
Optionally, in this embodiment of the application, the first electronic device may be connected to or disconnected from the second electronic device according to an actual requirement of a user.
For example, before the target connection is established with the second electronic device in step 202, the method may further include the following steps a1 and a 2:
step A1: the first electronic device outputs the target prompt message.
The target prompt information is used for prompting the user whether to establish target connection with the second electronic device.
Illustratively, the target prompt message may include at least one of: characters, voice and pictures, which are not limited in this application. Illustratively, the characters include at least one of: words, numbers, letters, symbols.
For example, the first electronic device may display the target prompt information in the target dialog box. The target dialog box is used for inquiring whether the user establishes target connection with the second electronic equipment.
Illustratively, the target dialog box may further include at least one option button. For example, a first option button and a second option button may be included in the target dialog box.
For example, the shape of the target dialog box may be any possible shape such as a circle, a rectangle, a triangle, a diamond, a circle, or a polygon, which may be determined according to actual use requirements, and the embodiment of the present application is not limited.
For example, the first electronic device may display the target dialog box in a window.
Step A2: the first electronic device receives a first input from a user.
The first input is used for determining whether to establish target connection with the second electronic equipment.
For example, the first input may be: specifically, the click input of the user to the display screen of the first electronic device, or the voice instruction input by the user, or the specific gesture input by the user may be determined according to actual use requirements, which is not limited in the embodiment of the present application.
The specific gesture in the embodiment of the application can be any one of a single-click gesture, a sliding gesture, a dragging gesture, a pressure identification gesture, a long-press gesture, an area change gesture, a double-press gesture and a double-click gesture; the click input in the embodiment of the application can be click input, double-click input, click input of any number of times and the like, and can also be long-time press input or short-time press input.
In an example, in a case that the first electronic device displays the target prompt information in the target dialog box, the click input of the user on the display screen of the first electronic device may be: and clicking and inputting the target dialog box by the user.
Based on the step a1 and the step a2, the step 202 of establishing the target connection with the second electronic device may specifically include the following step A3:
step A3: and the first electronic equipment establishes target connection with the second electronic equipment under the condition that the first input is the target input.
Illustratively, the target input is used to trigger the first electronic device to establish a target connection with the second electronic device.
For example, the target inputs may be: specifically, the click input of the user to the display screen of the first electronic device, or the voice instruction input by the user, or the specific gesture input by the user may be determined according to actual use requirements, which is not limited in the embodiment of the present application.
In an example, the target input may be specifically a click input of the first option button by a user.
Illustratively, after the step a2, the method may further include the following step a 4:
step A4: and the first electronic equipment does not establish target connection with the second electronic equipment under the condition that the first input is the second input.
And the second input is used for determining that the target connection is not established with the second electronic equipment.
For example, the second input may be: specifically, the click input of the user to the display screen of the first electronic device, or the voice instruction input by the user, or the specific gesture input by the user may be determined according to actual use requirements, which is not limited in the embodiment of the present application.
The target input is different from the second input. For example, in the case where the target input may be an input of clicking a display screen of the first electronic device, the second input may be an input of long-pressing the display screen of the first electronic device.
In an example, the second input may be specifically a click input of the second option key by the user.
For example, taking the first electronic device as a mobile phone and the second electronic device as a wireless headset including a headset box as an example, when the mobile phone receives a pairing request and an electrical signal sent by the wireless headset, as shown in fig. 2, the mobile phone may display a dialog box 32 in a screen 31 of the mobile phone, and 2 option keys and a text "whether to perform headset pairing" are displayed in the dialog box 32. The 2 option keys are a "connect" option key 33 and a "cancel" option key 34, respectively. When the user wants to connect the mobile phone and the wireless headset in a pairing manner, the user can click the "connect" option key 33 (i.e., the first option key), and at this time, the mobile phone and the wireless headset are connected in a pairing manner; when the user does not want to pair the handset with the wireless headset, the user can click the "cancel" option button 34 (i.e., the second option button described above), at which point the handset is not paired with the wireless headset.
The electronic equipment connection method provided by the embodiment of the application can be applied to a scene that a user selects whether to connect the electronic equipment, the first electronic equipment can assist the user in selecting the electronic equipment by displaying the target dialog box, and then the user can select whether to connect the electronic equipment according to the requirement, so that the connection process of the electronic equipment is more flexible.
Further optionally, in this embodiment of the application, in order to reduce power consumption of the second electronic device, the first electronic device may instruct the second electronic device to stop sending the target electrical signal.
In one example, after the step a2, the method may further include the following step B1:
step B1: the first electronic device sends the indication information to the second electronic device.
The indication information is used for indicating the second electronic equipment to stop sending the target electric signal.
It is understood that the first electronic device may be triggered to transmit the indication information regardless of whether the user chooses to establish the target connection with the second electronic device.
The electronic device connection method provided by the embodiment of the application can be applied to a scene of reducing the power consumption of the second electronic device, and the first electronic device can send the indication information to indicate the second electronic device to stop sending the target electric signal, so that the power consumption of the second electronic device can be reduced, and the purpose of saving the electric quantity of the second electronic device is achieved.
Fig. 3 is a flowchart illustrating another electronic device connection method provided in the embodiment of the present application, which is applied to a second electronic device, and includes steps 401 and 402:
step 401: the second electronic device transmits the target electrical signal and the pairing request.
Step 402: the second electronic device establishes a target connection with the first electronic device.
Wherein the target electrical signal is transmitted in the form of current; the first electronic device is a device that receives the target electrical signal and the pairing request.
In the embodiment of the present application, the first electronic device and the second electronic device may both be in the target state. For example, the target state may be bluetooth enabled, or access to a network (e.g., access to the same lan), etc., which is not limited in this embodiment of the application.
In an embodiment of the application, a first electronic device has a first current sensor. Wherein, the first current sensor is used for receiving the target electric signal. For example, the first current sensor may be disposed inside the first electronic device (for example, inside the housing of the mobile phone), or may be disposed outside the first electronic device (for example, outside the housing of the mobile phone), which is not limited in this embodiment of the present application.
It should be noted that, in the case where the first current sensor is disposed inside the first electronic device, the transmission of the target electrical signal is not affected by the housing of the first electronic device and other devices, that is, the housing of the first electronic device and other devices may be conductive, so that the transmission target electrical signal is not blocked.
The first current sensor may be a dedicated current sensor that receives the target electrical signal. For example, in the case where the first current sensor is disposed inside the first electronic device, the first current sensor may be insulated (or signal-shielded) from other devices inside the first electronic device, so that the other devices inside the first electronic device may not receive the target electrical signal.
In an embodiment of the application, the second electronic device has a second current sensor. Wherein the second current sensor is used for transmitting the target electric signal. For example, the second current sensor may be disposed inside the second electronic device (for example, inside the earphone housing or inside the earphone box housing), or may be disposed outside the second electronic device (for example, outside the earphone housing or outside the earphone box housing), which is not limited in this embodiment of the application.
It should be noted that, in the case where the second current sensor is disposed inside the second electronic device, the transmission of the target electrical signal is not affected by the housing and other devices of the second electronic device, that is, the housing and other devices of the second electronic device may be conductive, so that the transmission target electrical signal is not blocked.
It is understood that the target electrical signal is transmitted from the second electronic device to the first electronic device.
In this embodiment of the application, the second electronic device may directly transmit the target electrical signal to the first electronic device, or may indirectly transmit the target electrical signal to the first electronic device, which is not limited in this embodiment of the application.
In one example, the second electronic device may transmit the target electrical signal directly to the first electronic device. For example, the second electronic device may be in direct contact with the first electronic device.
In another example, the second electronic device may indirectly transmit the target electrical signal to the first electronic device. Specifically, the second electronic device may transmit the target electrical signal to the first electronic device using any conductive medium. For example, the second electronic device may transmit the target electrical signal to the first electronic device using a human body as a conductive medium.
For example, taking the first electronic device as a mobile phone and the second electronic device as a wireless headset including a headset box as an example, when a user wants to connect the mobile phone and the wireless headset, the user can hold the headset box of the wireless headset with one hand and hold the mobile phone with the other hand. Then, when the user opens the earphone box of the wireless earphone, the earphone box can send an electric signal and transmit the electric signal by using a human body as a conductor medium, and finally the mobile phone can receive the electric signal.
In the case that the second electronic device utilizes a human body as a conductive medium, in order to ensure that the human body is not damaged, the current corresponding to the target electrical signal is less than or equal to the human body safety current.
In this embodiment, the pairing request may be sent by the second electronic device to a plurality of electronic devices including the first electronic device; alternatively, when the second electronic device and the first electronic device mutually determine, the second electronic device only transmits to the first electronic device, which is not limited in this embodiment of the present application. In this embodiment, the pairing request may be sent by the second electronic device to the first electronic device through bluetooth, a network, or the like.
According to the electronic device connection method provided by the embodiment of the application, first, the second electronic device can send the target electric signal and the pairing request. The second electronic device may then establish a target connection with the first electronic device. Wherein the target electrical signal is transmitted in the form of current; the first electronic device is a device that receives the target electrical signal and the pairing request. Through the scheme, compared with the scheme that the electronic equipment can be connected with the wireless earphone under the condition that the electronic equipment receives the pairing request sent by the wireless earphone in the related art, the second electronic equipment in the application can send the target electric signal and the pairing request, so that the first electronic equipment can be connected with the second electronic equipment only under the condition that the first electronic equipment receives the target electric signal and the pairing request, and therefore the first electronic equipment and the second electronic equipment which need to establish target connection can be locked through the target electric signal, and the connection accuracy of the electronic equipment can be improved.
Optionally, in this embodiment of the present application, the step 401 may specifically include the following steps 401a and 401 b:
step 401 a: the second electronic device transmits the target electrical signal.
The target electric signal comprises first equipment information of second electronic equipment.
It should be noted that, the above-mentioned target electrical signal may include the first device information of the second electronic device, and it is understood that: the target electrical signal may carry first device information of the second electronic device.
Illustratively, the first device information may include at least one of: device name, device model, physical address of the device. It should be noted that the first device information includes, but is not limited to, the aforementioned three information.
In the embodiment of the present application, the second electronic device may continuously transmit the target electrical signal. It should be noted that the continuous transmission of the target electrical signal by the second electronic device may be understood as: the second electronic device continuously transmits the target electrical signal, or the second electronic device transmits the target electrical signal at predetermined time intervals (e.g., every 1 second). It can be understood that the first electronic device can always maintain the receiving state to ensure that the target electrical signal can be received at any time.
Step 401 b: and the second electronic equipment determines the first electronic equipment under the condition of receiving the second equipment information and only sends a pairing request to the first electronic equipment.
The second device information is device information fed back by the first electronic device receiving the target electric signal. It is to be understood that the above-mentioned second device information is used to indicate the first electronic device.
Illustratively, the aforementioned second device information may include at least one of: device name, device model, physical address of the device. It should be noted that the second device information includes, but is not limited to, the aforementioned three information.
For example, after the second electronic device receives the second device information fed back by the first electronic device, the second electronic device may determine the first electronic device according to the second device information, so that the second electronic device and the first electronic device may be locked with each other, and the second electronic device may only send the pairing request to the first electronic device accurately.
For example, taking the first electronic device as a mobile phone and the second electronic device as a wireless headset including a headset box as an example, when a user wants to connect the mobile phone and the wireless headset, the user can hold the headset box of the wireless headset with one hand and hold the mobile phone with the other hand. Then, when the user opens the earphone box of the wireless earphone, the earphone box may transmit an electric signal including the name of the wireless earphone and perform transmission using the human body as a conductor medium. Then, after the mobile phone receives the electric signal through the human body, the wireless earphone can be determined, and the name of the mobile phone is fed back to the wireless earphone. After the wireless headset receives the handset name fed back by the handset, the handset can be determined. In this way, the handset and wireless headset may be locked to each other. Finally, the wireless headset may only send a directional pairing request to the handset, and after the handset receives the directional pairing request, the handset may be paired with the wireless headset.
It should be noted that, in the present application, after the first electronic device and the second electronic device are paired, a specific connection process may refer to an existing manner, and details are not described here.
The electronic device connection method in the embodiment of the application can be applied to a scene of improving connection accuracy, the second electronic device can send own device information to the first electronic device, and then the second electronic device can determine the first electronic device after receiving the second device information fed back by the first electronic device and only sends a pairing request to the first electronic device, so that the connection accuracy of the electronic device can be improved.
Optionally, in this embodiment of the application, after the step 401, the method may further include the following steps 403 and 404:
step 403: and the second electronic equipment receives the indication information sent by the first electronic equipment.
Illustratively, the indication information is used for indicating the second electronic device to stop sending the target electrical signal.
Step 404: and the second electronic equipment stops sending the target electric signal according to the indication information.
The electronic device connection method provided by the embodiment of the application can be applied to a scene of reducing the power consumption of the second electronic device, and the second electronic device can stop sending the target electric signal after receiving the indication information, so that the power consumption of the second electronic device can be reduced, and the purpose of saving the electric quantity of the second electronic device is achieved.
Optionally, in this embodiment of the application, in a case that the second electronic device includes a functional device and an outer box, the step 401a may specifically include the following step 401a 1:
step 401a 1: the second electronic device transmits a target electric signal when the outer box is in the open state.
For example, the second electronic device may not transmit the target electrical signal in a case where the outer box is in the closed state.
For example, taking the second electronic device as a wireless headset including a headset box as an example, when the headset box of the wireless headset is in a closed state, the headset box does not send an electrical signal; when the earphone box of the wireless earphone is in an open state, the current sensor in the earphone box can continuously send an electric signal.
Based on the step 401a1, the step 402 may specifically include the following step 402 a:
step 402 a: the second electronic device establishes a target connection with the first electronic device using the functional device.
Illustratively, the functional device may be any one of the following: wireless earphone (like bluetooth earphone), wireless bracelet (like bluetooth bracelet), wireless wrist-watch (like bluetooth bracelet).
It should be noted that the functional device may be any device capable of short-distance communication connection.
For example, taking the first electronic device as a mobile phone and the second electronic device as a wireless headset including a headset case as an example, when the headset case (i.e., the outer case) of the wireless headset is in an open state, the current sensor in the headset case may continuously send an electrical signal. Finally, the wireless earphone (namely the functional device) can be connected with the mobile phone in a pairing mode.
The electronic equipment connection method provided by the embodiment of the application can be applied to a scene of flexibly controlling the sending of the target electric signals, the second electronic equipment can send the target electric signals under the condition that the outer box is in the open state, and does not send the target electric signals under the condition that the outer box is in the closed state, so that the second electronic equipment can flexibly control the sending of the target electric signals.
In the electronic device connection method provided in the embodiment of the present application, the execution main body may be an electronic device connection apparatus, or a control module in the electronic device connection apparatus for executing the electronic device connection method. The electronic device connection apparatus provided in the embodiments of the present application is described with an example of a method for executing electronic device connection by an electronic device connection apparatus.
Fig. 4 is a schematic structural diagram of a possible structure of an electronic device connection apparatus for implementing the embodiment of the present application, where the first electronic device may be the electronic device connection apparatus, or the first electronic device may include the electronic device connection apparatus.
As shown in fig. 4, the electronic device connecting apparatus 500 includes: a receiving module 501 and a connecting module 502; a receiving module 501, configured to receive a target electrical signal; wherein the target electrical signal is transmitted in the form of current by the second electronic device; a connection module 502, configured to establish a target connection with a second electronic device in response to a pairing request sent by the second electronic device.
Optionally, as shown in fig. 4, the electronic device connecting apparatus 500 further includes: a sending module 503; the target electric signal comprises first equipment information of second electronic equipment; a sending module 503, configured to send second device information to the second electronic device based on the target electrical signal; a receiving module 501, configured to receive a pairing request, where the pairing request is sent by a second electronic device only to a first electronic device; the second device information is device information of the first electronic device.
Optionally, as shown in fig. 4, the electronic device connecting apparatus 500 further includes: a sending module 503 and an executing module 504; an executing module 504, configured to output target prompt information, where the target prompt information is used to prompt a user whether to establish a target connection with the second electronic device; a receiving module 501, configured to receive a first input of a user, where the first input is used to determine whether to establish a target connection with a second electronic device; a connection module 502, specifically configured to establish a target connection with the second electronic device when the first input received by the receiving module 501 is a target input; a sending module 503, configured to send instruction information to the second electronic device, where the instruction information is used to instruct the second electronic device to stop sending the target electrical signal.
It should be noted that, as shown in fig. 4, modules that are necessarily included in the electronic device connecting apparatus 500 are illustrated by solid line boxes, such as the receiving module 501; modules that may or may not be included in the electronic device connection apparatus 500 are illustrated with dashed boxes, such as the sending module 503.
According to the electronic equipment connecting device provided by the embodiment of the application, firstly, the electronic equipment connecting device can receive a target electric signal; wherein the target electrical signal is transmitted in the form of current by the second electronic device. Then, the electronic device connection apparatus may establish a target connection with the second electronic device in response to a pairing request transmitted by the second electronic device. Through the scheme, compared with the scheme that the electronic equipment can be connected with the wireless earphone under the condition that the electronic equipment receives the pairing request sent by the wireless earphone in the related art, the electronic equipment connecting device in the application can respond to the pairing request sent by the second electronic equipment and establish target connection with the second electronic equipment only by receiving the target electric signal. Therefore, the first electronic device and the second electronic device which need to establish target connection can be locked through the target electric signals, and therefore the connection accuracy of the electronic devices can be improved.
The beneficial effects of the various implementation manners in this embodiment may specifically refer to the beneficial effects of the corresponding implementation manners in the above method embodiments, and are not described herein again to avoid repetition.
The electronic device connection apparatus in the embodiment of the present application may be an apparatus, and may also be a component, an integrated circuit, or a chip in a terminal. The device can be mobile electronic equipment or non-mobile electronic equipment. By way of example, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palm top computer, a vehicle-mounted electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), and the like, and the non-mobile electronic device may be a server, a Network Attached Storage (NAS), a Personal Computer (PC), a Television (TV), a teller machine or a self-service machine, and the like, and the embodiments of the present application are not particularly limited.
The electronic device connection apparatus in the embodiment of the present application may be an apparatus having an operating system. The operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, and embodiments of the present application are not limited specifically.
The electronic device connection apparatus provided in the embodiment of the present application can implement each process implemented by the method embodiments of fig. 1 and fig. 2, and is not described here again to avoid repetition.
Fig. 5 is a schematic structural diagram of another possible electronic device connection apparatus for implementing the embodiment of the present application, where the second electronic device may be the electronic device connection apparatus, or the second electronic device may include the electronic device connection apparatus.
As shown in fig. 5, the electronic device connecting apparatus 600 includes: a sending module 601 and a connecting module 602; a sending module 601, configured to send a target electrical signal and a pairing request, where the target electrical signal is transmitted in a current form; a connection module 602, configured to establish a target connection with a first electronic device; the first electronic device is a device which receives the target electrical signal and the pairing request.
Optionally, the sending module 601 is specifically configured to send the target electrical signal; and determining the first electronic device and sending a pairing request only to the first electronic device in the case of receiving the second device information; the target electrical signal includes first device information of a second electronic device, and the second device information is device information fed back by the first electronic device that receives the target electrical signal.
Optionally, as shown in fig. 5, the electronic device connecting apparatus 600 further includes: a receiving module 603; a receiving module 603, configured to receive indication information sent by a first electronic device; the sending module 601 is further configured to stop sending the target electrical signal according to the indication information received by the receiving module 603.
Optionally, the second electronic device comprises a functional device and an outer casing; a transmitting module 601, specifically configured to transmit the target electrical signal when the outer box is in the open state; the connection module 602 is specifically configured to establish a target connection with the first electronic device by using the functional device.
It should be noted that, as shown in fig. 5, modules that are necessarily included in the electronic device connection apparatus 600 are illustrated by solid line boxes, such as a transmission module 601; modules that may or may not be included in the electronic device connection apparatus 600 are illustrated with a dashed box, such as the receiving module 603.
According to the electronic device connecting apparatus provided by the embodiment of the application, first, the electronic device connecting apparatus may send the target electrical signal and the pairing request. Then, the electronic device connection apparatus may establish the target connection with the first electronic device. Wherein the target electrical signal is transmitted in the form of current; the first electronic device is a device that receives the target electrical signal and the pairing request. Through the scheme, compared with the scheme that the electronic equipment can be connected with the wireless earphone under the condition that the electronic equipment receives the pairing request sent by the wireless earphone in the related art, the electronic equipment connecting device in the application can send the target electric signal and the pairing request, so that the first electronic equipment can be connected with the second electronic equipment only under the condition that the first electronic equipment receives the target electric signal and the pairing request, and therefore the first electronic equipment and the second electronic equipment which need to establish target connection can be locked through the target electric signal, and the connection accuracy of the electronic equipment can be improved.
The beneficial effects of the various implementation manners in this embodiment may specifically refer to the beneficial effects of the corresponding implementation manners in the above method embodiments, and are not described herein again to avoid repetition.
The electronic device connection apparatus in the embodiment of the present application may be an apparatus, and may also be a component, an integrated circuit, or a chip in a terminal. The device can be mobile electronic equipment or non-mobile electronic equipment. By way of example, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palmtop computer, a wireless headset, an in-vehicle electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), and the like, and the non-mobile electronic device may be a server, a Network Attached Storage (NAS), a Personal Computer (PC), a Television (TV), a teller machine, a self-service machine, and the like, and the embodiments of the present application are not particularly limited.
The electronic device connection apparatus in the embodiment of the present application may be an apparatus having an operating system. The operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, and embodiments of the present application are not limited specifically.
The electronic device connection apparatus provided in the embodiment of the present application can implement each process implemented in the method embodiment of fig. 3, and is not described here again to avoid repetition.
Optionally, as shown in fig. 6, an electronic device 700 is further provided in this embodiment of the present application, and includes a processor 701, a memory 702, and a program or an instruction stored in the memory 702 and executable on the processor 701, where the program or the instruction is executed by the processor 701 to implement each process of the electronic device connection method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic devices and the non-mobile electronic devices described above.
Fig. 7 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
The electronic device 100 includes, but is not limited to: a radio frequency unit 101, a network module 102, an audio output unit 103, an input unit 104, a sensor 105, a display unit 106, a user input unit 107, an interface unit 108, a memory 109, and a processor 110.
Those skilled in the art will appreciate that the electronic device 100 may further comprise a power source (e.g., a battery) for supplying power to various components, and the power source may be logically connected to the processor 110 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system. The electronic device structure shown in fig. 7 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than those shown, or combine some components, or arrange different components, and thus, the description is omitted here.
The radio frequency unit 101 is used for receiving a target electrical signal; wherein the target electrical signal is transmitted in the form of current by the second electronic device; the processor 110 is configured to establish a target connection with a second electronic device in response to a pairing request sent by the second electronic device.
Optionally, the target electrical signal includes first device information of a second electronic device; the radio frequency unit 101 is further configured to send second device information to the second electronic device based on the target electrical signal; and receiving a pairing request, the pairing request being sent by the second electronic device only to the first electronic device; the second device information is device information of the first electronic device.
Optionally, the processor 110 is further configured to output a target prompt message, where the target prompt message is used to prompt the user whether to establish a target connection with the second electronic device; a user input unit 107 for receiving a first input of a user for determining whether to establish a target connection with the second electronic device; the processor 110 is specifically configured to establish a target connection with the second electronic device when the first input received by the user input unit 107 is a target input; the radio frequency unit 101 is further configured to send instruction information to the second electronic device, where the instruction information is used to instruct the second electronic device to stop sending the target electrical signal.
According to the electronic device provided by the embodiment of the application, the electronic device is a first electronic device, and first, the first electronic device can receive a target electric signal; wherein the target electrical signal is transmitted in the form of current by the second electronic device. The first electronic device may then establish a target connection with the second electronic device in response to a pairing request sent by the second electronic device. Through the scheme, compared with the scheme that the electronic equipment can be connected with the wireless earphone under the condition that the electronic equipment receives the pairing request sent by the wireless earphone in the related art, the first electronic equipment in the application can respond to the pairing request sent by the second electronic equipment and establish target connection with the second electronic equipment only by receiving the target electric signal. Therefore, the first electronic device and the second electronic device which need to establish target connection can be locked through the target electric signals, and therefore the connection accuracy of the electronic devices can be improved.
Alternatively, the first and second electrodes may be,
the radio frequency unit 101 is configured to send a target electrical signal and a pairing request, where the target electrical signal is transmitted in the form of current; a processor 110 for establishing a target connection with a first electronic device; the first electronic device is a device which receives the target electrical signal and the pairing request.
Optionally, the radio frequency unit 101 is specifically configured to send a target electrical signal; and determining the first electronic device and sending a pairing request only to the first electronic device in the case of receiving the second device information; the target electrical signal includes first device information of a second electronic device, and the second device information is device information fed back by the first electronic device that receives the target electrical signal.
Optionally, the radio frequency unit 101 is further configured to receive indication information sent by the first electronic device; and stopping transmitting the target electric signal according to the indication information.
Optionally, the second electronic device comprises a functional device and an outer casing; a radio frequency unit 101, specifically configured to send the target electrical signal when the outer box is in an open state; the processor 110 is specifically configured to establish a target connection with the first electronic device using the functional device.
According to the electronic device provided by the embodiment of the application, the electronic device is a second electronic device, and first, the second electronic device can send the target electric signal and the pairing request. The second electronic device may then establish a target connection with the first electronic device. Wherein the target electrical signal is transmitted in the form of current; the first electronic device is a device that receives the target electrical signal and the pairing request. Through the scheme, compared with the scheme that the electronic equipment can be connected with the wireless earphone under the condition that the electronic equipment receives the pairing request sent by the wireless earphone in the related art, the second electronic equipment in the application can send the target electric signal and the pairing request, so that the first electronic equipment can be connected with the second electronic equipment only under the condition that the first electronic equipment receives the target electric signal and the pairing request, and therefore the first electronic equipment and the second electronic equipment which need to establish target connection can be locked through the target electric signal, and the connection accuracy of the electronic equipment can be improved.
The beneficial effects of the various implementation manners in this embodiment may specifically refer to the beneficial effects of the corresponding implementation manners in the above method embodiments, and are not described herein again to avoid repetition.
It should be understood that, in the embodiment of the present application, the input Unit 104 may include a Graphics Processing Unit (GPU) 1041 and a microphone 1042, and the Graphics Processing Unit 1041 processes image data of a still picture or a video obtained by an image capturing device (such as a camera) in a video capturing mode or an image capturing mode. The display unit 106 may include a display panel 1061, and the display panel 1061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 107 includes a touch panel 1071 and other input devices 1072. The touch panel 1071 is also referred to as a touch screen. The touch panel 1071 may include two parts of a touch detection device and a touch controller. Other input devices 1072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein. The memory 109 may be used to store software programs as well as various data including, but not limited to, application programs and an operating system. The processor 110 may integrate an application processor, which primarily handles operating systems, user interfaces, applications, etc., and a modem processor, which primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 110.
The embodiment of the present application further provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or the instruction is executed by a processor, the program or the instruction implements each process of the above-mentioned electronic device connection method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and so on.
The embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to run a program or an instruction to implement each process of the electronic device connection method embodiment, and can achieve the same technical effect, and in order to avoid repetition, the description is omitted here.
It should be understood that the chips mentioned in the embodiments of the present application may also be referred to as system-on-chip, system-on-chip or system-on-chip, etc.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Further, it should be noted that the scope of the methods and apparatus of the embodiments of the present application is not limited to performing the functions in the order illustrated or discussed, but may include performing the functions in a substantially simultaneous manner or in a reverse order based on the functions involved, e.g., the methods described may be performed in an order different than that described, and various steps may be added, omitted, or combined. In addition, features described with reference to certain examples may be combined in other examples.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present application.
While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the invention is not limited to the precise embodiments described above, which are meant to be illustrative and not restrictive, and that various changes may be made therein by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (16)

1. An electronic device connection method is applied to a first electronic device, and is characterized by comprising the following steps:
receiving a target electrical signal; wherein the target electrical signal is transmitted by the second electronic device in the form of an electrical current;
and responding to a pairing request sent by the second electronic equipment, and establishing target connection with the second electronic equipment.
2. The method of claim 1, wherein the target electrical signal comprises first device information of the second electronic device;
before establishing a target connection with the second electronic device in response to a pairing request sent by the second electronic device, the method further comprises:
sending second device information to the second electronic device based on the target electrical signal;
receiving the pairing request, the pairing request being sent by the second electronic device only to the first electronic device;
the second device information is the device information of the first electronic device.
3. The method of claim 1, wherein prior to establishing the target connection with the second electronic device, the method further comprises:
outputting target prompt information, wherein the target prompt information is used for prompting a user whether to establish target connection with the second electronic equipment;
receiving a first input of a user, wherein the first input is used for determining whether to establish a target connection with the second electronic equipment;
the establishing of the target connection with the second electronic device includes:
establishing a target connection with the second electronic device if the first input is a target input;
after receiving the first input of the user, the method further comprises:
and sending indication information to the second electronic device, wherein the indication information is used for indicating the second electronic device to stop sending the target electric signal.
4. An electronic device connection method applied to a second electronic device, the method comprising:
sending a target electrical signal and a pairing request, wherein the target electrical signal is transmitted in a current form;
establishing a target connection with a first electronic device; wherein the first electronic device is a device that receives the target electrical signal and the pairing request.
5. The method of claim 4, wherein sending the target electrical signal and the pairing request comprises:
transmitting a target electrical signal, the target electrical signal including first device information of the second electronic device;
under the condition of receiving second equipment information, determining first electronic equipment, and sending a pairing request to the first electronic equipment only;
the second device information is device information fed back by the first electronic device receiving the target electric signal.
6. The method of claim 5, wherein after transmitting the target electrical signal, the method further comprises:
receiving indication information sent by the first electronic equipment;
and stopping sending the target electric signal according to the indication information.
7. The method of claim 5, wherein the second electronic device comprises a functional device and an outer casing;
the transmission target electrical signal includes:
transmitting a target electric signal in a case where the outer box is in an open state;
the establishing of the target connection with the first electronic device includes:
and establishing target connection with the first electronic equipment by adopting the functional device.
8. An electronic device connecting apparatus, characterized in that the electronic device connecting apparatus comprises: the device comprises a receiving module and a connecting module;
the receiving module is used for receiving a target electric signal; wherein the target electrical signal is transmitted by the second electronic device in the form of an electrical current;
the connection module is configured to establish a target connection with the second electronic device in response to a pairing request sent by the second electronic device.
9. The electronic device connecting apparatus according to claim 8, further comprising: a sending module; the target electrical signal comprises first device information of the second electronic device;
the sending module is used for sending second equipment information to the second electronic equipment based on the target electric signal;
the receiving module is further configured to receive the pairing request, where the pairing request is sent by the second electronic device only to the first electronic device;
the second device information is the device information of the first electronic device.
10. The electronic device connecting apparatus according to claim 8, further comprising: a sending module and an execution module;
the execution module is used for outputting target prompt information, and the target prompt information is used for prompting a user whether to establish target connection with the second electronic equipment;
the receiving module is further configured to receive a first input of a user, where the first input is used to determine whether to establish a target connection with the second electronic device;
the connection module is specifically configured to establish a target connection with the second electronic device when the first input received by the receiving module is a target input;
the sending module is configured to send indication information to the second electronic device, where the indication information is used to indicate that the second electronic device stops sending the target electrical signal.
11. An electronic device connecting apparatus, characterized in that the electronic device connecting apparatus comprises: a sending module and a connecting module;
the sending module is used for sending a target electric signal and a pairing request, and the target electric signal is transmitted in a current form;
the connection module is used for establishing target connection with the first electronic equipment; wherein the first electronic device is a device that receives the target electrical signal and the pairing request.
12. The electronic device connection apparatus according to claim 11, wherein the sending module is specifically configured to send a target electrical signal; and determining a first electronic device and sending a pairing request only to the first electronic device in case of receiving second device information;
the target electric signal comprises first equipment information of second electronic equipment, and the second equipment information is equipment information fed back by the first electronic equipment receiving the target electric signal.
13. The electronic device connecting apparatus according to claim 12, further comprising: a receiving module;
the receiving module is used for receiving the indication information sent by the first electronic equipment;
the sending module is further configured to stop sending the target electrical signal according to the indication information received by the receiving module.
14. The electronic device connecting apparatus according to claim 12, wherein the second electronic device includes a functional device and an outer case;
the sending module is specifically used for sending a target electric signal under the condition that the outer box is in an open state;
the connection module is specifically configured to establish a target connection with the first electronic device using the functional device.
15. An electronic device comprising a processor, a memory, and a program or instructions stored on the memory and executable on the processor, the program or instructions when executed by the processor implementing the steps of the electronic device connection method of any one of claims 1 to 3 or any one of claims 4 to 7.
16. A readable storage medium, characterized in that a program or instructions are stored thereon, which when executed by a processor, implement the steps of the electronic device connection method according to any one of claims 1 to 3, or any one of claims 4 to 7.
CN202011566735.2A 2020-12-25 2020-12-25 Electronic equipment connection method and device and electronic equipment Pending CN112738908A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011566735.2A CN112738908A (en) 2020-12-25 2020-12-25 Electronic equipment connection method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011566735.2A CN112738908A (en) 2020-12-25 2020-12-25 Electronic equipment connection method and device and electronic equipment

Publications (1)

Publication Number Publication Date
CN112738908A true CN112738908A (en) 2021-04-30

Family

ID=75616477

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011566735.2A Pending CN112738908A (en) 2020-12-25 2020-12-25 Electronic equipment connection method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN112738908A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090233548A1 (en) * 2008-03-13 2009-09-17 Sony Ericsson Mobile Communications Ab Skin-based information transfer between mobile devices
CN103905989A (en) * 2014-04-23 2014-07-02 天翼爱音乐文化科技有限公司 Mobile terminal pairing triggering method and system
US20150223011A1 (en) * 2012-09-24 2015-08-06 Sony Computer Entertainment Inc. Communication Device and Communication Method
CN111586662A (en) * 2020-05-22 2020-08-25 维沃移动通信有限公司 Sharing method and audio output device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090233548A1 (en) * 2008-03-13 2009-09-17 Sony Ericsson Mobile Communications Ab Skin-based information transfer between mobile devices
US20150223011A1 (en) * 2012-09-24 2015-08-06 Sony Computer Entertainment Inc. Communication Device and Communication Method
CN103905989A (en) * 2014-04-23 2014-07-02 天翼爱音乐文化科技有限公司 Mobile terminal pairing triggering method and system
CN111586662A (en) * 2020-05-22 2020-08-25 维沃移动通信有限公司 Sharing method and audio output device

Similar Documents

Publication Publication Date Title
CN108762954B (en) Object sharing method and mobile terminal
CN108255378B (en) Display control method and mobile terminal
CN108563378B (en) Message management method and terminal
CN109407921B (en) Application processing method and terminal device
CN109871164B (en) Message sending method and terminal equipment
CN110196667B (en) Notification message processing method and terminal
CN108646958B (en) Application program starting method and terminal
US20170364257A1 (en) Gesture control method, gesture control device and gesture control system
CN108762705B (en) Information display method, mobile terminal and computer readable storage medium
CN109085968B (en) Screen capturing method and terminal equipment
CN109407949B (en) Display control method and terminal
CN110673770B (en) Message display method and terminal equipment
CN110196668B (en) Information processing method and terminal equipment
CN108681427B (en) Access right control method and terminal equipment
CN109407948B (en) Interface display method and mobile terminal
CN107992342B (en) Application configuration changing method and mobile terminal
CN110865745A (en) Screen capturing method and terminal equipment
CN110096203B (en) Screenshot method and mobile terminal
CN109189303B (en) Text editing method and mobile terminal
EP4123437A1 (en) Screen projection display method and system, terminal device, and storage medium
WO2023030129A1 (en) Message display method, apparatus and electronic device
CN111813299A (en) Information sharing method, information sharing device and electronic equipment
CN112416200A (en) Display method, display device, electronic equipment and readable storage medium
CN111124345A (en) Audio source processing method and mobile terminal
CN108153460B (en) Icon hiding method and terminal

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