CN112669585B - Method for device pairing, processor, mobile terminal and server - Google Patents

Method for device pairing, processor, mobile terminal and server Download PDF

Info

Publication number
CN112669585B
CN112669585B CN202011481003.3A CN202011481003A CN112669585B CN 112669585 B CN112669585 B CN 112669585B CN 202011481003 A CN202011481003 A CN 202011481003A CN 112669585 B CN112669585 B CN 112669585B
Authority
CN
China
Prior art keywords
paired
pairing
information
server
equipment
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
CN202011481003.3A
Other languages
Chinese (zh)
Other versions
CN112669585A (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.)
Guangzhou Xaircraft Technology Co Ltd
Original Assignee
Guangzhou Xaircraft Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Xaircraft Technology Co Ltd filed Critical Guangzhou Xaircraft Technology Co Ltd
Priority to CN202011481003.3A priority Critical patent/CN112669585B/en
Publication of CN112669585A publication Critical patent/CN112669585A/en
Application granted granted Critical
Publication of CN112669585B publication Critical patent/CN112669585B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The embodiment of the invention provides a method, a processor, a mobile terminal, a server and a storage medium for equipment pairing, and belongs to the field of communication. The method comprises the following steps: acquiring a pairing request triggered by a user, wherein the pairing request comprises identification information of equipment to be paired; acquiring state information of the equipment to be paired from the server according to the identification information; and under the condition that the state information indicates the to-be-paired state, the pairing information is sent to the to-be-paired equipment through the server, so that pairing between the to-be-paired equipment is realized. The scheme of the application can improve the success rate of equipment pairing.

Description

