CN115996387B - Device binding method, device and storage medium - Google Patents

Device binding method, device and storage medium Download PDF

Info

Publication number
CN115996387B
CN115996387B CN202310290797.2A CN202310290797A CN115996387B CN 115996387 B CN115996387 B CN 115996387B CN 202310290797 A CN202310290797 A CN 202310290797A CN 115996387 B CN115996387 B CN 115996387B
Authority
CN
China
Prior art keywords
gateway
target binding
information
bound
binding object
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
CN202310290797.2A
Other languages
Chinese (zh)
Other versions
CN115996387A (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.)
Guangdong Hotata Smart Home Co Ltd
Original Assignee
Guangdong Hotata Smart Home 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 Guangdong Hotata Smart Home Co Ltd filed Critical Guangdong Hotata Smart Home Co Ltd
Priority to CN202310290797.2A priority Critical patent/CN115996387B/en
Publication of CN115996387A publication Critical patent/CN115996387A/en
Application granted granted Critical
Publication of CN115996387B publication Critical patent/CN115996387B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The application provides a device binding method, device, equipment and storage medium, and relates to the technical field of wireless communication. The method comprises the following steps: positioning information between at least one gateway and at least one object to be bound is obtained, and a target binding object is identified according to the positioning information; and determining the corresponding relation between the gateway and the target binding object according to the identified target binding object and the signal strength between the gateway and the identified target binding object, and binding the gateway and the target binding object in batches based on the corresponding relation. Therefore, the target binding object can be automatically identified through the positioning information of the object to be bound, the corresponding relation between the gateway and the target binding object is obtained by utilizing the obtained identification result and the signal strength so as to bind the gateway and the target binding object, the target binding object can be effectively identified and fast bound with a proper gateway, the information communication effect is improved, the data transmission is fast, and the effective binding of the gateway and the equipment is realized.

Description

