CN111918265A - Connection establishing method and device, electronic equipment and computer readable storage medium - Google Patents

Connection establishing method and device, electronic equipment and computer readable storage medium Download PDF

Info

Publication number
CN111918265A
CN111918265A CN202010860204.8A CN202010860204A CN111918265A CN 111918265 A CN111918265 A CN 111918265A CN 202010860204 A CN202010860204 A CN 202010860204A CN 111918265 A CN111918265 A CN 111918265A
Authority
CN
China
Prior art keywords
near field
connection
remote control
establishing
information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010860204.8A
Other languages
Chinese (zh)
Inventor
不公告发明人
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Suzhou Zhendi Intelligent Technology Co Ltd
Original Assignee
Suzhou Zhendi Intelligent 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 Suzhou Zhendi Intelligent Technology Co Ltd filed Critical Suzhou Zhendi Intelligent Technology Co Ltd
Priority to CN202010860204.8A priority Critical patent/CN111918265A/en
Publication of CN111918265A publication Critical patent/CN111918265A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • GPHYSICS
    • G08SIGNALLING
    • G08CTRANSMISSION SYSTEMS FOR MEASURED VALUES, CONTROL OR SIMILAR SIGNALS
    • G08C17/00Arrangements for transmitting signals characterised by the use of a wireless electrical link
    • G08C17/02Arrangements for transmitting signals characterised by the use of a wireless electrical link using a radio link
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/11Allocation or use of connection identifiers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode setup
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/19Connection re-establishment
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/40Connection management for selective distribution or broadcast

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Selective Calling Equipment (AREA)

Abstract

The invention relates to a connection establishing method, a connection establishing device, electronic equipment and a computer readable storage medium, and belongs to the field of communication. The secret key used for establishing the long connection is interacted between the two devices to establish the long connection through establishing the near field connection, so that the two devices to establish the long connection can acquire the secret key, and the long connection can be established based on the secret key when the long connection is established subsequently. In the process of establishing the long connection, the pairing relationship between the devices establishing the long connection is not established in advance in the prior art, even if one device between the two devices establishing the long connection is lost or damaged, a new long connection can be reestablished on the basis of only purchasing the lost or damaged device, and for a user, two new devices do not need to be purchased again, so that the economic loss of the user can be reduced.

Description