Method for device pairing, processor, mobile terminal and server
Technical Field
The present invention relates to the field of communications, and in particular, to a method, a processor, a mobile terminal, and a server for device pairing.
Background
Nowadays, the unmanned aerial vehicle becomes the mainstream of scientific and technological development, and the industrial application of unmanned aerial vehicles and the like is also blooming all the time. However, the function of the remote controller cannot be ignored, and the remote controller can take over the equipment manually at the key moment when the unmanned equipment is abnormal and the automation degree of the equipment cannot reach the expectation, so that the remote controller can continuously complete the operation task.
The pairing process of the device refers to a process that the control device (e.g., a remote controller) and the controlled device (e.g., a drone) perform data interaction and attach corresponding security identity authentication when being in the same wireless frequency band. However, the common pairing method of the wireless remote controller is usually a broadcast method, and generally works in a wireless frequency band of 2.4 GHz or 5.8GHz, and these frequency bands often crowd a large number of devices due to limited resources, and each device has its own communication method, and lacks of a limited management mechanism, and the CSMA/CA is adopted in WIFI, which brings about a large amount of problems of co-channel interference, channel quality influence, and the like. Therefore, the existing control device and the controlled device are easily interfered by physical environments such as time, space and the like in the pairing process, so that the control device and the controlled device are mistakenly matched with other devices of the same type, and the problem of low success rate of device pairing exists.
Disclosure of Invention
The invention aims to provide a method, a processor, a mobile terminal, a server and a storage medium for device pairing, which can solve the problem of low success rate of the existing device pairing method.
In order to achieve the above object, a first aspect of the present invention provides a method for device pairing, applied to a terminal, the method including:
acquiring a pairing request triggered by a user, wherein the pairing request comprises identification information of equipment to be paired;
acquiring the state information of the equipment to be paired from the server according to the identification information;
and under the condition that the state information indicates the to-be-paired state, the pairing information is sent to the to-be-paired equipment through the server, so that pairing between the to-be-paired equipment is realized.
In the embodiment of the present invention, acquiring the state information of the device to be paired from the server according to the identification information includes: acquiring the legality information of the equipment to be paired from the server according to the identification information; and acquiring the state information under the condition that the equipment to be paired is determined to be legal according to the legality information.
In the embodiment of the present invention, the pairing state includes a first pairing state, and when the state information indicates a to-be-paired state, the pairing information is sent to the to-be-paired device through the server, so as to implement pairing between the to-be-paired devices, including: acquiring pairing information input by a user under the condition that the state information indicates a first pairing state; and sending the pairing information to a server, and sending the pairing information to the equipment to be paired through the server so as to realize pairing between the equipment to be paired.
In an embodiment of the present invention, the method further comprises: acquiring new pairing information input by a user under the condition that a communication channel of paired equipment needs to be replaced; and sending the new pairing information to the server, and sending the new pairing information to the paired equipment through the server so as to be used for re-pairing the paired equipment after the communication channel is replaced.
In an embodiment of the present invention, the method further comprises: acquiring the distance between the device to be paired and the terminal; and determining that the device to be paired associated with the identification information is the expected device to be paired if the distance is smaller than a preset distance threshold.
In an embodiment of the present invention, the device to be paired includes at least one control device and at least one controlled device, and the method further includes: determining a first control device of the at least one control device and a first controlled device of the at least one controlled device according to the identification information; acquiring the distance between the at least one control device and the position of the at least one controlled device and the position of the terminal respectively; and prompting to confirm the correctness of the identification information in the case that a second control device closer to the position of the terminal than the first control device exists in the at least one control device or in the case that a second controlled device closer to the position of the terminal than the first controlled device exists in the at least one controlled device.
In the embodiment of the invention, the device to be paired comprises a control device and a controlled device, wherein the control device comprises a remote controller, and the controlled device comprises an unmanned aerial vehicle or an unmanned aerial vehicle.
In an embodiment of the present invention, the pairing information includes at least one of: internet protocol address, wireless mesh network identification, channel, identity verification key.
A second aspect of the invention provides a processor configured to perform a method for device pairing according to any of the above.
A third aspect of the invention provides a mobile terminal comprising a processor according to the above embodiments.
In an embodiment of the present invention, the mobile terminal includes at least one of: unmanned aerial vehicle, unmanned vehicle, mobile communication equipment.
The fourth aspect of the present invention provides a method for device pairing, applied to a server, the method including:
acquiring identification information of equipment to be paired sent by a terminal;
determining the state information of the equipment to be paired according to the identification information;
sending the state information to a terminal;
and sending pairing information to the equipment to be paired under the condition that the state information indicates the state to be paired so as to realize pairing between the equipment to be paired.
In the embodiment of the present invention, determining the state information of the device to be paired according to the identification information includes: determining the legality information of the equipment to be paired according to the identification information; and determining the state information under the condition that the equipment to be paired is determined to be legal according to the legality information.
In the embodiment of the present invention, the pairing state includes a first pairing state, and when the state information indicates a to-be-paired state, the pairing information is sent to the to-be-paired device, so as to implement pairing between the to-be-paired devices, including: acquiring pairing information sent by a terminal under the condition that the state information indicates a first pairing state; and sending the pairing information to the devices to be paired to realize pairing between the devices to be paired.
In the embodiment of the present invention, the pairing state includes a non-primary pairing state, and when the state information indicates a to-be-paired state, the pairing information is sent to the to-be-paired device through the server, so as to implement pairing between the to-be-paired devices, including: and under the condition that the state information indicates the non-first pairing state, the stored pairing information is issued to the devices to be paired so as to realize pairing between the devices to be paired.
In an embodiment of the present invention, the method further comprises: acquiring new pairing information sent by a terminal under the condition that a communication channel of paired equipment needs to be replaced; and sending the new pairing information to the paired equipment for re-pairing the paired equipment after the communication channel is replaced.
A fifth aspect of the invention provides a server configured to perform a method for device pairing according to any of the above.
A sixth aspect of the invention provides a machine-readable storage medium having stored thereon instructions which, when executed by a processor, cause the processor to perform a method for device pairing according to any one of the above.
According to the technical scheme, the terminal acquires the pairing request triggered by the user, the pairing request comprises identification information of the equipment to be paired, the state information of the equipment to be paired is acquired from the server according to the identification information, and the pairing information is sent to the equipment to be paired through the server under the condition that the state information indicates the state to be paired, so that pairing between the equipment to be paired is achieved. The pairing process can use a cellular network for communication, namely, an application program on the terminal can carry out network communication with a server of the terminal, so that after two devices to be paired which need to be paired are determined, pairing information can be sent to the devices to be paired by the server, pairing between the devices to be paired can be completed without occupying limited wireless frequency band resources, the pairing speed is high, the anti-interference capability is high, the device is not limited by communication distance and is not influenced by the problem of same-frequency interference, the problem that other devices are mistakenly paired due to same-frequency broadcasting is solved, and the success rate of device pairing is improved.
Additional features and advantages of embodiments of the present invention will be described in the detailed description which follows.
Drawings
The accompanying drawings, which are included to provide a further understanding of the embodiments of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description serve to explain the embodiments of the invention without limiting the embodiments of the invention. In the drawings:
FIG. 1 schematically illustrates an application ring diagram of a method for device pairing according to an embodiment of the invention;
FIG. 2 schematically shows a flow diagram of a method for device pairing according to an embodiment of the invention;
FIG. 3 is a flow diagram that schematically illustrates the step of prompting for identification information, in accordance with an embodiment of the present invention;
FIG. 4 schematically shows a flow diagram of a method for device pairing according to another embodiment of the invention;
fig. 5 schematically shows a flow diagram of a method for device pairing according to another embodiment of the invention.
Description of the reference numerals
102 terminal 104 server
106 control device (remote controller) 108 controlled device (unmanned plane)
Detailed Description
The following detailed description of embodiments of the invention refers to the accompanying drawings. It should be understood that the detailed description and specific examples, while indicating embodiments of the invention, are given by way of illustration and explanation only, not limitation.
The method for device pairing provided by the application can be applied to the application environment shown in fig. 1. As shown in fig. 1, a terminal 102 communicates with a server 104 through a network, the server 104 communicates with devices to be paired (106 and 108) through the network, specifically, the terminal 102 obtains a pairing request triggered by a user, where the pairing request includes identification information of the devices to be paired (106 and 108), the terminal 102 obtains status information of the devices to be paired (106 and 108) from the server 104 according to the identification information, and sends pairing information to the devices to be paired (106 and 108) through the server 104 when the status information indicates a state to be paired, so as to realize pairing between the devices to be paired (106 and 108). It is understood that the terminal 102 can be, but is not limited to, various smart phones, personal computers, laptops, tablets, portable wearable devices, unmanned vehicles, drones, remote controllers, etc. with applications for pairing, the server 104 can be implemented by a separate server or a server cluster composed of a plurality of servers, and the devices to be paired (106 and 108) can include a control device 106 (e.g., a remote controller) and a controlled device 108 (e.g., an unmanned vehicle or drone, etc.). The server 104 may communicate with the terminal 102, the devices to be paired (106 and 108) using mobile communication technology, such as fourth generation mobile communication technology (4G), fifth generation mobile communication technology (5G), and so on. In one example, the server 104 may be, for example, an IOT (Internet of things) server.
In one example, any one of the control device 106 and the controlled device 108 of the devices to be paired may perform an action instead of the terminal 102. It is understood that any one of the control device 106 and the controlled device 108 may be provided with an application program for pairing and a corresponding communication module on the terminal 102, instead of the terminal 102 performing the above-described communication process with the server 104.
Fig. 2 schematically shows a flow diagram of a method for device pairing according to an embodiment of the invention. As shown in fig. 2, in the embodiment of the present invention, a method for device pairing is provided, which is described by taking the method as an example for being applied to a terminal, and the method may include the following steps:
step S210, a pairing request triggered by a user is obtained, where the pairing request includes identification information of a device to be paired.
It can be understood that the devices to be paired are a control device (e.g., remote controller) and a controlled device (e.g., drone) that the user desires to pair. The pairing request is an instruction for pairing between devices to be paired (including the control device and the controlled device). The identification information of the device to be paired is identification information representing an identity of the device to be paired, and may be, for example, a serial number of the device to be paired manually input by a user or related information obtained by scanning a two-dimensional code, a barcode, and the like of the device to be paired.
Specifically, the terminal may obtain a pairing request triggered by a user by clicking a pairing option in an application program (APP) option interface of the terminal or touching a pairing button of the terminal, where the pairing request includes identification information of a device to be paired, that is, identification information of the control device and identification information of the controlled device, and the identification information may be obtained by manually inputting a device serial number or scanning a two-dimensional code or a barcode by the user.
Step S220, acquiring the state information of the equipment to be paired from the server according to the identification information.
It can be understood that the state information is a state of the device to be paired after being powered on, and may specifically include a normal state, an error state, and a state to be paired.
Specifically, the terminal obtains the state information of the device to be paired from the server according to the obtained identification information, that is, the server stores the state information of the device to be paired, specifically, the state information of the device to be paired is actively sent to the server within a preset time interval after the device to be paired is powered on, the server stores the state information corresponding to the device to be paired after receiving the state information sent by the device to be paired, and when the state information is changed, the server can modify the corresponding state information mark according to the received state information.
In step S230, when the state information indicates the to-be-paired state, the pairing information is sent to the to-be-paired devices through the server, so as to implement pairing between the to-be-paired devices.
It can be understood that the pairing information is information that needs to be used in the pairing process of the device to be paired, and may be determined by pairing information input by a user, or may obtain historical pairing information stored before, and the pairing information may include networking information, an authentication key, and the like, for example.
Specifically, when the terminal determines that the status information indicates the to-be-paired status, which indicates that the to-be-paired equipment is in the to-be-paired status at this time, the terminal may send pairing information to the to-be-paired equipment through the server, so that the to-be-paired equipment completes configuration of information such as parameters of the to-be-paired equipment after receiving the pairing information, thereby implementing that the to-be-paired equipment is in the same wireless frequency band, and completing pairing between the to-be-paired equipment.
The method for device pairing obtains a pairing request triggered by a user through a terminal, wherein the pairing request comprises identification information of devices to be paired, obtains state information of the devices to be paired from a server according to the identification information, and sends the pairing information to the devices to be paired through the server under the condition that the state information indicates the state to be paired so as to realize pairing between the devices to be paired. The pairing process can use a cellular network for communication, namely, an application program on the terminal can carry out network communication with a server of the terminal, so that after two devices to be paired which need to be paired are determined, pairing information can be sent to the devices to be paired by the server, pairing between the devices to be paired can be completed without occupying limited wireless frequency band resources, the pairing speed is high, the anti-interference capability is high, the device is not limited by communication distance and is not influenced by the problem of same-frequency interference, the problem that other devices are mistakenly paired due to same-frequency broadcasting is solved, and the success rate of device pairing is improved.
In one embodiment, the step S220 may include: acquiring the legality information of the equipment to be paired from the server according to the identification information; and acquiring the state information under the condition that the equipment to be paired is determined to be legal according to the legality information.
It is to be understood that the validity information may be related information confirming whether the device to be paired is a device existing in the server database.
Specifically, after the new identification information of the device to be paired is determined, the terminal acquires the validity information of the device to be paired from the server according to the identification information, that is, the terminal queries whether the device is valid from the server, after receiving the validity information of the device to be paired, the terminal judges the validity information to determine whether the device to be paired is valid, and under the condition that the devices to be paired are both valid, the terminal can acquire the state information of the device to be paired.
In this embodiment, before acquiring the state information of the device to be paired, the terminal needs to query the server for the validity of the device to be paired, and when it is determined that the device to be paired is valid, the terminal acquires the state information again, so that the security of the device pairing process can be improved, and unnecessary workload can be reduced.
In an example, the terminal may obtain the validity information and the status information of the device to be paired from the server according to the identification information, and enter the step S230 when determining that the device to be paired is valid according to the validity information.
In one embodiment, the pairing status includes a first pairing status, and the step S230 may include: acquiring pairing information input by a user under the condition that the state information indicates a first pairing state; and sending the pairing information to a server, and sending the pairing information to the equipment to be paired through the server so as to realize pairing between the equipment to be paired.
It is understood that the device entering the pairing state includes a plurality of cases, wherein one case is a first pairing state, that is, a first pairing between the devices to be paired (which may include the control device and the controlled device).
Specifically, when the state information received by the terminal indicates that the devices to be paired are in a first pairing state, since the devices to be paired (which may include the control device and the controlled device) are paired for the first time, the terminal may acquire pairing information input by the user or pairing information stored in advance, send the pairing information to the server, and send the pairing information to the devices to be paired, and the devices to be paired complete their own parameter configuration according to the pairing information input by the user, thereby implementing pairing between the devices to be paired.
In this embodiment, since the devices to be paired are paired for the first time, the user is required to upload the pairing information to the server through the terminal, so that the server issues the pairing information to the devices to be paired, and pairing between the devices to be paired is achieved.
In one embodiment, the method for device pairing may further include: acquiring new pairing information input by a user under the condition that a communication channel of paired equipment needs to be replaced; and sending the new pairing information to the server, and sending the new pairing information to the paired equipment through the server so as to be used for re-pairing the paired equipment after the communication channel is replaced.
It is understood that the paired devices are the control device and the controlled device that have been paired before, that is, the devices that are not paired for the first time.
Specifically, in the actual operation process, if the current communication channel is congested to cause that the communication between the paired devices is abnormal, that is, under the condition that the communication channel of the paired devices needs to be changed, the terminal may obtain new pairing information input by the user, for example, pairing information including a changed channel, the terminal sends the new pairing information to the server, and the server sends the new pairing information to the paired devices, so that the paired devices complete the change of the configuration information according to the new pairing information, thereby implementing the pairing of the paired devices after the communication channel is changed.
In this embodiment, when the communication channel of the paired device needs to be changed, the terminal acquires new pairing information input by the user, uploads the new pairing information to the server, and sends the new pairing information to the paired device by the server, so that the paired device can be switched between different communication channels.
In one embodiment, the method for device pairing may further include: acquiring the distance between the device to be paired and the terminal; and determining that the device to be paired associated with the identification information is the expected device to be paired if the distance is smaller than a preset distance threshold.
It can be understood that the preset distance threshold is a distance upper limit value set by the user according to the actual distance between the device to be paired and the terminal, and can be freely set and modified by the user.
Specifically, the terminal may obtain, for example, a distance between the device to be paired and the location of the terminal through a positioning module (for example, GPS positioning), may obtain, for example, distance information between the control device and the terminal and distance information between the controlled device and the terminal, compare the above two pieces of distance information with a preset distance threshold, and in a case that it is determined that both pieces of distance information are smaller than the preset distance threshold, the terminal determines that the device to be paired associated with the identification information is the desired device to be paired (the device that the user wants to pair).
In one example, the terminal is a control device (e.g., a remote controller) in the devices to be paired, and the remote controller may obtain a distance between the controlled device (e.g., the drone) and the control device (e.g., the remote controller), and in a case that the distance is smaller than a preset distance threshold, the control device (e.g., the remote controller) confirms that the controlled device (e.g., the drone) associated with the identification information is the desired device to be paired (here, the controlled device desired by the user).
In this embodiment, the distance information is obtained, the distance between the device to be paired and the position of the terminal is compared with the preset distance threshold, and if the distance is smaller than the preset distance threshold, the current device to be paired can be considered as the device that the user desires to pair, so that the correctness of the identity information of the device to be paired is verified, and the accuracy of the device pairing process is improved.
In one example, the method may further include: and determining that the device to be paired associated with the identification information is not the expected device to be paired if the distance is greater than a preset distance threshold.
Specifically, the terminal may compare the distance information of the control device and the terminal and the distance information of the controlled device and the terminal with a preset distance threshold, and when the comparison result indicates that at least one distance information is greater than the preset distance threshold, the terminal determines that the device to be paired associated with the identification information is not the device to be paired really expected by the user, which may be caused by an error in the identification information input by the user, that is, at least one error in the identification information of the device to be paired occurs, and may determine that the identification information of the device to be paired whose distance is greater than the preset distance threshold occurs is an error.
Because the user may make a mistake in the process of inputting the identification information of the device to be paired, and the condition of mistakenly inputting the serial number of the device and the like may occur at any time, the method for pairing the devices can increase the step of prompting and confirming the identification information to improve the success rate of pairing the devices. Fig. 3 is a flow chart schematically illustrating a step of prompting for confirmation of identification information according to an embodiment of the present invention. As shown in fig. 3, in the embodiment of the present invention, the to-be-paired devices include at least one control device and at least one controlled device, and the step of prompting to confirm the identification information may include:
step S310, determining a first control device in the at least one control device and a first controlled device in the at least one controlled device according to the identification information.
It can be understood that the first control device is a control device corresponding to the identification information input by the user, and the first controlled device is a controlled device corresponding to the identification information input by the user.
Specifically, the terminal determines a first control device (e.g., remote controller a1) of the one or more control devices and a first controlled device (e.g., drone B1) of the one or more controlled devices based on the identification information in the user-triggered pairing request.
Step S320, obtaining the distances between the at least one control device and the at least one controlled device and the position of the terminal, respectively.
Specifically, the terminal may obtain, through the positioning module, distances between one or more control devices and positions of the terminal and one or more controlled devices, for example, the distances between the remote controller a1 and the remote controller a2 and the positions of the terminal are DA1 and DA2, and the distances between the unmanned aerial vehicle B1 and the unmanned aerial vehicle B2 and the positions of the terminal are DB1 and DB2, respectively.
Step S330, prompting to confirm the correctness of the identification information when determining that a second control device closer to the position of the terminal than the first control device exists in the at least one control device or when determining that a second controlled device closer to the position of the terminal than the first controlled device exists in the at least one controlled device.
Specifically, in one example, when the terminal determines that the distance DA2 from the terminal of the at least one control device (e.g., the remote controller a2) is less than the distance DA1 from the terminal of the first control device (e.g., the remote controller a1), the terminal may prompt the user to confirm the correctness of the identification information, e.g., a prompt box may pop up to prompt the user to pay attention to check to confirm the correctness of the input identification information.
In another example, when the terminal determines that the distance DB2 from the terminal of the at least one controlled device (e.g., drone B2) is smaller than the distance DB1 from the terminal of the first controlled device (e.g., drone B1), the terminal may prompt the user to confirm the correctness of the identification information, e.g., a prompt box may pop up to remind the user to pay attention to check to confirm the correctness of the identification information input.
In this embodiment, for the case that the device to be paired includes multiple control devices or multiple controlled devices, since part of the condition of the device to be paired is near-distance communication, that is, the device to be paired is closer to the terminal, if there is another control device or another controlled device in which the first control device or the second controlled device is closer to the terminal, the user is prompted to confirm the correctness of the identification information, so that the security of the pairing process of the device to be paired can be improved, and the possibility that the user inputs wrong identification information is reduced.
In one embodiment, the device to be paired comprises a control device and a controlled device, wherein the control device comprises a remote controller, and the controlled device comprises an unmanned aerial vehicle or an unmanned vehicle.
In one embodiment, the pairing information may include at least one of: internet protocol address, wireless grid network identification, channel, identity authentication key.
Fig. 4 schematically shows a flow diagram of a method for device pairing according to another embodiment of the invention. As shown in fig. 4, in an embodiment of the present invention, a method for device pairing is provided, which is described by taking the method as an example of being applied to a server, and the method may include the following steps:
step S410, obtaining the identification information of the device to be paired sent by the terminal.
Specifically, the server obtains identification information of the device to be paired, which is sent by the terminal. It can be understood that the identification information may be a serial number of the device to be paired, which is manually input by the user, or related information obtained by scanning a two-dimensional code, a barcode, and the like of the device to be paired.
Step S420, determining the status information of the device to be paired according to the identification information.
Specifically, the server searches for state information corresponding to the to-be-paired device associated with the identification information according to the identification information. It can be understood that the state information is a state of the device to be paired after being powered on, and may specifically include a normal state, an error state, and a state to be paired, the device to be paired actively sends its state information to the server within a preset time interval after being powered on, the server stores the state information corresponding to the device to be paired after receiving the state information sent by the device to be paired, and when the state information is changed, the server may modify the corresponding state information flag according to the received state information. The server may be, for example, an IOT (Internet of things) server.
Step S430, sending the status information to the terminal.
Specifically, the server sends the state information of the to-be-paired device associated with the identification information to the terminal, so that the terminal can know or display the state information of the to-be-paired device at the moment, and subsequent related operation steps related to the pairing information are facilitated.
Step S440, sending pairing information to the devices to be paired under the condition that the state information indicates the state to be paired, so as to realize pairing between the devices to be paired.
It can be understood that the pairing information is information that needs to be used in the pairing process of the device to be paired, and may be determined by pairing information input by a user, or may obtain historical pairing information stored before, and the pairing information may include networking information, an authentication key, and the like, for example.
Specifically, when it is determined that the state information indicates the to-be-paired state, it indicates that the to-be-paired device is in the to-be-paired state at this time, and the server may send pairing information to the to-be-paired device, so that the to-be-paired device completes configuration of information such as its parameters after receiving the pairing information, thereby implementing that the to-be-paired devices are in the same wireless frequency band, and completing pairing between the to-be-paired devices.
According to the method for device pairing, the server acquires the identification information of the device to be paired, which is sent by the terminal, determines the state information of the device to be paired according to the identification information, and sends the state information to the terminal, and under the condition that the state information indicates the state to be paired, the server sends the pairing information to the device to be paired, so that the device to be paired is paired. The pairing process can use a cellular network for communication, namely, an application program on the terminal can carry out network communication with a server of the terminal, so that after two devices to be paired which need to be paired are determined, pairing information can be sent to the devices to be paired by the server, pairing between the devices to be paired can be completed without occupying limited wireless frequency band resources, the pairing speed is high, the anti-interference capability is high, the device is not limited by communication distance and is not influenced by the problem of same-frequency interference, the problem that other devices are mistakenly paired due to same-frequency broadcasting is solved, and the success rate of device pairing is improved.
In one embodiment, the step S420 may include: determining the legality information of the equipment to be paired according to the identification information; and determining the state information under the condition that the equipment to be paired is determined to be legal according to the legality information.
It is to be understood that the validity information may be related information confirming whether the device to be paired is a device existing in the server database.
Specifically, the server may query the historical data information according to the identification information, thereby determining validity information of the device to be paired, for example, if the same identification information is queried, it may be determined that the device to be paired is valid, and if it is determined that the device to be paired is valid according to the validity information, the server may query the status information of the device to be paired associated with the identification information, thereby determining the status information.
In this embodiment, before determining the state information of the device to be paired, the server needs to query the validity of the device to be paired, and when the device to be paired is determined to be valid, the server determines the state information again, so that the security of the device pairing process can be improved, and unnecessary workload can be reduced.
In one embodiment, the pairing status includes a first pairing status, and the step S440 may include: acquiring pairing information sent by a terminal under the condition that the state information indicates a first pairing state; and sending the pairing information to the devices to be paired to realize pairing between the devices to be paired.
It is understood that the device entering the pairing state includes a plurality of cases, wherein one case is a first pairing state, that is, a first pairing between the devices to be paired (which may include the control device and the controlled device).
Specifically, when the state information of the devices to be paired indicates a first pairing state, the server acquires pairing information sent by the terminal due to first pairing between the devices to be paired (which may include the control device and the controlled device), where the pairing information may be pairing information input by a user or pairing information previously stored by the terminal, and sends the pairing information to the devices to be paired, and the devices to be paired complete their own parameter configuration according to the pairing information, thereby implementing pairing between the devices to be paired.
In this embodiment, since the devices to be paired are paired for the first time, the server needs to obtain the pairing information uploaded by the terminal, and send the pairing information to the devices to be paired, thereby implementing pairing between the devices to be paired.
In one embodiment, the pairing status includes a non-primary pairing status, and the step S440 may include: and under the condition that the state information indicates the non-first pairing state, the stored pairing information is issued to the devices to be paired so as to realize pairing between the devices to be paired.
It will be appreciated that the entering of the pairing state by the device includes a plurality of cases, one of which is a non-first pairing state, i.e. a state in which the devices to be paired (which may include the control device and the controlled device) have been previously paired.
Specifically, when the state information of the devices to be paired indicates a non-first-time pairing state, the server may query the history data, and issue the previously stored pairing information to the devices to be paired, so as to realize pairing between the devices to be paired.
In this embodiment, since the devices to be paired are not paired for the first time, the server may issue the pre-stored pairing information to the devices to be paired, and pairing between the devices to be paired may be achieved without acquiring the pairing information sent by the terminal.
In one embodiment, the method for device pairing may further include: acquiring new pairing information sent by a terminal under the condition that a communication channel of paired equipment needs to be replaced; and sending the new pairing information to the paired equipment for re-pairing the paired equipment after the communication channel is replaced.
It is understood that the paired devices are the control device and the controlled device which have been paired before, that is, the devices which are not paired for the first time.
Specifically, in the actual operation process, if the current communication channel is congested, which causes an abnormality in communication between paired devices, that is, under the condition that the communication channel of the paired devices needs to be changed, the server obtains new pairing information sent by the terminal, and sends the new pairing information to the paired devices, so that the paired devices complete the change of configuration information according to the new pairing information, thereby implementing the purpose of re-pairing the paired devices after the communication channel is changed.
In this embodiment, when the communication channel of the paired device needs to be changed, the server obtains new pairing information uploaded by the terminal and issues the new pairing information to the paired device, so that the paired device can be switched between different communication channels.
Fig. 5 schematically shows a flow diagram of a method for device pairing according to another embodiment of the invention. As shown in fig. 5, a method for device pairing is provided, and the method is applied to a system including an IOT server, a terminal with an application APP, an drone, and a remote controller, and includes the following specific steps:
step 1: the APP (application program) firstly obtains IDs (manually input or two-dimension code scanning and the like) of two devices needing to be paired, a pairing button is clicked, at the moment, the APP inquires whether the devices are legal or not from an IOT (Internet of things server), and the paired states of the two devices are continuously polled.
Step 2: the device enters a pairing state, and the two conditions are as follows: the first condition is that the two devices are both bound under the user account names and are not paired for the first time (configuration information exists), and the two devices can automatically enter a pairing state only by starting up normally; the second situation is that when two devices are paired for the first time, both devices need to enter a specific "pairing state" manually, and during this process, an instruction is continuously sent to the IOT, and the corresponding state flag of the IOT changes.
And 3, step 3: when the APP (application) polls the IOT until the two devices are in the pairing state, the IOT sends the pairing information (such as an allocated IP address, a MESH ID (wireless MESH network identifier), a channel, an authentication key and the like) to the two devices at the same time, and the step 4 is entered. Otherwise, prompting the user to make an error and quit the pairing state, and correspondingly quitting the pairing state due to overtime of the remote controller and the unmanned aerial vehicle.
And 4, step 4: the unmanned aerial vehicle and the remote controller are respectively configured with the pairing information issued by the IOT to complete frequency pairing and pairing, and the remote controller can control the unmanned aerial vehicle.
It can be understood that in step 2, APP can obtain the binding information of remote controller and unmanned aerial vehicle and APP account, through transferring historical use information, whether seek unmanned aerial vehicle and remote controller under same account name and be in the state of pairing, if, then carry out the quick pairing of remote controller and unmanned aerial vehicle. Or, bind to online many unmanned aerial vehicles and a plurality of remote controllers under the same account, when one of them unmanned aerial vehicle and a remote controller successively get into when pairing the mode, then pair this unmanned aerial vehicle with this remote controller.
APP on the terminal can utilize near communication module to search near remote controller/unmanned aerial vehicle that is in online state, the parallel table shows at the APP interface, when the user enters one of remote controller/unmanned aerial vehicle adjustment and pairs the state, can synchronously display this remote controller/unmanned aerial vehicle entering in the interface and pair the state, the user clicks unmanned aerial vehicle and the remote controller that enter into in the interface and pair the state and can pair both, unmanned aerial vehicle and the remote controller that pair successfully can send out the signal and show and pair successfully. APP can also utilize near field communication module to search near remote controller/unmanned aerial vehicle that is in on-line status, and the parallel table shows at the APP interface to can be according to the distance sequencing at unmanned aerial vehicle/remote controller and APP place terminal, when the user clicks the pairing, the automatic unmanned aerial vehicle and the remote controller that will be nearest pair apart from.
The embodiment of the invention provides a new pairing mode, which solves the problems of pairing of the existing 2.4G/5.8GHz wireless remote controllers due to the limitation of internal factors by utilizing the external technical characteristics of 4G cellular mobile communication, wide regional distribution of operator base stations, strict frequency band management and division and strong anti-interference: the remote controller is more convenient, more efficient and suitable for various complex environments, and the experience of products is improved due to the problems of space distance limitation, easy interference, easy manual mismatching, overlong matching time and the like.
The technical scheme provided by the application is simple to operate, the equipment needing to be paired is artificially bound before pairing, the problem that other equipment is mismatched due to same-frequency broadcasting is fundamentally solved, and the user experience degree is greatly improved; due to the characteristic of small data transmission delay of the 4G communication technology, the pairing speed is high; the interference resistance is strong, the problem of poor channel quality does not exist, and the problem of same frequency interference is solved by an operator; under the national condition of 4G in village communication in China, the base station is wide in regional distribution and not limited by communication distance, pairing operation can be completed in a specific operation environment, for example, the current channel of equipment is crowded, an unmanned aerial vehicle can manually switch channels through an IOT (input/output port), the jam is avoided, and the operation of air re-pairing is realized, so that an operation task is continued.
An embodiment of the present invention provides a processor configured to execute the method for device pairing according to the foregoing embodiments.
The embodiment of the invention provides a mobile terminal which comprises a processor provided according to the embodiment of the invention.
In one embodiment, the mobile terminal comprises at least one of: unmanned aerial vehicle, unmanned vehicle, mobile communication equipment.
An embodiment of the present invention provides a server configured to execute the method for device pairing according to the foregoing embodiments.
An embodiment of the present invention provides a machine-readable storage medium, which stores instructions thereon, and when executed by a processor, causes the processor to execute the method for device pairing according to the foregoing embodiment.
The present application also provides a computer program product comprising a computer program which, when executed by a processor, implements a method for device pairing according to the above embodiments.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a device includes one or more processors (CPUs), memory, and a bus. The device may also include input/output interfaces, network interfaces, and the like.
The memory may include volatile memory in a computer readable medium, Random Access Memory (RAM) and/or nonvolatile memory such as Read Only Memory (ROM) or flash memory (flash RAM), and the memory includes at least one memory chip. The memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in the process, method, article, or apparatus that comprises the element.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and so forth) having computer-usable program code embodied therein.
The above are merely examples of the present application and are not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims (10)