Device binding method, device and storage medium
Technical Field
The present application relates to the field of wireless communications technologies, and in particular, to a device binding method, apparatus, device, and storage medium.
Background
The technology for realizing local area network control on a plurality of wireless terminal devices is widely applied to environments such as building offices, sales sites, intelligent home and the like. Taking an intelligent home system as an example, various application devices related to home life are connected together through a network by utilizing technologies such as a computer, network communication and automatic control, and the like, so that the home life is more comfortable, safe, effective and energy-saving through comprehensive management, and how to construct a reliable local area network control and communication network is a premise of ensuring that the whole intelligent home system can effectively operate.
Taking an intelligent home system as an example, for the requirements of intelligence and convenience, a large number of sub-devices (such as a smart switch is configured with sub-devices such as a lamp, an air conditioner, a television and the like) are arranged on part of home devices. In order to effectively manage each item of equipment and realize effective transmission of information, a gateway is introduced to serve as an intermediate medium between a terminal and corresponding sub-equipment to transmit management instructions and data. The method needs to bind the gateway with the terminal and the sub-equipment manually, however, when binding, the information provided by each equipment is often preset information (such as equipment identification numbers, addresses and the like) when the equipment leaves a factory, the information is complex and is difficult to identify the corresponding equipment manually, a large amount of identification time is consumed, and the manual binding method adopts the mode of distributing the equipment bound by the gateway according to the number of the equipment or own experience, so that the equipment is difficult to be bound with the proper gateway effectively, and the problems of poor communication effect, slow data transmission, data transmission errors and the like are caused, so that the effective management of the equipment cannot be realized.
Disclosure of Invention
The embodiment of the application provides a device binding method, a device, equipment and a storage medium, which can solve the problems that the equipment identification speed is low, the equipment can not be bound with a proper gateway, the communication effect is poor, the data transmission is slow, even the data transmission is wrong, and the effective management of the equipment can not be realized. To achieve this object, embodiments of the present application provide the following solutions.
According to an aspect of the embodiments of the present application, there is provided a device binding method, including:
positioning information between at least one gateway and at least one object to be bound is obtained, and a target binding object is identified according to the positioning information;
and determining the corresponding relation between the gateway and the target binding object according to the identified target binding object and the signal intensity between the gateway and the identified target binding object, and binding the gateway and the target binding object in batches based on the corresponding relation.
In one possible implementation manner, the obtaining the positioning information of the at least one gateway and the at least one object to be bound includes at least one of the following:
acquiring communication information between the gateways and the object to be bound, and calculating positioning information between each gateway and the object to be bound according to the communication information, wherein the communication information comprises at least one of signal strength, gateway address, gateway identification, channel state information and signal fingerprint information;
And respectively acquiring the position information of the gateway and the object to be bound, and determining the positioning information between the gateway and the object to be bound based on the position information.
In one possible implementation manner, the acquiring the communication information between the gateway and the object to be bound includes:
acquiring information of an object to be bound and a gateway, inquiring the communication information from an information uploading object corresponding to the object to be bound and the gateway according to the information, and storing the communication information uploaded by the gateway and/or the object to be bound by the information uploading object;
or, acquiring information of the object to be bound and the gateway, and connecting the information with the object to be bound and the gateway according to the information to acquire the communication information, wherein the information comprises at least one of an information uploading object, identification information and a connection port of the object to be bound and the gateway.
In one possible implementation manner, the identifying the target binding object according to the positioning information includes:
determining the space information of the target binding object according to the positioning information;
and matching and comparing the space information, the positioning information and the pre-stored identification information, and identifying a target binding object according to a comparison result, wherein the target binding object comprises at least one of sub-equipment, AP hot spots and routers of the intelligent home system.
In one possible implementation manner, after the target binding object is identified according to the comparison result, the method further includes:
and displaying the gateway and the target binding object on the target terminal according to the signal intensity between the gateway and the target binding object by a preset display rule.
In one possible implementation manner, the determining, according to the identified target binding object and the signal strength between the gateway and the identified target binding object, the correspondence between the gateway and the target binding object includes:
at least one gateway corresponding to the target binding object is obtained, and the target gateway corresponding to the target binding object is selected from the at least one gateway according to the signal strength.
In one possible implementation manner, the binding the gateway with the target binding object based on the correspondence batch includes:
acquiring information of target binding objects bound by each gateway according to the corresponding relation, and judging whether a gateway which does not meet a binding condition exists or not according to the information, wherein the binding condition comprises at least one of the number of target binding objects to be bound by the gateway is smaller than a preset upper limit and the bandwidth requirement of the target binding objects is smaller than the residual bandwidth of the gateway;
If yes, removing the gateway which does not meet the binding condition from the gateways corresponding to at least a part of target binding objects according to a preset rule, and selecting the target gateway from the gateways corresponding to at least a part of target binding objects to bind with at least a part of target binding objects according to signal strength;
if not, the gateway and the target binding object are bound in batches according to the corresponding relation.
According to another aspect of an embodiment of the present application, there is provided an apparatus binding device, including:
the positioning module is used for acquiring positioning information between at least one gateway and at least one object to be bound;
the identification module is used for identifying a target binding object according to the positioning information;
and the binding module is used for determining the corresponding relation between the gateway and the target binding object according to the identified target binding object and the signal intensity between the gateway and the identified target binding object, and binding the gateway and the target binding object in batches based on the corresponding relation.
According to another aspect of the embodiments of the present application, there is provided an electronic device comprising a memory, a processor and a computer program stored on the memory, the processor executing the computer program to carry out the steps of the method as described above.
According to a further aspect of embodiments of the present application, there is provided a computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the method as described above.
The beneficial effects that technical scheme that this application embodiment provided brought are:
the embodiment of the application provides a device binding method, which specifically comprises the following steps: positioning information of at least one gateway and at least one object to be bound is obtained, a target binding object is identified according to the positioning information, the gateway bound by each target binding object is obtained by utilizing signal intensity and the identified target binding object, and then the gateway is bound with the target binding object according to the corresponding relation. Before binding a gateway with a target binding object, the embodiment of the application acquires positioning information of the target binding object, identifies the target binding object from the target binding object according to the positioning information, and determines the target binding object bound by each gateway by using signal strength and the identified target binding object, thereby realizing the binding of the gateway and the target binding object. Therefore, the embodiment of the application can automatically identify the target binding object through the positioning information of the object to be bound, acquire the corresponding relation between the gateway and the target binding object by utilizing the obtained identification result and the signal strength so as to bind the gateway and the target binding object, effectively identify the target binding object and rapidly bind the target binding object with a proper gateway, thereby improving the information communication effect, realizing the effective binding of the gateway and the equipment, and realizing the quick data transmission.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings that are required to be used in the description of the embodiments of the present application will be briefly described below.
Fig. 1 is a schematic flow chart of a device binding method according to an embodiment of the present application;
fig. 2 is a schematic flow chart of an embodiment of target object identification in a device binding method according to an embodiment of the present application;
FIG. 3 is a flowchart of an embodiment of a device binding method provided in an embodiment of the present application;
fig. 4 is a schematic structural diagram of an apparatus binding device provided in an embodiment of the present application;
fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
Embodiments of the present application are described below with reference to the drawings in the present application. It should be understood that the embodiments described below with reference to the drawings are exemplary descriptions for explaining the technical solutions of the embodiments of the present application, and the technical solutions of the embodiments of the present application are not limited.
As used herein, the singular forms "a", "an", "the" and "the" are intended to include the plural forms as well, unless expressly stated otherwise, as understood by those skilled in the art. It will be further understood that the terms "comprises" and "comprising," when used in this application, specify the presence of stated features, information, data, steps, operations, elements, and/or components, but do not preclude the presence or addition of other features, information, data, steps, operations, elements, components, and/or groups thereof, all of which may be included in the present application. It will be understood that when an element is referred to as being "connected" or "coupled" to another element, it can be directly connected or coupled to the other element or intervening elements may be present. Further, "connected" or "coupled" as used herein may include wirelessly connected or wirelessly coupled. The term "and/or" as used herein indicates at least one of the items defined by the term, e.g. "a and/or B" indicates implementation as "a", or as "a and B".
For the purpose of making the objects, technical solutions and advantages of the present invention more apparent, the embodiments of the present invention will be described in further detail with reference to the accompanying drawings.
Aiming at the technical problems shown in the background art or the places needing improvement, the application provides a device binding method, a device, equipment and a storage medium.
The technical solutions of the embodiments of the present invention and technical effects produced by the technical solutions of the present invention are described below by describing several exemplary embodiments. It should be noted that the following embodiments may be referred to, or combined with each other, and the description will not be repeated for the same terms, similar features, similar implementation steps, and the like in different embodiments.
The prior art is that the gateway responds to the batch binding instruction by using the introduced gateway equipment as the intermediate medium of the terminal and the sub-equipment, carries out the binding processing on all the sub-equipment one by one and feeds back the batch binding result to the terminal, thereby simplifying the operation. The prior art, while simplifying frequent and repetitive operational flows, does not take into account more complex scenarios. If a plurality of gateway devices or a set network structure is complex, a plurality of terminals are involved, in this case, the mode of binding devices in response to the batch binding instruction can cause that part of the gateways bind a large number of devices, network congestion is generated, the devices use to be blocked, and part of the gateways are idle, so that poor device communication effect and slow data transmission are caused, and effective management of the devices in the network cannot be realized.
The device binding method, device, equipment and storage medium provided by the application aim to solve at least one technical problem in the prior art.
The embodiment of the application provides a device binding method, which can be optionally applied to any electronic device, such as a mobile phone, a computer device, a server device and the like. As shown in fig. 1, the method includes the following steps S101 to S102.
S101: positioning information between at least one gateway and at least one object to be bound is obtained, and a target binding object is identified according to the positioning information.
Optionally, the electronic device is a mobile terminal, and the mobile terminal obtains communication information of each gateway and each object to be bound which are currently managed, and calculates positioning information of each object to be bound according to the communication information. The mobile terminal can be a mobile phone, a tablet computer, a notebook computer, an intelligent glasses and other movable terminal equipment.
The mobile terminal can acquire the communication information of each gateway and the object to be bound which are currently managed in at least one mode of manual input, local storage inquiry, internet downloading, two-dimension code scanning, APP importing and the like. And the communication information of the connection object can be obtained after the connection.
Optionally, the object to be bound is an object that can be identified and connected by the gateway, and the target binding object includes at least one of a terminal and a device, which has binding relation with the gateway, in the smart home system, wherein the terminal can be an AP hot spot, a router, and other devices that need to be connected with the device, and the device can be a lamp, an electric curtain, a refrigerator, an air conditioner, a smart sound, a television, an electric clothes hanger, a washing machine, and other devices that are connected with the terminal and have a data transmission function.
Optionally, the gateway is in communication connection with the object to be bound and the information uploading object corresponding to the gateway. The electronic equipment inquires and acquires communication information between the gateway and the object to be bound from the information uploading object, calculates positioning information between each gateway and the object to be bound according to the communication information, wherein the communication information comprises at least one of signal strength, gateway address, gateway identification, channel state information and signal fingerprint information, and the information uploading object comprises a cloud platform, a server, a remote control platform, a local control terminal and other equipment for receiving and storing the communication information uploaded by the gateway and/or the object to be bound.
Or the electronic equipment acquires information of the object to be bound and the gateway, and is connected with the object to be bound and the gateway according to the information to acquire communication information, wherein the information comprises at least one of an information uploading object of the object to be bound and the gateway, identification information, a connection port, identification identifications (identification information such as names, codes and hardware addresses) of the object to be bound and the gateway, and management application and data storage object corresponding to the object to be bound and the gateway.
In one embodiment, the object to be bound and the gateway can send the information in a broadcast mode, and the electronic device receives the broadcast to obtain the information. The information can also be pre-stored in the internet or in a designated location of a local storage device or a foreign storage device, from which the electronic device obtains the information.
S102: and determining the corresponding relation between the gateway and the target binding object according to the identified target binding object and the signal strength between the gateway and the identified target binding object, and binding the gateway and the target binding object in batches based on the corresponding relation.
Optionally, the electronic device arranges and displays the gateway and the target binding object on the target terminal (such as a mobile phone, a television, a computer and other display devices of the user) according to the signal intensity according to a preset rule (multiple rules that the intensity is from high to low, from low to high, the gateways of the same type are arranged together and the like).
Optionally, when displaying the gateway and the target binding object, the electronic device may further obtain the gateway to which the target binding object may bind according to the pre-stored information, determine the gateway corresponding to the target binding object by using the gateway, and display the gateway and the target binding object on the same interface of the target terminal. And selecting a target gateway corresponding to the target binding object from the corresponding gateways according to the signal intensity, and binding the gateway and the target binding object through the corresponding relation, wherein the prestored information comprises identification information such as the name, the type, the physical address and the like of the gateway which can be bound by each target binding object.
Compared with the prior art, the method and the device have the advantages that positioning information of at least one gateway and at least one object to be bound is obtained, the target binding object is identified according to the positioning information, the gateway bound by each target binding object is obtained by means of signal strength and the identified target binding object, and then the gateway is bound with the target binding object according to the corresponding relation. Before binding a gateway with a target binding object, the embodiment of the application acquires positioning information of the target binding object, identifies the target binding object from the target binding object according to the positioning information, and determines the target binding object bound by each gateway by using signal strength and the identified target binding object, thereby realizing the binding of the gateway and the target binding object. Therefore, the embodiment of the application can automatically identify the target binding object through the positioning information of the object to be bound, acquire the corresponding relation between the gateway and the target binding object by utilizing the obtained identification result and the signal strength so as to bind the gateway and the target binding object, effectively identify the target binding object and rapidly bind the target binding object with a proper gateway, thereby improving the information communication effect, realizing the effective binding of the gateway and the equipment, and realizing the quick data transmission.
For step S101 in the device binding scheme, a possible implementation manner is provided in the embodiments of the present application, as shown in fig. 2, and fig. 2 is a schematic flow chart of an embodiment of target object identification in a device binding method provided in the embodiments of the present application. As further described in connection with fig. 2.
S210: and acquiring positioning information of at least one gateway and at least one target binding object.
Optionally, the gateway is in wireless communication with the electronic device. The electronic equipment acquires communication information between the gateways and the object to be bound, and calculates positioning information between each gateway and the object to be bound according to the communication information, wherein the communication information comprises at least one of signal strength, gateway address, gateway identification, channel state information and signal fingerprint information.
The electronic device can acquire the positioning information of the object to be bound by using the wireless positioning technology such as signal strength-based positioning, signal angle-based positioning, arrival time difference-based positioning and the like by utilizing the communication information. The method can also search the pre-stored space position of the corresponding gateway according to gateway identification information such as gateway address, gateway identification and the like, calculate the signal attenuation between the gateway and the object to be bound according to the signal intensity between the gateway and the object to be bound, and calculate the positioning information of the object to be bound by utilizing the signal attenuation and the space position. The techniques of calculating the positioning information by using the signal attenuation and the spatial position are known in the art, and will not be described herein.
S220: and determining the space information of the object to be bound according to the positioning information.
The spatial information comprises at least one of spatial region where the object to be bound is located, position of the object to be bound relative to the gateway and the like. The electronic equipment pre-stores the position information of the gateway and the range information of the space region, and after the positioning information is acquired, the information such as the space region where the object to be bound is located, the position of the object to be bound relative to the gateway and the like is calculated according to the pre-stored information.
S230: and matching and comparing the space information and the positioning information with pre-stored identification information, and identifying the target binding object according to the comparison result.
Optionally, the identification information includes a name of each target binding object, a spatial region in which the target binding object is located, positioning information, a position of the target binding object relative to the gateway, and the like. The identification information may be stored in the electronic device, or may be stored in the internet, or in a local storage device or an external storage device other than the electronic device.
In one embodiment, after the electronic device obtains the positioning information of the object to be bound, the electronic device obtains a spatial area (such as a living room, a kitchen, a balcony, etc.) where the object to be bound is located according to the positioning information, and matches and compares the information and the positioning information of the spatial area with the spatial area (such as a restaurant, a horizontal type, a balcony, etc.) and the positioning information in the identification information. If the object to be bound successfully matched exists, the object to be bound is determined to be a target binding object, and the name of the target binding object is obtained through corresponding identification information.
In order to more clearly understand the implementation process of the device binding method, the embodiment of the application further provides an embodiment flowchart of the device binding method, and in particular, refer to fig. 3. The device binding method is described in connection with fig. 3.
The device binding method comprises the following steps:
s311: positioning information between at least one gateway and at least one object to be bound is obtained, and a target binding object is identified according to the positioning information.
Optionally, the gateway is in wireless communication with the electronic device. The electronic equipment acquires communication information between the gateway and the objects to be bound, and calculates positioning information of each object to be bound according to the communication information, wherein the communication information comprises at least one of signal strength, gateway address, gateway identification, channel state information and signal fingerprint information.
The electronic device can acquire the positioning information of the object to be bound by using the wireless positioning technology such as signal strength-based positioning, signal angle-based positioning, arrival time difference-based positioning and the like by utilizing the communication information. The method can also search the pre-stored space position of the corresponding gateway according to gateway identification information such as gateway address, gateway identification and the like, calculate the signal attenuation between the gateway and the object to be bound according to the signal intensity between the gateway and the object to be bound, and calculate the positioning information of the object to be bound by utilizing the signal attenuation and the space position. The techniques of calculating the positioning information by using the signal attenuation and the spatial position are known in the art, and will not be described herein.
Optionally, the method for acquiring the communication information includes: and acquiring information of the object to be bound and the gateway, and uploading the object to be bound and the information corresponding to the gateway according to the information to inquire communication information. The information uploading object is used for inquiring an object to be bound or an information uploading object of the gateway, communication information is obtained through the information uploading object, and the information uploading object comprises a cloud platform, a server, a remote control platform, a local control terminal and other equipment for receiving and storing the communication information uploaded by the gateway and/or the object to be bound.
Or, obtaining information of the object to be bound and the gateway, and connecting the information with the object to be bound and the gateway according to the information to obtain communication information, wherein the information comprises at least one of an information uploading object of the object to be bound and the gateway, identification information, a connection port, identification (identification information such as a name, a code, a hardware address and the like) of the object to be bound and the gateway, and a management application and a data storage object corresponding to the object to be bound and the gateway.
In one embodiment, the object to be bound and the gateway can send the information in a broadcast mode, and the electronic device receives the broadcast to obtain the information. The information can also be pre-stored in the internet or in a designated location of a local storage device or a foreign storage device, from which the electronic device obtains the information.
Optionally, the electronic device may further obtain location information of the object to be bound through the gateway and location information of the object to be bound. At this time, the gateway can perform data transmission with the object to be bound in a wired or wireless manner. Specifically, the electronic device obtains location information of the gateway and the object to be bound respectively, and determines positioning information between the gateway and the target binding object based on the location information. The location information may be stored on the electronic device or on a local or external storage device. The position information comprises two-dimensional or three-dimensional space information of the object to be bound, and the azimuth information comprises the distance and azimuth of the object to be bound relative to the gateway, the space area, the floor, the height and the like of the target binding object.
In one embodiment, the electronic device may also display the object to be bound on the map based on the positioning information for ease of display and viewing.
Optionally, in order to reduce workload, before acquiring positioning information of at least one gateway and an object to be bound, the electronic device determines whether a preset condition is currently met; if yes, the positioning information of at least one gateway and the object to be bound is obtained. If not, the device binding method is not executed. The preset condition comprises adding new target binding objects or gateways, closing or reducing the gateways or the target binding objects, enabling the communication quality of the current preset number of the gateways or the target binding objects to be lower than a preset value, and receiving at least one of the batch binding instructions. And the content of the preset condition can be set according to the actual environment and the requirements.
Optionally, before executing the device binding method, an object or a terminal currently executing the batch binding operation may be identified, and the authority of the object or the terminal is obtained according to the identification result, and whether the object or the terminal can execute the batch binding operation is judged according to the authority. And executing the device binding method after determining that the batch binding operation can be executed.
Alternatively, since there is a part of devices already bound or no binding is required, it is required to identify the target binding object from the objects to be bound. Wherein identifying the target binding object comprises: determining the space information of the object to be bound according to the positioning information; and matching and comparing the space information and the positioning information with pre-stored identification information, and identifying the target binding object according to the comparison result. The spatial information comprises at least one of spatial region where the object to be bound is located, position of the object to be bound relative to the gateway and the like.
Alternatively, since there is a part of devices already bound or no binding is required, it is required to identify the target binding object from the objects to be bound. Wherein identifying the target binding object comprises: determining the space information of the object to be bound according to the positioning information; and matching and comparing the space information and the positioning information with pre-stored identification information, and identifying the target binding object according to the comparison result. The spatial information comprises at least one of spatial region where the object to be bound is located, position of the object to be bound relative to the gateway and the like. The identification information comprises the name of each target binding object, the spatial region where the target binding object is located, positioning information, the position of the target binding object relative to the gateway and other information for identifying the target binding object, the electronic equipment pre-stores the position information of the gateway and the range information of the spatial region, and after the positioning information is acquired, the information such as the spatial region where the object to be bound is located, the position of the object to be bound relative to the gateway and the like is calculated according to the pre-stored information.
The identification information may be stored in the electronic device, or may be stored in the internet, or in a local storage device or an external storage device other than the electronic device.
In one embodiment, after the electronic device obtains the positioning information of the object to be bound, the electronic device obtains a spatial area (such as a living room, a kitchen, a balcony, etc.) where the object to be bound is located according to the positioning information, and matches and compares the information and the positioning information of the spatial area with the spatial area (such as a restaurant, a horizontal type, a balcony, etc.) and the positioning information in the identification information. If the object to be bound successfully matched exists, the object to be bound is determined to be a target binding object, and the name of the target binding object is obtained through corresponding identification information.
If a plurality of objects to be bound match the same target binding object, then after matching, identification information such as the model number, the equipment type and the like of the matched objects to be bound can be obtained, and the target binding object is identified from the matching result according to the identification information.
S312: and displaying the gateway and the target binding object on the target terminal according to the signal intensity between the gateway and the target binding object and the identification result of the target binding object by a preset display rule.
Optionally, in order to facilitate the operation object to view and quickly bind the target binding object, after identifying the target binding object, displaying the gateway and the target binding object on the target terminal according to the signal strength between the gateway and the target binding object by a preset display rule. The preset display rules include a gateway, a position display rule of a target binding object, an arrangement rule of the gateway and the target binding object (such as arrangement from left to right, arrangement from top to bottom, arrangement of signal intensity, etc.), and a font use rule, a picture use rule, a duration setting rule, and even a display rule of information corresponding to the gateway and the target binding object (such as thumbnail display, list display, picture display, and a search mode of information to be displayed).
Optionally, when displaying the target binding objects, the signal strength between the gateway and each target binding object is displayed in a mode of from high to low or from low to high according to an arrangement rule in a preset display rule, and the signal strength between the target binding object and each gateway can also be displayed in a mode of from high to low or from low to high.
In one embodiment, when the gateway and the target binding object are displayed, the identification result of the target binding object may be displayed, and the input modification information may be received, and the identification result may be modified according to the modification information.
Optionally, when displaying the gateway and the target binding object, the electronic device may further obtain the gateway to which the target binding object may bind according to the pre-stored information, determine the gateway corresponding to the target binding object by using the gateway, and display the gateway and the target binding object on the same interface of the target terminal. And selecting a target gateway corresponding to the target binding object from the corresponding gateways according to the signal intensity, and binding the gateway and the target binding object through the corresponding relation, wherein the prestored information comprises identification information such as the name, the type, the physical address and the like of the gateway which can be bound by each target binding object.
S313: and acquiring at least one gateway corresponding to the target binding object, and selecting the target gateway corresponding to the target binding object from the at least one gateway according to the signal strength.
Optionally, the electronic device pre-stores information of gateways which can be bound corresponding to different target binding objects, after displaying the gateways and the target binding objects in an arrangement mode according to a preset display rule according to signal intensity, the electronic device obtains the gateways which can be bound by the target binding objects according to the identification result, and determines the gateways corresponding to the target binding objects. And selecting a target gateway corresponding to the target binding object from the corresponding gateways according to the signal strength. And taking the gateway with the strongest signal strength as the gateway bound by the target binding object.
Optionally, after the signal strength is displayed, displaying the gateway to which the target binding object can bind according to the input instruction, obtaining the gateway to which the target binding object binds based on the input selection instruction, and binding the gateway with the target binding object.
S314: and binding the gateway and the target binding object in batches based on the corresponding relation.
Optionally, when binding the gateways and the target binding objects based on the corresponding relation, acquiring information of the target binding objects bound by each gateway according to the corresponding relation, and judging whether a gateway which does not meet the binding condition exists according to the information, wherein the binding condition comprises at least one of that the number of target binding objects to be bound by the gateway is smaller than a preset upper limit and that the bandwidth requirement of the target binding objects is smaller than the residual bandwidth of the gateway; if yes, removing the gateways which do not meet the binding conditions from the gateways corresponding to at least a part of target binding objects according to a preset rule, and selecting the target gateways from the gateways corresponding to at least a part of target binding objects to bind with at least a part of target binding objects according to signal strength; if not, binding the gateway with the target binding object in batches according to the corresponding relation. The binding conditions may further include that the priority of the gateway is greater than that of the target binding object, and the information transmission stability of the gateway meets the conditions of the information transmission stability of the target binding object, the normal gateway and the like.
Specifically, after the target binding object bound by each gateway is selected, information such as information transmission capacity of each gateway, information transmission requirement (such as required bandwidth, stability requirement and the like) of each target binding object, the number of devices which can be bound by each gateway, priority of the target binding object in binding, the gateway which can be bound by the target binding object and the like are obtained, and whether the gateway meets the binding condition is judged according to the information. And if the binding condition is met, binding the gateway with the target binding object in batches. If the gateway which does not meet the binding condition appears, the content (such as that the binding number is larger than the bindable number, the information stability does not meet the requirement of the target binding object, etc.) of the gateway which does not meet the binding condition is obtained. And removing the gateway from the gateways corresponding to at least a part of target binding objects according to the preset rule corresponding to the content, and selecting the corresponding gateway from the gateways corresponding to the part of target binding objects according to the signal strength to bind. The preset rules comprise rules such as the number of target binding objects of the gateway, the selection mode of the target binding objects and the like, and different contents correspond to different rules.
Optionally, after the gateway is bound with the target binding object, the working state of the gateway and the information transmission quality between the gateway and the target binding object can be detected in real time, and when the information transmission quality does not reach the preset quality requirement or the gateway fails, the device binding method is executed again.
It should be noted that, in the alternative embodiments of the present application, the related data (such as positioning information, signal strength, etc.) may be licensed or agreed upon by the user when the embodiments of the present application are applied to specific products or technologies, and the collection, use and processing of the related data may be required to comply with relevant laws and regulations and standards of relevant countries and regions. That is, in the embodiments of the present application, if data related to the subject is involved, the data needs to be obtained through the subject authorization consent, and in compliance with relevant laws and regulations and standards of the country and region.
As shown in fig. 4, the device binding apparatus 300 of the present embodiment includes a positioning module 301, an identification module 302, and a binding module 303. The positioning module 301 is configured to obtain positioning information between at least one gateway and at least one object to be bound. The identifying module 302 is configured to identify the target binding object according to the positioning information. And a binding module 303, configured to determine a correspondence between the gateway and the target binding object according to the identified target binding object and a signal strength between the gateway and the identified target binding object, and bind the gateway and the target binding object in batch based on the correspondence.
Optionally, the device binding apparatus 300 further includes a storage module 304, where the storage module 304 is configured to store positioning information and signal strength. The binding module 303 selects a target binding object for each gateway binding using the stored location information, signal strength.
Optionally, the obtaining positioning information of the at least one gateway and the object to be bound includes at least one of: acquiring communication information between the gateways and the object to be bound, and calculating positioning information between each gateway and the object to be bound according to the communication information, wherein the communication information comprises at least one of signal strength, gateway address, gateway identification, channel state information and signal fingerprint information; and respectively acquiring the position information of the gateway and the object to be bound, and determining the positioning information between the gateway and the object to be bound based on the position information.
Optionally, obtaining positioning information of the at least one gateway and the at least one target binding object includes at least one of: acquiring communication information between the gateways and the target binding objects, and calculating positioning information between each gateway and the target binding objects according to the communication information, wherein the communication information comprises at least one of signal strength, gateway address, gateway identification, channel state information and signal fingerprint information; and respectively acquiring the position information of the gateway and the target binding object, and determining the positioning information between the gateway and the target binding object based on the position information.
Optionally, obtaining communication information between the gateway and the object to be bound includes:
acquiring information of an object to be bound and a gateway, inquiring communication information from an information uploading object corresponding to the object to be bound and the gateway according to the information, and storing the communication information uploaded by the gateway and/or the object to be bound by the information uploading object;
or, acquiring information of the object to be bound and the gateway, and connecting the information with the object to be bound and the gateway according to the information to acquire communication information, wherein the information comprises at least one of an information uploading object, identification information and a connection port of the object to be bound and the gateway.
Optionally, identifying the target binding object according to the positioning information includes:
determining the space information of the target binding object according to the positioning information;
and matching and comparing the space information and the positioning information with pre-stored identification information, and identifying a target binding object according to a comparison result, wherein the target binding object comprises at least one of sub-equipment, AP hot spots and routers of the intelligent home system.
Optionally, after identifying the target binding object according to the comparison result, the method further includes:
and displaying the gateway and the target binding object on the target terminal according to the signal intensity between the gateway and the target binding object by a preset display rule.
Optionally, determining the correspondence between the gateway and the target binding object according to the identified target binding object and the signal strength between the gateway and the identified target binding object includes:
and acquiring at least one gateway corresponding to the target binding object, and selecting the target gateway corresponding to the target binding object from the at least one gateway according to the signal strength.
Optionally, binding the gateway with the target binding object based on the correspondence in batches includes:
acquiring information of target binding objects bound by each gateway according to the corresponding relation, and judging whether a gateway which does not meet the binding condition exists or not according to the information, wherein the binding condition comprises at least one of the number of target binding objects to be bound by the gateway is smaller than a preset upper limit and the bandwidth requirement of the target binding objects is smaller than the residual bandwidth of the gateway;
if yes, removing the gateways which do not meet the binding conditions from the gateways corresponding to at least a part of target binding objects according to a preset rule, and selecting the target gateways from the gateways corresponding to at least a part of target binding objects to bind with the at least a part of target binding objects according to the signal strength;
if not, binding the gateway with the target binding object in batches according to the corresponding relation.
The apparatus of the embodiments of the present application may perform the method provided by the embodiments of the present application, and implementation principles of the method are similar, and actions performed by each module in the apparatus of each embodiment of the present application correspond to steps in the method of each embodiment of the present application, and detailed functional descriptions of each module of the apparatus may be referred to in the corresponding method shown in the foregoing, which is not repeated herein.
An electronic device is provided in an embodiment of the present application, including a memory, a processor, and a computer program stored on the memory, where the processor executes the computer program to implement steps of a device binding method.
In an alternative embodiment, there is provided an electronic device, as shown in fig. 5, the electronic device 4000 shown in fig. 5 includes: a processor 4001 and a memory 4003. Wherein the processor 4001 is coupled to the memory 4003, such as via a bus 4002. Optionally, the electronic device 4000 may further comprise a transceiver 4004, the transceiver 4004 may be used for data interaction between the electronic device and other electronic devices, such as transmission of data and/or reception of data, etc. It should be noted that, in practical applications, the transceiver 4004 is not limited to one, and the structure of the electronic device 4000 is not limited to the embodiment of the present application.
The processor 4001 may be a CPU (Central Processing Unit ), general purpose processor, DSP (Digital Signal Processor, data signal processor), ASIC (Application Specific Integrated Circuit ), FPGA (Field Programmable Gate Array, field programmable gate array) or other programmable logic device, transistor logic device, hardware components, or any combination thereof. Which may implement or perform the various exemplary logic blocks, modules, and circuits described in connection with this disclosure. The processor 4001 may also be a combination that implements computing functionality, e.g., comprising one or more microprocessor combinations, a combination of a DSP and a microprocessor, etc.
Bus 4002 may include a path to transfer information between the aforementioned components. Bus 4002 may be a PCI (Peripheral Component Interconnect, peripheral component interconnect standard) bus or an EISA (Extended Industry Standard Architecture ) bus, or the like. The bus 4002 can be divided into an address bus, a data bus, a control bus, and the like. For ease of illustration, only one thick line is shown in fig. 5, but not only one bus or one type of bus.
Memory 4003 may be, but is not limited to, ROM (Read Only Memory) or other type of static storage device that can store static information and instructions, RAM (Random Access Memory ) or other type of dynamic storage device that can store information and instructions, EEPROM (Electrically Erasable Programmable Read Only Memory ), CD-ROM (Compact Disc Read Only Memory, compact disc Read Only Memory) or other optical disk storage, optical disk storage (including compact discs, laser discs, optical discs, digital versatile discs, blu-ray discs, etc.), magnetic disk storage media, other magnetic storage devices, or any other medium that can be used to carry or store a computer program and that can be Read by a computer.
The memory 4003 is used for storing a computer program that executes an embodiment of the present application, and is controlled to be executed by the processor 4001. The processor 4001 is configured to execute a computer program stored in the memory 4003 to realize the steps shown in the foregoing method embodiment.
The electronic device may be any electronic product that can perform man-machine interaction with an object, for example, a personal computer, a tablet computer, a smart phone, a personal digital assistant (Personal Digital Assistant, PDA), a game console, an interactive internet protocol television (Internet Protocol Television, IPTV), a smart wearable device, and the like.
The electronic device may also include a network device and/or an object device. Wherein the network device includes, but is not limited to, a single network server, a server group made up of multiple network servers, or a cloud based on cloud computing (CloudComputing) made up of a large number of hosts or network servers.
The network in which the electronic device is located includes, but is not limited to, the internet, a wide area network, a metropolitan area network, a local area network, a virtual private network (Virtual Private Network, VPN), and the like.
Embodiments of the present application provide a computer readable storage medium having a computer program stored thereon, where the computer program, when executed by a processor, may implement the steps and corresponding content of the foregoing method embodiments.
The terms "first," "second," "third," "fourth," "1," "2," and the like in the description and in the claims of this application and in the above-described figures, if any, 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 present application described herein may be implemented in other sequences than those illustrated or otherwise described.
It should be understood that, although the flowcharts of the embodiments of the present application indicate the respective operation steps by arrows, the order of implementation of these steps is not limited to the order indicated by the arrows. In some implementations of embodiments of the present application, the implementation steps in the flowcharts may be performed in other orders as desired, unless explicitly stated herein. Furthermore, some or all of the steps in the flowcharts may include multiple sub-steps or multiple stages based on the actual implementation scenario. Some or all of these sub-steps or phases may be performed at the same time, or each of these sub-steps or phases may be performed at different times, respectively. In the case of different execution time, the execution sequence of the sub-steps or stages may be flexibly configured according to the requirement, which is not limited in the embodiment of the present application.
The foregoing is merely an optional implementation manner of the implementation scenario of the application, and it should be noted that, for those skilled in the art, other similar implementation manners based on the technical ideas of the application are adopted without departing from the technical ideas of the application, and also belong to the protection scope of the embodiments of the application.