Connection establishing method and device, electronic equipment and computer readable storage medium
Technical Field
The present application belongs to the field of communications, and in particular, to a connection establishment method, apparatus, electronic device, and computer-readable storage medium.
Background
The password for pairing is set between the intelligent device (such as the unmanned aerial vehicle) and the remote control device when the intelligent device and the remote control device leave a factory, and the password is used for establishing connection between the intelligent device and the remote control device.
Once a connection is established, once one of the devices is damaged or lost, the other device cannot be used, or two devices paired with each other need to be purchased again, which causes unnecessary economic loss for users.
Disclosure of Invention
In view of the above, an object of the present invention is to provide a connection establishing method, apparatus, electronic device and computer readable storage medium, so that when one of two devices paired with each other is lost or damaged, a user can establish a connection with the remaining devices by purchasing the one device, thereby reducing economic loss of the user.
The embodiment of the application is realized as follows:
in a first aspect, an embodiment of the present application provides a connection establishment method, which is applied to an intelligent device, and the method includes: broadcasting the near field scanning information to the outside; broadcasting the near field verification information to the outside when feedback information responding to the near field scanning information is acquired; when a near field connection request responding to the near field verification information is acquired, establishing near field connection with remote control equipment initiating the near field connection request; sending a key to the remote control device based on the near field connection; and when a long connection establishment request which is initiated by the remote control equipment and comprises the secret key is obtained, establishing long connection with the remote control equipment. In the process of establishing the long connection, the pairing relationship between the devices establishing the long connection is not established in advance in the prior art, even if one device between the two devices establishing the long connection is lost or damaged, a new long connection can be reestablished on the basis of only purchasing the lost or damaged device, and for a user, two new devices do not need to be purchased again, so that the economic loss of the user can be reduced.
With reference to the embodiment of the first aspect, in a possible implementation manner, before the broadcasting near-field scanning information outside, the method further includes: it is determined that a reset signal is detected, which is triggered by the user, thereby avoiding interference with the already established long connection.
With reference to the embodiment of the first aspect, in a possible implementation manner, the sending a key to the remote control device includes: and sending a randomly generated key or a pre-stored key to the remote control device.
In a second aspect, an embodiment of the present application provides a connection establishment method, which is applied to a remote control device, and the method includes: when the scanning information is acquired, unicast feedback information to the intelligent equipment which initiates the scanning information; acquiring near-field verification information broadcasted by the intelligent equipment based on the feedback information; when the near field verification information is successfully identified, initiating a near field connection request to the intelligent equipment so that the intelligent equipment establishes near field connection with the intelligent equipment; acquiring a secret key sent by the intelligent equipment through the near field connection; initiating a long connection establishment request including the key to the smart device.
With reference to the second aspect, in a possible implementation manner, before the unicasting feedback information to the smart device that initiates the scanning information, the method further includes: it is determined that a reset signal is detected, which is triggered by the user, thereby avoiding interference with the already established long connection.
With reference to the second aspect, in a possible implementation manner, before the initiating the long connection establishment request including the key to the smart device, the method further includes: it is determined that there are no other smart devices that establish long connections with themselves.
In a third aspect, an embodiment of the present application provides a connection establishing apparatus, which is applied to an intelligent device, where the apparatus includes: the device comprises a broadcasting module, a building module and a sending module. The broadcasting module is used for broadcasting the near field scanning information to the outside; the broadcast module is further configured to broadcast the near field verification information to the outside when feedback information responding to the near field scanning information is acquired; the establishing module is used for establishing near field connection with the remote control equipment initiating the near field connection request when the near field connection request responding to the near field verification information is acquired; a sending module, configured to send a key to the remote control device based on the near field connection; the establishing module is further configured to establish a long connection with the remote control device when a long connection establishment request including the secret key and initiated by the remote control device is obtained.
With reference to the third aspect, in a possible implementation manner, the apparatus further includes a determining module, configured to determine that a reset signal is detected, where the reset signal is triggered by a user.
With reference to the embodiment of the third aspect, in a possible implementation manner, the sending module is configured to send a randomly generated key or a pre-stored key to the remote control device.
In a fourth aspect, an embodiment of the present application provides a connection establishment apparatus, which is applied to a remote control device, and the apparatus includes: the device comprises a sending module and an obtaining module. The sending module is used for unicasting feedback information to the intelligent equipment initiating the scanning information when the scanning information is obtained; the acquisition module is used for acquiring near-field verification information broadcasted by the intelligent equipment based on the feedback information; the sending module is further configured to initiate a near field connection request to the intelligent device when the near field authentication information is successfully identified, so that the intelligent device establishes a near field connection with itself; the obtaining module is further configured to obtain a secret key sent by the smart device through the near field connection; the sending module is further configured to initiate a long connection establishment request including the secret key to the smart device.
With reference to the embodiment of the fourth aspect, in a possible implementation manner, the apparatus further includes a determination module configured to determine that a reset signal is detected, where the reset signal is triggered by a user.
With reference to the embodiment of the fourth aspect, in a possible implementation manner, the apparatus further includes a determining module, configured to determine that there is no other intelligent device that establishes a long connection with itself.
In a fifth aspect, an embodiment of the present application further provides an electronic device, including: a memory and a processor, the memory and the processor connected; the memory is used for storing programs; the processor calls a program stored in the memory to perform the above-mentioned first aspect embodiment and/or the method provided in connection with any possible implementation manner of the first aspect embodiment, or to perform the above-mentioned second aspect embodiment and/or the method provided in connection with any possible implementation manner of the second aspect embodiment.
In a sixth aspect, the present application further provides a non-transitory computer-readable storage medium (hereinafter, referred to as a computer-readable storage medium), on which a computer program is stored, where the computer program is executed by a computer to perform the method in the foregoing first aspect and/or any possible implementation manner of the first aspect, or to perform the method in the foregoing second aspect and/or any possible implementation manner of the second aspect.
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 the practice of the embodiments of the application. The objectives and other advantages of the application may be realized and attained by the structure particularly pointed out in the written description and drawings.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings without creative efforts. The foregoing and other objects, features and advantages of the application will be apparent from the accompanying drawings. Like reference numerals refer to like parts throughout the drawings. The drawings are not intended to be to scale as practical, emphasis instead being placed upon illustrating the subject matter of the present application.
Fig. 1 shows a schematic diagram illustrating interaction between a smart device and a remote control device according to an embodiment of the present application.
Fig. 2 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Fig. 3 shows an interaction flowchart of a connection establishment method provided in an embodiment of the present application.
Fig. 4 shows one of flowcharts of a connection establishment method provided in an embodiment of the present application.
Fig. 5 shows a second flowchart of a connection establishment method according to an embodiment of the present application.
Fig. 6 shows one of the block diagrams of the connection establishing apparatus according to the embodiment of the present application.
Fig. 7 shows a second block diagram of a connection establishment apparatus according to an embodiment of the present application.
Reference numbers: 11-a smart device; 12-a remote control device; 100-an electronic device; 110-a processor; 120-a memory; 130-a data communication component; 140-an interactive authentication component; 400-connection establishing means; 410-a broadcast module; 420-establishing a module; 430-a sending module; 500-connection establishing means; 510-a sending module; 520-obtaining module.
Detailed Description
The technical solutions in the embodiments of the present application will be described below with reference to the drawings in the embodiments of the present application.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures. Meanwhile, relational terms such as "first," "second," and the like may be used solely in the description herein to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, 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 a process, method, article, or apparatus that comprises the element.
Further, the term "and/or" in the present application is only one kind of association relationship describing the associated object, and means that three kinds of relationships may exist, for example, a and/or B may mean: a exists alone, A and B exist simultaneously, and B exists alone.
In addition, the defect of the prior art that the pairing mode between the smart device and the remote control device occurs (may cause unnecessary economic loss to the user) is the result of the practical and careful study of the applicant, and therefore, the discovery process of the above defect and the solution proposed by the embodiment of the present application to the above defect in the following text should be considered as the contribution of the applicant to the present application.
In order to solve the above problem, embodiments of the present application provide a connection establishment method, an apparatus, an electronic device, and a computer-readable storage medium, so that when one of two devices paired with each other is lost or damaged, a user can establish a connection with the original remaining device by only purchasing the one device, thereby reducing economic loss of the user.
The technology can be realized by adopting corresponding software, hardware and a combination of software and hardware. The following describes embodiments of the present application in detail.
First, please refer to fig. 1 to describe an interaction diagram between the smart device 11 and the remote control device 12 provided in an embodiment of the present application.
It should be understood, however, that the smart device 11 in the embodiment of the present application may be any device, apparatus or machine with computing processing capability. The smart device 11 in the embodiment of the present application may include a device having self-detection and self-diagnosis. For example, the smart device 11 in the present application includes but is not limited to: unmanned aerial vehicle, unmanned ship, handheld dv, supervisory equipment.
The Remote Control device 12 includes, but is not limited to, a Remote controller, a Mobile Phone (Mobile Phone), a tablet computer (Pad), a computer with a wireless transceiving function, a Virtual Reality (VR) terminal device, an Augmented Reality (AR) terminal device, a wireless terminal in Industrial Control (Industrial Control), a wireless terminal in driverless Driving (Self Driving), a wireless terminal in Remote Medical treatment (Remote Medical), a wireless terminal in Smart Grid (Smart Grid), a wireless terminal in Transportation Safety (Transportation Safety), a wireless terminal in Smart City (Smart City), a wireless terminal in Smart Home (Smart Home), a terminal device in a future 5G Network, or a terminal device in a future evolved Public Land Mobile Network (PLMN), and the like, and the present invention is not limited thereto.
It should be understood that the smart device 11 and the remote control device 12 in the embodiment of the present application may be provided with a data communication component. The smart device 11 can communicate with the remote control device 12 through the communication module. The communication mode may be a wireless communication form such as wifi, infrared, bluetooth, or 4G or 5G, and the embodiments of the present application are not limited thereto.
In addition, the smart device 11 and the remote control device 12 in the embodiment of the present application may be provided with an interactive authentication component. The smart device 11 can interactively authenticate with the remote control device 12 or another smart device 11 through the interactive authentication component in order to establish a connection after the authentication has been passed. Wherein, the information for mutual authentication is received and transmitted by the communication module.
In addition, please refer to fig. 2, an embodiment of the present application further provides an electronic device 100, where the electronic device 100 may include: a processor 110, a memory 120, a data communication component 130, and an interactive authentication component 140.
The electronic device 100 may be the smart device 11 or the remote control device 12 in fig. 1.
It should be noted that the components and structure of electronic device 100 shown in FIG. 2 are exemplary only, and not limiting, and electronic device 100 may have other components and structures as desired. For example, in some cases, electronic device 100 may also be a display screen.
The processor 110, memory 120, data communication component 130, and interaction authentication component 140, as well as other components that may be present on the electronic device 100, are electrically connected to each other, directly or indirectly, to enable the transfer or interaction of data. For example, the processor 110, the memory 120, the data communication component 130, the interactive authentication component 140, and other components that may be present may be electrically connected to each other via one or more communication buses or signal lines.
The memory 120 is used to store a program, for example, a program corresponding to a connection establishment method appearing later or a connection establishment apparatus appearing later. Optionally, when the memory 120 stores the connection establishing means, the connection establishing means comprises at least one software function module which can be stored in the memory 120 in the form of software or firmware (firmware).
Alternatively, the software function module included in the connection establishing apparatus may also be solidified in an Operating System (OS) of the electronic device 100.
The processor 110 is adapted to execute executable modules stored in the memory 120, such as software functional modules or computer programs comprised by the connection establishing means. When the processor 110 receives the execution instruction, it may execute the computer program, for example, when the electronic device 100 is the intelligent device 11, it may execute: broadcasting the near field scanning information to the outside; broadcasting the near field verification information to the outside when feedback information responding to the near field scanning information is acquired; when a near field connection request responding to the near field verification information is acquired, establishing near field connection with remote control equipment initiating the near field connection request; sending a key to the remote control device based on the near field connection; and when a long connection establishment request which is initiated by the remote control equipment and comprises the secret key is obtained, establishing long connection with the remote control equipment.
For another example, when the electronic device 100 is the remote control device 12 described above, it may perform: when the scanning information is acquired, unicast feedback information to the intelligent equipment which initiates the scanning information; acquiring near-field verification information broadcasted by the intelligent equipment based on the feedback information; when the near field verification information is successfully identified, initiating a near field connection request to the intelligent equipment so that the intelligent equipment establishes near field connection with the remote control equipment initiating the near field connection request; acquiring a secret key sent by the intelligent equipment through the near field connection; initiating a long connection establishment request including the key to the smart device.
Of course, the method disclosed in any of the embodiments of the present application can be applied to the processor 110, or implemented by the processor 110.
The connection establishment method provided in the embodiment of the present application will be described below by taking the smart device 11 as an unmanned aerial vehicle and the remote control device 12 as a remote controller as an example.
It should be understood that, for a specific example when the smart device 11 is in another form, and/or a specific example when the remote control device 12 is in another form, reference may be made to the description of the example of the drone and the description of the example of the remote controller, and in order to avoid repetition, details are not repeated.
The following description will be made for a connection establishment method provided in the present application.
Referring to fig. 3, an embodiment of the present application provides a connection establishment method. The steps involved will be described below in conjunction with fig. 3.
Step S110: the intelligent device broadcasts the near field scanning information to the outside.
In this application embodiment, unmanned aerial vehicle and remote controller have saved product identification information in advance respectively when leaving the factory. The product identification information may be basic information such as a product ID and a product serial number set by a manufacturer.
For devices manufactured by the same manufacturer, product identification information of the devices manufactured by the same manufacturer can be identified.
In addition, it is worth pointing out that, in this application embodiment, when unmanned aerial vehicle and remote controller were leaving the factory, the producer need not be deliberately in unmanned aerial vehicle and the configuration of remote controller in secret key of pairing, therefore, the producer need not be with unmanned aerial vehicle and remote controller pair sale.
When the user has the purchase demand, can purchase in unmanned aerial vehicle and the remote controller at least one according to actual conditions. For example, the user may purchase the drone and the remote control at the same time for subsequent pairing. As another example, the user has previously purchased the drone and the remote controller, but the drone is lost or damaged; on the premise that the remote controller is intact, the user can only buy the unmanned aerial vehicle again. For another example, the user has previously purchased the drone and the remote controller, but the remote controller is lost or damaged; on the premise that the unmanned aerial vehicle is intact, the user can only buy the remote controller again.
After the user newly buys unmanned aerial vehicle and/or remote controller, the user can operate unmanned aerial vehicle to make unmanned aerial vehicle get into and pair the mode.
After the unmanned aerial vehicle enters the pairing mode, near field scanning information is broadcasted outwards.
The broadcasting of the near field scanning information is equivalent to that the unmanned aerial vehicle sends a device discovery request to the outside, so that whether identifiable devices exist around is determined, and the identifiable devices are devices which can be used for establishing connection.
In an alternative embodiment, the drone may enter the pairing mode only after checking the reset signal, so as to prevent a user's misoperation from interrupting the connection relationship that has been established. In this embodiment, before the user operates the drone, the reset button disposed on the drone needs to be touched, so as to trigger the reset signal. After triggering the reset signal, the user operates the unmanned aerial vehicle again to make the unmanned aerial vehicle enter into the pairing mode.
Step S120: and when the remote control equipment acquires the scanning information, unicasting feedback information to the intelligent equipment initiating the scanning information.
The user may operate the remote control device to cause the remote control device to enter a pairing mode.
After the remote control equipment enters the pairing mode, if the distance between the remote control equipment and the unmanned aerial vehicle is within the reachable range of the broadcast signal of the unmanned aerial vehicle, then the remote control equipment can acquire the scanning information broadcasted by the unmanned aerial vehicle, therefore, in the embodiment of the application, when the unmanned aerial vehicle and the remote controller are required to be paired, the distance between the unmanned aerial vehicle and the remote controller needs to be controlled within a certain range.
After the remote control equipment acquires the scanning information, the feedback information is sent to the unmanned aerial vehicle, so that the representation of the remote control equipment can be used for establishing connection with the unmanned aerial vehicle.
Of course, similar to the above, the remote control device may enter the pairing mode in response to the user operation after detecting the reset signal. The reset signal may also be triggered by a user activating a reset key provided on the remote control device.
Step S130: and broadcasting the near field verification information to the outside by the intelligent equipment when acquiring the feedback information responding to the near field scanning information.
After the unmanned aerial vehicle acquires the feedback information sent by the remote control equipment, the unmanned aerial vehicle starts to broadcast the near field verification information to the outside.
Wherein the near field authentication information comprises the product identification information described above.
Step S140: and the remote control equipment acquires the near field verification information broadcasted by the intelligent equipment based on the feedback information.
Since the product identification information of the devices manufactured by the same manufacturer can be identified, if the remote control device and the unmanned aerial vehicle are manufactured by the same manufacturer, the remote control device can successfully identify the product identification information included in the near field verification information.
Step S150: and the remote control equipment initiates a near field connection request to the intelligent equipment after successfully identifying the near field verification information.
Step S160: and when acquiring a near field connection request responding to the near field verification information, the intelligent equipment establishes near field connection with the remote control equipment initiating the near field connection request.
When the drone acquires the near field connection request, the drone may establish a near field connection with an initiator (i.e., a remote control device) of the near field connection request.
The near field connection may be a short-distance high-frequency wireless communication technology, and allows contactless point-to-point data transmission and exchange between electronic devices.
In this embodiment, the unmanned aerial vehicle and the remote controller are respectively provided with a data communication component, such as an nfc (near Field communication) component, a WIFI component, a bluetooth component, and the like, so that a near Field connection for communication based on the data communication component can be established between the unmanned aerial vehicle and the remote controller.
Step S170: and the intelligent equipment sends a secret key to the remote control equipment based on the near field connection.
It is worth noting that once the near field connection is established, the near field connected devices can communicate with each other as long as the near field connected devices are within a communicable range (e.g., 30 centimeters) of the near field connection.
After the near field connection is established, the unmanned aerial vehicle can send a secret key for establishing the long connection to the remote controller through the established near field connection.
In some embodiments, the key may be randomly generated by the drone based on a pre-stored random algorithm. In such an embodiment, the keys generated by the drone each time are not the same.
In some embodiments, the key may also be a fixed key that is pre-stored in the drone. In this kind of implementation, have kept a plurality of different keys in advance in unmanned aerial vehicle, unmanned aerial vehicle can select out a key to send to the remote controller from a plurality of keys according to the rule of predetermineeing.
In some embodiments, the data bits of the key may be 256 bits, or 256 more bits.
Step S180: and the remote control equipment acquires the secret key sent by the intelligent equipment through the near field connection.
Step S190: the remote control device initiates a long connection establishment request including the key to the smart device.
In order to avoid data collision, the long connection (i.e., establishing a pairing relationship) between the drone and the remote controller is usually in a one-to-one correspondence relationship.
Therefore, in some optional embodiments, in order to avoid interruption of the established long connection due to mistaken establishment of the long connection, the remote controller may send a long connection establishment request carrying a secret key to the unmanned aerial vehicle that establishes the near field connection on the premise that it is determined that there is no other intelligent device that establishes the long connection with itself, so as to establish the long connection with the unmanned aerial vehicle.
Step S200: and the intelligent equipment establishes long connection with the remote control equipment when acquiring a long connection establishment request which is initiated by the remote control equipment and comprises the secret key.
Similar to step S190, in some optional embodiments, in order to avoid interruption of the established long connection due to mistaken establishment of the long connection, the unmanned aerial vehicle may establish the long connection with the remote controller that initiates the long connection establishment request and carries the key predetermined by itself on the premise that it is determined that there is no other intelligent device that establishes the long connection with itself.
So far, can successfully establish long connection between unmanned aerial vehicle and the remote controller, the remote controller can be controlled unmanned aerial vehicle's action.
In the process of establishing the long connection, the pairing relationship between the devices establishing the long connection is not established in advance in the prior art, even if one device between the two devices establishing the long connection is lost or damaged, a new long connection can be reestablished on the basis of only purchasing the lost or damaged device, and for a user, two new devices do not need to be purchased again, so that the economic loss of the user can be reduced.
Referring to fig. 4, an embodiment of the present application further provides a connection establishment method applied to an intelligent device, including the following steps.
Step S210: broadcasting the near field scanning information to the outside;
step S220: broadcasting the near field verification information to the outside when feedback information responding to the near field scanning information is acquired;
step S230: when a near field connection request responding to the near field verification information is acquired, establishing near field connection with remote control equipment initiating the near field connection request;
step S240: sending a key to the remote control device based on the near field connection;
step S250: and when a long connection establishment request which is initiated by the remote control equipment and comprises the secret key is obtained, establishing long connection with the remote control equipment.
The implementation principle and the generated technical effect of the connection establishment method provided by this embodiment are the same as those of the foregoing method embodiments, and are not described herein again for the sake of brief description.
Referring to fig. 5, an embodiment of the present application further provides a connection establishment method applied to a remote control device, including the following steps.
Step S310: when the scanning information is acquired, unicast feedback information to the intelligent equipment which initiates the scanning information;
step S320: acquiring near-field verification information broadcasted by the intelligent equipment based on the feedback information;
step S330: when the near field verification information is successfully identified, initiating a near field connection request to the intelligent equipment so that the intelligent equipment establishes near field connection with the remote control equipment initiating the near field connection request;
step S340: acquiring a secret key sent by the intelligent equipment through the near field connection;
step S350: initiating a long connection establishment request including the key to the smart device.
The implementation principle and the generated technical effect of the connection establishment method provided by this embodiment are the same as those of the foregoing method embodiments, and are not described herein again for the sake of brief description.
Corresponding to fig. 4, please refer to fig. 6, an embodiment of the present application further provides a connection establishing apparatus 400, which is applied to an intelligent device, and the apparatus includes: a broadcast module 410, a setup module 420, and a transmit module 430.
A broadcasting module 410, configured to broadcast the near field scanning information to the outside;
the broadcasting module 410 is further configured to broadcast the near field verification information to the outside when feedback information responding to the near field scanning information is acquired;
an establishing module 420, configured to establish a near field connection with a remote control device that initiates the near field connection request when a near field connection request that responds to the near field authentication information is acquired;
a sending module 430, configured to send a key to the remote control device based on the near field connection; the establishing module is further configured to establish a long connection with the remote control device when a long connection establishment request including the secret key and initiated by the remote control device is obtained.
Optionally, the apparatus further comprises a determining module configured to determine that a reset signal is detected, where the reset signal is triggered by a user.
Optionally, the sending module 430 is configured to send a randomly generated key or a pre-stored key to the remote control device.
The connection establishing apparatus 400 provided in the embodiment of the present application has the same implementation principle and the same technical effect as those of the foregoing method embodiments, and for the sake of brief description, reference may be made to the corresponding contents in the foregoing method embodiments for parts of the embodiment of the apparatus that are not mentioned.
Corresponding to fig. 5, please refer to fig. 7, an embodiment of the present application further provides a connection establishing apparatus 500, applied to a remote control device, the apparatus including: a sending module 510 and an obtaining module 520.
The sending module is used for unicasting feedback information to the intelligent equipment initiating the scanning information when the scanning information is obtained; the acquisition module is used for acquiring near-field verification information broadcasted by the intelligent equipment based on the feedback information; the sending module is further configured to initiate a near field connection request to the smart device when the near field authentication information is successfully identified, so that the smart device establishes a near field connection with the remote control device that initiated the near field connection request; the obtaining module is further configured to obtain a secret key sent by the smart device through the near field connection; the sending module is further configured to initiate a long connection establishment request including the secret key to the smart device.
In a possible implementation, the apparatus further includes a determination module configured to determine that a reset signal is detected, the reset signal being triggered by a user.
In a possible implementation, the apparatus further includes a determining module configured to determine that there is no other intelligent device that establishes a long connection with itself.
In addition, an embodiment of the present application further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a computer, the steps included in the connection establishment method are executed.
In summary, the connection establishment method, apparatus, electronic device and computer-readable storage medium provided in the embodiments of the present invention are provided. The secret key used for establishing the long connection is interacted between the two devices to establish the long connection through establishing the near field connection, so that the two devices to establish the long connection can acquire the secret key, and the long connection can be established based on the secret key when the long connection is established subsequently. In the process of establishing the long connection, the pairing relationship between the devices establishing the long connection is not established in advance in the prior art, even if one device between the two devices establishing the long connection is lost or damaged, a new long connection can be reestablished on the basis of only purchasing the lost or damaged device, and for a user, two new devices do not need to be purchased again, so that the economic loss of the user can be reduced.
It should be noted that, in the present specification, the embodiments are all described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments may be referred to each other.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method can be implemented in other ways. The apparatus embodiments described above are merely illustrative, and for example, the flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, functional modules in the embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
The functions, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer-readable storage medium. Based on such understanding, the technical solution of the present application or portions thereof that substantially contribute to the prior art may be embodied in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, a notebook computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The above description is only for the specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present application, and shall be covered by the scope of the present application.