1. A method for device pairing, applied to a terminal, is characterized in that the method comprises:
acquiring a pairing request triggered by a user, wherein the pairing request comprises identification information of equipment to be paired, the equipment to be paired comprises at least one control device and at least one controlled device, the control device comprises a remote controller, and the controlled device comprises an unmanned aerial vehicle or an unmanned aerial vehicle;
determining a first control device of the at least one control device and a first controlled device of the at least one controlled device according to the identification information;
acquiring distances between the at least one control device and the at least one controlled device and the position of the terminal respectively;
prompting to confirm the correctness of the identification information in the case that a second control device closer to the position of the terminal than the first control device exists in the at least one control device or in the case that a second controlled device closer to the position of the terminal than the first controlled device exists in the at least one controlled device;
acquiring the state information of the equipment to be paired from a server according to the identification information;
and sending pairing information to the equipment to be paired through the server under the condition that the state information indicates the state to be paired so as to realize pairing between the equipment to be paired.
2. The method according to claim 1, wherein the obtaining the status information of the device to be paired from the server according to the identification information comprises:
acquiring the legality information of the equipment to be paired from the server according to the identification information;
and acquiring the state information under the condition that the equipment to be paired is determined to be legal according to the legality information.
3. The method according to claim 1, wherein the pairing status includes a first pairing status, and in a case that the status information indicates a to-be-paired status, sending, by the server, pairing information to the to-be-paired devices to achieve pairing between the to-be-paired devices includes:
acquiring pairing information input by a user under the condition that the state information indicates a first pairing state;
and sending the pairing information to the server, and sending the pairing information to the equipment to be paired through the server so as to realize pairing between the equipment to be paired.
4. The method of claim 1, further comprising:
acquiring new pairing information input by a user under the condition that a communication channel of paired equipment needs to be replaced;
and sending the new pairing information to the server, and sending the new pairing information to the paired equipment through the server so as to be used for re-pairing the paired equipment after a communication channel is replaced.
5. The method of claim 1, further comprising:
acquiring the distance between the device to be paired and the terminal;
and determining that the device to be paired associated with the identification information is the expected device to be paired when the distance is smaller than a preset distance threshold.
6. The method of claim 1, wherein the pairing information comprises at least one of:
internet protocol address, wireless mesh network identification, channel, identity verification key.
7. A processor configured to perform the method for device pairing according to any one of claims 1 to 6.
8. A mobile terminal characterized in that it comprises a processor according to claim 7.
9. The mobile terminal of claim 8, wherein the mobile terminal comprises a mobile communication device.
10. A machine-readable storage medium having instructions stored thereon, which when executed by a processor causes the processor to perform the method for device pairing according to any one of claims 1 to 6.
CN202011481003.3A 2020-12-15 2020-12-15 Method for device pairing, processor, mobile terminal and server Active CN112669585B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011481003.3A CN112669585B (en) 2020-12-15 2020-12-15 Method for device pairing, processor, mobile terminal and server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011481003.3A CN112669585B (en) 2020-12-15 2020-12-15 Method for device pairing, processor, mobile terminal and server

