CN113973397B - Equipment pairing method, pairing equipment and equipment pairing system - Google Patents

Equipment pairing method, pairing equipment and equipment pairing system Download PDF

Info

Publication number
CN113973397B
CN113973397B CN202010661563.0A CN202010661563A CN113973397B CN 113973397 B CN113973397 B CN 113973397B CN 202010661563 A CN202010661563 A CN 202010661563A CN 113973397 B CN113973397 B CN 113973397B
Authority
CN
China
Prior art keywords
slave
identifier
slave device
pairing
master device
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010661563.0A
Other languages
Chinese (zh)
Other versions
CN113973397A (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.)
Nolo Co ltd
Original Assignee
Nolo 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 Nolo Co ltd filed Critical Nolo Co ltd
Priority to CN202010661563.0A priority Critical patent/CN113973397B/en
Publication of CN113973397A publication Critical patent/CN113973397A/en
Application granted granted Critical
Publication of CN113973397B publication Critical patent/CN113973397B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/10Network architectures or network communication protocols for network security for controlling access to devices or network resources
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/2866Architectures; Arrangements
    • H04L67/30Profiles
    • H04L67/303Terminal profiles
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Computer Security & Cryptography (AREA)
  • Computing Systems (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

A device pairing method comprising: the slave device monitors whether other slave devices exist in a preset communication channel and sends a device pairing request to the master device; when the slave device monitors that no other slave devices send device pairing requests to the master device in the preset communication channel, the slave device sends device pairing requests configured as the first identifier to the master device, and when receiving information which is returned by the master device and agrees that the slave device is configured as the first identifier and communication information corresponding to the first identifier, the slave device realizes the pairing with the master device according to the communication information corresponding to the first identifier. The slave device definitely determines the self identification and acquires the communication information corresponding to the self identification, so that the acquisition of different communication information among the slave devices is realized, and the configuration of different communication channels among the slave devices is realized.

Description

Equipment pairing method, pairing equipment and equipment pairing system
Technical Field
The present disclosure relates to the field of communications technologies, and in particular, to a device pairing method, a pairing device, and a device pairing system.
Background
Virtual Reality (VR) technology is an advanced, digital man-machine interface technology, and is characterized in that a computer is used to generate an artificial Virtual environment based on visual perception, including comprehensive perception of hearing and touch. People can perceive the virtual world of the computer through various sense channels such as vision, hearing, touch and the like, and can interact with the virtual world in the most natural modes such as movement, voice, expression, gesture, sight and the like, so that the experience of being in the scene is generated. Virtual reality technology is a comprehensive development of various technologies such as computer technology, sensor technology, man-machine interaction technology, artificial intelligence technology and the like, and is currently applied to various aspects such as military, medicine, education, entertainment, manufacturing industry, engineering training and the like, and is considered to be one of important technologies affecting people's life currently and in the future.
In a set of positioning systems using virtual reality technology, a master device (e.g. a base station), two slave devices of the same type (e.g. handles) and one slave device of another type (e.g. a head-mounted display, a positioner, etc.) are often included, and data transmission needs to be performed between the devices that form the positioning system, and the data transmission needs to be performed first.
In the related art, a pairing request is generally initiated by a slave device to a master device, the master device responds to the pairing request of the slave device and sends communication information for pairing to the slave device, so that the slave device completes pairing according to the obtained communication information, and different slave devices initiate the pairing request to the master device, and the same communication information can be obtained with a certain probability, so that the same communication information is configured into the same communication channel according to the same communication information, the communication channels are overlapped, and communication abnormality is caused.
Disclosure of Invention
The following is a summary of the subject matter described in detail herein. This summary is not intended to limit the scope of the claims.
The application provides a device pairing method, paired devices and a device pairing system, which realize acquisition of different communication information among the same type of slave devices, thereby realizing configuration of different communication channels among the slave devices.
The application provides a device pairing method, which comprises the following steps:
the slave device monitors whether other slave devices exist in a preset communication channel and sends a device pairing request to the master device; the preset communication channel is a communication channel which is preconfigured and used for pairing the master device and the slave device;
when the slave device monitors that no other slave devices exist in a preset communication channel and send device pairing requests to the master device, the slave device sends the device pairing requests configured as a first identifier to the master device;
when the slave device receives the information which is returned by the master device and agrees that the slave device is configured to be the first identifier and the communication information corresponding to the first identifier, the slave device realizes pairing with the master device according to the communication information corresponding to the first identifier.
When the slave device receives the information returned by the master device and refusing the configuration of the slave device to the first identifier, the method further comprises the following steps:
the slave device sequentially sends a device pairing request configured as an ith identifier to the master device until the slave device receives information which agrees that the slave device is configured as the ith identifier and communication information corresponding to the ith identifier and is returned by the master device, and the slave device realizes pairing with the master device according to the communication information corresponding to the ith identifier; where i= … N, N is the sum of the number of slaves.
When the slave device monitors that other slave devices exist in the preset communication channel, sending a device pairing request to the master device, and further comprising:
the slave device sequentially sends a device pairing request configured as a j-th identifier to the master device until the slave device receives information which is returned by the master device and agrees that the slave device is configured as the j-th identifier and communication information corresponding to the j-th identifier, and the slave device realizes pairing with the master device according to the communication information corresponding to the j-th identifier; where j= … N, N is the sum of the number of slaves.
The definition of the identification sequence is pre-stored in the master device and the slave device, and the slave device performs pairing according to the pre-stored identification sequence when performing pairing.
The identification sequence is classified according to the type of the slave equipment, and the slave equipment is paired according to the classified identification sequence.
The definition of the identification sequence is pre-stored in the master device and the slave device, and the slave device performs pairing according to the pre-stored identification sequence when performing pairing;
when all the slave devices do not carry out the definition of the identification sequence in a type-free manner, the N is the sum of the numbers of all the slave devices; and when all the slave devices are defined in the identification sequence according to the device types, the N is the sum of the numbers of the slave devices of the same type.
The application also provides a device pairing method, which comprises the following steps:
when the slave device monitors that other slave devices do not exist in a preset communication channel, sending a device pairing request to the master device, and the master device receives the device pairing request which is configured as a first identifier from the slave device; the preset communication channel is a communication channel which is preconfigured and used for pairing the master device and the slave device;
and when the master device judges that the first identifier is not configured by the other slave devices according to the corresponding relation set of the slave devices and the identifiers, the master device returns information agreeing that the slave device is configured as the first identifier and communication information corresponding to the first identifier to the slave device.
When the master device determines that the first identifier is configured by the other slave devices according to the corresponding relation set of the slave devices and the identifiers, the method further comprises:
the master device returns information for rejecting the slave device to be configured as the first identifier to the slave device;
the master device receives a device pairing request configured as an ith identifier from the slave device until the master device determines that the ith identifier is not configured by the other slave devices according to a corresponding relation set of the slave device and the identifier, and returns information for agreeing that the slave device is configured as the ith identifier and communication information corresponding to the ith identifier to the slave device; where i= … N, N is the sum of the number of slaves.
When the slave device monitors that other slave devices which are the same as the slave device in the preset communication channel exist, sending a device pairing request to the master device, and further comprising:
the master device receives a device pairing request configured as a j-th identifier from the slave device until the master device determines that the j-th identifier is not configured by the other slave devices according to the corresponding relation between the slave device and the identifier, and returns information for agreeing to configure the slave device as the j-th identifier and communication information corresponding to the j-th identifier to the slave device; where j= … N, N is the sum of the number of slaves.
After the master device determines that the first identifier is not configured by the other slave devices according to the corresponding relation set of the slave devices and the identifiers, the method further comprises:
the master device adds the corresponding relation between the slave device and the first identifier to the corresponding relation set between the slave device and the identifier.
The application also provides a slave device comprising: the device pairing method comprises a first memory and a first processor, wherein the first memory stores a computer program, and the computer program of the first memory executes any device pairing method taking a slave device as an execution main body when being executed by the first processor.
The application also provides a master device comprising: the device pairing method comprises a second memory and a second processor, wherein the second memory stores a computer program, and any device pairing method taking a main device as an execution main body is executed by the second processor.
The application also provides a device pairing system, which comprises: at least two slave devices as described above, and one master device as described above.
The slave device monitors that no other slave devices send device pairing requests to the master device in a preset communication channel, sends device pairing requests configured as a first identifier to the master device, and when the slave device receives information which agrees that the slave device is configured as the first identifier and communication information corresponding to the first identifier returned by the master device, the slave device realizes pairing with the master device according to the communication information corresponding to the first identifier.
Additional features and advantages of the application will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the application. The objects and other advantages of the application may be realized and obtained by means of the instrumentalities particularly pointed out in the specification and the appended drawings.
Drawings
The accompanying drawings are included to provide an understanding of the principles of the application, and are incorporated in and constitute a part of this specification, illustrate embodiments of the application and together with the description serve to explain, without limitation, the principles of the application.
Fig. 1 is a schematic flow chart of a device pairing method according to an embodiment of the present application;
fig. 2 is a flow chart of another device pairing method according to an embodiment of the present application;
FIG. 3 is a schematic structural diagram of a slave device according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of a master device according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of a device pairing system according to an embodiment of the present application.
Detailed Description
The present application has been described in terms of several embodiments, but the description is illustrative and not restrictive, and it will be apparent to those of ordinary skill in the art that many more embodiments and implementations are possible within the scope of the described embodiments. Although many possible combinations of features are shown in the drawings and discussed in the detailed description, many other combinations of the disclosed features are possible. Any feature or element of any embodiment may be used in combination with or in place of any other feature or element of any other embodiment unless specifically limited.
The present application includes and contemplates combinations of features and elements known to those of ordinary skill in the art. The disclosed embodiments, features and elements of the present application may also be combined with any conventional features or elements to form a unique inventive arrangement as defined by the claims. Any feature or element of any embodiment may also be combined with features or elements from other inventive arrangements to form another unique inventive arrangement as defined in the claims. It is therefore to be understood that any of the features shown and/or discussed in the present application may be implemented alone or in any suitable combination. Accordingly, the embodiments are not to be restricted except in light of the attached claims and their equivalents. Further, various modifications and changes may be made within the scope of the appended claims.
Furthermore, in describing representative embodiments, the specification may have presented the method and/or process as a particular sequence of steps. However, to the extent that the method or process does not rely on the particular order of steps set forth herein, the method or process should not be limited to the particular sequence of steps described. Other sequences of steps are possible as will be appreciated by those of ordinary skill in the art. Accordingly, the particular order of the steps set forth in the specification should not be construed as limitations on the claims. Furthermore, the claims directed to the method and/or process should not be limited to the performance of their steps in the order written, and one skilled in the art can readily appreciate that the sequences may be varied and still remain within the spirit and scope of the embodiments of the present application.
In the related art, the same type of different slave devices often obtain the same communication information due to the following two cases: in the first case, different slave devices of the same type initiate pairing requests to the master device in the same time or in a shorter time, because the master device can only distinguish different slave devices of different types or different slave devices of different types with larger transmission time difference of the pairing requests, but cannot distinguish different slave devices of different types with smaller transmission time difference of the pairing requests, the master device may consider that the received pairing requests are transmitted by the same slave device, so that only one identifier is allocated to different slave devices of the same type and one communication information is given, and the different slave devices of the same type are caused to obtain the same communication information. Specifically, taking the master device as a base station and taking two handles as different slave devices of the same type as examples, the two handles initiate pairing requests to the base station sequentially at the same time or in a shorter time, the base station may consider that the received pairing requests are sent by the same handle, so that the received pairing requests are configured as a left-hand identifier, and one communication message is given, so that the two handles acquire the same communication information and are configured as a left hand.
And secondly, different slave devices of the same type send pairing requests to the master device successively in a longer time, wherein the master device recognizes that the slave device has only one type, but the master device can possibly consider the pairing requests sent by the different slave devices of the same type due to a larger time difference of sending time of the pairing requests, so that identifiers are respectively configured for the different slave devices and a plurality of communication information are given, but the different slave devices of the same type can possibly receive the same communication information due to the fact that the different slave devices of the same type receive the information in the same communication channel. In particular, the situation is still illustrated with the master device as the base station, and the two handles of the same type are different from each other as two handles, where the two handles initiate a pairing request to the base station in a relatively long time, the base station may consider that the received pairing request is sent by the two handles, so that one handle is configured as a left-hand identifier and given one communication information (denoted as first communication information), the other handle is configured as a right-hand identifier and given the other communication information (denoted as second communication information), but because the two handles both receive information in the same communication channel, the two handles may cause the two handles to both consider the first communication information to be allocated to themselves, so that the two handles obtain the same communication information (i.e. the first communication information) to be configured as "left-hand", or the two handles both consider the second communication information to be allocated to themselves, so that the two handles obtain the same communication information (i.e. the second communication information) to be configured as "right-hand".
The device pairing method, the pairing device and the device pairing system provided by the embodiment of the application can solve the problems, avoid the same communication information obtained between the same type of slave devices, and realize the configuration of different communication channels between the same type of slave devices.
The embodiment of the application provides a device pairing method. As shown in fig. 1, the device pairing method provided in this embodiment may include the following steps.
Step 101, slave equipment monitors whether other slave equipment exists in a preset communication channel and sends an equipment pairing request to master equipment; wherein the preset communication channel is a communication channel which is preconfigured for pairing the master device and the slave device.
In an exemplary embodiment, when the slave device listens, it first switches to the preset communication channel to the accept-only mode, and listens to the preset communication channel if other devices send pairing requests.
Step 102, when the slave device monitors that no other slave devices send device pairing requests to the master device in the preset communication channel, the slave device sends the device pairing requests configured as the first identifier to the master device.
In an illustrative example, the slave device listening may be listening for a preset time, e.g., 3s, if there are other slave devices in the preset communication channel sending a device pairing request to the master device.
In an exemplary embodiment, the identification sequence is defined as being pre-stored in the memory of the master device and the slave device, e.g., the first identification is a left handle, the second identification is a right handle, the third identification is a locator or a head-mounted device, and the slave devices are paired according to the pre-stored identification sequence when paired.
In an exemplary embodiment, the identification sequence may be classified according to the types of the slave devices, and then paired according to the classified identification sequence, for example, the slave devices of the handle type, where the identification sequence is defined as a first handle of the handle and a second handle of the handle is defined as a right handle; the slave devices of the locator type, the definition of the identification sequence is that the first identifier of the locator is the locator; the slave devices of the leg type are defined in the identification order as a first leg identified as a left leg and a second leg identified as a right leg. The definitions of these different types of identification sequences are pre-stored in the memories of the master and slave, respectively. When the slave device wants the master device to send a device pairing request configured as the first identity, the type of the device is also sent to the master device.
In an exemplary embodiment, the preset communication channel is a frequency point selected from the 2.4G frequency band or the 5G frequency band in advance, and a preset communication channel pairing frequency point used as a fixed pairing is stored in a program of the master device and the slave device, and the master device and the slave device first read the pairing frequency point to pair after entering a pairing state. The paired frequency points are frequency points different from the preset communication channel, in order to prevent interference between the communication frequency points, the paired frequency points can select frequency points with larger intervals in a 2.4G frequency band or a 5G frequency band, for example, 10 frequency points are selected as paired frequency points in the 2.4G frequency band or the 5G frequency band, and it is understood that the 10 frequency points are only illustrative and can be any number of other frequency points.
Step 103, when the slave device receives the information which is returned by the master device and agrees that the slave device is configured as the first identifier and the communication information corresponding to the first identifier, the slave device realizes the pairing with the master device according to the communication information corresponding to the first identifier.
In an exemplary embodiment, the communication information returned by the slave device received by the master device corresponds to the first identifier, so when other slave devices different from the slave device (the slave device with the identifier configured as the first identifier) send device pairing requests to the master device, because the slave device is configured with the first identifier, the other slave devices cannot be configured as the first identifier any more, and can only be configured as other identifiers except the first identifier, and the communication information used by the other devices for pairing with the master device corresponds to the identifiers of the other slave devices, therefore, the communication information is necessarily different from the communication information obtained by the slave device, thereby avoiding the coincidence of the communication channels caused by the same communication information between the slave devices, and realizing the configuration of different communication channels between the slave devices.
According to the device pairing method provided by the embodiment, the slave device monitors that no other slave devices send device pairing requests to the master device in the preset communication channel, sends the device pairing requests configured as the first identifier to the master device, and when the slave device receives the information which agrees that the slave device is configured as the first identifier and the communication information corresponding to the first identifier and is returned by the master device, the slave device realizes pairing with the master device according to the communication information corresponding to the first identifier, and the slave device definitely determines the identifier of the slave device and acquires the communication information corresponding to the self identifier, so that acquisition of different communication information among the slave devices is realized, and configuration of different communication channels among the slave devices is realized.
In an exemplary embodiment, there is a case where the slave device does not monitor that there are other slave devices in the preset communication channel to send a device pairing request to the master device, but the master device has returned information agreeing that the slave device has been previously sent to configure the device pairing request as the first identifier and communication information corresponding to the first identifier for other slave devices that have previously sent the device pairing request, so that although the slave device does not monitor that there are other slave devices in the preset communication channel to send the device pairing request to the master device, it is impossible to receive the information agreeing that the slave device has been configured as the first identifier and the communication information corresponding to the first identifier returned by the master device, and the information refusing that the slave device has been configured as the first identifier returned by the master device is received.
In one illustrative example, step 104 is also included.
Step 104, when the slave device receives the information returned by the master device and rejecting the slave device to be configured as the first identifier, the method further comprises the following steps:
the slave device sequentially sends a device pairing request configured as an ith identifier to the master device until the slave device receives information which is returned by the master device and agrees that the slave device is configured as the ith identifier and communication information corresponding to the ith identifier, and the slave device realizes pairing with the master device according to the communication information corresponding to the ith identifier; where i= … N, N is the sum of the number of slaves.
In one illustrative example, the definition of the identification order is pre-stored in the master device and the slave device, which pair in accordance with the pre-stored identification order when pairing.
In an exemplary embodiment, the identification order is classified according to the type of the slave device, and the slave devices are paired according to the classified identification order.
In one illustrative example, the definition of the identification order is pre-stored in the master device and the slave device, which pair in accordance with the pre-stored identification order when pairing. When all the slave devices do not carry out the definition of the identification sequence in a type-free manner, the N is the sum of the numbers of all the slave devices; and when all the slave devices are defined in the identification sequence according to the device types, the N is the sum of the numbers of the slave devices of the same type.
In one illustrative example, all of the slaves may be the same type of slave or different types of slaves. When all slave devices do not perform definition of the identification sequence in a type-by-type manner, i= … N, N is the sum of the numbers of all slave devices; when all slave devices perform definition of the identification order according to the device type, i= … N, N is the sum of the numbers of the same type of slave devices.
In an exemplary embodiment, when the slave device receives the information returned by the master device and rejecting the slave device to be configured as the first identifier, the slave device sends a device pairing request configured as the second identifier to the master device, and when the slave device receives the information returned by the master device and approving the slave device to be configured as the second identifier and the communication information corresponding to the second identifier, the slave device realizes pairing with the master device according to the communication information corresponding to the second identifier; and if the slave device receives the information returned by the master device and refusing the slave device to be configured as the second identifier, the slave device sends a device pairing request configured as the third identifier to the master device, and so on until the slave device receives the information returned by the master device and agreeing that the slave device is configured as the ith identifier and the communication information corresponding to the ith identifier, and the slave device realizes the pairing with the master device according to the communication information corresponding to the ith identifier.
In one illustrative example, step 105 is also included.
Step 105, when the slave device monitors that other slave devices exist in the preset communication channel, the slave device sends a device pairing request to the master device, and the method further includes:
the slave device sequentially sends a device pairing request configured as a j-th identifier to the master device until the slave device receives information which is returned by the master device and agrees that the slave device is configured as the j-th identifier and communication information corresponding to the j-th identifier, and the slave device realizes pairing with the master device according to the communication information corresponding to the j-th identifier; where j= … N, N is the sum of the number of slaves.
In an exemplary example, when all slave devices do not perform definition of the identification order by type, then j= … N, N is the sum of the numbers of all slave devices; when all slave devices perform definition of the identification order according to the device type, j= … N, N is the sum of the numbers of the same type of slave devices.
In an exemplary embodiment, when the slave device monitors that other slave devices exist in a preset communication channel and send a device pairing request to the master device, the slave device sends a device pairing request configured as a second identifier to the master device, and when the slave device receives information returned by the master device and agreeing that the slave device is configured as the second identifier and communication information corresponding to the second identifier, the slave device realizes pairing with the master device according to the communication information corresponding to the second identifier; and if the slave device receives the information returned by the master device and refusing the slave device to be configured as the second identifier, the slave device sends a device pairing request configured as the third identifier to the master device, and so on until the slave device receives the information returned by the master device and agreeing that the slave device is configured as the ith identifier and the communication information corresponding to the ith identifier, and the slave device realizes the pairing with the master device according to the communication information corresponding to the ith identifier.
In one illustrative example, the communication information includes: communication address and communication frequency.
The embodiment of the application also provides a device pairing method. As shown in fig. 2, the device pairing method provided in this embodiment may include the following steps.
Step 201, when the slave device monitors that no other slave device exists in the preset communication channel, sending a device pairing request to the master device, and the master device receives the device pairing request from the slave device, wherein the device pairing request is configured as a first identifier; wherein the preset communication channel is a communication channel which is preconfigured for pairing the master device and the slave device.
In an exemplary embodiment, the preset communication channel is a frequency point selected from the 2.4G frequency band or the 5G frequency band in advance, and a preset communication channel pairing frequency point used as a fixed pairing is stored in a program of the master device and the slave device, and the master device and the slave device first read the pairing frequency point to pair after entering a pairing state. The paired frequency points are frequency points different from the preset communication channel, in order to prevent interference between the communication frequency points, the paired frequency points can select frequency points with larger intervals in a 2.4G frequency band or a 5G frequency band, for example, 10 frequency points are selected as paired frequency points in the 2.4G frequency band or the 5G frequency band, and it is understood that the 10 frequency points are only illustrative and can be any number of other frequency points.
Step 202, when the master device determines that the first identifier is not configured by other slave devices according to the corresponding relation set of the slave devices and the identifiers, the master device returns information agreeing that the slave devices are configured as the first identifier and communication information corresponding to the first identifier to the slave devices.
In an exemplary embodiment, when the master device receives a device pairing request configured as a first identifier from the slave device, the master device determines, according to a set of correspondence between the slave device and the identifiers, whether the first identifier is configured by other slave devices.
In one illustrative example, the set of slave devices and identifiers is a set stored in the master device for recording the correspondence of configured identifiers to slave devices and configured identifiers. For example, assuming that all the slave devices include, in the order of the identifiers, slave device a, slave device B, slave device C, slave device D, and slave device E, the slave device configured with the identifier includes slave device a, slave device B, and slave device C, the identifier configured with slave device a is identifier 1, the identifier configured with slave device B is identifier 2, and the identifier configured with slave device C is identifier 3, the set of correspondence between the slave devices and the identifiers includes three correspondence relationships, respectively, slave device a corresponds to identifier 1, slave device B corresponds to identifier 2, and slave device C corresponds to identifier 3, when the set of correspondence between the slave devices and the identifiers is represented in the form of a table, as shown in table 1,
Slave device Identification mark
Slave device a Sign 1
Slave device B Sign 2
Slave device C Sign 3
TABLE 1
In one illustrative example, the master device returns communication information corresponding to the first identification to the slave device, such that the slave device effects pairing with the master device in accordance with the communication information corresponding to the first identification.
According to the device pairing method provided by the embodiment, when the slave device monitors that other slave devices do not exist in the preset communication channel and send a device pairing request to the master device, the master device receives the device pairing request which is configured as the first identifier from the slave device, when the master device judges that the first identifier is not configured by other slave devices according to the corresponding relation set of the slave device and the identifier, information agreeing to configure the slave device as the first identifier and communication information corresponding to the first identifier are returned to the slave device, so that the slave device finishes pairing with the master device, and as the master device enables the slave device to definitely determine the identifier of the slave device and acquire the communication information corresponding to the identifier, the acquisition of different communication information among the slave devices is realized, and the configuration of different communication channels among the slave devices is realized.
In an illustrative example, step 203 is also included.
Step 203, when the master device determines that the first identifier has been configured by another slave device according to the set of correspondence between slave devices and identifiers, the method further includes:
the master device returns information for rejecting the slave device to be configured as a first identifier to the slave device;
the method comprises the steps that a master device receives a device pairing request from a slave device, wherein the device pairing request is configured as an ith identifier, until the master device determines that the ith identifier is not configured by other slave devices according to a corresponding relation set of the slave device and the identifier, and the master device returns information agreeing that the slave device is configured as the ith identifier and communication information corresponding to the ith identifier to the slave device; where i= … N, N is the sum of the slave numbers.
In one illustrative example, all of the slaves may be the same type of slave or different types of slaves.
In an exemplary example, when all slave devices do not perform definition of the identification order by type, i= … N, N is the sum of the numbers of all slave devices; when all slave devices perform definition of the identification order according to the device type, i= … N, N is the sum of the numbers of the same type of slave devices.
In one illustrative example, the master device returns communication information corresponding to the ith identification to the slave device, such that the slave device effects pairing with the master device according to the communication information corresponding to the ith identification.
In one illustrative example, step 204 is also included.
Step 204, when the slave device monitors that other slave devices exist in the preset communication channel, the slave device sends a device pairing request to the master device, and the method further includes:
the master device receives a device pairing request from the slave device, wherein the device pairing request is configured as a j-th identifier, until the master device determines that the j-th identifier is not configured by other slave devices according to the corresponding relation between the slave device and the identifier, and the master device returns information agreeing that the slave device is configured as the j-th identifier and communication information corresponding to the j-th identifier to the slave device; where j= … N, N is the sum of the number of slaves.
In an exemplary example, when all slave devices do not perform definition of the identification order by type, then j= … N, N is the sum of the numbers of all slave devices; when all slave devices perform definition of the identification order according to the device type, j= … N, N is the sum of the numbers of the same type of slave devices.
In one illustrative example, the master device returns communication information corresponding to the jth identity to the slave device such that the slave device effects pairing with the master device in accordance with the communication information corresponding to the jth identity.
In one illustrative example, step 205 is also included.
Step 205, after the master device determines that the first identifier is not configured by other slave devices according to the corresponding relationship set between the slave devices and the identifiers, the method further includes:
the master device adds the corresponding relation between the slave device and the first identifier to the corresponding relation set between the slave device and the identifier.
In an exemplary embodiment, the set of correspondence between the slave device and the identifier is initially empty, because there is initially no correspondence between the slave device with the configured identifier and the configured identifier, but when the master device agrees that the slave device (i.e., the slave device that sends the device pairing request configured as the first identifier to the master device) is configured as the first identifier, a correspondence is established between the slave device and the first identifier, and this correspondence should be added to the set of correspondence between the slave device and the identifier that is initially empty, so as to determine whether the identifier agrees to be configured in the device pairing request of other subsequent slave devices.
In an exemplary embodiment, the master device determines that the ith identifier is not configured by other slave devices according to the correspondence set between the slave devices and the identifiers, and further includes:
the master device adds the corresponding relation between the slave device and the ith identifier to the corresponding relation set between the slave device and the identifier.
In an exemplary embodiment, when the master device agrees that the slave device (i.e., the slave device that transmits the device pairing request configured as the ith identifier to the master device) is configured as the ith identifier, a correspondence is established between the slave device and the ith identifier, and this correspondence should be added to the set of correspondence between the slave device and the identifier, so as to determine whether the slave device agrees to be configured in the device pairing request of the subsequent other slave devices.
In an exemplary embodiment, the master device determines that the j-th identifier is not configured by other slave devices according to the correspondence set between the slave devices and the identifiers, and further includes:
the master device adds the corresponding relation between the slave device and the j-th identifier to the corresponding relation set between the slave device and the identifier.
In an exemplary embodiment, when the master device agrees that the slave device (i.e., the slave device that transmits the device pairing request configured as the j-th identifier to the master device) is configured as the j-th identifier, a correspondence is established between the slave device and the j-th identifier, and this correspondence should be added to the set of correspondences between the slave device and the identifier, so as to determine whether the slave device agrees to be configured in the device pairing request of the subsequent other slave devices.
In the following, the master device is taken as a base station, and two handles (respectively denoted as a handle a and a handle B) are taken as different slave devices of the same type, so as to describe an exemplary device pairing method provided in this embodiment.
When the handle a enters the pairing mode, firstly, switching to a preset communication channel to be in an accept-only mode, monitoring whether other devices send pairing requests on the preset communication channel, if the handle a monitors that no other handles send pairing requests in the preset communication channel, switching to the preset communication channel to be in a transmitting and listening mode, sending a poll for configuring the handle a as a left-hand identifier (assuming that no other handles send pairing requests, the default priority request is configured as a left-hand identifier and corresponds to the first identifier) to the base station, receiving the poll for configuring the handle a as the pairing request of the left-hand identifier by the base station, and judging that the left-hand identifier is not configured according to the corresponding relation set of the device and the identifier, so that the handle a is agreed to be configured as the pairing request of the left-hand identifier, receiving information returned by the base station and communication information (the communication information corresponds to the left-hand identifier only) for configuring the handle a as the left-hand identifier, wherein the communication information comprises a communication address, a communication frequency and the like, and the handle a performs pairing according to the received communication information and completes the pairing process. The preset communication channel is a frequency point selected from a 2.4G frequency band or a 5G frequency band in advance, the frequency point is used as a fixed pairing frequency point for pairing the preset communication channel, the preset communication channel pairing frequency point is stored in a program of the base station and the handle, and after the handle and the base station enter a pairing state, the pairing frequency point is read first for pairing.
If the handle A monitors that other handles in the preset communication channel are sending pairing requests, the handle A sends polling (corresponding to the second identification) of the pairing request configuring the handle A as the right-hand identification to the base station, the base station receives the polling of the pairing request configuring the handle A as the right-hand identification, and the base station judges that the right-hand identification is not configured according to the corresponding relation set of the equipment and the identification, so that the handle A is agreed to configure the pairing request as the right-hand identification, the handle A receives information returned by the base station, which configures the handle A as the right-hand identification, and communication information (which only corresponds to the right-hand identification) of the handle A for pairing with the base station, and the handle A performs pairing according to the received communication information and completes a pairing process.
In this exemplary description, the device such as the handle a and the other handles are configured with different identifications, and the communication information only corresponds to the identifications, so that the communication information of pairing the handle a with the base station and the communication information of pairing the device such as the other handles with the base station are different, for example, a communication address, a communication frequency, and the like.
If the handle B performs pairing monitoring, the handle a and the base station already complete pairing, and then there is a corresponding relation between the handle a and the left hand identifier in the corresponding relation set of the device and the identifier stored in the base station, at this time, when the handle B performs monitoring, it will also monitor that no other handle in the preset communication channel sends a pairing request, at this time, the handle B sends a poll for configuring the handle B as a pairing request of the left hand identifier to the base station, the base station receives a poll for configuring the handle B as a pairing request of the left hand identifier, but the base station determines that the left hand identifier has been configured to the handle a according to the corresponding relation set of the device and the identifier, so at this time, the base station will send a poll for rejecting the pairing request for configuring the handle B as the right hand identifier to the handle B, the base station receives reject information received by the handle B, the base station receives a poll for configuring the handle B as a pairing request of the right hand identifier, and the base station receives a request for configuring the handle B as a pairing request of the right hand identifier according to the corresponding relation set of the device and the identifier, and the base station receives the information for completing communication with the handle B and completing communication with the base station (corresponding to the right hand identifier).
In this exemplary illustration, the handles a and B are configured with different identifications, and the communication information only corresponds to the identifications, so that the communication information obtained by the handles a and B is necessarily different, and thus, the configuration of different communication channels between different slave devices of the same type is realized.
In this exemplary description, only the case of using the base station as the master device and using the two handles as the slave devices is described, and if there are other slave devices, such as the head-mounted device, the positioner, etc., the flow can be analogized, and the handle a and the other slave devices are configured with different identifiers, and the communication information only corresponds to the identifiers, so that the communication information of pairing the handle a with the base station and the communication information of pairing the other slave devices, such as the other slave devices, with the base station, are different, such as the communication address, the communication frequency, etc., and thus, the configuration of different communication channels between different types of different slave devices is realized.
The embodiment of the application also provides a slave device, as shown in fig. 3, the slave device 3 includes: a first memory 31 and a first processor 32, the first memory 31 storing a computer program, the computer program of the first memory 31, when executed by the first processor 32, performing the device pairing method as described above with any one embodiment of the execution subject from the device.
In an exemplary embodiment, the slave device further comprises a wireless module for wireless communication, e.g. pairing, data transmission.
The embodiment of the present application further provides a master device, as shown in fig. 4, where the master device 4 includes: a second memory 41 and a second processor 42, wherein a computer program is stored in the second memory 41, and the computer program of the second memory 41, when executed by the second processor 42, performs the device pairing method as described in any one of the embodiments having the main device as an execution subject.
In one illustrative example, the master device further includes a wireless module for wireless communication, e.g., pairing, data transmission.
The embodiment of the present application also provides a device pairing system, as shown in fig. 5, where the device pairing system 5 includes: at least two slave devices 51 as described in the above embodiments, and one master device 52 as described in the above embodiments.
The embodiment of the application also provides a computer readable storage medium, and the storage medium is stored with computer executable commands, and the computer executable commands are used for executing the device pairing method provided by any embodiment taking the slave device as an execution main body.
The embodiment of the application also provides a computer readable storage medium, and the storage medium is stored with a computer executable command, wherein the computer executable command is used for executing the device pairing method provided by any embodiment taking the main device as an execution main body.
Those of ordinary skill in the art will appreciate that all or some of the steps, systems, functional modules/units in the apparatus, and methods disclosed above may be implemented as software, firmware, hardware, and suitable combinations thereof. In a hardware implementation, the division between the functional modules/units mentioned in the above description does not necessarily correspond to the division of physical components; for example, one physical component may have multiple functions, or one function or step may be performed cooperatively by several physical components. Some or all of the components may be implemented as software executed by a processor, such as a digital signal processor or microprocessor, or as hardware, or as an integrated circuit, such as an application specific integrated circuit. Such software may be distributed on computer readable media, which may include computer storage media (or non-transitory media) and communication media (or transitory media). The term computer storage media includes both volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data, as known to those skilled in the art. Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital Versatile Disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other medium which can be used to store the desired information and which can be accessed by a computer. Furthermore, as is well known to those of ordinary skill in the art, communication media typically embodies computer readable instructions, data structures, program modules or other data in a modulated data signal such as a carrier wave or other transport mechanism and includes any information delivery media.

Claims (13)

1. A device pairing method comprising:
the slave device monitors whether other slave devices exist in a preset communication channel and sends a device pairing request to the master device; the preset communication channel is a communication channel which is preconfigured and used for pairing the master device and the slave device;
when the slave device monitors that no device pairing request is sent to the master device by the other slave devices in a preset communication channel, the slave device sends a device pairing request for configuring the slave device as a first identifier to the master device;
and when the slave device receives the information which is returned by the master device and agrees that the slave device is configured as the first identifier and the communication information corresponding to the first identifier, the slave device realizes pairing with the master device according to the communication information corresponding to the first identifier, wherein the information which is returned by the master device and agrees that the slave device is configured as the first identifier and the communication information corresponding to the first identifier are sent to the slave device when the master device judges that the first identifier is not configured by other slave devices according to the corresponding relation set of the slave device and the identifier.
2. The method of claim 1, wherein rejecting the information that the slave device is configured to the first identity when the slave device receives the information returned by the master device, further comprises:
The slave device sequentially sends a device pairing request configured as an ith identifier to the master device until the slave device receives information which agrees that the slave device is configured as the ith identifier and communication information corresponding to the ith identifier and is returned by the master device, and the slave device realizes pairing with the master device according to the communication information corresponding to the ith identifier; where i= … N, N is the sum of the number of slaves.
3. The method of claim 1, wherein transmitting the device pairing request from the slave device to the master device when the slave device listens for the presence of other slave devices in the preset communication channel, further comprises:
the slave device sequentially sends a device pairing request configured as a j-th identifier to the master device until the slave device receives information which is returned by the master device and agrees that the slave device is configured as the j-th identifier and communication information corresponding to the j-th identifier, and the slave device realizes pairing with the master device according to the communication information corresponding to the j-th identifier; where j= … N, N is the sum of the number of slaves.
4. The method of claim 1, wherein the definition of the identification order is pre-stored in the master device and the slave device, and the slave device performs pairing according to the pre-stored identification order when performing pairing.
5. The method of claim 4, wherein the identification order is classified according to the type of the slave device, and the slave devices are paired according to the classified identification order.
6. A method according to claim 2 or 3, characterized in that the definition of the identification order is pre-stored in the master device and the slave device, which pair according to the pre-stored identification order when pairing;
when all the slave devices do not carry out the definition of the identification sequence in a type-free manner, the N is the sum of the numbers of all the slave devices; and when all the slave devices are defined in the identification sequence according to the device types, the N is the sum of the numbers of the slave devices of the same type.
7. A device pairing method comprising:
when the slave device monitors that other slave devices do not exist in a preset communication channel, sending a device pairing request to the master device, and the master device receives the device pairing request which is configured as a first identifier from the slave device; the preset communication channel is a communication channel which is preconfigured and used for pairing the master device and the slave device;
and when the master device judges that the first identifier is not configured by the other slave devices according to the corresponding relation set of the slave devices and the identifiers, the master device returns information agreeing that the slave device is configured as the first identifier and communication information corresponding to the first identifier to the slave device.
8. The method of claim 7, wherein when the master device determines that the first identity has been configured by the other slave device according to the set of correspondence between slave devices and identities, further comprising:
the master device returns information for rejecting the slave device to be configured as the first identifier to the slave device;
the master device receives a device pairing request configured as an ith identifier from the slave device until the master device determines that the ith identifier is not configured by the other slave devices according to a corresponding relation set of the slave device and the identifier, and returns information for agreeing that the slave device is configured as the ith identifier and communication information corresponding to the ith identifier to the slave device; where i= … N, N is the sum of the number of slaves.
9. The method of claim 7, wherein transmitting the device pairing request from the slave device to the master device when the slave device listens for the presence of other slave devices in the preset communication channel, further comprises:
the master device receives a device pairing request configured as a j-th identifier from the slave device until the master device determines that the j-th identifier is not configured by the other slave devices according to the corresponding relation between the slave device and the identifier, and returns information for agreeing to configure the slave device as the j-th identifier and communication information corresponding to the j-th identifier to the slave device; where j= … N, N is the sum of the number of slaves.
10. The method according to any one of claims 7-9, wherein after the master device determines that the first identifier or the ith identifier or the jth identifier is not configured by the other slave device according to the set of correspondence between slave devices and identifiers, the method further comprises:
the master device adds the corresponding relation between the slave device and the first identifier or the ith identifier or the jth identifier to a corresponding relation set between the slave device and the identifiers.
11. A slave device, comprising: a first memory and a first processor, the first memory having stored therein a computer program which, when executed by the first processor, performs the method of any of claims 1-6.
12. A master device, comprising: a second memory and a second processor, the second memory having stored therein a computer program which, when executed by the second processor, performs the method of any of claims 7-10.
13. A device pairing system, comprising: at least two slave devices according to claim 11 and one master device according to claim 12.
CN202010661563.0A 2020-07-10 2020-07-10 Equipment pairing method, pairing equipment and equipment pairing system Active CN113973397B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010661563.0A CN113973397B (en) 2020-07-10 2020-07-10 Equipment pairing method, pairing equipment and equipment pairing system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010661563.0A CN113973397B (en) 2020-07-10 2020-07-10 Equipment pairing method, pairing equipment and equipment pairing system

Publications (2)

Publication Number Publication Date
CN113973397A CN113973397A (en) 2022-01-25
CN113973397B true CN113973397B (en) 2023-09-08

Family

ID=79584631

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010661563.0A Active CN113973397B (en) 2020-07-10 2020-07-10 Equipment pairing method, pairing equipment and equipment pairing system

Country Status (1)

Country Link
CN (1) CN113973397B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115662100A (en) * 2022-10-27 2023-01-31 湖南三一智能控制设备有限公司 Pairing method, transmitter, remote control system and operating machine

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101621314A (en) * 2009-08-11 2010-01-06 中兴通讯股份有限公司 Bluetooth mobile phone and pairing and binding method thereof
CN103561479A (en) * 2013-10-17 2014-02-05 东软熙康健康科技有限公司 Bluetooth device communication method and device
CN105142095A (en) * 2015-08-07 2015-12-09 深圳市昇润科技有限公司 Intelligent Bluetooth group pairing method and inter-connection and inter-transmission control method
CN107360633A (en) * 2017-06-05 2017-11-17 北京小鸟看看科技有限公司 Pairing connection method, equipment and the virtual reality system of virtual reality system
CN108139997A (en) * 2015-10-01 2018-06-08 索尼公司 Communication system, equipment, main equipment, slave device, communication system control method and program
WO2020135539A1 (en) * 2018-12-26 2020-07-02 青岛小鸟看看科技有限公司 Positioning method and apparatus for handles in head-mounted display system, and head-mounted display system

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015088377A1 (en) * 2013-12-13 2015-06-18 Symbol Technologies, Llc Method of and system for pairing a bluetooth master device with a bluetooth slave device that is selected from a group of bluetooth slave devices that are in bluetooth-discoverable range with the bluetooth master device
US10863321B2 (en) * 2016-10-21 2020-12-08 Lg Electronics Inc. Method and device for transmitting and receiving data using Bluetooth technology

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101621314A (en) * 2009-08-11 2010-01-06 中兴通讯股份有限公司 Bluetooth mobile phone and pairing and binding method thereof
CN103561479A (en) * 2013-10-17 2014-02-05 东软熙康健康科技有限公司 Bluetooth device communication method and device
CN105142095A (en) * 2015-08-07 2015-12-09 深圳市昇润科技有限公司 Intelligent Bluetooth group pairing method and inter-connection and inter-transmission control method
CN108139997A (en) * 2015-10-01 2018-06-08 索尼公司 Communication system, equipment, main equipment, slave device, communication system control method and program
CN107360633A (en) * 2017-06-05 2017-11-17 北京小鸟看看科技有限公司 Pairing connection method, equipment and the virtual reality system of virtual reality system
WO2020135539A1 (en) * 2018-12-26 2020-07-02 青岛小鸟看看科技有限公司 Positioning method and apparatus for handles in head-mounted display system, and head-mounted display system

Also Published As

Publication number Publication date
CN113973397A (en) 2022-01-25

Similar Documents

Publication Publication Date Title
CN103347306B (en) The method, system and device that a kind of multiple terminal is associated
CN106100721B (en) Method, server, remote controler and the system that unmanned plane and remote controler are matched
CN102291430B (en) Method for processing allocation information of Internet of things, Internet of things platform and system
KR20190106860A (en) Method for sharing application module and apparatus using thereof
CN113259952A (en) Beam indication method, device, equipment and medium
US11057750B2 (en) Intelligent device controlling method, mobile terminal and intelligent computing device
CN110035514B (en) Method and device for determining transmission opportunity, storage medium and electronic device
CN113973397B (en) Equipment pairing method, pairing equipment and equipment pairing system
CN111897394A (en) Equipment pairing method, equipment pairing device and equipment pairing system
CN112105009A (en) Device discovery and Bluetooth broadcasting method, device, electronic device and storage medium
CN111901793B (en) UICC application setting information management method and system, UICC smart card and terminal
CN110595481A (en) Positioning and ranging system, positioning tag, positioning synchronization method and positioning determination method
KR20180092535A (en) Apparatus and method for connecting device in wireless lan system
CN104539742A (en) Information push method, information push device and information push system
CN107801253A (en) Device pairing method, apparatus and computer-readable recording medium
EP4087280A1 (en) Vehicle positioning method and device, positioned vehicle, vehicle to be positioned, and storage medium
CN110972326B (en) Downlink control channel transmission method, terminal and network side equipment
CN104683292A (en) Interactive method, interactive device and interactive system for objects
CN110474891A (en) Business access control method and device based on multisystem smart machine
CN105765952A (en) Account registering method, terminal and server
CN113747370A (en) Data transmission method, device, equipment and system
CN103051528B (en) A kind of message rapid distribution method for bus and device
CN106412657B (en) A kind of method and system of set-top box programming sequence code
US9480042B2 (en) Dynamic identifier modification of physical resources for resource discovery in a data center
CN104580512A (en) Data processing method and device and distributed file 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
GR01 Patent grant
GR01 Patent grant