Claims (7)

1. A method of device binding, comprising:
acquiring positioning information between at least one gateway and at least one object to be bound;
identifying a target binding object according to the positioning information, including: determining the space information of the target binding object according to the positioning information; matching and comparing the space information, the positioning information and prestored identification information, and identifying target binding objects according to comparison results, wherein the target binding objects comprise at least one of sub-equipment, AP hot spots and routers of the intelligent home system, and the identification information comprises at least one of the name of each target binding object, the space region where the target binding object is located, the positioning information and the position of the target binding object relative to a gateway;
determining a corresponding relation between a gateway and a target binding object according to the identified target binding object and the signal intensity between the gateway and the identified target binding object, and binding the gateway and the target binding object in batches based on the corresponding relation;
the determining the correspondence between the gateway and the target binding object according to the identified target binding object and the signal strength between the gateway and the identified target binding object comprises:
Acquiring at least one gateway corresponding to a target binding object, and selecting a target gateway corresponding to the target binding object from the at least one gateway according to signal strength;
the batch binding of the gateway and the target binding object based on the correspondence includes:
acquiring information of target binding objects bound by each gateway according to the corresponding relation, and judging whether a gateway which does not meet a binding condition exists or not according to the information, wherein the binding condition comprises at least one of the number of target binding objects to be bound by the gateway is smaller than a preset upper limit and the bandwidth requirement of the target binding objects is smaller than the residual bandwidth of the gateway;
if yes, removing the gateway which does not meet the binding condition from the gateways corresponding to at least a part of target binding objects according to a preset rule, and selecting the target gateway from the gateways corresponding to at least a part of target binding objects to bind with at least a part of target binding objects according to signal strength;
if not, the gateway and the target binding object are bound in batches according to the corresponding relation.
2. The method according to claim 1, wherein the obtaining positioning information of the at least one gateway and the at least one object to be bound comprises at least one of:
Acquiring communication information between the gateways and the object to be bound, and calculating positioning information between each gateway and the object to be bound according to the communication information, wherein the communication information comprises at least one of signal strength, gateway address, gateway identification, channel state information and signal fingerprint information;
and respectively acquiring the position information of the gateway and the object to be bound, and determining the positioning information between the gateway and the object to be bound based on the position information.
3. The method of claim 2, wherein the obtaining the communication information between the gateway and the object to be bound comprises:
acquiring information of an object to be bound and a gateway, inquiring the communication information from an information uploading object corresponding to the object to be bound and the gateway according to the information, and storing the communication information uploaded by the gateway and/or the object to be bound by the information uploading object;
or, acquiring information of the object to be bound and the gateway, and connecting the information with the object to be bound and the gateway according to the information to acquire the communication information, wherein the information comprises at least one of an information uploading object, identification information and a connection port of the object to be bound and the gateway.
4. The method of claim 1, further comprising, after identifying the target binding object based on the comparison result:
And displaying the gateway and the target binding object on the target terminal according to the signal intensity between the gateway and the target binding object by a preset display rule.
5. A device binding apparatus, comprising:
the positioning module is used for acquiring positioning information between at least one gateway and at least one object to be bound;
the identification module is used for identifying a target binding object according to the positioning information, and comprises the following steps: determining the space information of the target binding object according to the positioning information; matching and comparing the space information, the positioning information and prestored identification information, and identifying target binding objects according to comparison results, wherein the target binding objects comprise at least one of sub-equipment, AP hot spots and routers of the intelligent home system, and the identification information comprises at least one of the name of each target binding object, the space region where the target binding object is located, the positioning information and the position of the target binding object relative to a gateway;
a binding module, configured to determine a correspondence between a gateway and a target binding object according to an identified target binding object and a signal strength between the gateway and the identified target binding object, and bind the gateway and the target binding object in batch based on the correspondence;
The determining the correspondence between the gateway and the target binding object according to the identified target binding object and the signal strength between the gateway and the identified target binding object comprises:
acquiring at least one gateway corresponding to a target binding object, and selecting a target gateway corresponding to the target binding object from the at least one gateway according to signal strength;
the batch binding of the gateway and the target binding object based on the correspondence includes:
acquiring information of target binding objects bound by each gateway according to the corresponding relation, and judging whether a gateway which does not meet a binding condition exists or not according to the information, wherein the binding condition comprises at least one of the number of target binding objects to be bound by the gateway is smaller than a preset upper limit and the bandwidth requirement of the target binding objects is smaller than the residual bandwidth of the gateway;
if yes, removing the gateway which does not meet the binding condition from the gateways corresponding to at least a part of target binding objects according to a preset rule, and selecting the target gateway from the gateways corresponding to at least a part of target binding objects to bind with at least a part of target binding objects according to signal strength;
If not, the gateway and the target binding object are bound in batches according to the corresponding relation.
6. An electronic device comprising a memory, a processor and a computer program stored on the memory, characterized in that the processor executes the computer program to carry out the steps of the method according to any one of claims 1-4.
7. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the method according to any of claims 1-4.
CN202310290797.2A 2023-03-23 2023-03-23 Device binding method, device and storage medium Active CN115996387B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310290797.2A CN115996387B (en) 2023-03-23 2023-03-23 Device binding method, device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310290797.2A CN115996387B (en) 2023-03-23 2023-03-23 Device binding method, device and storage medium