Claims (10)

1. A connection establishment method is applied to intelligent equipment, and the method comprises the following steps:
broadcasting the near field scanning information to the outside;
broadcasting the near field verification information to the outside when feedback information responding to the near field scanning information is acquired;
when a near field connection request responding to the near field verification information is acquired, establishing near field connection with remote control equipment initiating the near field connection request;
sending a key to the remote control device based on the near field connection;
and when a long connection establishment request which is initiated by the remote control equipment and comprises the secret key is obtained, establishing long connection with the remote control equipment.
2. The method of claim 1, wherein prior to the broadcasting of near field scanning information out, the method further comprises:
determining that a reset signal is detected, the reset signal being triggered by a user.
3. The method of claim 1, wherein said sending a key to the remote control device comprises:
and sending a randomly generated key or a pre-stored key to the remote control device.
4. A connection establishment method applied to a remote control device, the method comprising:
when the scanning information is acquired, unicast feedback information to the intelligent equipment which initiates the scanning information;
acquiring near-field verification information broadcasted by the intelligent equipment based on the feedback information;
when the near field verification information is successfully identified, initiating a near field connection request to the intelligent equipment so that the intelligent equipment establishes near field connection with the remote control equipment initiating the near field connection request;
acquiring a secret key sent by the intelligent equipment through the near field connection;
initiating a long connection establishment request including the key to the smart device.
5. The method of claim 4, wherein prior to said unicasting feedback information to the smart device that initiated the scanning information, the method further comprises:
determining that a reset signal is detected, the reset signal being triggered by a user.
6. The method of claim 4, wherein prior to the initiating the long connection establishment request comprising the key to the smart device, the method further comprises:
it is determined that there are no other smart devices that establish long connections with themselves.
7. A connection establishing device is applied to intelligent equipment and comprises:
the broadcasting module is used for broadcasting the near field scanning information to the outside;
the broadcast module is further configured to broadcast the near field verification information to the outside when feedback information responding to the near field scanning information is acquired;
the establishing module is used for establishing near field connection with the remote control equipment initiating the near field connection request when the near field connection request responding to the near field verification information is acquired;
a sending module, configured to send a key to the remote control device based on the near field connection;
the establishing module is further configured to establish a long connection with the remote control device when a long connection establishment request including the secret key and initiated by the remote control device is obtained.
8. A connection establishment apparatus, applied to a remote control device, the apparatus comprising:
the sending module is used for unicasting feedback information to the intelligent equipment initiating the scanning information when the scanning information is obtained;
the acquisition module is used for acquiring near-field verification information broadcasted by the intelligent equipment based on the feedback information;
the sending module is further configured to initiate a near field connection request to the smart device when the near field authentication information is successfully identified, so that the smart device establishes a near field connection with the remote control device that initiated the near field connection request;
the obtaining module is further configured to obtain a secret key sent by the smart device through the near field connection;
the sending module is further configured to initiate a long connection establishment request including the secret key to the smart device.
9. An electronic device, comprising: a memory and a processor, the memory and the processor connected;
the memory is used for storing programs;
the processor calls a program stored in the memory to perform the method of any of claims 1-6.
10. A computer-readable storage medium, on which a computer program is stored which, when executed by a computer, performs the method of any one of claims 1-6.
CN202010860204.8A 2020-08-24 2020-08-24 Connection establishing method and device, electronic equipment and computer readable storage medium Pending CN111918265A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010860204.8A CN111918265A (en) 2020-08-24 2020-08-24 Connection establishing method and device, electronic equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010860204.8A CN111918265A (en) 2020-08-24 2020-08-24 Connection establishing method and device, electronic equipment and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN111918265A true CN111918265A (en) 2020-11-10