Publications (2)

Publication Number Publication Date
CN112669585A CN112669585A (en) 2021-04-16
CN112669585B true CN112669585B (en) 2022-08-16

Family

ID=75405011

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011481003.3A Active CN112669585B (en) 2020-12-15 2020-12-15 Method for device pairing, processor, mobile terminal and server

Country Status (1)

Country Link
CN (1) CN112669585B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113518336A (en) * 2021-07-16 2021-10-19 Oppo广东移动通信有限公司 Bluetooth connection prompting method, device, terminal and storage medium
CN114205887A (en) * 2021-12-13 2022-03-18 上海布鲁可积木科技有限公司 Communication control method and system based on controller and actuator
CN114866251B (en) * 2022-04-25 2023-07-07 中国银联股份有限公司 Equipment interconnection security authentication system, method, device, server and medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107730859A (en) * 2017-09-22 2018-02-23 Tcl通力电子(惠州)有限公司 Wireless device pairing method, device and storage medium
CN107835304A (en) * 2017-10-26 2018-03-23 广东欧珀移动通信有限公司 Control method, apparatus, mobile terminal and the storage medium of mobile terminal
CN109890116A (en) * 2019-04-23 2019-06-14 万众科技有限公司 A kind of road lamp management method and road lamp system
CN109952601A (en) * 2017-10-27 2019-06-28 北京小米移动软件有限公司 Information reception, sending method and device, unmanned plane and the network equipment
CN110072236A (en) * 2018-01-24 2019-07-30 阿里巴巴集团控股有限公司 Equipment connection method, equipment and system

