CN110933772A - Connection method of wireless device, mobile terminal and computer readable storage medium - Google Patents

Connection method of wireless device, mobile terminal and computer readable storage medium Download PDF

Info

Publication number
CN110933772A
CN110933772A CN201911297290.XA CN201911297290A CN110933772A CN 110933772 A CN110933772 A CN 110933772A CN 201911297290 A CN201911297290 A CN 201911297290A CN 110933772 A CN110933772 A CN 110933772A
Authority
CN
China
Prior art keywords
connection
mobile terminal
wireless device
information
wireless
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
CN201911297290.XA
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.)
Shanghai Chuanying Information Technology Co Ltd
Original Assignee
Shanghai Chuanying Information Technology 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 Shanghai Chuanying Information Technology Co Ltd filed Critical Shanghai Chuanying Information Technology Co Ltd
Priority to CN201911297290.XA priority Critical patent/CN110933772A/en
Publication of CN110933772A publication Critical patent/CN110933772A/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
    • 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 invention discloses a wireless device connection method, a mobile terminal and a storage medium, wherein the wireless device connection method is applied to the mobile terminal and comprises the following steps: starting an augmented reality application in a mobile terminal to scan the wireless equipment through a scanning instruction of the scanning wireless equipment; and determining the wireless equipment successfully paired with the mobile terminal as the wireless equipment to be connected, and establishing the connection between the mobile terminal and the wireless equipment to be connected. In the process of connecting the mobile terminal and the wireless equipment, the method and the device can not display the paired popup frames of all the wireless equipment around the mobile terminal, and only can display the paired popup frames of the wireless equipment required by the user, thereby reducing the number of the paired popup frames displayed in the screen of the mobile terminal in the process of connecting the mobile terminal and the wireless equipment, facilitating the user to accurately select the required wireless equipment, and improving the accuracy of the paired popup frames displayed on the screen of the mobile terminal.

Description