Family

ID=73279899

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010860204.8A Pending CN111918265A (en) 2020-08-24 2020-08-24 Connection establishing method and device, electronic equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN111918265A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104905820A (en) * 2015-06-09 2015-09-16 深圳市理邦精密仪器股份有限公司 Method and device for transferring data through medical sensor
CN107333225A (en) * 2017-06-20 2017-11-07 腾讯科技(深圳)有限公司 The exchange method and device of wearable electronic
CN108496333A (en) * 2017-03-30 2018-09-04 深圳市大疆创新科技有限公司 Matching method, equipment, machine readable storage medium and system
CN109005532A (en) * 2018-09-11 2018-12-14 北京华大智宝电子系统有限公司 A kind of Bluetooth connecting method, bluetooth master and Bluetooth slave devices
CN110446197A (en) * 2019-08-13 2019-11-12 山东爱德邦智能科技有限公司 A kind of communication control method of smart machine, device, equipment and storage medium
CN110519764A (en) * 2019-09-19 2019-11-29 京东方科技集团股份有限公司 A kind of safe verification method of communication equipment, system, computer equipment and medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104905820A (en) * 2015-06-09 2015-09-16 深圳市理邦精密仪器股份有限公司 Method and device for transferring data through medical sensor
CN108496333A (en) * 2017-03-30 2018-09-04 深圳市大疆创新科技有限公司 Matching method, equipment, machine readable storage medium and system
CN107333225A (en) * 2017-06-20 2017-11-07 腾讯科技(深圳)有限公司 The exchange method and device of wearable electronic
CN109005532A (en) * 2018-09-11 2018-12-14 北京华大智宝电子系统有限公司 A kind of Bluetooth connecting method, bluetooth master and Bluetooth slave devices
CN110446197A (en) * 2019-08-13 2019-11-12 山东爱德邦智能科技有限公司 A kind of communication control method of smart machine, device, equipment and storage medium
CN110519764A (en) * 2019-09-19 2019-11-29 京东方科技集团股份有限公司 A kind of safe verification method of communication equipment, system, computer equipment and medium