Publications (2)

Publication Number Publication Date
CN115996387A CN115996387A (en) 2023-04-21
CN115996387B true CN115996387B (en) 2023-07-14

Family

ID=85995368

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310290797.2A Active CN115996387B (en) 2023-03-23 2023-03-23 Device binding method, device and storage medium

Country Status (1)

Country Link
CN (1) CN115996387B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101114965A (en) * 2007-08-21 2008-01-30 当代天启技术(北京)有限公司 Method and system for binding wireless terminal equipment and gateway in LAN
CN106993315A (en) * 2017-03-29 2017-07-28 常熟理工学院 A kind of mobile network communication implementation method based on location information
WO2019185009A1 (en) * 2018-03-30 2019-10-03 云丁智能科技(北京)有限公司 Smart door lock binding method, smart door lock, gateway, server, and binding system

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104053215B (en) * 2014-06-11 2018-04-17 西安中兴新软件有限责任公司 A kind of method and device of the optimum position of selection access point
CN108141799B (en) * 2015-10-14 2021-02-02 瑞典爱立信有限公司 Method and node for processing network connection
CN107071862B (en) * 2017-03-28 2020-06-02 北京小米移动软件有限公司 Account number binding method and device and intelligent equipment
CN108882215B (en) * 2018-08-01 2022-04-26 京东方科技集团股份有限公司 Bluetooth receiving device and method for indoor positioning and Bluetooth system
CN111132024A (en) * 2019-12-27 2020-05-08 上海数果科技有限公司 Indoor positioning method based on learning feedback
CN115022353B (en) * 2021-03-05 2024-03-15 阿里巴巴新加坡控股有限公司 Network connection method, device and system of intelligent equipment

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101114965A (en) * 2007-08-21 2008-01-30 当代天启技术(北京)有限公司 Method and system for binding wireless terminal equipment and gateway in LAN
CN106993315A (en) * 2017-03-29 2017-07-28 常熟理工学院 A kind of mobile network communication implementation method based on location information
WO2019185009A1 (en) * 2018-03-30 2019-10-03 云丁智能科技(北京)有限公司 Smart door lock binding method, smart door lock, gateway, server, and binding system

