CN112654040B - Method, apparatus, processor and non-volatile storage medium for associating devices - Google Patents

Method, apparatus, processor and non-volatile storage medium for associating devices Download PDF

Info

Publication number
CN112654040B
CN112654040B CN202011435801.2A CN202011435801A CN112654040B CN 112654040 B CN112654040 B CN 112654040B CN 202011435801 A CN202011435801 A CN 202011435801A CN 112654040 B CN112654040 B CN 112654040B
Authority
CN
China
Prior art keywords
equipment
state
preset
identification code
detection state
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
CN202011435801.2A
Other languages
Chinese (zh)
Other versions
CN112654040A (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 CN202011435801.2A priority Critical patent/CN112654040B/en
Publication of CN112654040A publication Critical patent/CN112654040A/en
Application granted granted Critical
Publication of CN112654040B publication Critical patent/CN112654040B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • H04L67/125Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks involving control of end-device applications over a network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/02Access restriction performed under specific conditions
    • H04W48/04Access restriction performed under specific conditions based on user or terminal location or mobility data, e.g. moving direction, speed
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/11Allocation or use of connection identifiers

Abstract

The invention discloses a method, a device, a processor and a nonvolatile storage medium for associating equipment. Wherein the method comprises the following steps: acquiring an identification code of equipment to be associated, wherein the identification code is used for uniquely identifying the equipment to be associated; acquiring state information of equipment to be associated according to the identification code; and under the condition that the state information meets the preset condition, associating the identification code of the equipment to be associated with the preset object so as to establish the binding relation between the equipment to be associated and the control equipment corresponding to the preset object. The invention solves the technical problem of complex operation steps of the associated equipment in the related technology.

Description

Method, apparatus, processor and non-volatile storage medium for associating devices
Technical Field
The present invention relates to the field of intelligent control, and in particular, to a method, an apparatus, a processor, and a non-volatile storage medium for associating devices.
Background
With the development of computer technology, people can automatically complete tasks by intelligently controlling equipment in daily life or work. Wherein, people bind the controlled device with the control device (such as a remote controller, a mobile phone and the like), and control the controlled device or manage the information of the controlled device by operating the control device.
In the prior art, when the controlled equipment leaves the factory, the controlled equipment and the control equipment can be bound, in the mode, one control equipment can only be bound with one controlled equipment, and the binding can not be carried out through a client, so that the flexibility is poor.
In this way, the prior art can also generate the temporary two-dimensional code after being networked by the controlled device, and then the controlled device and the control device are bound by the control device in a mode of scanning the two-dimensional code, but in the mode, the controlled device must be provided with a display screen for displaying the temporary two-dimensional code, so that the mode is poor in flexibility, and the production cost of the controlled device is increased.
In addition, in the prior art, after the controlled device is started, the controlled device is controlled to emit a hot spot, after the control device is connected with the hot spot, connection is established with the controlled device, and then Wi-Fi, SSID (Service Set Identifier ) and a password which are available nearby are input on a display interface of the control device, so that the controlled device is connected with the Internet and binding is completed, and the operation steps of the mode are complicated.
Therefore, the prior art has the problems of poor flexibility and complex operation steps in the process of associating equipment.
In view of the above problems, no effective solution has been proposed at present.
Disclosure of Invention
The embodiment of the invention provides a method, a device, a processor and a nonvolatile storage medium for associating equipment, which at least solve the technical problem of complex operation steps of the associated equipment in the related technology.
According to an aspect of an embodiment of the present invention, there is provided a method of associating devices, including: acquiring an identification code of equipment to be associated, wherein the identification code is used for uniquely identifying the equipment to be associated; acquiring state information of equipment to be associated according to the identification code; and under the condition that the state information meets the preset condition, associating the identification code of the equipment to be associated with the preset object so as to establish the binding relation between the equipment to be associated and the preset object.
Further, the method of associating the device further comprises: after acquiring the state information of the equipment to be associated according to the identification code, detecting whether the distance between the equipment to be associated and the control equipment corresponding to the preset object is smaller than a preset threshold value; under the condition that the distance is smaller than a preset threshold value, determining that the state information meets a preset condition; and under the condition that the distance is greater than or equal to a preset threshold value, determining that the state information does not meet the preset condition.
Further, the method of associating the device further comprises: determining a first distance between the equipment to be associated and the control equipment according to the position information of the equipment to be associated and the control equipment, and determining whether the first distance is smaller than a preset threshold value; and/or detecting whether the control device detects a preset signal, wherein the distance is determined to be smaller than a preset threshold value under the condition that the control device detects the preset signal; and/or detecting whether the equipment to be associated recognizes a preset graphic code generated by the control equipment, wherein the distance is determined to be smaller than a preset threshold value under the condition that the equipment to be associated recognizes the preset graphic code; and/or detecting whether the control equipment receives the sound information output by the equipment to be associated, wherein the distance is determined to be smaller than a preset threshold value under the condition that the control equipment receives the sound information.
Further, the method of associating the device further comprises: after the state information of the equipment to be associated is acquired according to the identification code, whether the control equipment corresponding to the preset object acquires the preset information displayed on the display screen of the equipment to be associated is detected, wherein the state information is determined to meet the preset condition under the condition that the control equipment acquires the preset information.
Further, the method of associating the device further comprises: when the distance is smaller than a preset threshold value and the equipment to be associated is in a starting-up state, determining that the state information meets a preset condition; and determining that the state information does not meet the preset condition under the condition that the distance is greater than or equal to a preset threshold value and/or the equipment to be associated is in a shutdown state.
Further, the method of associating the device further comprises: when the control equipment acquires preset information and the equipment to be associated is in a starting-up state, determining that the state information meets preset conditions; and under the condition that the control equipment does not acquire the preset information and/or the equipment to be associated is in a shutdown state, determining that the state information does not meet the preset condition.
Further, the method of associating the device further comprises: after the identification code of the equipment to be associated is associated with the preset object, receiving a sharing control instruction; determining an object to be shared according to the sharing control instruction; and sending the identification code of the equipment to be associated to the object to be shared so as to control the control equipment corresponding to the object to be shared.
Further, the method of associating the device further comprises: after the identification code of the equipment to be associated is sent to the object to be shared, response information returned by the object to be shared is received, wherein the response information characterizes that the object to be shared and the identification code of the equipment to be associated are in an associated state; and determining the rights to be shared from the management rights of the devices to be associated, and sending the rights to be shared to the objects to be shared.
According to another aspect of the embodiment of the present invention, there is also provided an apparatus for associating devices, including: the first acquisition module is used for acquiring an identification code of the equipment to be associated, wherein the identification code is used for uniquely identifying the equipment to be associated; the second acquisition module is used for acquiring the state information of the equipment to be associated according to the identification code; and the association module is used for associating the identification code of the equipment to be associated with the preset object under the condition that the state information meets the preset condition so as to establish the binding relationship between the equipment to be associated and the preset object.
According to another aspect of embodiments of the present invention, there is also provided a non-volatile storage medium having a computer program stored therein, wherein the computer program is arranged to perform the method of associating devices as described above when run.
According to another aspect of an embodiment of the present invention, there is also provided a processor for running a program, where the program is configured to perform the method of associating devices described above when run.
In the embodiment of the invention, a mode of binding equipment based on the equipment identification code is adopted, after the equipment identification code of the equipment to be associated is obtained, the state information of the equipment to be associated is obtained through the identification code, and then the binding relation between the equipment to be associated and the preset object is established under the condition that the state information meets the preset condition, wherein the identification code is used for uniquely identifying the equipment to be associated.
In the above process, the identification code is the unique identification of the equipment to be associated, so in the application, the identification code of the equipment to be associated is a fixed identification code, and thus the problem of complex operation caused by the need of the equipment to be associated to output a temporary identification code when the equipment to be associated is associated can be avoided. In addition, in the application, the identification code of the equipment to be associated is a fixed identification code, so that the equipment to be associated without a display screen can be bound with the control equipment, and the production cost of the equipment to be associated is reduced. In addition, in the application, the device to be associated and the preset object are bound only when the state information of the device to be associated meets the preset condition, so that after the identification code of the device to be associated is prevented from being broken by an illegal user, the device to be associated and the preset object corresponding to the illegal user are bound. Finally, in the process of binding the equipment to be associated with the control equipment, the operation is only needed according to the prompt information corresponding to the state of the equipment to be associated, and the operation steps are simple.
Therefore, the scheme provided by the application achieves the purpose of binding the equipment to be associated with the control equipment, so that the technical effect of simplifying the operation steps of binding the equipment to be associated with the control equipment is achieved, and the technical problem that the operation steps of the associated equipment in the related technology are complex is solved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiments of the invention and together with the description serve to explain the invention and do not constitute a limitation on the invention. In the drawings:
FIG. 1 is a flow chart of a method of associating devices according to an embodiment of the invention;
FIG. 2 is a schematic diagram of an alternative device addition interface according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of an alternative device addition interface according to an embodiment of the present invention;
FIG. 4 is an interface schematic of an alternative opening device according to an embodiment of the present invention;
FIG. 5 is a schematic illustration of an interface of an alternative undetected device according to an embodiment of the present invention;
FIG. 6 is an interface schematic of an alternative device addition success in accordance with an embodiment of the invention;
FIG. 7 is a schematic diagram of an alternative setup device information according to an embodiment of the invention;
fig. 8 is an apparatus schematic diagram of an association device according to an embodiment of the present invention.
Detailed Description
In order that those skilled in the art will better understand the present invention, a technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present invention without making any inventive effort, shall fall within the scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present invention and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the invention described herein may be implemented in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Example 1
According to an embodiment of the present invention, there is provided a method embodiment of an associated device, it being noted that the steps shown in the flowchart of the figures may be performed in a computer system, such as a set of computer executable instructions, and that, although a logical order is shown in the flowchart, in some cases, the steps shown or described may be performed in an order other than that shown or described herein.
Fig. 1 is a flowchart of a method of associating devices according to an embodiment of the present invention, as shown in fig. 1, the method including the steps of:
step S102, an identification code of the equipment to be associated is obtained, wherein the identification code is used for carrying out unique identification on the equipment to be associated.
In step S102, the device to be associated may be an unmanned device, such as an unmanned plane, an unmanned vehicle, an unmanned ship, or the like, or may be a device having the same hardware configuration as the unmanned device. For convenience of description, the following description will be given by taking the device to be associated as an unmanned aerial vehicle as an example. In addition, the identification code includes at least one of: the system comprises a graphic code and a serial number, wherein the graphic code and/or the serial number are/is arranged at a preset position of equipment to be associated and/or on third party equipment. Alternatively, the graphic code may be, but not limited to, a two-dimensional code, a bar code, etc., and the serial number may be a digital sequence, or a sequence formed by combining numbers and letters, which is not specifically limited in this application.
In addition, in the present application, the identification code may be fixedly printed on the device to be associated, for example, on a nameplate of the unmanned aerial vehicle body. In addition, the identification code may be provided on a third party device, for example, the identification code may be displayed on a computer, and the user may scan the identification code through a control device (e.g., a mobile phone) or input the identification code into the control device, so that the control device obtains relevant information of the device to be associated.
In an alternative embodiment, the user queries the two-dimensional code web page of the purchased unmanned aerial vehicle (i.e. the device to be associated), at this time, the user may scan the two-dimensional code on the two-dimensional code web site through the mobile phone client to obtain the relevant information of the unmanned aerial vehicle, for example, the user scans the two-dimensional code through the display interface of the mobile phone client shown in fig. 2.
In addition, the user may also input the serial number to the control device, for example, after the user clicks the "add by serial number" button in fig. 2, the mobile phone client displays the interface through the serial number adding device shown in fig. 3, in which the user may input the serial number into the mobile phone through the virtual keyboard. Optionally, the serial number can be arranged on a nameplate of the unmanned aerial vehicle body, and can be displayed below a two-dimensional code pattern on a two-dimensional code website.
Step S104, the state information of the equipment to be associated is obtained according to the identification code.
In step S104, the status information of the device to be associated includes at least: the on-off state and the detection state, wherein the on-off state comprises: the power-on state and the power-off state, and the detection state comprises: the device comprises a first detection state and a second detection state, wherein the first detection state indicates that the device to be associated is detected, and the second detection state indicates that the device to be associated is not detected.
In an alternative embodiment, after obtaining the identification code, the control device may obtain the state information of the device to be associated corresponding to the identification code from the server, and when determining that the device to be associated is in a shutdown state according to the state information, the display interface of the client in the control device pops up the interface of the opening device shown in fig. 4, and after the user inputs the serial number of the device to be associated and clicks the opening button, the device to be associated will be automatically opened. In addition, when the device to be associated is determined to be in the second detection state according to the state information, for example, when the device to be associated is not detected, the display interface of the client in the control device pops up the interface of the device not detected shown in fig. 5.
Step S106, under the condition that the state information meets the preset condition, the identification code of the equipment to be associated is associated with the preset object so as to establish the binding relation between the equipment to be associated and the preset object.
In step S106, the preset object may be, but is not limited to, an account, and the device to be associated may be bound to the account in step S106, so that the user may manage the associated device under the account by using his own account, for example, share the associated device with other users, etc. After the device to be associated is bound with the preset object, an interface of successful device addition shown in fig. 6 is displayed in a display interface of the client of the control device.
In some embodiments, the control device corresponding to the preset object may be a remote control device with a display screen, or a mobile terminal (such as a smart phone or a smart computer), and the control device may operate the client to manage a device under the account name of the preset object.
Further, after the device to be associated is bound to the account, the user having the account can view and/or set the device information of the associated device through the client, as shown in the schematic diagram of setting the device information in fig. 7.
Based on the scheme defined in the steps S102 to S106, it can be known that, in the embodiment of the present invention, a device binding manner is performed based on the identifier code of the device, after the identifier code of the device to be associated is obtained, the state information of the device to be associated is obtained through the identifier code, and then, if the state information meets the preset condition, a binding relationship between the device to be associated and the preset object is established, where the identifier code is used for uniquely identifying the device to be associated.
It is easy to note that in the above process, the identification code is the unique identification of the device to be associated, so in the present application, the identification code of the device to be associated is a fixed identification code, so that the problem of complex operation caused by the need of the device to be associated to output a temporary identification code when the device to be associated is associated can be avoided. In addition, in the application, the identification code of the equipment to be associated is a fixed identification code, so that the equipment to be associated without a display screen can be bound with the control equipment, and the production cost of the equipment to be associated is reduced. In addition, in the application, the device to be associated and the preset object are bound only when the state information of the device to be associated meets the preset condition, so that after the identification code of the device to be associated is prevented from being broken by an illegal user, the device to be associated and the preset object corresponding to the illegal user are bound. Finally, in the process of binding the equipment to be associated with the control equipment, the operation is only needed according to the prompt information corresponding to the state of the equipment to be associated, and the operation steps are simple.
Therefore, the scheme provided by the application achieves the purpose of binding the equipment to be associated with the control equipment, so that the technical effect of simplifying the operation steps of binding the equipment to be associated with the control equipment is achieved, and the technical problem that the operation steps of the associated equipment in the related technology are complex is solved.
In an alternative embodiment, after the state information of the device to be associated is acquired, whether the state information of the device to be associated meets the preset condition may be determined according to the distance between the device to be associated and the control device corresponding to the preset object.
Specifically, whether the distance between the equipment to be associated and the control equipment corresponding to the preset object is smaller than a preset threshold value or not is detected; under the condition that the distance is smaller than a preset threshold value, determining that the state information meets a preset condition; and under the condition that the distance is greater than or equal to a preset threshold value, determining that the state information does not meet the preset condition.
In an alternative embodiment, it may be determined whether the distance between the device to be associated and the control device is less than a preset threshold by any one or more of:
mode one: and determining a first distance between the equipment to be associated and the control equipment according to the position information of the equipment to be associated and the control equipment, and determining whether the first distance is smaller than a preset threshold value. And determining that the distance between the equipment to be associated and the control equipment is smaller than a preset threshold value under the condition that the distance between the equipment to be associated and the control equipment corresponding to the preset object is in a preset range. For example, if the distance between the unmanned aerial vehicle and the mobile phone exceeds a preset threshold (i.e., the first distance), it is determined that the mobile phone does not detect the unmanned aerial vehicle, at this time, the mobile phone client displays the interface shown in fig. 5, and if the distance between the unmanned aerial vehicle and the mobile phone is within the preset threshold, it is determined that the mobile phone detects the unmanned aerial vehicle. For another example, the unmanned aerial vehicle is provided with a radar sensor, a user is prompted on a display interface of the mobile phone client to place a palm at the 10cm position of the unmanned aerial vehicle head, and if the unmanned aerial vehicle is provided with the palm of the user sensed by the radar sensor, the mobile phone is determined to detect the unmanned aerial vehicle. For another example, the mobile phone has NFC (Near Field Communication ) function, and when the mobile phone approaches the drone, if the mobile phone can recognize correct NFC information, it is determined that the mobile phone detects the drone.
Mode two: and detecting whether the control device detects a preset signal, wherein when the control device detects the preset signal, the distance is determined to be smaller than a preset threshold value, and at the moment, the control device is determined to detect the device to be associated. Wherein the preset signal at least comprises one of the following: bluetooth signal, WIFI signal. For example, the unmanned aerial vehicle sends out a bluetooth signal using a special wireless protocol, and if the mobile phone searches for the bluetooth signal, it can be determined that the distance between the mobile phone and the unmanned aerial vehicle is smaller than a preset threshold, and the mobile phone can detect the unmanned aerial vehicle, that is, the control device detects the device to be associated. For another example, the unmanned aerial vehicle sends out a WIFI signal using a special wireless protocol, if the mobile phone searches for the WIFI signal, it can be determined that the distance between the mobile phone and the unmanned aerial vehicle is smaller than a preset threshold, and the mobile phone can detect the unmanned aerial vehicle, that is, the control device can detect the device to be associated.
Mode three: and detecting whether the equipment to be associated recognizes a preset graphic code generated by the control equipment, wherein the distance is determined to be smaller than a preset threshold value under the condition that the equipment to be associated recognizes the preset graphic code. For example, a camera is arranged on the unmanned aerial vehicle, the mobile phone client generates a temporary two-dimensional code (namely, the preset graphic code), and if the unmanned aerial vehicle can identify the temporary two-dimensional code generated by the mobile phone client, the distance between the unmanned aerial vehicle and the mobile phone is determined to be smaller than a preset threshold value, and the mobile phone can detect the unmanned aerial vehicle.
Mode four: detecting whether the control equipment receives sound information output by the equipment to be associated, wherein the distance is determined to be smaller than a preset threshold value under the condition that the control equipment receives the sound information. For example, the sound output device of the unmanned aerial vehicle continuously plays a piece of voice content, the voice content may include characters and/or numbers, and the user inputs the characters and/or numbers into the client of the mobile phone, and then determines that the distance between the mobile phone and the unmanned aerial vehicle is smaller than a preset threshold, and the mobile phone can detect the unmanned aerial vehicle.
It should be noted that, when any one of the conditions is not satisfied between the device to be associated and the control device, it is determined that the control device cannot detect the device to be associated. And generating second prompt information under the condition that the control equipment cannot detect the equipment to be associated, wherein the second prompt information is used for prompting that the equipment to be associated is not detected, for example, a display interface of the equipment which is not detected is shown in fig. 5.
In addition, the distance between the control equipment and the equipment to be associated and the on-off state of the equipment to be associated can be combined to determine whether the state information of the equipment to be associated meets the preset condition, namely, if the distance is smaller than the preset threshold value and the equipment to be associated is in the on-state, the state information is determined to meet the preset condition; and determining that the state information does not meet the preset condition under the condition that the distance is greater than or equal to a preset threshold value and/or the equipment to be associated is in a shutdown state. For example, for the second mode, only when the device to be associated is in the on state and the control device can receive the preset signal sent by the device to be associated, it is determined that the state information of the device to be associated meets the preset condition, and if not, it is determined that the state information of the device to be associated does not meet the preset condition.
In another optional embodiment, after the state information of the device to be associated is acquired according to the identification code, whether the control device corresponding to the preset object acquires the preset information displayed on the display screen of the device to be associated or not may also be detected, where it is determined that the state information meets the preset condition when the control device acquires the preset information. For example, if the mobile phone has a dot matrix screen, and the temporary generated number or text can be displayed, and the user inputs the temporary generated number or text into the client of the mobile phone, it is determined that the state information of the unmanned aerial vehicle meets the preset condition, and the mobile phone can detect the unmanned aerial vehicle.
Similarly, whether the state information of the equipment to be associated meets the preset condition can be determined by combining whether the control equipment acquires the preset information and the on-off state of the equipment to be associated, namely, the control equipment acquires the preset information, and the state information is determined to meet the preset condition under the condition that the equipment to be associated is in the on-state; and under the condition that the control equipment does not acquire the preset information and/or the equipment to be associated is in a shutdown state, determining that the state information does not meet the preset condition. For example, only when the device to be associated is in a power-on state and the device to be associated can acquire data or characters displayed on a display screen of the control device, determining that the state information of the device to be associated meets the preset condition, and if not, determining that the state information of the device to be associated does not meet the preset condition.
In another alternative embodiment, if the device to be associated is in a power-off state, the display interface of the client of the control device pops up a schematic diagram of the opening device to remind the user to open the device to be associated, as shown in fig. 4. If the device to be associated is in a starting state, further detecting whether the distance between the device to be associated and the control device is smaller than a preset threshold value, or detecting whether the control device corresponding to the preset object acquires preset information displayed on a display screen of the device to be associated, if the distance between the device to be associated and the control device is smaller than the preset threshold value, or detecting that the control device corresponding to the preset object can acquire the preset information displayed on the display screen of the device to be associated, and if the device to be associated is not bound with other preset objects, the control device binds the device to be associated with the preset object (for example, an account number), and popping up a device adding successful interface shown in fig. 6 after the binding is successful.
In an alternative embodiment, after associating the identification code of the device to be associated with the preset object, the user may manage the device to be associated through the control device corresponding to the preset object.
Optionally, the control device receives the sharing control instruction, determines the object to be shared according to the sharing control instruction, and then sends the identification code of the device to be associated to the object to be shared, so that the control device corresponding to the object to be shared controls the device to be associated. After the identification code of the equipment to be associated is sent to the object to be shared, response information returned by the object to be shared is received, the right to be shared is determined from the management right of the equipment to be associated, and the right to be shared is sent to the object to be shared. The response information characterizes that the object to be shared and the identification code of the equipment to be associated are in an associated state.
For example, the current mobile phone sends the identification code of the unmanned aerial vehicle to the target mobile phone corresponding to the other account, and the target mobile phone can correlate the unmanned aerial vehicle with the account corresponding to the target mobile phone. After the association, the target mobile phone sends a response message to the current mobile phone to inform the current mobile phone that the target mobile phone is associated with the unmanned aerial vehicle. At this time, the current mobile phone can share part or all of the rights in the management rights of the mobile phone to the target mobile phone, so that the target mobile phone can control the unmanned aerial vehicle in the rights of the mobile phone.
According to the scheme provided by the application, the user can intuitively and simply add the equipment, and compared with the prior art, the method and the device simplify the step of equipment association and improve the user experience.
Example 2
According to an embodiment of the present invention, there is further provided an apparatus embodiment of an association device, where fig. 8 is a schematic diagram of an apparatus of an association device according to an embodiment of the present invention, as shown in fig. 8, and the apparatus includes: a first acquisition module 901, a second acquisition module 903, and an association module 905.
The first obtaining module 901 is configured to obtain an identification code of a device to be associated, where the identification code is used to uniquely identify the device to be associated; a second obtaining module 903, configured to obtain status information of a device to be associated according to the identifier; and the association module 905 is configured to associate the identification code of the device to be associated with the preset object to establish a binding relationship between the device to be associated and the preset object when the state information meets the preset condition.
It should be noted that the first acquiring module 901, the second acquiring module 903, and the associating module 905 correspond to steps S102 to S106 in the above embodiment, and the three modules are the same as examples and application scenarios implemented by the corresponding steps, but are not limited to those disclosed in the above embodiment 1.
Optionally, the apparatus for associating devices further includes: the device comprises a first detection module, a first determination module and a second determination module. The first detection module is used for detecting whether the distance between the equipment to be associated and the control equipment corresponding to the preset object is smaller than a preset threshold value or not after the state information of the equipment to be associated is acquired according to the identification code; the first determining module is used for determining that the state information meets the preset condition under the condition that the distance is smaller than a preset threshold value; and the second determining module is used for determining that the state information does not meet the preset condition under the condition that the distance is larger than or equal to the preset threshold value.
Optionally, the first detection module includes: the device comprises a third determining module, a second detecting module, a third detecting module and a fourth detecting module. The third determining module is used for determining a first distance between the equipment to be associated and the control equipment according to the position information of the equipment to be associated and the control equipment, and determining whether the first distance is smaller than a preset threshold value or not; and/or a second detection module, configured to detect whether the control device detects a preset signal, where, when the control device detects the preset signal, it is determined that the distance is smaller than a preset threshold; and/or a third detection module, configured to detect whether the device to be associated identifies a preset graphic code generated by the control device, where, when the device to be associated identifies the preset graphic code, the distance is determined to be smaller than a preset threshold value; and/or a fourth detection module, configured to detect whether the control device receives the sound information output by the device to be associated, where, in a case that the control device receives the sound information, it is determined that the distance is smaller than a preset threshold.
Optionally, the apparatus for associating devices further includes: and the fifth detection module is used for detecting whether the control equipment corresponding to the preset object acquires the preset information displayed on the display screen of the equipment to be associated after acquiring the state information of the equipment to be associated according to the identification code, wherein the state information is determined to meet the preset condition under the condition that the control equipment acquires the preset information.
Optionally, the apparatus for associating devices further includes: and a fourth determination module and a fifth determination module. The fourth determining module is used for determining that the state information meets the preset condition when the distance is smaller than a preset threshold value and the equipment to be associated is in a starting state; and the fifth determining module is used for determining that the state information does not meet the preset condition under the condition that the distance is larger than or equal to a preset threshold value and/or the equipment to be associated is in a shutdown state.
Optionally, the apparatus for associating devices further includes: a sixth determination module and a seventh determination module. The sixth determining module is used for determining that the state information meets the preset condition when the control equipment acquires the preset information and the equipment to be associated is in a starting state; and the seventh determining module is used for determining that the state information does not meet the preset condition under the condition that the control equipment does not acquire the preset information and/or the equipment to be associated is in the shutdown state.
Optionally, the apparatus for associating devices further includes: the device comprises a first receiving module, an eighth determining module and a sending module. The first receiving module is used for receiving a sharing control instruction after the identification code of the equipment to be associated is associated with the preset object; the eighth determining module is used for determining an object to be shared according to the sharing control instruction; and the sending module is used for sending the identification code of the equipment to be associated to the object to be shared so as to control the control equipment corresponding to the object to be shared to the equipment to be associated.
Optionally, the apparatus for associating devices further includes: the second receiving module and the ninth determining module. The second receiving module is used for receiving response information returned by the object to be shared after sending the identification code of the device to be associated to the object to be shared, wherein the response information represents that the object to be shared and the identification code of the device to be associated are in an association state; and the ninth determining module is used for determining the rights to be shared from the management rights of the devices to be associated and sending the rights to be shared to the objects to be shared.
Example 3
According to another aspect of the embodiments of the present invention, there is also provided a non-volatile storage medium in which a computer program is stored, wherein the computer program is configured to perform the method of the associated device in embodiment 1 described above when run.
Example 4
According to another aspect of the embodiments of the present invention, there is also provided a processor for running a program, wherein the program is configured to execute the method of the associated device in embodiment 1 described above at run-time.
The foregoing embodiment numbers of the present invention are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
In the foregoing embodiments of the present invention, the descriptions of the embodiments are emphasized, and for a portion of this disclosure that is not described in detail in this embodiment, reference is made to the related descriptions of other embodiments.
In the several embodiments provided in the present application, it should be understood that the disclosed technology content may be implemented in other manners. The above-described embodiments of the apparatus are merely exemplary, and the division of the units, for example, may be a logic function division, and may be implemented in another manner, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be through some interfaces, units or modules, or may be in electrical or other forms.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present invention may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied essentially or in part or all of the technical solution or in part in the form of a software product stored in a storage medium, including instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a removable hard disk, a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The foregoing is merely a preferred embodiment of the present invention and it should be noted that modifications and adaptations to those skilled in the art may be made without departing from the principles of the present invention, which are intended to be comprehended within the scope of the present invention.

Claims (8)

1. A method of associating devices, comprising:
acquiring an identification code of equipment to be associated, wherein the identification code is used for carrying out unique identification on the equipment to be associated, and is arranged at a preset position of the equipment to be associated and/or on third party equipment;
acquiring state information of the equipment to be associated according to the identification code; the status information includes: a switching on/off state and a detection state; the detection state is determined by the distance between the equipment to be associated and the control equipment corresponding to the preset object, and comprises a first detection state and a second detection state, wherein the first detection state indicates that the equipment to be associated is detected, and the second detection state indicates that the equipment to be associated is not detected; responding to the state information to be the shutdown state information, and controlling the equipment to be associated to be started according to the identification code;
determining whether the on-off state is a starting state or not and whether the detection state is a first detection state or not according to the state information, and controlling the equipment to be associated to start up through the control equipment based on the identification code when the on-off state is determined to be a closing state; and under the condition that the on-off state is determined to be the starting state and the detection state is determined to be the first detection state, the identification code of the equipment to be associated is associated with the preset object so as to establish a binding relation between the equipment to be associated and the preset object.
2. The method of claim 1, wherein after obtaining the status information of the device to be associated from the identification code, the method further comprises:
detecting whether the distance between the equipment to be associated and the control equipment is smaller than a preset threshold value or not;
determining that the detection state is the first detection state under the condition that the distance is smaller than the preset threshold value;
and under the condition that the distance is greater than or equal to the preset threshold value, determining the detection state as the second detection state.
3. The method according to claim 2, wherein detecting whether a distance between the device to be associated and the control device corresponding to the preset object is smaller than a preset threshold value comprises:
determining a first distance between the equipment to be associated and the control equipment according to the position information of the equipment to be associated and the control equipment, and determining whether the first distance is smaller than the preset threshold value; and/or the number of the groups of groups,
detecting whether the control device detects a preset signal, wherein the distance is determined to be smaller than the preset threshold value under the condition that the control device detects the preset signal; and/or the number of the groups of groups,
detecting whether the equipment to be associated recognizes a preset graphic code generated by the control equipment, wherein the distance is determined to be smaller than the preset threshold value under the condition that the equipment to be associated recognizes the preset graphic code; and/or the number of the groups of groups,
and detecting whether the control equipment receives the sound information output by the equipment to be associated, wherein the distance is determined to be smaller than the preset threshold value under the condition that the control equipment receives the sound information.
4. The method of claim 1, wherein after obtaining the status information of the device to be associated from the identification code, the method further comprises:
and detecting whether the control equipment acquires preset information displayed on a display screen of the equipment to be associated, wherein the detection state is determined to be the second detection state under the condition that the control equipment acquires the preset information.
5. The method of claim 1, wherein after associating the identification code of the device to be associated with a preset object, the method further comprises:
receiving a sharing control instruction;
determining an object to be shared according to the sharing control instruction;
and sending the identification code of the equipment to be associated to the object to be shared so that the control equipment corresponding to the object to be shared controls the equipment to be associated.
6. The method of claim 5, wherein after sending the identification code of the device to be associated to the object to be shared, the method further comprises:
receiving response information returned by the object to be shared, wherein the response information characterizes that the object to be shared and the identification code of the equipment to be associated are in an associated state;
and determining rights to be shared from the management rights of the devices to be associated, and sending the rights to be shared to the objects to be shared.
7. An apparatus for associating devices, comprising:
the first acquisition module is used for acquiring an identification code of equipment to be associated, wherein the identification code is used for uniquely identifying the equipment to be associated, and is arranged at a preset position of the equipment to be associated and/or on third party equipment;
the second acquisition module is used for acquiring the state information of the equipment to be associated according to the identification code; the status information includes: a switching on/off state and a detection state; the detection state is determined by the distance between the equipment to be associated and the control equipment corresponding to the preset object, and comprises a first detection state and a second detection state, wherein the first detection state indicates that the equipment to be associated is detected, and the second detection state indicates that the equipment to be associated is not detected;
the association module is used for determining whether the on-off state is an on-state or not and whether the detection state is a first detection state or not according to the state information, and controlling the equipment to be associated to be on through the control equipment based on the identification code when the on-off state is determined to be an off-state; and under the condition that the on-off state is determined to be the starting state and the detection state is determined to be the first detection state, the identification code of the equipment to be associated is associated with a preset object so as to establish a binding relation between the equipment to be associated and the preset object.
8. A non-volatile storage medium, characterized in that a computer program is stored in the non-volatile storage medium, wherein the computer program is arranged to perform the method of the associated device of any of claims 1 to 6 when run.
CN202011435801.2A 2020-12-10 2020-12-10 Method, apparatus, processor and non-volatile storage medium for associating devices Active CN112654040B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011435801.2A CN112654040B (en) 2020-12-10 2020-12-10 Method, apparatus, processor and non-volatile storage medium for associating devices

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011435801.2A CN112654040B (en) 2020-12-10 2020-12-10 Method, apparatus, processor and non-volatile storage medium for associating devices

Publications (2)

Publication Number Publication Date
CN112654040A CN112654040A (en) 2021-04-13
CN112654040B true CN112654040B (en) 2023-07-21

Family

ID=75350671

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011435801.2A Active CN112654040B (en) 2020-12-10 2020-12-10 Method, apparatus, processor and non-volatile storage medium for associating devices

Country Status (1)

Country Link
CN (1) CN112654040B (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104902435A (en) * 2015-04-21 2015-09-09 北京云迹科技有限公司 Mobile terminal, and mobile terminal and Bluetooth wristband binding method and device

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108810813B (en) * 2017-05-02 2020-12-11 中国移动通信有限公司研究院 Method, position server and system for monitoring goods in logistics process
CN107370645B (en) * 2017-07-18 2020-04-21 广东美的制冷设备有限公司 Smart bracelet, air conditioner, smart bracelet and air conditioner binding method and system
CN108198336B (en) * 2017-12-27 2020-11-10 深圳友朋智能商业科技有限公司 Automatic vending equipment association method, device and system
CN108735217B (en) * 2018-06-19 2020-12-01 Oppo广东移动通信有限公司 Electronic device control method, electronic device control device, storage medium and electronic device
CN109068265A (en) * 2018-07-16 2018-12-21 武汉小安科技有限公司 Quickly method, system, server and the storage medium of binding account and vehicle
CN110830966B (en) * 2019-10-31 2023-08-11 青岛海信移动通信技术有限公司 Binding method of Internet of things equipment and Internet of things system

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104902435A (en) * 2015-04-21 2015-09-09 北京云迹科技有限公司 Mobile terminal, and mobile terminal and Bluetooth wristband binding method and device

Also Published As

Publication number Publication date
CN112654040A (en) 2021-04-13

Similar Documents

Publication Publication Date Title
US10931664B2 (en) Establishing access to a secure network based on user-created credential indicia
JP6259091B2 (en) Intelligent device control method, terminal and server
CN106413124B (en) Equipment binding method and device
CN108462619B (en) Method, device and storage medium for controlling household appliances through instant messaging software
EP3193518B1 (en) Wireless communication terminal, wireless communication system, and wireless communication program
RU2637466C2 (en) Method, device and system for obtaining access to network
CN104520866B (en) Method for secret protection and terminal device
CN105744352B (en) Wireless network connection method of television and television
CN110868748A (en) Intelligent equipment network access method, device, equipment, system and medium
EP2704517A1 (en) Mobile terminal application parameter configuration method, related device and system
CN112423238A (en) Electronic device, control terminal, storage medium, and device connection method
US10652427B2 (en) Non-transitory computer-readable recording medium storing computer-readable instructions for terminal device, and terminal device
CN114270781A (en) Device access method, device, system control method, electronic device and storage medium
US10143033B2 (en) Communications apparatus, control method, and storage medium
CN113064683A (en) Electric control equipment control interface display method and system, terminal and electric control equipment
CN104965452A (en) Intelligent socket on-off state display method, device, intelligent terminal and server
CN111970676A (en) WiFi hotspot access method, device, equipment and storage medium
CN114253145A (en) Control method and control device for household appliance and household appliance control system
CN105634882B (en) Network access equipment sharing method, device and system
CN112654040B (en) Method, apparatus, processor and non-volatile storage medium for associating devices
WO2024002300A1 (en) Method and apparatus for device to access wireless network, and storage medium
CN112333062A (en) Control method and control device for household equipment and computer readable storage medium
CN106886159B (en) Configuration method and device of household appliance
US9906657B2 (en) Terminal apparatus to operate an image processing apparatus, and image processing control system
CN110891265B (en) Wireless connection control method and device, mobile terminal and storage medium

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

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.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant