CN111641938B - Wireless pairing connection method and device, host and slave - Google Patents

Wireless pairing connection method and device, host and slave Download PDF

Info

Publication number
CN111641938B
CN111641938B CN202010469781.4A CN202010469781A CN111641938B CN 111641938 B CN111641938 B CN 111641938B CN 202010469781 A CN202010469781 A CN 202010469781A CN 111641938 B CN111641938 B CN 111641938B
Authority
CN
China
Prior art keywords
connection
pairing
wireless
slave
information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010469781.4A
Other languages
Chinese (zh)
Other versions
CN111641938A (en
Inventor
刘静
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Goertek Techology Co Ltd
Original Assignee
Goertek Techology 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 Goertek Techology Co Ltd filed Critical Goertek Techology Co Ltd
Priority to CN202010469781.4A priority Critical patent/CN111641938B/en
Publication of CN111641938A publication Critical patent/CN111641938A/en
Application granted granted Critical
Publication of CN111641938B publication Critical patent/CN111641938B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/11Allocation or use of connection identifiers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/005Discovery of network devices, e.g. terminals
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses a wireless pairing connection method, a device, a host and a slave, wherein the method is applied to the host and comprises the following steps: receiving a pairing connection infrared signal sent by a slave machine by utilizing an infrared receiving device; acquiring pairing information corresponding to the pairing connection infrared signals; the pairing information comprises wireless connection unique identification information corresponding to the slave; according to the pairing information, carrying out wireless pairing connection with the slave; according to the invention, by means of the arrangement of the infrared transmitting equipment of the slave and the infrared receiving equipment of the host, the host can perform wireless pairing connection with the slave corresponding to the wireless connection unique identification information in the pairing information according to the pairing information corresponding to the pairing connection infrared signal received by the infrared receiving equipment, so that accurate and efficient wireless pairing connection is realized, a user can conveniently and rapidly complete wireless pairing connection between the host and the slave only by triggering the slave to transmit the pairing connection infrared signal, user experience is enhanced, and product competitiveness is improved.

Description

Wireless pairing connection method and device, host and slave
Technical Field
The present invention relates to the field of wireless connection technologies, and in particular, to a wireless pairing connection method, device, host, and slave.
Background
When wireless connection equipment on the market is matched and connected at present, a user is required to open a wireless connection configuration interface of a terminal, a host scans, and then a corresponding slave is selected for matching, so that the matching process is very complicated; when the wireless connection names (such as Bluetooth names) of a plurality of slaves or a plurality of identical slaves exist, the corresponding slaves are found according to the wireless connection names of the slaves, the success probability of pairing with the correct slaves is greatly reduced, the pairing time is wasted, and the user experience is reduced.
Therefore, how to enable the user to conveniently and rapidly complete the wireless pairing connection between the host and the correct slave, enhance the user experience and improve the product competitiveness is a problem which needs to be solved rapidly nowadays.
Disclosure of Invention
The invention aims to provide a wireless pairing connection method, a device, a host and a slave, so that a user can conveniently and rapidly complete wireless pairing connection of the host and the correct slave, the user experience is enhanced, and the product competitiveness is improved.
In order to solve the above technical problems, the present invention provides a wireless pairing connection method, which is applied to a host, and includes:
receiving a pairing connection infrared signal sent by a slave machine by utilizing an infrared receiving device;
acquiring pairing information corresponding to the pairing connection infrared signals; the pairing information comprises wireless connection unique identification information corresponding to the slave;
and according to the pairing information, carrying out wireless pairing connection with the slave.
Optionally, when the wireless connection unique identifier information is bluetooth connection identity information, the wireless connection unique identifier information is wirelessly paired with the slave according to the pairing information, including:
and according to the pairing information, carrying out Bluetooth pairing connection with the slave.
Optionally, the bluetooth connection identity information is specifically a bluetooth MAC address.
Optionally, the obtaining the pairing information corresponding to the pairing connection infrared signal includes:
acquiring ASCII codes corresponding to the paired connection infrared signals;
and acquiring the Bluetooth MAC address corresponding to the slave according to the ASCII code.
Optionally, the wireless pairing connection with the slave according to the pairing information includes:
judging whether the pairing connection of the wireless connection corresponding to the pairing information is carried out with other slaves;
if not, scanning the slave according to the wireless connection unique identification information, and performing wireless pairing connection with the slave;
if yes, the pairing connection with the other slaves is disconnected, the slaves are scanned according to the wireless connection unique identification information, and wireless pairing connection is carried out with the slaves.
The invention also provides a wireless pairing connection device, which is applied to a host, and comprises:
the receiving module is used for receiving the paired connection infrared signals sent by the slave machine by utilizing the infrared receiving equipment;
the acquisition module is used for acquiring pairing information corresponding to the pairing connection infrared signals; the pairing information comprises wireless connection unique identification information corresponding to the slave;
and the connection module is used for carrying out wireless pairing connection with the slave machine according to the pairing information.
The invention also provides a host computer, comprising: the device comprises an infrared receiving device, a wireless connecting device, a memory and a processor; the memory is configured to store a computer program, and the processor is configured to implement the steps of the wireless pairing connection method applied to the host when the computer program is executed.
The invention also provides a wireless pairing connection method which is applied to the slave machine and comprises the following steps:
acquiring a wireless connection instruction;
according to the wireless connection instruction, transmitting a pairing connection infrared signal corresponding to pairing information by utilizing an infrared transmitting device so as to be in wireless pairing connection with a host computer receiving the pairing connection infrared signal; the pairing information comprises unique wireless connection identification information corresponding to the slave.
Optionally, the acquiring the wireless connection instruction includes:
and generating the wireless connection instruction according to the acquired trigger signal of the pairing key.
Optionally, when the wireless connection unique identification information is a bluetooth MAC address, the transmitting, by using an infrared transmitting device, a pairing connection infrared signal corresponding to the pairing information includes:
acquiring an ASCII code corresponding to the Bluetooth MAC address;
and transmitting the pairing connection infrared signal corresponding to the ASCII code by utilizing the infrared transmitting equipment.
Optionally, after the transmitting, by using the infrared transmitting device, the pairing connection infrared signal corresponding to the pairing information further includes:
judging whether wireless pairing connection is carried out with the host computer in a preset time period;
and if not, executing the step of transmitting the pairing connection infrared signal corresponding to the pairing information by utilizing the infrared transmitting equipment.
The invention also provides a wireless pairing connection device, which is applied to the slave machine and comprises:
the instruction acquisition module is used for acquiring the wireless connection instruction;
the transmitting module is used for transmitting a pairing connection infrared signal corresponding to the pairing information by utilizing an infrared transmitting device according to the wireless connection instruction so as to carry out wireless pairing connection with a host computer receiving the pairing connection infrared signal; the pairing information comprises unique wireless connection identification information corresponding to the slave.
The invention also provides a slave machine, which comprises: the device comprises an infrared emission device, a wireless connection device, a memory and a processor; the memory is used for storing a computer program, and the processor is used for realizing the steps of the wireless pairing connection method applied to the slave machine when executing the computer program.
The invention provides a wireless pairing connection method, which is applied to a host, and comprises the following steps: receiving a pairing connection infrared signal sent by a slave machine by utilizing an infrared receiving device; acquiring pairing information corresponding to the pairing connection infrared signals; the pairing information comprises wireless connection unique identification information corresponding to the slave; according to the pairing information, carrying out wireless pairing connection with the slave;
therefore, the invention utilizes the arrangement of the infrared transmitting equipment of the slave and the infrared receiving equipment of the host, so that the host can carry out wireless pairing connection with the slave corresponding to the wireless connection unique identification information in the pairing information according to the pairing information corresponding to the pairing connection infrared signal received by the infrared receiving equipment, thereby realizing accurate and efficient wireless pairing connection, enabling a user to conveniently and rapidly complete the wireless pairing connection between the host and the slave by triggering the slave to transmit the pairing connection infrared signal by utilizing the infrared transmitting equipment, enhancing user experience and improving product competitiveness. In addition, the invention also provides a wireless pairing connection device, a host and a slave, which have the same beneficial effects.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings that are required to be used in the embodiments or the description of the prior art will be briefly described below, and it is obvious that the drawings in the following description are only embodiments of the present invention, and that other drawings can be obtained according to the provided drawings without inventive effort for a person skilled in the art.
Fig. 1 is a flowchart of a wireless pairing connection method according to an embodiment of the present invention;
fig. 2 is a block diagram of a wireless pairing connection device according to an embodiment of the invention;
fig. 3 is a flowchart of another wireless pairing connection method according to an embodiment of the invention;
fig. 4 is a block diagram of another wireless pairing connection device according to an embodiment of the invention.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is apparent that the described embodiments are some embodiments of the present invention, but not all embodiments of the present invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
Referring to fig. 1, fig. 1 is a flowchart of a wireless pairing connection method according to an embodiment of the invention. The method is applied to a host and can comprise the following steps:
step 101: and receiving the paired connection infrared signals sent by the slave machine by utilizing an infrared receiving device.
The host in this embodiment may search for surrounding slaves in the wireless connection and select a device that needs to connect with the slaves to perform wireless pairing connection, such as a host bluetooth device; the slave in this embodiment may be a device that does not actively search for wireless connections and waits to be searched for by the master, such as a slave bluetooth device.
Specifically, for the specific type of the master and the slave in the embodiment, that is, the specific type of the wireless pairing connection performed by the master and the slave can be set by a designer according to the use scenario and the user requirement, for example, when the master is in bluetooth pairing connection with the slave, the master and the slave in the embodiment can be a master bluetooth device (such as a smart phone) and a slave bluetooth device (such as a bluetooth headset, a bluetooth sound box, etc.) respectively; when the host computer is connected with the WIFI pair by the slave computer, the host computer and the slave computer in the embodiment can be a host computer WIFI device and a slave computer WIFI device respectively. The present embodiment does not impose any limitation on this.
It can be understood that the infrared signal of the pairing connection in this step may be an infrared signal sent by the infrared transmitting device in the slave to the infrared receiving device in the host when the slave needs to perform wireless pairing connection with the host. The purpose of this step can be for the host computer utilizes infrared receiving device to receive the pair connection infrared signal that the slave computer utilized infrared emission device to send to utilize pair connection infrared signal scanning to select this slave computer to carry out wireless pair connection with it. That is, when the slave machine needs to be in wireless pairing connection with the host machine, the infrared transmitting device can be utilized to transmit the pairing connection infrared signal corresponding to the pairing information containing the self wireless connection unique identification information to the host machine, so that the host machine can directly scan and select the slave machine corresponding to the wireless connection unique identification information in the pairing information according to the received pairing connection infrared signal, namely the slave machine transmitting the pairing connection infrared signal, the process that a user selects the slave machine in wireless pairing connection at the host machine is avoided, and accurate and efficient wireless pairing connection is realized.
Step 102: acquiring pairing information corresponding to the pairing connection infrared signals; the pairing information comprises wireless connection unique identification information corresponding to the slave.
It can be understood that the pairing information in this step may be data corresponding to the pairing connection infrared signal acquired by the processor in the host, that is, data sent by the slave to the host by using the infrared transmitting device. For the specific content of the pairing information in the step, the pairing information can be set by a designer according to a practical scene and user requirements, for example, the pairing information can comprise wireless connection unique identification information corresponding to the slave machine, namely, the unique identification information of the slave machine which is different from other slave machines in the process of carrying out wireless pairing connection between the master machine and the slave machine, so that the master machine can scan and select the slave machine corresponding to the wireless connection unique identification information to carry out wireless pairing connection; as long as the host can find the corresponding slave by using the wireless connection unique identification information and perform wireless pairing connection with the slave, the embodiment is not limited to the specific content of the wireless connection unique identification information, for example, when the host performs bluetooth pairing connection with the slave, the wireless connection unique identification information can be bluetooth connection identity information of the slave, for example, bluetooth MAC (Media Access Control) address and/or unique ID of the slave; when the host computer and the slave computer are in WIFI pairing connection, the unique wireless connection identification information can be WIFI connection identity information of the slave computer, such as a WIFI name and a WIFI password. Pairing information may also include pairing requests, such as bluetooth pairing requests. The present embodiment is also not limited in any way with respect to the specific content of the pairing information.
Specifically, for the specific mode of acquiring the pairing information corresponding to the pairing connection infrared signal by the processor in the host in the step, that is, the specific mode of converting the pairing information into the pairing connection infrared signal transmitted by the infrared transmitting device by the slave, the specific mode can be set by a designer according to a practical scene and user requirements, for example, when the unique wireless connection identification information in the pairing information is a bluetooth MAC address, the slave can transmit the bluetooth MAC address to the host in the form of ASCII code through a proprietary infrared protocol because the bluetooth MAC address has letters, that is, the slave can acquire the ASCII code corresponding to the pairing information and transmit the pairing connection infrared signal corresponding to the ASCII code by the infrared transmitting device; correspondingly, in the step, the host can acquire ASCII codes corresponding to the paired connection infrared signals; and acquiring pairing information (such as Bluetooth MAC address) corresponding to the slave according to the ASCII code. The embodiment does not limit any limitation as long as the host can acquire the pairing information corresponding to the pairing connection infrared signal and including the wireless connection unique identification information of the slave.
Step 103: and according to the pairing information, carrying out wireless pairing connection with the slave.
It can be understood that the purpose of this step may be that the processor in the host performs wireless pairing connection according to the acquired pairing information, by using the corresponding wireless connection device in the host to scan and select the slave corresponding to the wireless connection unique identifier information in the pairing information. For example, when the pairing information includes a bluetooth pairing request and a bluetooth MAC address, the processor in the master bluetooth device may scan surrounding slave bluetooth devices according to the bluetooth pairing request, scan to a slave bluetooth device having the same bluetooth MAC address as the bluetooth MAC address in the pairing information, and perform bluetooth pairing connection.
Correspondingly, the embodiment does not limit the specific wireless pairing connection type of the slave corresponding to the wireless connection unique identification information in the pairing information, for example, the master and the slave can be subjected to bluetooth pairing connection, and also can be subjected to WIFI pairing connection or other wireless pairing connection.
Specifically, in this embodiment, the specific manner of performing wireless pairing connection with the slave according to the pairing information can be set by a designer according to a practical scenario and user requirements, for example, the host may perform wireless pairing connection with only the slave corresponding to the wireless connection unique identification information in the pairing information, that is, the step may include determining whether the host performs wireless connection pairing connection corresponding to the pairing information with other slave; if yes, disconnecting the pairing connection with other slaves, scanning the slaves according to the unique wireless connection identification information, and performing wireless pairing connection with the slaves; if not, scanning the slave according to the wireless connection unique identification information, and performing wireless pairing connection with the slave. The master may also perform wireless pairing with a plurality of slaves including a slave corresponding to the wireless connection unique identification information in the pairing information, for example, this step may include determining whether the number of other slaves performing wireless connection corresponding to the pairing information with the master reaches a threshold; if yes, disconnecting the wireless connection with one other slave machine (such as the other slave machine which has not interacted with the data of the host machine through the wireless connection for the longest time), scanning the slave machine according to the unique identification information of the wireless connection, and carrying out wireless pairing connection with the slave machine; if not, scanning the slave according to the wireless connection unique identification information, and performing wireless pairing connection with the slave. The present embodiment does not impose any limitation on this.
In the embodiment of the invention, by utilizing the arrangement of the infrared transmitting equipment of the slave and the infrared receiving equipment of the host, the host can carry out wireless pairing connection with the slave corresponding to the wireless connection unique identification information in the pairing information according to the pairing information corresponding to the pairing connection infrared signal received by the infrared receiving equipment, thereby realizing accurate and efficient wireless pairing connection, enabling a user to conveniently and quickly complete the wireless pairing connection between the host and the slave by triggering the slave to transmit the pairing connection infrared signal by utilizing the infrared transmitting equipment, enhancing the user experience and improving the product competitiveness.
Referring to fig. 2, fig. 2 is a block diagram of a wireless pairing connection device according to an embodiment of the invention. The device is applied to a host and can comprise:
a receiving module 10, configured to receive, with an infrared receiving device, a pairing connection infrared signal sent by a slave;
the acquiring module 20 is configured to acquire pairing information corresponding to the pairing connection infrared signal; the pairing information comprises wireless connection unique identification information corresponding to the slave;
and the connection module 30 is used for carrying out wireless pairing connection with the slave according to the pairing information.
Alternatively, when the wireless connection unique identification information is bluetooth connection identity information, the connection module 30 may be specifically configured to perform bluetooth pairing connection with the slave according to the pairing information.
Optionally, the bluetooth connection identity information is specifically a bluetooth MAC address.
Optionally, the acquiring module 20 may include:
an ASCII code obtaining sub-module, configured to obtain an ASCII code corresponding to the paired connection infrared signal;
and the MAC address acquisition sub-module is used for acquiring the Bluetooth MAC address corresponding to the slave according to the ASCII code.
Alternatively, the connection module 30 may include:
the judging sub-module is used for judging whether the wireless connection corresponding to the pairing information is paired with other slaves;
the first connection sub-module is used for scanning the slave machine according to the unique wireless connection identification information and carrying out wireless pairing connection with the slave machine if the wireless connection corresponding to the pairing information is not carried out with other slave machines;
and the second connection sub-module is used for disconnecting the pairing connection with other slaves if the pairing connection of the wireless connection corresponding to the pairing information is carried out on the other slaves, scanning the slaves according to the unique identification information of the wireless connection and carrying out wireless pairing connection with the slaves.
In this embodiment, the embodiment of the present invention utilizes the arrangement of the infrared transmitting device of the slave and the infrared receiving device of the host, so that the host can perform wireless pairing connection with the slave corresponding to the wireless connection unique identification information in the pairing information according to the pairing information corresponding to the pairing connection infrared signal received by the infrared receiving device by the connection module 30, thereby realizing accurate and efficient wireless pairing connection, enabling the user to conveniently and rapidly complete wireless pairing connection between the host and the slave by triggering the slave to transmit the pairing connection infrared signal by utilizing the infrared transmitting device, enhancing user experience and improving product competitiveness.
The embodiment of the invention also provides a host, which comprises: the device comprises an infrared receiving device, a wireless connecting device, a memory and a processor; the memory is configured to store a computer program, and the processor is configured to implement the steps of the wireless pairing connection method applied to the host as provided in the foregoing embodiment when executing the computer program.
The embodiment of the invention also provides a computer readable storage medium, and a computer program is stored on the computer readable storage medium, and when the computer program is executed by a processor, the steps of the wireless pairing connection method applied to a host provided in the embodiment are realized. The computer storage medium may include: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
Referring to fig. 3, fig. 3 is a flowchart of another wireless pairing connection method according to an embodiment of the invention. The method is applied to the slave machine and can comprise the following steps:
step 201: and acquiring a wireless connection instruction.
The wireless connection instruction in the step can be an instruction for controlling the slave to send a pairing connection infrared signal corresponding to the pairing information by using the infrared transmitting device. The specific mode of acquiring the wireless connection instruction by the processor of the slave in the step can be set by a designer or a user according to a practical scene, user requirements and user requirements, for example, when a key (namely a pairing key) for triggering the slave to carry out wireless pairing connection with the host is arranged on the slave, the processor of the slave in the step can generate the wireless connection instruction according to the acquired triggering signal of the pairing key; that is, when the user needs to perform wireless pairing connection between the slave and the host, the user can press the pairing button on the slave to complete wireless pairing connection between the host and the slave, without performing complicated operations as in the prior art, and without performing a wireless pairing connection process through a wireless connection interface (such as a bluetooth connection interface) of the host. Correspondingly, when the touch screen is arranged on the slave machine, a user can operate the touch screen on the slave machine, so that the processor of the slave machine generates a wireless connection instruction. The present embodiment does not impose any limitation on this.
Step 202: according to the wireless connection instruction, transmitting a pairing connection infrared signal corresponding to the pairing information by utilizing an infrared transmitting device so as to carry out wireless pairing connection with a host computer receiving the pairing connection infrared signal; the pairing information comprises wireless connection unique identification information corresponding to the slave.
It can be understood that the purpose of this step may be that the processor in the slave machine controls the infrared transmitting device to transmit the pairing connection infrared signal corresponding to the pairing information including the wireless connection unique identification information of the slave machine according to the acquired wireless connection instruction, so that the host machine that receives the pairing connection infrared signal may scan to the slave machine according to the wireless connection unique identification information and perform wireless pairing connection with the slave machine.
Correspondingly, the step can also comprise the step that the slave machine starts the wireless connection function by utilizing the wireless connection equipment of the slave machine, so that the master machine receiving the paired connection infrared signals can scan the slave machine.
Specifically, for the specific mode that the slave machine sends the pairing connection infrared signal corresponding to the pairing information by using the infrared transmitting device in the step, the method can be set by a designer, if the unique wireless connection identification information in the pairing information is a bluetooth MAC address, the processor of the slave machine in the step can firstly acquire the ASCII code corresponding to the bluetooth MAC address, and then send the pairing connection infrared signal corresponding to the ASCII code by using the infrared transmitting device, so that the host machine receiving the pairing connection infrared signal can be in bluetooth pairing connection with the slave machine.
It should be noted that, according to the wireless connection instruction, the processor of the slave machine in this embodiment may start a timer (timer) after sending the pairing connection infrared signal corresponding to the pairing information by using the infrared transmitting device, to determine whether the slave machine is in wireless pairing connection with the host machine in a preset time period; if not, returning to the step, and transmitting a pairing connection infrared signal corresponding to the pairing information by using the infrared transmitting equipment again so as to avoid the situation that a user needs to trigger the slave machine for acquiring a wireless connection instruction for multiple times; if yes, the pairing can be determined to be successful, and the process is ended.
In the embodiment of the invention, by using the arrangement of the infrared transmitting equipment of the slave and the infrared receiving equipment of the host, the slave can transmit the pairing connection infrared signal corresponding to the pairing information by using the infrared transmitting equipment, so that the host which receives the pairing connection infrared signal can be in wireless pairing connection with the slave which corresponds to the wireless connection unique identification information in the pairing information, the accurate and efficient wireless pairing connection is realized, and a user can conveniently and quickly complete the wireless pairing connection of the host and the slave by triggering the slave to transmit the pairing connection infrared signal by using the infrared transmitting equipment, thereby enhancing the user experience and improving the product competitiveness.
Referring to fig. 4, fig. 4 is a block diagram illustrating another wireless pairing connection device according to an embodiment of the invention. The device is applied to the slave machine and can comprise:
an instruction acquisition module 40, configured to acquire a wireless connection instruction;
the transmitting module 50 is configured to transmit, according to the wireless connection instruction, a pairing connection infrared signal corresponding to the pairing information by using an infrared transmitting device, so as to perform wireless pairing connection with a host that receives the pairing connection infrared signal; the pairing information comprises wireless connection unique identification information corresponding to the slave.
Alternatively, when the wireless connection unique identification information is a bluetooth MAC address, the transmitting module 50 may include:
the acquisition sub-module is used for acquiring ASCII codes corresponding to the Bluetooth MAC addresses;
and the transmitting sub-module is used for transmitting the pairing connection infrared signals corresponding to the ASCII codes by utilizing the infrared transmitting equipment.
Optionally, the apparatus may further include:
the judging module is used for judging whether wireless pairing connection is carried out with the host in a preset time period after the infrared transmitting equipment is used for transmitting the pairing connection infrared signals corresponding to the pairing information; a start signal is sent to the sending module 50.
In this embodiment, the embodiment of the present invention utilizes the arrangement of the infrared transmitting device of the slave and the infrared receiving device of the master, so that the slave can transmit the pairing connection infrared signal corresponding to the pairing information by utilizing the infrared transmitting device through the transmitting module 50, thereby enabling the master which receives the pairing connection infrared signal to perform wireless pairing connection with the slave corresponding to the wireless connection unique identification information in the pairing information, realizing accurate and efficient wireless pairing connection, enabling the user to conveniently and rapidly complete the wireless pairing connection of the master and the slave by triggering the slave to transmit the pairing connection infrared signal by utilizing the infrared transmitting device, enhancing user experience and improving product competitiveness.
The embodiment of the invention also provides a slave machine, which comprises: the device comprises an infrared emission device, a wireless connection device, a memory and a processor; the memory is used for storing a computer program, and the processor is used for realizing the steps of the wireless pairing connection method applied to the slave machine, which are provided in the embodiment, when the computer program is executed.
In addition, the embodiment of the invention further provides a computer readable storage medium, and a computer program is stored on the computer readable storage medium, and when the computer program is executed by a processor, the steps of the wireless pairing connection method applied to the host provided in the embodiment above are realized. The computer storage medium may include: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
In the description, each embodiment is described in a progressive manner, and each embodiment is mainly described by the differences from other embodiments, so that the same similar parts among the embodiments are mutually referred. For the apparatus, the host, the slave, and the computer-readable storage medium disclosed in the embodiments, since they correspond to the methods disclosed in the embodiments, the description is relatively simple, and the relevant points refer to the description of the method section.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative elements and steps are described above generally in terms of functionality in order to clearly illustrate the interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
The wireless pairing connection method, the wireless pairing connection device, the host and the slave are described in detail. The principles and embodiments of the present invention have been described herein with reference to specific examples, the description of which is intended only to facilitate an understanding of the method of the present invention and its core ideas. It should be noted that it will be apparent to those skilled in the art that various modifications and adaptations of the invention can be made without departing from the principles of the invention and these modifications and adaptations are intended to be within the scope of the invention as defined in the following claims.

Claims (6)

1. A wireless pairing connection method applied to a host, comprising:
receiving a pairing connection infrared signal sent by a slave machine by utilizing an infrared receiving device;
acquiring pairing information corresponding to the pairing connection infrared signals; the pairing information comprises wireless connection unique identification information corresponding to the slave;
according to the pairing information, carrying out wireless pairing connection with the slave;
and according to the pairing information, carrying out wireless pairing connection with the slave, wherein the wireless pairing connection comprises the following steps:
judging whether the number of other slaves which are in wireless connection corresponding to the pairing information of the master reaches a threshold value or not;
if not, scanning the slave according to the wireless connection unique identification information, and performing wireless pairing connection with the slave;
if yes, disconnecting the pairing connection with other slaves which do not perform data interaction with the master computer through wireless connection for the longest time, scanning the slaves according to the unique wireless connection identification information, and performing wireless pairing connection with the slaves.
2. The wireless pairing connection method according to claim 1, wherein when the wireless connection unique identification information is bluetooth connection identity information, performing wireless pairing connection with the slave according to the pairing information, including:
and according to the pairing information, carrying out Bluetooth pairing connection with the slave.
3. The wireless pairing-connection method according to claim 2, wherein the bluetooth connection identity information is specifically a bluetooth MAC address.
4. The wireless pairing-connection method according to claim 3, wherein the obtaining pairing information corresponding to the pairing-connection infrared signal includes:
acquiring ASCII codes corresponding to the paired connection infrared signals;
and acquiring the Bluetooth MAC address corresponding to the slave according to the ASCII code.
5. A wireless mating connection device for a host, comprising:
the receiving module is used for receiving the paired connection infrared signals sent by the slave machine by utilizing the infrared receiving equipment;
the acquisition module is used for acquiring pairing information corresponding to the pairing connection infrared signals; the pairing information comprises wireless connection unique identification information corresponding to the slave;
the connection module is used for carrying out wireless pairing connection with the slave machine according to the pairing information; judging whether the number of other slaves which are in wireless connection corresponding to the pairing information of the master reaches a threshold value or not; if not, scanning the slave according to the wireless connection unique identification information, and performing wireless pairing connection with the slave; if yes, disconnecting the pairing connection with other slaves which do not perform data interaction with the master computer through wireless connection for the longest time, scanning the slaves according to the unique wireless connection identification information, and performing wireless pairing connection with the slaves.
6. A host, comprising: the device comprises an infrared receiving device, a wireless connecting device, a memory and a processor; wherein the memory is configured to store a computer program, and the processor is configured to implement the steps of the wireless pairing connection method according to any one of claims 1 to 4 when the computer program is executed.
CN202010469781.4A 2020-05-28 2020-05-28 Wireless pairing connection method and device, host and slave Active CN111641938B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010469781.4A CN111641938B (en) 2020-05-28 2020-05-28 Wireless pairing connection method and device, host and slave

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010469781.4A CN111641938B (en) 2020-05-28 2020-05-28 Wireless pairing connection method and device, host and slave

Publications (2)

Publication Number Publication Date
CN111641938A CN111641938A (en) 2020-09-08
CN111641938B true CN111641938B (en) 2023-07-25

Family

ID=72332984

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010469781.4A Active CN111641938B (en) 2020-05-28 2020-05-28 Wireless pairing connection method and device, host and slave

Country Status (1)

Country Link
CN (1) CN111641938B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112291768B (en) * 2020-10-29 2023-01-24 歌尔科技有限公司 Equipment connection method, system, bluetooth handle and storage medium
CN114340039A (en) * 2021-12-30 2022-04-12 湖南普奇水环境研究院有限公司 Wireless connection exclusive pairing method and system

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108882214B (en) * 2018-07-09 2023-08-22 深圳市潮流网络技术有限公司 Bluetooth remote control rapid pairing method
CN108880625B (en) * 2018-08-27 2022-02-18 深圳市昇润科技有限公司 Bluetooth-based intelligent device system and implementation method
CN109147306A (en) * 2018-09-07 2019-01-04 迈普通信技术股份有限公司 Management method, equipment and the management system of the network equipment

Also Published As

Publication number Publication date
CN111641938A (en) 2020-09-08

Similar Documents

Publication Publication Date Title
CN111629369B (en) Bluetooth headset, pairing connection method and device thereof, and TWS headset
CN111866998A (en) Bluetooth network distribution method, equipment and storage medium
EP3484196B1 (en) Method and apparatus for registering wireless device in wireless communication system
CN112020048B (en) Bluetooth device pairing method, device and storage medium
CN102833876B (en) Wireless Telecom Equipment
CN111629370B (en) Bluetooth headset, pairing connection method and device thereof, and TWS headset
CN105744352B (en) Wireless network connection method of television and television
US11452156B2 (en) Configuration system, client device, embedded device configuration method, and storage medium
CN104378145A (en) Pairing method and system of Bluetooth device
CN111641938B (en) Wireless pairing connection method and device, host and slave
JP6370985B2 (en) Method, apparatus and system for establishing a connection by a terminal
CN113473435B (en) Bluetooth-based device connection method and device, electronic device and storage medium
KR20210110335A (en) Smart device network configuration method and related devices
CN105025433A (en) Bluetooth pairing method and terminal
CN111918256A (en) Intelligent device network distribution method and device based on Bluetooth and storage medium
CN105940720B (en) It is a kind of to trigger the method for register machine protocol interaction, access point, website
CN112636901B (en) Identity recognition method, device, storage medium and electronic equipment
CN106251609B (en) Intelligent robot, networking method thereof, network sharing method and device
CN114786139A (en) Connection establishing method, device, equipment, storage medium and program product
CN111970676B (en) WiFi hot spot access method, device, equipment and storage medium
CN111885571A (en) Bluetooth device pairing method, device and storage medium
CN105635852A (en) Method and apparatus for matching of smart television with dynamic link library
CN113677039B (en) Bluetooth-based device connection method and device, electronic device and storage medium
US20160323744A1 (en) Authentication and association method and system
CN109951829B (en) Bluetooth connection method, intelligent terminal and Bluetooth device

Legal Events

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