Also Published As

Publication number Publication date
CN115996387A (en) 2023-04-21

Similar Documents

Publication Publication Date Title
US11888644B2 (en) Network configuration method for home appliance, home appliance, mobile terminal, and storage medium
CN109521683B (en) Control method, remote controller and control terminal of household electrical appliance in local area network
CN113132185B (en) Equipment distribution network binding method, system, mobile terminal and storage medium
CN109246604B (en) Intelligent device safety binding method, server, intelligent device and user side device
CN106953785B (en) Intelligent household equipment adding method and device
US9514641B2 (en) Smart remote control
US9923939B2 (en) Electronic share server, screen sharing method, and program for electronic share server
CN112152853A (en) Equipment network distribution method and device, computer-readable storage medium and electronic device
CN110780598B (en) Intelligent device control method and device, electronic device and readable storage medium
CN112929224A (en) Network distribution method and device of equipment, server and computer readable storage medium
CN111683371A (en) Intelligent household appliance network distribution method, intelligent household appliance, mobile terminal and medium
CN115390713A (en) Screen control method, screen control device, electronic apparatus, program, and medium
CN109408737B (en) User recommendation method, device and storage medium
CN105306725A (en) Information processing method and electronic equipment
CN115996387B (en) Device binding method, device and storage medium
CN113242550A (en) Network distribution method, device, equipment and storage medium
CN108600296B (en) Merchant information processing method and device, electronic equipment and storage medium
CN113325729B (en) Region division method for household appliance, terminal device and readable storage medium
CN106412144A (en) Network access method and device
CN112968860B (en) Method and device for managing electronic device
JP2020067824A (en) Network system and electric device
CN113452763B (en) Smart home business registration method and device and smart home system
CN114244645A (en) Network distribution method, server, computer readable storage medium and processor
CN107135075B (en) Authorization method and device for user operation
CN114201301A (en) Equipment control method, device and system and electronic equipment

Legal Events

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