Similar Documents

Publication Publication Date Title
CN108370599B (en) Information processing method, computer-readable storage medium, and information processing system
RU2646354C2 (en) Method, device and system for installation of transmission connection
US20140342670A1 (en) Communication method and device
US9706015B2 (en) Multi-operating system input device
EP3247143B1 (en) Registering a device capable of device-to-device communication in server
US20150026580A1 (en) Method and device for communication
US9984226B2 (en) Screen sharing server, method of sharing screen, and program for screen sharing server
KR20160045505A (en) Terminal for internet of things and operation method of the same
US9823989B2 (en) Method and apparatus for connecting to external device
US10560970B2 (en) Information processing apparatus and method and program for controlling information processing apparatus
CN108156537B (en) Remote operation method of mobile terminal and mobile terminal
KR102545375B1 (en) Electronic device for performing authorization using accessory and method for the same
US20150304590A1 (en) Communication device, communication method, communication system, and computer program
US10856144B2 (en) Method, server, and terminal for transmitting and receiving data
US10117099B2 (en) Communication apparatus, method for controlling the same, and program
US10470101B2 (en) Wireless communication system and wireless communication device
CN111918265A (en) Connection establishing method and device, electronic equipment and computer readable storage medium
JP2008085747A (en) Mobile terminal protection apparatus and mobile terminal protection system
CN112073958A (en) Connection establishing method and device, mobile terminal and computer readable storage medium
CN113190295A (en) Information processing method, processing device and electronic equipment
CN115052020B (en) Device interconnection system, method, device and connecting device
JP2018117324A (en) Terminal device and reading control program
US20190014475A1 (en) Electronic Device Connection Method
KR20240021536A (en) Electronic device for managing controlled device and method of operating the same
JP2017169158A (en) Communication apparatus, radio terminal, and program

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
AD01 Patent right deemed abandoned
AD01 Patent right deemed abandoned

Effective date of abandoning: 20231215