Family Cites Families (20)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8281216B2 (en) * 2009-03-31 2012-10-02 Motorola Solutions, Inc. Method for assigning and utilizing forward error correcting (FEC) codes
KR20110042403A (en) * 2009-10-19 2011-04-27 김현민 Wireless charging system for electric car and charging method therefor
US9660762B2 (en) * 2012-09-06 2017-05-23 Nec Corporation System and method for transmitting optical signal over multiple channels
US9210156B1 (en) * 2014-06-16 2015-12-08 Lexisnexis Risk Solutions Inc. Systems and methods for multi-stage identity authentication
US20160065552A1 (en) * 2014-08-28 2016-03-03 Drfirst.Com, Inc. Method and system for interoperable identity and interoperable credentials
CN106302345B (en) * 2015-05-27 2019-11-22 阿里巴巴集团控股有限公司 A kind of terminal authentication method and device
CN105827638A (en) * 2016-05-10 2016-08-03 腾讯科技(深圳)有限公司 Data transmission method, device and system
US10630410B2 (en) * 2016-05-13 2020-04-21 Telefonaktiebolaget Lm Ericsson (Publ) Network architecture, methods, and devices for a wireless communications network
CN106131103B (en) * 2016-06-02 2017-10-31 广州极飞科技有限公司 The communication means of remote control and unmanned plane, device and system
CN106100721B (en) * 2016-06-24 2019-03-01 广州极飞科技有限公司 Method, server, remote controler and the system that unmanned plane and remote controler are matched
CN106952096A (en) * 2017-03-03 2017-07-14 中国工商银行股份有限公司 Security certification system, method and the credible identifying device of client of client device
WO2018176312A1 (en) * 2017-03-30 2018-10-04 深圳市大疆创新科技有限公司 Pairing method, apparatus, machine readable storage medium, and system
CN107294742B (en) * 2017-07-01 2020-07-17 珠海格力电器股份有限公司 Method and device for creating conference group and server
CN109547388A (en) * 2017-07-25 2019-03-29 上海掌门科技有限公司 Equipment connection method and device
CN107911337A (en) * 2017-10-11 2018-04-13 海信集团有限公司 A kind of apparatus bound method, server and equipment
CN108886516B (en) * 2017-11-30 2021-03-30 深圳市大疆创新科技有限公司 Unmanned aerial vehicle system and method
CN109547990B (en) * 2018-12-17 2022-11-18 平安科技(深圳)有限公司 Method and device for controlling terminal unlocking, computer equipment and storage medium
CN111610797A (en) * 2019-02-25 2020-09-01 广州极飞科技有限公司 Control method, system and device of unmanned aerial vehicle
CN110177362B (en) * 2019-05-24 2023-02-03 广东美的制冷设备有限公司 Equipment binding method and device and electronic equipment
CN111654844A (en) * 2020-04-23 2020-09-11 杭州涂鸦信息技术有限公司 Device pairing method and related device and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107730859A (en) * 2017-09-22 2018-02-23 Tcl通力电子(惠州)有限公司 Wireless device pairing method, device and storage medium
CN107835304A (en) * 2017-10-26 2018-03-23 广东欧珀移动通信有限公司 Control method, apparatus, mobile terminal and the storage medium of mobile terminal
CN109952601A (en) * 2017-10-27 2019-06-28 北京小米移动软件有限公司 Information reception, sending method and device, unmanned plane and the network equipment
CN110072236A (en) * 2018-01-24 2019-07-30 阿里巴巴集团控股有限公司 Equipment connection method, equipment and system
CN109890116A (en) * 2019-04-23 2019-06-14 万众科技有限公司 A kind of road lamp management method and road lamp system