Connection method of wireless device, mobile terminal and computer readable storage medium
Technical Field
The present invention relates to the field of terminal technologies, and in particular, to a connection method for a wireless device, a mobile terminal, and a computer-readable storage medium.
Background
At present, when at least two TWS (True Wireless Stereo) earphones are located within a certain distance from a mobile terminal, a corresponding paired pop-up box pops up for each TWS earphone in a screen of the mobile terminal. At this time, for the user, the screen of the mobile terminal has more paired popup boxes, and the user cannot easily find the TWS headset desired by the user in the paired popup boxes. Therefore, it is known that how to pop up a plurality of paired popup boxes in the connection process of the mobile terminal and the wireless device such as the TWS headset is an urgent problem to be solved.
Disclosure of Invention
The invention mainly aims to provide a connection method of wireless equipment, a mobile terminal and a computer readable storage medium, and aims to solve the technical problem that a plurality of paired popup boxes are popped up in the existing connection process of the mobile terminal and the wireless equipment.
In order to achieve the above object, the present invention provides a method for connecting a wireless device, including:
s10, acquiring connection information through a preset rule;
and S20, sending a connection instruction according to the connection information so as to establish connection with the wireless device.
Preferably, the step of acquiring an image comprises at least one of:
acquiring the image by an augmented reality scan;
scanning through a camera to obtain the image;
the image is acquired from a local and/or server.
Preferably, the image comprises:
an image of the wireless device and/or a two-dimensional code image of the wireless device.
Preferably, before the step of S10, the method further includes:
executing the step S10 only when a preset operation is acquired, where the preset operation includes:
initiating operation of the wireless connection; and/or the presence of a gas in the gas,
initiating operation of a preset application and/or function, wherein the preset application and/or function is used for controlling the wireless device.
Preferably, after the step S20, the method further includes:
and S30, according to the received switching instruction, disconnecting the current connection and establishing a new connection.
Preferably, the step S30 includes:
when receiving a switching operation, outputting first prompt information, wherein the first prompt information comprises: a wireless device to be switched and/or a wireless device to be connected;
and sending a switching instruction according to the received first selection operation so as to disconnect the wireless equipment to be switched selected by the first selection operation and/or establish connection with the wireless equipment to be switched selected by the first selection operation.
Preferably, the step S20 includes:
if at least two pieces of connection information exist, outputting the connection information;
and determining target connection information according to the acquired second selection operation, and sending a connection instruction.
Preferably, after the step of sending the connection instruction according to the connection information, the method further includes:
detecting whether a response request is received within a preset time length, wherein the response request is provided by the wireless equipment;
and if the response request is received, determining that the connection is successful, and/or outputting second prompt information of successful connection.
Preferably, before the step of S20, the method further includes:
obtaining distance information, wherein the distance information is the distance to the wireless device;
and if the distance information is less than or equal to a first preset distance threshold, acquiring corresponding connection information.
Preferably, before the step of S10, the method further includes:
scanning and acquiring device information to be connected, wherein the device information is provided by the wireless device;
if the device information is a preset device type, the step S10 is executed.
Preferably, after the step of determining that the device information is the preset device type, the method further includes:
obtaining distance information, wherein the distance information is the distance to the wireless device;
if the distance information is less than or equal to a second preset distance threshold, the step S10 is executed.
Preferably, the wireless device comprises at least one of:
wireless earphone, intelligent bracelet, intelligent wrist-watch, intelligent terminal, intelligent glasses, intelligent household electrical appliances.
In addition, to achieve the above object, the present invention further provides a mobile terminal including a memory, a processor, and a connection program of a wireless device stored on the memory and operable on the processor, wherein the connection program of the wireless device, when executed by the processor, implements the steps of the connection method of the wireless device as described above.
Further, to achieve the above object, the present invention also provides a computer-readable storage medium having stored thereon a connection program of a wireless device, which when executed by a processor, implements the steps of the connection method of a wireless device as described above.
The invention scans the wireless devices around the mobile terminal through the augmented reality application program after the augmented reality application program in the mobile terminal is started, determines the wireless devices successfully paired with the mobile terminal as the wireless devices to be connected, and establishes the connection between the mobile terminal and the wireless devices to be connected, thereby realizing that the wireless devices around the mobile terminal can not be concerned during the connection process of the mobile terminal and the wireless devices, only the wireless devices scanned by the augmented reality application program in the mobile terminal can be concerned, and the number of the wireless devices scanned by the augmented reality application program can be determined by users, therefore, the embodiment can not display the paired bullet frames of all the wireless devices around the mobile terminal during the connection process of the mobile terminal and the wireless devices, only the paired bullet frames of the wireless devices required by the users can be displayed, and the connection process of the mobile terminal and the wireless devices is reduced, the number of the paired bullet frames displayed in the screen of the mobile terminal is convenient for a user to accurately select the required wireless equipment, and the correctness of the paired bullet frames displayed on the screen of the mobile terminal is improved.
Drawings
Fig. 1 is a flowchart illustrating a first embodiment of a method for connecting a wireless device according to the present invention;
FIG. 2 is a diagram illustrating output connection information according to an embodiment of the present invention;
fig. 3 is a flowchart illustrating a second embodiment of a method for connecting a wireless device of the present invention;
fig. 4 is a flowchart illustrating a third embodiment of a method for connecting wireless devices according to the present invention;
FIG. 5 is a schematic diagram of a connection process between a handset and a TWS Bluetooth headset in an embodiment of the invention;
fig. 6 is a flowchart illustrating a fourth embodiment of a method for connecting wireless devices according to the present invention;
fig. 7 is a schematic structural diagram of a hardware operating environment according to an embodiment of the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Referring to fig. 1, fig. 1 is a flowchart illustrating a connection method of a wireless device according to a first embodiment of the present invention.
While a logical order is shown in the flow chart, in some cases, the steps shown or described may be performed in an order different than that shown or described herein.
The connection method of the wireless device is applied to a mobile terminal, and the mobile terminal may include terminals such as a mobile phone, a tablet computer, a notebook computer, a palm computer, a Personal Digital Assistant (PDA), and the like. The connection method of the wireless device comprises the following steps:
in step S10, the connection information is obtained according to a preset rule.
When the mobile terminal is to establish connection with the wireless device, the mobile terminal acquires connection information through a preset rule. Specifically, the mobile terminal may obtain the connection information in a form of an augmented reality application program or a two-dimensional code. When the mobile terminal obtains the connection information through the augmented reality application, the augmented reality application is installed in the mobile terminal, and the augmented reality application can be an ARcore or an ARKit. The wireless device at least comprises one of a wireless earphone, an intelligent bracelet, an intelligent watch, an intelligent terminal, intelligent glasses and an intelligent household appliance. The wireless headset may be a TWS headset. The connection information includes, but is not limited to, a device name of the wireless device and a Media Access Control (MAC) address corresponding to the wireless device
Further, step S10 includes:
step a, acquiring an image, wherein the image is an image of the wireless equipment;
and b, analyzing the image and outputting corresponding connection information and/or the image.
Further, the step of acquiring the image comprises at least one of: acquiring the image by an augmented reality scan; scanning through a camera to obtain the image; the image is acquired from a local and/or server.
The mobile terminal may obtain an image of the wireless device, parse the obtained image to obtain connection information, and output the connection information and/or the image. The image can be an image of the wireless device and/or a two-dimensional code image of the wireless device. In the embodiment of the invention, when the mobile terminal detects the scanning instruction for scanning the wireless equipment, the mobile terminal starts the augmented reality application program through the scanning instruction, and scans the wireless equipment through the augmented reality application program. It should be noted that the mobile terminal may start the augmented reality application according to a scanning instruction triggered by a user after detecting the scanning instruction, specifically, a start key is provided in the mobile terminal, the user may trigger the scanning instruction in the start key through a single-click operation, a double-click operation, a sliding operation, or the like, and the start key may be an entity key or a virtual key. It should be noted that, after the mobile terminal starts the augmented reality application, the wireless device may be scanned by the camera corresponding to the augmented reality application, and the scanned image of the wireless device is displayed on the screen of the mobile terminal for the user of the mobile terminal to view. Further, the mobile terminal may also obtain the desired image locally and/or from a server.
Further, the connection method of the wireless device further includes:
and c, receiving an unlocking instruction for unlocking the mobile terminal, and triggering the scanning instruction according to the unlocking instruction, wherein the unlocking instruction is at least one of a fingerprint unlocking instruction, a voiceprint unlocking instruction and a face recognition unlocking instruction.
The user can trigger an unlocking instruction in the mobile terminal, and the mobile terminal is unlocked through the unlocking instruction. When the mobile terminal detects an unlocking instruction triggered by a user, the mobile terminal enters a bright screen state from a black screen state, wherein the unlocking instruction can be one of a fingerprint unlocking instruction, a face recognition unlocking instruction and a voice-print unlocking instruction. When the mobile terminal enters a bright screen state, the mobile terminal automatically triggers a scanning instruction for scanning the wireless equipment, starts an augmented reality application program through the scanning instruction, and scans the wireless equipment through the augmented reality application program. Further, when the mobile terminal enters a bright screen state, the mobile terminal can also output prompt information to prompt a user to manually trigger a scanning instruction.
Further, the connection method of the wireless device further includes:
step d, executing the step S10 when a preset operation is acquired, where the preset operation includes:
initiating operation of the wireless connection; and/or the presence of a gas in the gas,
initiating operation of a preset application and/or function, wherein the preset application and/or function is used for controlling the wireless device.
And when the mobile terminal acquires the preset operation, acquiring the connection information through a preset rule. The preset operation may be an operation of starting a wireless connection, and/or an operation of starting a preset application and/or function, where the preset application and/or function is used to control the wireless device.
And step S20, sending a connection instruction according to the connection information so as to establish connection with the wireless device.
When the mobile terminal acquires the connection information, the mobile terminal sends a connection instruction to the wireless equipment corresponding to the connection information according to the connection information so as to establish connection with the wireless equipment corresponding to the connection information. For example, after the mobile terminal scans the wireless devices through the augmented reality application program, the mobile terminal determines the wireless devices which can be successfully paired, determines the wireless devices which can be successfully paired as the wireless devices to be connected, and establishes connection with the wireless devices to be connected.
Further, the step S20 includes:
and e, if at least two pieces of connection information exist, outputting the connection information.
And f, determining target connection information according to the acquired second selection operation, and sending a connection instruction.
Further, when the mobile terminal acquires the at least two pieces of connection information, the mobile terminal outputs the connection information in a display interface of the mobile terminal, so that a user can select target connection information in the wireless device to be connected through the connection information. It is understood that the target connection information is connection information of a wireless device to which the mobile terminal needs to connect, and in this embodiment, the mobile terminal may connect two wireless devices at the same time, for example, the mobile terminal connects two pairs of TWS headsets at the same time, so that the user can share audio files with other users through the TWS headsets. The mobile terminal can output the connection information in the form of voice or text.
The mobile terminal receives a second selection operation triggered by a user and used for selecting target connection information, determines the target connection information selected by the user according to the second selection operation, and sends a connection instruction to the wireless device corresponding to the target connection information, wherein the second selection operation can select one piece of connection information or two pieces of connection information, and the second selection operation can be triggered by the user through a single click operation, a double click operation or a sliding operation. Further, if the user does not trigger a second selection operation in the mobile terminal within a certain time period, the mobile terminal triggers a second selection default instruction, and selects the first connection information as the target wireless device according to the second selection default instruction. It should be noted that, in the process of establishing connection between the mobile terminal and the wireless device, the wireless device may return a response request to the mobile terminal according to the pairing request sent by the mobile terminal. When the wireless device returns a response request to the mobile terminal, the response request can carry the device names of the wireless devices, the device names of the wireless devices can be displayed in a certain sequence in a screen of the mobile terminal, and the first wireless device to be connected is the wireless device with the device name displayed at the forefront of the screen. Specifically, referring to fig. 2, the mobile terminal screen "×" in fig. 2 is connection information.
To facilitate understanding of the embodiments of the present invention, the mobile terminal is taken as a mobile phone, and the wireless device is taken as a TWS headset. When a user purchases TWS earphones of different brands, or the user sells the TWS earphones to a client, or under the scenes that a plurality of TWS earphones of different models but similar appearances exist around the mobile phone, the mobile phone scans the TWS earphones through the installed ARCore and displays the scanned TWS earphones on a screen of the mobile phone, the user can select the TWS earphones needing to be connected in the screen of the mobile phone, the mobile phone establishes connection with the TWS earphones selected by the user, at the moment, only a matching popup box of the TWS earphones selected by the user is displayed in the screen of the mobile phone, and the matching popup boxes of all the TWS earphones around the mobile phone do not need to be displayed.
In the embodiment, after the augmented reality application program in the mobile terminal is started, the wireless devices around the mobile terminal are scanned through the augmented reality application program, the wireless devices successfully paired with the mobile terminal are determined as the wireless devices to be connected, and the connection between the mobile terminal and the wireless devices to be connected is established, so that in the connection process of the mobile terminal and the wireless devices, all the wireless devices around the mobile terminal cannot be concerned, only the wireless devices scanned by the augmented reality application program in the mobile terminal can be concerned, and how many the wireless devices scanned by the augmented reality application program can be determined by a user, therefore, in the connection process of the mobile terminal and the wireless devices, the paired popup frames of all the wireless devices around the mobile terminal cannot be displayed, only the paired popup frames of the wireless devices required by the user can be displayed, and the connection process of the mobile terminal and the wireless devices is reduced, the number of the paired bullet frames displayed in the screen of the mobile terminal is convenient for a user to accurately select the required wireless equipment, and the correctness of the paired bullet frames displayed on the screen of the mobile terminal is improved.
Further, the connection method of the wireless device further includes:
and h, storing the pairing information of the wireless equipment successfully connected with the mobile terminal.
And when the mobile terminal is successfully connected with the wireless equipment, the mobile terminal acquires the pairing information of the successfully connected wireless equipment and stores the acquired pairing information. The pairing information includes, but is not limited to, a device name of the wireless device and a Media Access Control (MAC) address corresponding to the wireless device. It should be noted that, in the wireless device, the pairing information of the mobile terminal is also stored, and in this case, the pairing information includes, but is not limited to, the device name and the MAC address of the mobile terminal. Unlike a mobile terminal, a wireless device can only establish a connection with a mobile terminal. After the mobile terminal stores the pairing information of successfully connecting the wireless equipment, if the mobile terminal is connected with the wireless equipment again next time, the mobile terminal does not need to be paired with the wireless equipment, and can be directly connected with the wireless equipment according to the pairing information, so that the connection efficiency between the mobile terminal and the wireless equipment is improved.
Further, a second embodiment of the method for connecting a wireless device of the present invention is presented.
The second embodiment of the method for connecting a wireless device is different from the first embodiment of the method for connecting a wireless device in that, referring to fig. 3, the method for connecting a wireless device further includes:
and step S30, according to the received switching instruction, disconnecting the current connection and establishing a new connection.
After the mobile terminal and the wireless device are successfully connected, the mobile terminal detects whether a switching instruction for switching the wireless device is received. The switching instruction is triggered by a user in a screen of the mobile terminal, and specifically, the switching instruction may be triggered by a single-click operation, a double-click operation, a sliding operation or the like of the user on the screen of the mobile terminal. And after the mobile terminal receives the switching instruction, the mobile terminal disconnects the connection between the mobile terminal and the wireless equipment according to the switching instruction and establishes the connection between the mobile terminal and the new wireless equipment. Specifically, the mobile terminal may rescan the new wireless device through the augmented reality application and establish a connection with the new wireless device; if the mobile terminal scans at least two wireless devices through the augmented reality application before and the scanned wireless devices are not connected, the mobile terminal can directly select the scanned wireless devices on the screen according to the switching instruction to establish connection with the selected wireless devices.
Further, the step S30 includes:
step i, when receiving a switching operation, outputting first prompt information, wherein the first prompt information comprises: a wireless device to be switched and/or a wireless device to be connected.
Step j, according to the received first selection operation, sending a switching instruction to disconnect the wireless equipment to be switched selected by the first selection operation and/or establish connection with the wireless equipment to be connected selected by the first selection operation.
Further, when the mobile terminal is successfully connected with the two wireless devices and the mobile terminal receives a switching operation triggered by a user in a screen of the mobile terminal, the mobile terminal outputs first prompt information in the screen according to the switching operation, so that the user is prompted to select to switch one wireless device to be switched according to the first prompt information, or to select to switch the two wireless devices to be switched, and/or the user is prompted to select the wireless device to be connected according to the first prompt information. The mobile terminal can output first prompt information through a voice form, a text form and the like, and the first selection operation can be triggered in a screen of the mobile terminal through single-click operation, double-click operation, sliding operation and the like by a user. Specifically, the user may click or slide a switch button in the mobile terminal, which may be a physical button or a virtual button, to trigger the switching operation.
After the mobile terminal outputs the first prompt message, the mobile terminal detects whether a first selection operation triggered by a user in a screen is received. If the mobile terminal receives a first selection operation triggered by a user in a screen, the mobile terminal sends a switching instruction so as to disconnect the wireless equipment to be switched selected by the first selection operation, and/or establishes connection with the wireless equipment to be connected selected by the first selection operation through the switching instruction. Namely, the mobile terminal disconnects the wireless equipment to be switched corresponding to the first selection operation according to the first selection operation, and/or establishes the connection with the wireless equipment to be connected. It can be understood that, when the first selection operation is to select to switch one to-be-switched wireless device, the mobile terminal only disconnects with one to-be-switched wireless device; when the first selection operation is to select to switch the two wireless devices to be switched, the mobile terminal disconnects the connection between the mobile terminal and the two wireless devices to be switched. And if the mobile terminal does not receive the first selection operation, the mobile terminal does not disconnect the connection with the wireless equipment to be switched.
In this embodiment, after the mobile terminal has successfully connected to the wireless device, if the user wants to switch the wireless device connected to the mobile terminal, the user may directly trigger a switching operation in the mobile terminal to perform the switching, thereby solving the problem of the interactive switching connection between the mobile terminal and the plurality of wireless devices, solving the problem of the synchronous pairing connection between the mobile terminal and the two wireless devices, and improving the switching efficiency of the mobile terminal in switching the connected wireless devices.
Further, a third embodiment of the method for connecting a wireless device of the present invention is presented.
The third embodiment of the method for connecting a wireless device differs from the first or second embodiment of the method for connecting a wireless device in that, referring to fig. 4, the method for connecting a wireless device further includes:
and step S40, outputting a prompt page in the screen of the mobile terminal to display the connection state of the mobile terminal and the wireless equipment.
And step S50, if the mobile terminal is successfully connected with the wireless equipment, closing the prompt page in the screen.
When the mobile terminal is connected with the wireless equipment, the mobile terminal outputs a prompt page on a screen of the mobile terminal, and the connection state between the mobile terminal and the wireless equipment is displayed through the prompt page, wherein the connection state comprises a connection in-process state, a connection success state and a connection failure state. And when the mobile terminal is successfully connected with the wireless equipment, the mobile terminal closes the prompt page in the screen. It can be understood that, when the mobile terminal and the wireless device are successfully connected, the connection state will be changed from the in-connection state to the connection-successful state, and after the prompt page shows the connection-successful state, the mobile terminal will automatically close the prompt page and no longer display the prompt page on the screen.
Specifically, referring to fig. 5, as can be seen from fig. 5, when the mobile phone approaches the TWS bluetooth headset, the mobile phone and the TWS bluetooth headset will be automatically paired and connected, and when the mobile phone and the TWS bluetooth headset are connected, a "pairing connection mobile phone" is displayed in the screen of the mobile phone, which indicates that the current connection state of the mobile phone and the TWS bluetooth headset is a connection state.
The embodiment displays the connection state between the mobile terminal and the wireless equipment through the prompt page in the screen of the mobile terminal, automatically closes the prompt page in the screen after the mobile terminal is successfully connected with the wireless equipment, so that a user can conveniently know the connection state between the mobile terminal and the wireless equipment in time, the user does not need to manually close the prompt page, and the intelligence of the mobile terminal is improved.
Further, a fourth embodiment of the method for connecting a wireless device of the present invention is presented.
The fourth embodiment of the method for connecting a wireless device is different from the first, second, or third embodiment of the method for connecting a wireless device in that, referring to fig. 6, the method for connecting a wireless device further includes:
step S60, detecting whether a response request is received within a preset time period, where the response request is provided by the wireless device.
Step S70, if the response request is received, determining that the connection is successful, and/or outputting a second prompt message indicating that the connection is successful.
After the mobile terminal acquires the connection information, the mobile terminal detects whether a response request is received within a preset time length, wherein the response request is provided by the wireless device. And if the mobile terminal receives a response request sent by the wireless equipment, determining that the pairing with the wireless equipment is successful, namely determining that the connection with the wireless equipment is successful, and outputting second prompt information of the successful connection. It is understood that the mobile terminal may also choose not to output the second prompt message indicating that the connection is successful. The preset duration may be set according to specific needs, and the preset duration is not specifically limited in this embodiment.
Specifically, after the mobile terminal scans the wireless device through the augmented reality application, the mobile terminal detects whether the bluetooth of the mobile terminal is started. If the Bluetooth in the mobile terminal is started, the mobile terminal sends a pairing request to the wireless equipment scanned by the augmented reality application program through the Bluetooth of the mobile terminal, and detects whether a response request corresponding to the pairing request returned by the wireless equipment scanned by the augmented reality application program is received within a preset time, and under a normal condition, after the wireless equipment receives the pairing request sent by the mobile terminal, the wireless equipment generates a response request according to the pairing request and sends the response request to the mobile terminal. If the mobile terminal receives the response request within the preset time length, the mobile terminal determines that the wireless equipment corresponding to the response request is successfully paired, and establishes connection with the successfully paired wireless equipment; if the mobile terminal does not receive the response request within the preset time length, the mobile terminal determines that the wireless equipment scanned by the augmented reality application program fails to be paired, and does not establish connection with the wireless equipment scanned by the augmented reality application program.
If the Bluetooth in the mobile terminal is not started, the mobile terminal can automatically start the Bluetooth or output prompt information to prompt a user to trigger a Bluetooth starting instruction for starting the Bluetooth according to the prompt information. The mobile terminal can output prompt information in a voice mode or a text mode and the like. It should be noted that, in this embodiment, the mobile terminal may send the pairing request to the wireless device in a broadcast manner, and the wireless device may also return a response request to the mobile terminal in a broadcast manner.
Further, if the mobile terminal finds that the wireless device which is successfully paired does not exist, the mobile terminal rescans the wireless device through the augmented reality application program, so that the success rate of connection between the mobile terminal and the wireless device is improved.
In this embodiment, the mobile terminal sends the pairing request to the wireless device scanned by the augmented reality application, and if a response request returned by the wireless device is received within a preset time, the mobile terminal determines that the response request is successfully paired with the wireless device, and only after the wireless device is successfully paired with the mobile terminal, the mobile terminal establishes a connection with the wireless device, so that a success rate of connection between the mobile terminal and the wireless device is improved.
Further, the connection method of the wireless device further includes:
and k, acquiring distance information, wherein the distance information is the distance between the wireless equipment and the wireless equipment.
And step l, if the distance information is less than or equal to a first preset distance threshold, acquiring corresponding connection information.
The mobile terminal acquires distance information between the mobile terminal and the wireless equipment, wherein the distance information is the distance between the mobile terminal and the wireless equipment. If the distance information is determined to be smaller than or equal to the first preset distance threshold, the mobile terminal acquires the connection information of the wireless device corresponding to the distance information smaller than or equal to the first preset distance threshold. The first preset distance threshold may be set according to specific needs, and the size of the first preset distance threshold is not specifically limited in this embodiment.
Specifically, after the mobile terminal scans the wireless device through the augmented reality application, the mobile terminal determines a distance between the scanned wireless device and the mobile terminal through a bluetooth positioning technology, that is, determines a distance between the scanned wireless device and the mobile terminal through the bluetooth positioning technology. Preferably, the bluetooth location technology may be iBeacon technology. Further, the mobile terminal may also obtain a Signal strength (RSSI) between the mobile terminal and the wireless device, and calculate a distance between the mobile terminal and the wireless device scanned by the augmented reality application according to the RSSI. Further, the mobile terminal may also determine the distance between it and the scanned wireless device through the augmented reality application. It should be noted that the augmented reality application can calculate the distance between the scanned wireless device and the mobile terminal by identifying and tracking the visible feature points in the image captured by the camera, that is, the augmented reality application determines the distance between the scanned wireless device and the mobile terminal, which is the same principle as the distance measurement performed by the camera.
After the mobile terminal determines the distance between the mobile terminal and the scanned wireless device, the mobile terminal determines the wireless device with the distance smaller than a first preset distance threshold value as the wireless device to be paired, acquires the connection information of the wireless device to be paired, and determines the wireless device with the distance larger than or equal to the first preset distance threshold value as the unpaired wireless device. It can be understood that, in the process of pairing the subsequent mobile terminal with the wireless device, only the subsequent mobile terminal will be paired with the wireless device to be paired, and will not be paired with the wireless device that cannot be paired.
Further, the connection method of the wireless device further includes:
step m, scanning and acquiring the information of the equipment to be connected, wherein the equipment information is provided by the wireless equipment;
and step o, if the device information is the preset device type, executing the step S10.
The mobile terminal scans and acquires device information to be connected, the device information is provided by the wireless device, specifically, the device information may be a device name, a device type, and the like of the wireless device, and the device type may be an earphone, a mobile phone, a watch, and the like. After the mobile terminal acquires the equipment information, judging whether the equipment information is a preset equipment type, and if the equipment information is determined to be the preset equipment type, acquiring connection information through a preset rule; if the device information is determined not to be the preset device type, the connection information is not acquired through a preset rule, wherein the preset device type can be set according to specific needs, for example, the preset device type can be set to be a mobile phone or an earphone.
Further, after the step of determining that the device information is the preset device type, the method further includes:
step p, obtaining distance information, wherein the distance information is the distance between the wireless equipment and the wireless equipment;
and q, if the distance information is less than or equal to a second preset distance threshold, executing the step S10.
It should be noted that the execution process of step p is identical to the execution process of step k, and is not repeated herein, and the execution process of step q is identical to the execution process of step l in principle, and is not repeated herein. The first preset distance threshold and the second preset distance threshold may be equal or unequal.
In the embodiment, only the wireless device with the distance to the mobile terminal being smaller than the first preset distance threshold is determined as the wireless device to be paired, so that the failure of pairing the mobile terminal and the wireless device with a longer distance is avoided, the success rate of pairing the mobile terminal and the wireless device is improved, and the success rate of connecting the mobile terminal and the wireless device is improved.
In addition, the invention also provides a mobile terminal. As shown in fig. 7, fig. 7 is a schematic structural diagram of a hardware operating environment according to an embodiment of the present invention.
It should be noted that fig. 7 is a schematic structural diagram of a hardware operating environment of the mobile terminal. The mobile terminal of the embodiment of the invention can be a terminal device such as a PC, a portable computer and the like.
As shown in fig. 7, the mobile terminal may include: a processor 1001, such as a CPU, a memory 1005, a user interface 1003, a network interface 1004, a communication bus 1002. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include a Display screen (Display), an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 1005 may be a high-speed RAM memory or a non-volatile memory (e.g., a magnetic disk memory). The memory 1005 may alternatively be a storage device separate from the processor 1001.
Optionally, the mobile terminal may further include a camera, a Radio Frequency (RF) circuit, a sensor, an audio circuit, a WiFi module, and the like.
Those skilled in the art will appreciate that the mobile terminal architecture shown in fig. 7 is not intended to be limiting of mobile terminals and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
As shown in fig. 7, a memory 1005, which is a kind of computer storage medium, may include therein an operating system, a network communication module, a user interface module, and a connection program of a wireless device. Among them, the operating system is a program that manages and controls the hardware and software resources of the mobile terminal, supports the connectivity procedures of the wireless device, and the operation of other software or programs.
In the mobile terminal shown in fig. 7, the user interface 1003 is mainly used for connecting the TWS device, and performing data communication with the TWS device; the network interface 1004 is mainly used for the background server and performs data communication with the background server; the processor 1001 may be used to invoke a connection program for the wireless device stored in the memory 1005 and perform the steps of the wireless device connection method described above.
The specific implementation of the mobile terminal of the present invention is substantially the same as the embodiments of the connection method of the wireless device, and is not described herein again.
Furthermore, an embodiment of the present invention further provides a computer-readable storage medium, where a connection program of a wireless device is stored, and the connection program of the wireless device, when executed by a processor, implements the steps of the connection method of the wireless device as described above.
The specific implementation of the computer-readable storage medium of the present invention is substantially the same as the embodiments of the connection method of the wireless device, and is not described herein again.
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.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
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 invention 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 device (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 invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (15)

1. A method for connecting a wireless device, the method comprising:
s10, acquiring connection information through a preset rule;
and S20, sending a connection instruction according to the connection information so as to establish connection with the wireless device.
2. The connecting method according to claim 1, wherein the step of S10 includes:
acquiring an image, wherein the image is an image of the wireless device;
and analyzing the image and outputting corresponding connection information and/or the image.
3. The method of connecting of claim 2, wherein the step of acquiring an image comprises at least one of:
acquiring the image by an augmented reality scan;
scanning through a camera to obtain the image;
the image is acquired from a local and/or server.
4. A method of connecting according to claim 2 or 3, wherein the image comprises:
an image of the wireless device and/or a two-dimensional code image of the wireless device.
5. The connecting method according to any one of claims 1 to 3, further comprising, before the step of S10:
executing the step S10 only when a preset operation is acquired, where the preset operation includes:
initiating operation of the wireless connection; and/or the presence of a gas in the gas,
initiating operation of a preset application and/or function, wherein the preset application and/or function is used for controlling the wireless device.
6. The connecting method according to claim 1, wherein after the step S20, the method further comprises:
and S30, according to the received switching instruction, disconnecting the current connection and establishing a new connection.
7. The connecting method according to claim 6, wherein the step S30 includes:
when receiving a switching operation, outputting first prompt information, wherein the first prompt information comprises: a wireless device to be switched and/or a wireless device to be connected;
and sending a switching instruction according to the received first selection operation so as to disconnect the wireless equipment to be switched selected by the first selection operation and/or establish connection with the wireless equipment to be switched selected by the first selection operation.
8. The connecting method according to claim 1, wherein the step S20 includes:
if at least two pieces of connection information exist, outputting the connection information;
and determining target connection information according to the acquired second selection operation, and sending a connection instruction.
9. The connection method according to any one of claims 1 to 3 and 6 to 8, wherein after the step of sending a connection instruction according to the connection information, the method further comprises:
detecting whether a response request is received within a preset time length, wherein the response request is provided by the wireless equipment;
and if the response request is received, determining that the connection is successful, and/or outputting second prompt information of successful connection.
10. The connecting method according to any one of claims 1 to 3, 6 to 8, wherein the step of S20 is preceded by the step of:
obtaining distance information, wherein the distance information is the distance to the wireless device;
and if the distance information is less than or equal to a first preset distance threshold, acquiring corresponding connection information.
11. The connecting method according to any one of claims 1 to 3, 6 to 8, wherein the step of S10 is preceded by the step of:
scanning and acquiring device information to be connected, wherein the device information is provided by the wireless device;
if the device information is a preset device type, the step S10 is executed.
12. The method according to claim 11, wherein after the step of determining that the device information is a preset device type, the method further comprises:
obtaining distance information, wherein the distance information is the distance to the wireless device;
if the distance information is less than or equal to a second preset distance threshold, the step S10 is executed.
13. The connection method according to any one of claims 1 to 3, 6 to 8, wherein the wireless device comprises at least one of:
wireless earphone, intelligent bracelet, intelligent wrist-watch, intelligent terminal, intelligent glasses, intelligent household electrical appliances.
14. A mobile terminal, characterized in that it comprises a memory, a processor and a connection program of a wireless device stored on said memory and executable on said processor, said connection program of a wireless device realizing the steps of the connection method of a wireless device according to any one of claims 1 to 13 when executed by said processor.
15. A computer-readable storage medium, characterized in that the computer-readable storage medium has stored thereon a connection program of a wireless device, which when executed by a processor implements the steps of the connection method of the wireless device according to any one of claims 1 to 13.
CN201911297290.XA 2019-12-13 2019-12-13 Connection method of wireless device, mobile terminal and computer readable storage medium Pending CN110933772A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911297290.XA CN110933772A (en) 2019-12-13 2019-12-13 Connection method of wireless device, mobile terminal and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911297290.XA CN110933772A (en) 2019-12-13 2019-12-13 Connection method of wireless device, mobile terminal and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN110933772A true CN110933772A (en) 2020-03-27

Family

ID=69863879

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911297290.XA Pending CN110933772A (en) 2019-12-13 2019-12-13 Connection method of wireless device, mobile terminal and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN110933772A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112351507A (en) * 2020-10-30 2021-02-09 维沃移动通信有限公司 Interaction control method, interaction control device, electronic equipment and readable storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103368617A (en) * 2013-06-28 2013-10-23 东莞宇龙通信科技有限公司 Intelligent equipment interactive system and intelligent equipment interactive method
WO2015043361A1 (en) * 2013-09-29 2015-04-02 Tencent Technology (Shenzhen) Company Limited Methods, devices, and systems for completing communication between terminals
CN104797005A (en) * 2015-04-29 2015-07-22 深圳市文鼎创数据科技有限公司 Bluetooth pairing method and equipment
CN105828274A (en) * 2015-09-18 2016-08-03 维沃移动通信有限公司 Terminal connection method, first terminal and second terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103368617A (en) * 2013-06-28 2013-10-23 东莞宇龙通信科技有限公司 Intelligent equipment interactive system and intelligent equipment interactive method
WO2015043361A1 (en) * 2013-09-29 2015-04-02 Tencent Technology (Shenzhen) Company Limited Methods, devices, and systems for completing communication between terminals
CN104797005A (en) * 2015-04-29 2015-07-22 深圳市文鼎创数据科技有限公司 Bluetooth pairing method and equipment
CN105828274A (en) * 2015-09-18 2016-08-03 维沃移动通信有限公司 Terminal connection method, first terminal and second terminal

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112351507A (en) * 2020-10-30 2021-02-09 维沃移动通信有限公司 Interaction control method, interaction control device, electronic equipment and readable storage medium

Similar Documents

Publication Publication Date Title
US9594496B2 (en) Method and apparatus for playing IM message
US20170019265A1 (en) Method, terminal and server for controlling smart device
CN106803993B (en) Method and device for realizing video branch selection playing
CN111897507B (en) Screen projection method and device, second terminal and storage medium
CN104394263A (en) Accessing point list displaying method and device
JP2017537414A (en) Fingerprint authentication method and apparatus, program and recording medium
US11782478B2 (en) Unlocking control method and related products
CN110324831B (en) Distribution network method and device, electronic equipment, terminal and storage medium
CN108932102B (en) Data processing method and device and mobile terminal
KR101735755B1 (en) Method and apparatus for prompting device connection
CN113590067A (en) Screen projection control method, system, device and computer readable storage medium
CN111669737A (en) Bluetooth device connection method and device and electronic device
CN106791916B (en) Method, device and system for recommending audio data
CN111818499B (en) Quick pairing method, device, equipment and computer readable storage medium
CN108829481B (en) Presentation method of remote controller interface based on control electronic equipment
US10143033B2 (en) Communications apparatus, control method, and storage medium
US20160026719A1 (en) Methods and devices for sharing resources
CN114741292A (en) Test script management method and device, electronic equipment and storage medium
CN104811904A (en) Contact setting method and device
WO2019228370A1 (en) Data processing method and device, mobile terminal and storage medium
CN108803961B (en) Data processing method and device and mobile terminal
CN112749074A (en) Test case recommendation method and device
WO2016202277A1 (en) Message sending method and mobile terminal
CN111338971B (en) Application testing method and device, electronic equipment and storage medium
KR20090016088A (en) Method and apparatus for data storage in mobile communication system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20200327