Also Published As

Publication number Publication date
CN112669585A (en) 2021-04-16

Similar Documents

Publication Publication Date Title
CN112669585B (en) Method for device pairing, processor, mobile terminal and server
US9769269B2 (en) Method, system and device for selecting a device to satisfy a user request
US11277278B2 (en) Smart home service server and control method therefor
US10911430B2 (en) Account login connection method and apparatus, and storage medium
US10104588B2 (en) Method for automatically switching an LBS-based wireless data network and mobile terminal
US20150312296A1 (en) Method and device for pushing multimedia resource and display terminal
US11146960B2 (en) Apparatus and method for handling eSIM profile for iSSP device
US11228885B2 (en) Over the air provisioning of embedded subscriber identification module devices
WO2012094677A2 (en) System, method and apparatus for dynamic wireless network discovery
CN110881207A (en) Network slice selection method and related product
WO2019195673A1 (en) Global device management architecture for iot devices with regional autonomy
CN103458057A (en) Resource acquiring method, device and server
EP3513541B1 (en) Usage-based bandwidth optimization
CN105392185A (en) Intelligent equipment networking method and device, and system
TW201445953A (en) White space database discovery
US11678181B2 (en) Global device management architecture for IoT devices with regional autonomy
CN115022353B (en) Network connection method, device and system of intelligent equipment
EP3261368B1 (en) Correlating a route with a wifi network operation
CN110278600B (en) Communication between terminal and base station, and network access method and device of terminal
CN107548030B (en) WiFi switch control and data query service method, device and medium
CN106028303B (en) Intelligent device discovery method and device
EP3087772B1 (en) Devices for reducing control data traffic in a white space network
JP6025681B2 (en) COMMUNICATION SYSTEM CONTROL METHOD, COMMUNICATION SYSTEM AND CONTROL DEVICE
CN114007276A (en) Network access processing method, device, equipment and system of ZigBee network
CN106015068A (en) Control method and device for household fan and household fan device and 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
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 510000 Block C, 115 Gaopu Road, Tianhe District, Guangzhou City, Guangdong Province

Applicant after: Guangzhou Jifei Technology Co.,Ltd.

Address before: 510000 Block C, 115 Gaopu Road, Tianhe District, Guangzhou City, Guangdong Province

Applicant before: Guangzhou Xaircraft Technology Co.,Ltd.

GR01 Patent grant
GR01 Patent grant