CN108307341B - Method and device for automatically positioning wireless equipment in building - Google Patents

Method and device for automatically positioning wireless equipment in building Download PDF

Info

Publication number
CN108307341B
CN108307341B CN201610822510.6A CN201610822510A CN108307341B CN 108307341 B CN108307341 B CN 108307341B CN 201610822510 A CN201610822510 A CN 201610822510A CN 108307341 B CN108307341 B CN 108307341B
Authority
CN
China
Prior art keywords
wireless device
information
wireless
wireless equipment
reserved
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
CN201610822510.6A
Other languages
Chinese (zh)
Other versions
CN108307341A (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.)
Beijing E3control Technology Co ltd
Original Assignee
Beijing E3control 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 Beijing E3control Technology Co ltd filed Critical Beijing E3control Technology Co ltd
Priority to CN201610822510.6A priority Critical patent/CN108307341B/en
Publication of CN108307341A publication Critical patent/CN108307341A/en
Application granted granted Critical
Publication of CN108307341B publication Critical patent/CN108307341B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W16/00Network planning, e.g. coverage or traffic planning tools; Network deployment, e.g. resource partitioning or cells structures
    • H04W16/18Network planning tools
    • H04W16/20Network planning tools for indoor coverage or short range network deployment
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B17/00Monitoring; Testing
    • H04B17/30Monitoring; Testing of propagation channels
    • H04B17/309Measuring or estimating channel quality parameters
    • H04B17/318Received signal strength
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W64/00Locating users or terminals or network equipment for network management purposes, e.g. mobility management
    • H04W64/006Locating users or terminals or network equipment for network management purposes, e.g. mobility management with additional information processing, e.g. for direction or speed determination

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • Electromagnetism (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Position Fixing By Use Of Radio Waves (AREA)
  • Selective Calling Equipment (AREA)

Abstract

The invention relates to a method and a device for automatically positioning wireless equipment in a building. The method comprises the following steps: acquiring a plurality of pieces of reserved position information of wireless equipment in a building, and identifying the reserved positions of the wireless equipment on a wireless equipment engineering plan of the building; receiving a message of a second wireless device adjacent to the installed wireless device after the wireless device is installed in a plurality of reserved locations indicated by the plurality of reserved location information; giving the position of the installed wireless equipment according to the RSSI information and the parameter information of the wireless equipment corresponding to the RSSI information; and analyzing the relative position relationship between at least one known wireless device and the installed wireless device to give the position of each wireless device on the engineering plan. The embodiment of the invention gives the position of each wireless device on the engineering plan by analyzing the relative position relationship between at least one known wireless device and the installed wireless device, so as to realize the purpose of intelligently controlling the wireless devices on the engineering plan.

Description

Method and device for automatically positioning wireless equipment in building
Technical Field
The invention relates to the technical field of LED illumination control, in particular to a method and a device for automatically positioning wireless equipment in a building.
Background
At present, intelligent building (such as factories, schools, office buildings, warehouses and the like) management systems are beneficial to energy conservation and convenient management, and are increasingly popular. The intelligent building management system has the functions of: controlling devices in the building (such as turning on and off lights, curtains, adjusting air conditioners, etc.) directly or periodically through management software; through the installation of the sensor, the sensor interacts with the equipment, and the equipment is automatically adjusted.
The traditional intelligent building management system adopts a wired method, and both sensors and equipment are connected together through signal lines so as to achieve the purpose of control. Due to the wiring, the cost and the construction difficulty are increased.
The development of wireless technology has solved the problem of wired solutions. By installing the wireless chip into the devices such as lamps, air conditioners, sensors and the like, and enabling the devices provided with the wireless chip to form a wireless network, various controls of the traditional intelligent building scheme can be realized, but control lines do not need to be arranged, and the installation is very simple.
However, wireless technology also has challenges. The control of the devices is achieved by sending commands in the wireless network, each device having its address (typically a MAC address, but also other types of addresses, such as an IP address, or a common integer address), the commands needing to specify the address of the device to be controlled. However, the address is software determined and is not visible from the device appearance. After the wireless intelligence system is installed, there is a step of determining what the internal addresses of the devices installed at various locations in the building are. The current method comprises the following steps: all the devices are searched by software, and at this time, the searched devices and the address of each device can be seen in a software interface, but the specific installation position of the device is not known. The control (for example, the switch) is controlled one by one, the position of each device can be determined by observing the change through naked eyes, and the determined position of each device is recorded to a control center in the wireless intelligent system. However, this method takes much time.
Disclosure of Invention
The embodiment of the invention provides a method and a device for automatically positioning wireless equipment in a building, wherein after the wireless equipment is installed in a plurality of reserved positions indicated by a plurality of reserved position information, the method and the device receive the message of second wireless equipment adjacent to the installed wireless equipment; the message carries a broadcast message of Received Signal Strength Indication (RSSI) information and parameter information when the second wireless equipment receives an instruction message sent by the installed wireless equipment; giving the position of the installed wireless equipment according to the RSSI information and the parameter information of the wireless equipment corresponding to the RSSI information; and analyzing the relative position relationship between at least one known wireless device and the installed wireless device, and giving the position of each wireless device on the engineering plan, thereby achieving the purpose of intelligently controlling the wireless devices on the engineering plan.
In a first aspect, an embodiment of the present invention provides a method for automatically positioning a wireless device in a building, where the method includes:
acquiring a plurality of pieces of reserved position information of the wireless equipment in the building, and identifying the reserved positions of the wireless equipment on a wireless equipment engineering plan of the building;
receiving a message of a second wireless device adjacent to the installed wireless device after the wireless device is installed in a plurality of reserved locations indicated by the plurality of reserved location information; the message carries a broadcast message of Received Signal Strength Indication (RSSI) information and parameter information when the second wireless equipment receives an instruction message sent by the installed wireless equipment;
giving the position of the installed wireless equipment according to the RSSI information and the parameter information of the wireless equipment corresponding to the RSSI information;
and analyzing the relative position relationship between at least one known wireless device and the installed wireless device to give the position of each wireless device on the engineering plan.
Preferably, after the position of each wireless device on the engineering plan is given, the method further comprises:
sending an opening/closing control instruction to at least one wireless device and requesting the wireless device to return corresponding opening/closing state information;
comparing the open/close state information with expected state information corresponding to the open/close control command to obtain a corresponding comparison result;
and judging the position information according to the comparison result, if the opening/closing state information is consistent with the expected state information corresponding to the opening/closing control command, verifying that the position information of the wireless equipment is correct, otherwise, verifying that the position information of the wireless equipment is wrong.
Preferably, the area range determined by the wireless device specifically includes at least one of the following:
the area ranges determined by different floors, the area ranges determined by the same floor, the area ranges determined by different rooms on the same floor, and the area ranges determined by the same room on the same floor.
Preferably, the area coverage defined by different floors is in particular the area coverage defined by adjacent floors.
Preferably, the area ranges determined by different rooms on the same floor are the area ranges determined by adjacent rooms on the same floor.
Preferably, the wireless device is an LED lamp, and the parameter information of the wireless device carried in the broadcast message includes at least one of the following:
MAC address information of the LED lamp, and coding information of the LED lamp.
In a second aspect, an embodiment of the present invention provides an apparatus for automatically locating a wireless device in a building, where the apparatus includes:
the acquisition module is used for acquiring a plurality of pieces of reserved position information of the wireless equipment in the building and marking the reserved positions of the wireless equipment on a wireless equipment engineering plan of the building;
a receiving module that receives a message of a second wireless device adjacent to the installed wireless device after the wireless device is installed in a plurality of reserved locations indicated by the plurality of reserved location information; the message carries a broadcast message of Received Signal Strength Indication (RSSI) information and parameter information when the second wireless equipment receives an instruction message sent by the installed wireless equipment;
the processor is used for giving the position of the installed wireless equipment according to the RSSI information and the parameter information of the wireless equipment corresponding to the RSSI information; and
and analyzing the relative position relationship between at least one known wireless device and the installed wireless device to give the position of each wireless device on the engineering plan.
Preferably, the processor is further configured to:
after the position of each wireless device on the engineering plan is given, sending an opening/closing control instruction to at least one wireless device and requesting the wireless device to return corresponding opening/closing state information;
comparing the open/close state information with expected state information corresponding to the open/close control command to obtain a corresponding comparison result;
and judging the position information according to the comparison result, if the opening/closing state information is consistent with the expected state information corresponding to the opening/closing control command, verifying that the position information of the wireless equipment is correct, otherwise, verifying that the position information of the wireless equipment is wrong.
Preferably, the area range determined by the wireless device, where the processor gives the position on the engineering plan, specifically includes at least one of the following:
the area ranges determined by different floors, the area ranges determined by the same floor, the area ranges determined by different rooms on the same floor, and the area ranges determined by the same room on the same floor.
In a third aspect, an embodiment of the present invention provides a wireless device, where the wireless device includes:
the receiving module is used for receiving specific instructions of RSSI (received signal strength indicator) information and parameter information returned to the wireless equipment aiming at instruction messages sent by the wireless equipment arranged at a plurality of reserved positions;
the sending module sends a broadcast message carrying RSSI information and parameter information according to the specific instruction received by the receiving module;
the processor identifies the broadcast message matched with the parameter information according to the parameter information of the wireless equipment at a specific reserved position; and
and reading RSSI information carried in the broadcast message matched with the parameter information and the parameter information of the wireless equipment corresponding to the RSSI information, and recording the read RSSI information and the parameter information.
The embodiment of the invention provides an automatic positioning method of wireless equipment in a building, which comprises the steps of obtaining a plurality of pieces of reserved position information of the wireless equipment in the building, and marking the reserved positions of the wireless equipment on a wireless equipment engineering plan of the building; receiving a message of a second wireless device adjacent to the installed wireless device after the wireless device is installed in a plurality of reserved locations indicated by the plurality of reserved location information; the message carries a broadcast message of Received Signal Strength Indication (RSSI) information and parameter information when the second wireless equipment receives an instruction message sent by the installed wireless equipment; giving the position of the installed wireless equipment according to the RSSI information and the parameter information of the wireless equipment corresponding to the RSSI information; and analyzing the relative position relationship between at least one known wireless device and the installed wireless device, and giving the position of each wireless device on the engineering plan, thereby achieving the purpose of intelligently controlling the wireless devices on the engineering plan. The embodiment of the invention gives the position of each wireless device on the engineering plan by analyzing the relative position relationship between at least one known wireless device and the installed wireless device, thereby realizing the purpose of intelligently controlling the wireless devices on the engineering plan.
Drawings
FIG. 1 is a schematic diagram of the reserved positions of LED lamps identified on a plan view of an engineering project in the practice of the present invention;
FIG. 2 is a schematic view of the LED lamp shown in FIG. 1 installed in a predetermined position;
FIG. 3 is a flow chart illustrating a method for automatically locating a wireless device in a building according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of an LED lamp installed in a reserved position of an engineering plan view in an actual application scenario of the present invention;
FIG. 5 is a schematic diagram of the MAC address of the LED lamp corresponding to FIG. 4 determining the corner reserve position of the engineering plan;
FIG. 6 is a schematic diagram of the MAC address of the LED lamp corresponding to FIG. 4 determining the side edge reserve position of the engineering plan;
FIG. 7 is a schematic diagram of the MAC address of the LED lamp corresponding to FIG. 4 determining the central reserved location of the engineering plan;
FIG. 8 is a schematic diagram corresponding to FIG. 4 for determining the MAC address of each LED lamp on the engineering plan;
FIG. 9 is another schematic diagram corresponding to FIG. 4 for determining the MAC address of each LED lamp on the engineering plan;
FIG. 10 is a further schematic diagram corresponding to FIG. 4 for determining the MAC address of each LED lamp on the engineering plan;
FIG. 11 is a schematic diagram of the MAC address of an LED lamp with an optimized method to infer corner positions on an engineering plan;
FIG. 12 is a block diagram illustrating the internal structure of an automatic positioning apparatus for wireless devices in a building according to an embodiment of the present invention;
fig. 13 is a block diagram of an internal structure of a wireless device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
To facilitate an understanding of embodiments of the present invention, the following detailed description will be further explained with reference to the accompanying drawings.
In the technical scheme provided by the invention, a plurality of pieces of reserved position information of wireless equipment in a building are obtained, and the reserved positions of the wireless equipment are marked on a wireless equipment engineering plan of the building; after wireless equipment is installed in a plurality of reserved positions indicated by a plurality of reserved position information, receiving a broadcast message carrying Received Signal Strength Indication (RSSI) information and parameter information of adjacent wireless equipment when the wireless equipment is used for receiving an instruction message sent by the wireless equipment installed in the plurality of reserved positions; giving the position of the installed wireless equipment according to the RSSI information and the parameter information of the wireless equipment corresponding to the RSSI information; and analyzing the relative position relationship between at least one known wireless device and the installed wireless device, and giving the position of each wireless device on the engineering plan, thereby achieving the purpose of intelligently controlling the wireless devices on the engineering plan.
The technical scheme of the invention is explained in detail in the following with the accompanying drawings.
Fig. 1 is a schematic diagram of the reserved positions of LED lamps marked on a plan view of the engineering in the practical application of the present invention. As can be seen from fig. 1, 8 positions, in particular, 8 positions, identified from a to H, are reserved for the LED lamp.
Fig. 2 is a schematic view of the LED lamp installed in the reserved position shown in fig. 1. As can be seen from fig. 2: an LED lamp with a unique MAC address is installed in a reserved location as shown in fig. 1.
It should be noted that, for the sake of convenience of distinction, LED lamps with different MAC addresses are assigned with different numbers. As shown in fig. 2, the numbers range from No. 1 LED lamp to No. 8 LED lamp.
The scheme provided by the embodiment of the invention is that the position of each wireless device on the engineering plan is given by analyzing the signal strength of the instruction messages sent by a plurality of wireless devices and received by the adjacent wireless devices. As shown in fig. 2, MAC addresses of the LED lamps at positions 1-8 can be obtained, and the MAC addresses are used to identify wireless devices on the engineering plan, thereby achieving the purpose of intelligent control.
Since the MAC address of the LED lamp is known, the engineering plan is also known, and after the one-to-one correspondence relationship between the LED lamp and the reserved position is obtained, for example, the MAC address of the LED lamp installed at the reserved position a is: B8-27-EB-F1-CD-01, and numbered No. 1. Then in practical application, when intelligent control needs to be performed on the No. 1 LED lamp, the area at the position A displayed on the engineering plan is lightly touched, and the MAC address of the destination can be sent as follows: the control instruction of B8-27-EB-F1-CD-01 can control the number 1 LED lamp to perform a series of intelligent operations of turning on, or turning off, and dimming by 50%.
As shown in fig. 3, the method for automatically positioning a wireless device in a building according to an embodiment of the present invention includes the following steps:
s301: a plurality of reserved location information for wireless devices within a building is obtained, and reserved locations for the wireless devices are identified on a wireless device engineering plan for the building.
S302: receiving a message of a second wireless device adjacent to the installed wireless device after the wireless device is installed in a plurality of reserved locations indicated by the plurality of reserved location information; the message carries a broadcast message of Received Signal Strength Indication (RSSI) information and parameter information of the second wireless device when receiving the instruction message sent by the installed wireless device.
It should be noted that, the Received Signal Strength Indication (RSSI) information shows that the current wireless device can sense the wireless device with the strongest RSSI Signal in the vicinity.
The wireless device can be an LED lamp or a sensor. The wireless device is exemplified as an LED lamp. At this time, the parameter information of the wireless device carried in the broadcast message includes at least one of the following: MAC address information of the LED lamp, and coding information of the LED lamp.
S303: and giving the position of the installed wireless equipment according to the RSSI information and the parameter information of the wireless equipment corresponding to the RSSI information.
S304: and analyzing the relative position relationship between at least one known wireless device and the installed wireless device to give the position of each wireless device on the engineering plan.
Specifically, the known relative positional relationship of the wireless device and the mounted wireless device is presented by way of a list and/or pattern.
Further, the area range determined by the wireless device specifically includes at least one of the following:
the area ranges determined by different floors, the area ranges determined by the same floor, the area ranges determined by different rooms on the same floor, and the area ranges determined by the same room on the same floor.
In particular, the area areas defined by different floors are in particular the area areas defined by adjacent floors.
Further, the area ranges determined by different rooms on the same floor are the area ranges determined by adjacent rooms on the same floor.
Fig. 4 is a schematic diagram of an LED lamp installed in a reserved position of an engineering plan view in a practical application scenario of the present invention, as shown in fig. 4.
For example, the MAC address is: the lamp of B8-27-EB-F1-CD-11 was installed at the position numbered 11. Through the technical scheme provided by the embodiment of the invention, the MAC address is as follows: the lamp B8-27-EB-F1-CD-11 is arranged at the position with the number of 11 and corresponds to a certain reserved position A1 of the engineering plan view shown in figure 4.
In the technical solution provided in the embodiment of the present invention, in a first case, only the engineering plan of the wireless device in the building is obtained, and after the wireless device is installed in the plurality of reserved locations indicated by the plurality of reserved location information, for the instruction message sent by the wireless device installed in the plurality of reserved locations, the RSSI information carried in the received broadcast message and the parameter information of the wireless device corresponding to the RSSI information are analyzed, and the location of each wireless device on the engineering plan is finally given by analyzing the relative location relationship between the plurality of known wireless devices and the neighboring wireless devices.
It should be noted that at least one relative positional relationship between the wireless device and the neighboring wireless device can be presented by way of a list and/or pattern. In the practical application scenario of the present invention, the relative position relationship between the wireless device and the adjacent wireless device is presented in a pattern manner. And the pattern formed by connecting the point representing the central position of the current LED lamp with the point representing the central position of the LED lamp with the strongest RSSI signal is used for presenting the relative position relationship between the current wireless equipment and the adjacent wireless equipment.
Specifically, if the current wireless device is located at four corners of the engineering plan shown in fig. 4, the MAC addresses of the LED lamps including the MAC address of the current LED lamp and having the strongest RSSI signal are two, and at this time, the pattern formed by connecting the point representing the center position of the current LED lamp and the point representing the center position of the LED lamp having the strongest RSSI signal is specifically:
Figure BDA0001114041180000121
or is that
Figure BDA0001114041180000122
Or is that
Figure BDA0001114041180000123
Or is that
Figure BDA0001114041180000124
At this time, the possible reserved positions of the current LED lamps are: a1, or C1, or G1, or I1.
As shown in fig. 5, by reading the RSSI information carried in the broadcast message and the parameter information of the wireless device corresponding to the RSSI information, and the reserved location identified on the engineering plan, the following contents can be obtained respectively:
the possible reserved positions of the LED lamp with the MAC address of B8-27-EB-F1-CD-11 on the engineering plan are as follows: a1, or C1, or G1, or I1.
The possible reserved positions of the LED lamp with the MAC address of B8-27-EB-F1-CD-13 on the engineering plan are as follows: a1, or C1, or G1, or I1.
The possible reserved positions of the LED lamp with the MAC address of B8-27-EB-F1-CD-17 on the engineering plan are as follows: a1, or C1, or G1, or I1.
The possible reserved positions of the LED lamp with the MAC address of B8-27-EB-F1-CD-19 on the engineering plan are as follows: a1, or C1, or G1, or I1.
It should be noted that, because the pattern formed by connecting the point representing the center position of the LED lamp at the corner with the point representing the center position of the LED lamp with the strongest RSSI signal is in a regular shape, it is desirable to further determine the MAC address of the LED lamp at the reserved position of the corner, and further, it is necessary to use the RSSI information and the corresponding parameter information fed back by the remaining LED lamps at the sides and the LED lamp at the center on the engineering plan. For details, please refer to the description of the LED lamps at the sides and the LED lamp at the center, which are not described herein again.
Fig. 6 is a schematic diagram of the MAC address of the LED lamp corresponding to fig. 4, which determines the side edge reserve position of the engineering plan, as shown in fig. 6.
If the current wireless device is located at the side of the engineering plan shown in fig. 4, the MAC addresses of the current LED lamps are included, and the number of the MAC addresses of the LED lamp with the strongest RSSI signal is three, at this time, the pattern formed by connecting the point representing the center position of the current LED lamp and the point representing the center position of the LED lamp with the strongest RSSI signal is specifically:
Figure BDA0001114041180000141
or is that
Figure BDA0001114041180000142
Or is that
Figure BDA0001114041180000143
Or is that
Figure BDA0001114041180000144
At this time, the possible reserved positions of the current LED lamps are: b1, or D1, or F1, or H1.
As shown in fig. 6, by reading the RSSI information carried in the broadcast message and the parameter information of the wireless device corresponding to the RSSI information, and the reserved location identified on the engineering plan, the following contents can be obtained respectively:
the possible reserved positions of the LED lamp with the MAC address of B8-27-EB-F1-CD-12 on the engineering plan are as follows: b1, or D1, or F1, or H1.
The possible reserved positions of the LED lamp with the MAC address of B8-27-EB-F1-CD-14 on the engineering plan are as follows: b1, or D1, or F1, or H1.
The possible reserved positions of the LED lamp with the MAC address of B8-27-EB-F1-CD-16 on the engineering plan are as follows: b1, or D1, or F1, or H1.
The possible reserved positions of the LED lamp with the MAC address of B8-27-EB-F1-CD-18 on the engineering plan are as follows: b1, or D1, or F1, or H1.
Fig. 7 is a schematic diagram of the MAC address of the LED lamp corresponding to fig. 4 determining the central reserved position of the engineering plan, as shown in fig. 7.
If the current wireless device is located in the center of the engineering plan shown in fig. 4, the MAC addresses of the LED lamps including the MAC address of the current LED lamp and having the strongest RSSI signal are four, and at this time, the pattern formed by connecting the point representing the center position of the current LED lamp and the point representing the center position of the LED lamp having the strongest RSSI signal is specifically:
Figure BDA0001114041180000151
at this time, the possible reserved positions of the current LED lamps are: E1.
as shown in fig. 7, by reading the RSSI information carried in the broadcast message and the parameter information of the wireless device corresponding to the RSSI information, and the reserved location identified on the engineering plan, the following contents can be obtained respectively: the possible reserved positions of the LED lamp with the MAC address of B8-27-EB-F1-CD-15 on the engineering plan are as follows: E1.
fig. 8 is a schematic diagram of determining the MAC address of each LED lamp on the engineering plan corresponding to fig. 4, as shown in fig. 8.
Acquiring a plurality of pieces of reserved position information of wireless equipment in a building, and identifying the reserved positions of the wireless equipment on a wireless equipment engineering plan of the building;
after wireless equipment is installed in a plurality of reserved positions indicated by a plurality of reserved position information, receiving a broadcast message carrying Received Signal Strength Indication (RSSI) information and parameter information aiming at instruction messages sent by the wireless equipment installed in the plurality of reserved positions;
according to RSSI information carried in the broadcast message and parameter information of the wireless equipment corresponding to the RSSI information, giving at least one relative position relation between the wireless equipment and adjacent wireless equipment;
the relative position relationship of a plurality of known wireless devices and adjacent wireless devices is analyzed, and the position of each wireless device on the engineering plan is given.
The RSSI information carried in the broadcast messages shown in fig. 5, 6, and 7 and the parameter information of the wireless device corresponding to the RSSI information are read, and the reserved location identified on the engineering plan is read.
Finally, the one-to-one correspondence relationship between 9 positions from the reserved position A1 to the I1 on the obtained engineering plan and 9 LED lamps from the MAC address B8-27-EB-F1-CD-11 to the MAC address B8-27-EB-F1-CD-19 is obtained.
In the technical solution provided in the embodiment of the present invention, in order to ensure accuracy of the position of each wireless device on the engineering plan, after the position of each wireless device on the engineering plan is given, the method further includes:
sending an opening/closing control instruction to at least one wireless device and requesting the wireless device to return corresponding opening/closing state information;
comparing the open/close state information with expected state information corresponding to the open/close control command to obtain a corresponding comparison result;
and judging the position information according to the comparison result, if the opening/closing state information is consistent with the expected state information corresponding to the opening/closing control instruction, verifying that the position information of the wireless equipment is correct, and otherwise, verifying that the position information of the wireless equipment is wrong.
In an actual application scene, the process of verifying the determined position information of the wireless device can be controlled by controlling APP software installed on an engineering plan of the mobile terminal. For example, an LED lamp that was previously lit before it was intended to be turned off, and that was in the reserved A1 position corresponding to FIG. 4, with the MAC address B8-27-EB-F1-CD-11, and that is shown as being lit green on the APP operating interface.
On the interface displayed by the APP of the engineering plan view, a command operation for turning off the LED lamp with the MAC address of B8-27-EB-F1-CD-11 is input in the reserved A1 position area displayed, and further on a keyboard, and the change of the indication color of the reserved A1 position area on the interface displayed by the APP of the engineering plan view is checked. If the display is in a green bright state and is changed into a gray closed state, the following results are proved: the verified current location information of the wireless device is correct, otherwise, the current location information is incorrect, which is not described herein again.
Fig. 9 is another schematic diagram corresponding to fig. 4 for determining the MAC address of each LED lamp on the engineering plan, as shown in fig. 9.
By reading the RSSI information and the parameter information of the wireless device corresponding to the RSSI information carried in the broadcast messages shown in fig. 5, 6 and 7, and the reserved position of the LED lamp identified on the engineering plan, first, the LED lamp with the MAC address B8-27-EB-F1-CD-15 is determined to be at the reserved position E1.
Further, after the MAC address of the LED lamp at the reserved position E1 is known, in combination with other information, the reserved position B1, the reserved positions a1 and C1, the reserved positions D1 and F1, the reserved position H1, and finally the reserved positions G1 and I1 are respectively derived in turn.
Finally, the one-to-one correspondence relationship between 9 positions from the reserved position A1 to the I1 on the obtained engineering plan and 9 LED lamps from the MAC address B8-27-EB-F1-CD-11 to the MAC address B8-27-EB-F1-CD-19 is obtained.
As shown in fig. 9, after the MAC address of the LED lamp at the reserved position E1 is determined first in the same area, the one-to-one correspondence relationship between the MAC address of each LED lamp and the reserved position on the engineering plan is finally determined by further combining the read RSSI information carried in the broadcast messages shown in fig. 5, 6, and 7 and the parameter information of the wireless device corresponding to the RSSI information, and the reserved position identified by the LED lamp on the engineering plan.
Fig. 10 is a further schematic diagram of determining the MAC address of each LED lamp on the engineering plan, corresponding to fig. 4, as shown in fig. 10.
Unlike fig. 9, the embodiment shown in fig. 10 determines the MAC address of the LED lamp installed in the reserved position on the engineering plan view by knowing the MAC address of the LED lamp in the reserved position in different areas.
And determining the MAC address of the LED lamp at the reserved position of the area a adjacent to the area b according to the MAC address information of the LED lamp at the known reserved position of the adjacent area b.
First, through reading the RSSI information carried in the broadcast messages shown in fig. 5, 6 and 7 and the parameter information of the wireless device corresponding to the RSSI information, and the reserved location identified by the LED lamp on the engineering plan. The above information is only a part of information, and it is necessary to read: the MAC address of the LED lamp located in the area B is B8-27-EB-F1-CD-21, and the MAC address of the LED lamp with the strongest RSSI signal is specifically as follows: B8-27-EB-F1-CD-11, B8-27-EB-F1-CD-22, B8-27-EB-F1-CD-24, and the reserved positions of the LED lamps with the MAC address of B8-27-EB-F1-CD-21 in the area B are specifically as follows: the reserved position of the upper left corner a2 of area b.
Further, in order to more accurately determine the one-to-one correspondence between the known reserved position of the area a and the MAC address of the LED lamp installed in the reserved position according to the one-to-one correspondence between the known reserved position of the area b and the MAC address of the LED lamp installed in the reserved position, it is further required to know: the relative position relation of the reserved position on the engineering plan view of the area a and the reserved position on the engineering plan view of the area b.
Further, the MAC address is B8-27-EB-F1-CD-11, and the possible reserved positions of the LED lamp with the number of 11 are A1, or C1, or G1, or I1 of the area a, as can be known from the RSSI information carried in the read broadcast message and the parameter information of the wireless device corresponding to the RSSI information.
Further, the MAC address of the area a is B8-27-EB-F1-CD-11, and the MAC address of the position of the upper left corner A2 of the area B is B8-27-EB-F1-CD-21, which is known by reading the RSSI information carried in the broadcast message and the parameter information of the wireless device corresponding to the RSSI information. Finally, the following is obtained: the MAC address is B8-27-EB-F1-CD-11, and the reserved position of the LED lamp with the number of 11 is A1 of the area a.
Fig. 11 is a schematic diagram of the MAC address of the LED lamp, which is estimated to be a corner position on the engineering plan view by the optimization method, as shown in fig. 11.
The LED lamps having MAC addresses of B8-27-EB-F1-CD-40 to B8-27-EB-F1-CD-90 were installed in the engineering plan view as shown in fig. 11. The MAC address of the LED lamp at the corner position on the engineering plan can be quickly deduced through an optimization method.
If the current wireless device is located at four corners of the engineering plan as shown in fig. 11, the MAC addresses of the LED lamps including the MAC address of the current LED lamp and having the strongest RSSI signal are two, and at this time, the pattern formed by connecting the point representing the center position of the current LED lamp and the point representing the center position of the LED lamp having the strongest RSSI signal is specifically:
Figure BDA0001114041180000201
or is that
Figure BDA0001114041180000202
Or is that
Figure BDA0001114041180000203
Or is that
Figure BDA0001114041180000204
At this time, the possible reserved positions of the current LED lamps are: m, or n, or o, or p.
As shown in fig. 11, by reading the RSSI information carried in the broadcast message and the parameter information of the wireless device corresponding to the RSSI information, and the reserved location identified on the engineering plan, the following contents can be obtained respectively:
the possible reserved positions of the LED lamp with the MAC address of B8-27-EB-F1-CD-42 on the engineering plan are as follows: m, or n, or o, or p.
The possible reserved positions of the LED lamp with the MAC address of B8-27-EB-F1-CD-52 on the engineering plan are as follows: m, or n, or o, or p.
The possible reserved positions of the LED lamp with the MAC address of B8-27-EB-F1-CD-62 on the engineering plan are as follows: m, or n, or o, or p.
The possible reserved positions of the LED lamp with the MAC address of B8-27-EB-F1-CD-72 on the engineering plan are as follows: m, or n, or o, or p.
It should be noted that, because the pattern formed by connecting the point representing the center position of the LED lamp at the corner with the point representing the center position of the LED lamp with the strongest RSSI signal is in a regular shape, it is desirable to further determine the MAC address of the LED lamp at the reserved position of the corner, and further, it is necessary to use the RSSI information and the corresponding parameter information fed back by the remaining LED lamps at the sides and the LED lamp at the center on the engineering plan. For details, please refer to the descriptions of the LED lamps at the sides and the LED lamp at the center, which are not described herein again.
In summary, the method for automatically positioning a wireless device in a building according to the embodiments of the present invention obtains information of a plurality of reserved positions of the wireless device in the building, and identifies the reserved positions of the wireless device on a wireless device engineering plan of the building; receiving a message of a second wireless device adjacent to the installed wireless device after the wireless device is installed in a plurality of reserved locations indicated by the plurality of reserved location information; the message carries a broadcast message of Received Signal Strength Indication (RSSI) information and parameter information when the second wireless equipment receives an instruction message sent by the installed wireless equipment; giving the position of the installed wireless equipment according to the RSSI information and the parameter information of the wireless equipment corresponding to the RSSI information; and analyzing the relative position relationship between at least one known wireless device and the installed wireless device, and giving the position of each wireless device on the engineering plan, thereby achieving the purpose of intelligently controlling the wireless devices on the engineering plan.
Fig. 12 is a block diagram illustrating an internal structure of an automatic positioning apparatus for wireless devices in a building according to an embodiment of the present invention; as shown in fig. 12, an automatic positioning apparatus for wireless devices in a building according to an embodiment of the present invention includes: an obtaining module 1201, a receiving module 1202 and a processor 1203.
Specifically, the acquisition module acquires a plurality of reserved position information of the wireless device in the building and identifies the reserved position of the wireless device on a wireless device engineering plan of the building;
a receiving module that receives a message of a second wireless device adjacent to the installed wireless device after the wireless device is installed in a plurality of reserved locations indicated by the plurality of reserved location information; the message carries a broadcast message of Received Signal Strength Indication (RSSI) information and parameter information when the second wireless equipment receives an instruction message sent by the installed wireless equipment;
the processor gives the position of the installed wireless equipment according to the RSSI information and the parameter information of the wireless equipment corresponding to the RSSI information; and
and analyzing the relative position relationship between at least one known wireless device and the installed wireless device to give the position of each wireless device on the engineering plan.
Further, the processor is further configured to: the location of each wireless device given on the engineering plan is verified.
Specifically, the step of verifying the position of the wireless device on the engineering plan by the processor specifically includes: after the position of each wireless device on the engineering plan is given, sending an opening/closing control instruction to at least one wireless device and requesting the wireless device to return corresponding opening/closing state information;
comparing the open/close state information with expected state information corresponding to the open/close control command to obtain a corresponding comparison result;
and judging the position information according to the comparison result, if the opening/closing state information is consistent with the expected state information corresponding to the opening/closing control instruction, verifying that the position information of the wireless equipment is correct, and otherwise, verifying that the position information of the wireless equipment is wrong.
Further, the area range determined by the wireless device given the position on the engineering plan by the processor specifically comprises at least one of the following:
the area ranges determined by different floors, the area ranges determined by the same floor, the area ranges determined by different rooms on the same floor, and the area ranges determined by the same room on the same floor.
Further, the processor gives the area range determined by the wireless device of the position on the engineering plan as: the area areas defined by different floors are in particular the area areas defined by adjacent floors.
Further, the processor gives the area range determined by the wireless device of the position on the engineering plan as: the area ranges determined by different rooms on the same floor are the area ranges determined by adjacent rooms on the same floor.
In summary, in the automatic positioning apparatus for wireless devices in a building provided in the embodiments of the present invention, after the wireless devices are installed in the plurality of reserved locations indicated by the plurality of reserved location information, the receiving module receives a message of a second wireless device adjacent to the installed wireless device; the message carries a broadcast message of Received Signal Strength Indication (RSSI) information and parameter information when the second wireless equipment receives an instruction message sent by the installed wireless equipment; the processor gives the position of the installed wireless equipment according to the RSSI information and the parameter information of the wireless equipment corresponding to the RSSI information; and analyzing the relative position relationship between at least one known wireless device and the installed wireless device, and giving the position of each wireless device on the engineering plan, thereby achieving the purpose of intelligently controlling the wireless devices on the engineering plan.
Fig. 13 is a block diagram illustrating an internal structure of a wireless device according to an embodiment of the present invention; as shown in fig. 13, a wireless device provided in an embodiment of the present invention includes: a receiving module 1301, a transmitting module 1302, and a processor 1303.
Specifically, the receiving module receives specific instructions of RSSI (received signal strength indicator) information and parameter information returned to the wireless equipment aiming at instruction messages sent by the wireless equipment installed at a plurality of reserved positions;
the sending module sends a broadcast message carrying RSSI information and parameter information according to the specific instruction received by the receiving module;
the processor identifies the broadcast message matched with the parameter information according to the parameter information of the wireless equipment at the specific reserved position; and reading the RSSI information carried in the broadcast message matched with the parameter information and the parameter information of the wireless equipment corresponding to the RSSI information, and recording the read RSSI information and the parameter information.
According to the technical scheme, a plurality of pieces of reserved position information of wireless equipment in a building are obtained, and the reserved positions of the wireless equipment are marked on a wireless equipment engineering plan of the building; receiving a message of a second wireless device adjacent to the installed wireless device after the wireless device is installed in a plurality of reserved locations indicated by the plurality of reserved location information; the message carries a broadcast message of Received Signal Strength Indication (RSSI) information and parameter information when the second wireless equipment receives an instruction message sent by the installed wireless equipment; giving the position of the installed wireless equipment according to the RSSI information and the parameter information of the wireless equipment corresponding to the RSSI information; and analyzing the relative position relationship between at least one known wireless device and the installed wireless device, and giving the position of each wireless device on the engineering plan, thereby achieving the purpose of intelligently controlling the wireless devices on the engineering plan.
The above-mentioned embodiments are intended to illustrate the objects, technical solutions and advantages of the present invention in further detail, and it should be understood that the above-mentioned embodiments are merely exemplary embodiments of the present invention, and are not intended to limit the scope of the present invention, and any modifications, equivalent substitutions, improvements and the like made within the spirit and principle of the present invention should be included in the scope of the present invention.

Claims (10)

1. A method for automatically locating a wireless device in a building, comprising:
acquiring a plurality of pieces of reserved position information of the wireless equipment in the building, and identifying the reserved positions of the wireless equipment on a wireless equipment engineering plan of the building;
receiving a message of a second wireless device adjacent to the installed wireless device after the wireless device is installed in a plurality of reserved locations indicated by the plurality of reserved location information; the message carries a broadcast message of Received Signal Strength Indication (RSSI) information and parameter information when the second wireless equipment receives an instruction message sent by the installed wireless equipment;
giving the position of the installed wireless equipment according to the RSSI information and the parameter information of the wireless equipment corresponding to the RSSI information;
and analyzing the relative position relationship between at least one known wireless device and the installed wireless device, and giving the position of each wireless device on the engineering plan, wherein a pattern formed by connecting a point representing the central position of the current wireless device with a point representing the central position of the wireless device with the strongest RSSI signal is used for presenting the relative position relationship between the current wireless device and the adjacent wireless devices.
2. The method of claim 1, wherein after the location of each wireless device on the engineering plan is given, the method further comprises:
sending an opening/closing control instruction to at least one wireless device and requesting the wireless device to return corresponding opening/closing state information;
comparing the open/close state information with expected state information corresponding to the open/close control command to obtain a corresponding comparison result;
and judging the position information according to the comparison result, if the opening/closing state information is consistent with the expected state information corresponding to the opening/closing control command, verifying that the position information of the wireless equipment is correct, otherwise, verifying that the position information of the wireless equipment is wrong.
3. The method of claim 1, wherein the area range determined by the wireless device specifically comprises at least one of:
the area ranges determined by different floors, the area ranges determined by the same floor, the area ranges determined by different rooms on the same floor, and the area ranges determined by the same room on the same floor.
4. Method according to claim 3, characterized in that the area coverage determined by different floors is in particular the area coverage determined by adjacent floors.
5. Method according to claim 3, characterized in that the area areas defined by different rooms on the same floor are in particular the area areas defined by adjacent rooms on the same floor.
6. The method of claim 1, wherein the wireless device is an LED lamp, and the parameter information of the wireless device carried in the broadcast message comprises at least one of:
MAC address information of the LED lamp, and coding information of the LED lamp.
7. An apparatus for automatically locating a wireless device in a building, comprising:
the acquisition module is used for acquiring a plurality of pieces of reserved position information of the wireless equipment in the building and marking the reserved positions of the wireless equipment on a wireless equipment engineering plan of the building;
a receiving module that receives a message of a second wireless device adjacent to the installed wireless device after the wireless device is installed in a plurality of reserved locations indicated by the plurality of reserved location information; the message carries a broadcast message of Received Signal Strength Indication (RSSI) information and parameter information when the second wireless equipment receives an instruction message sent by the installed wireless equipment;
the processor is used for giving the position of the installed wireless equipment according to the RSSI information and the parameter information of the wireless equipment corresponding to the RSSI information; and
and analyzing the relative position relationship between at least one known wireless device and the installed wireless device, and giving the position of each wireless device on the engineering plan, wherein a pattern formed by connecting a point representing the central position of the current wireless device with a point representing the central position of the wireless device with the strongest RSSI signal is used for presenting the relative position relationship between the current wireless device and the adjacent wireless devices.
8. The apparatus of claim 7, wherein the processor is further configured to:
after the position of each wireless device on the engineering plan is given, sending an opening/closing control instruction to at least one wireless device and requesting the wireless device to return corresponding opening/closing state information;
comparing the open/close state information with expected state information corresponding to the open/close control command to obtain a corresponding comparison result;
and judging the position information according to the comparison result, if the opening/closing state information is consistent with the expected state information corresponding to the opening/closing control command, verifying that the position information of the wireless equipment is correct, otherwise, verifying that the position information of the wireless equipment is wrong.
9. The apparatus of claim 8, wherein the area range determined by the wireless device for which the processor gives a location on the engineering plan specifically comprises at least one of:
the area ranges determined by different floors, the area ranges determined by the same floor, the area ranges determined by different rooms on the same floor, and the area ranges determined by the same room on the same floor.
10. A wireless device, comprising:
the receiving module is used for receiving specific instructions of RSSI (received signal strength indicator) information and parameter information returned to the wireless equipment aiming at instruction messages sent by the wireless equipment arranged at a plurality of reserved positions;
the sending module sends a broadcast message carrying RSSI information and parameter information according to the specific instruction received by the receiving module;
the processor identifies the broadcast message matched with the parameter information according to the parameter information of the wireless equipment at a specific reserved position; and
reading RSSI information carried in a broadcast message matched with the parameter information and parameter information of the wireless equipment corresponding to the RSSI information, recording the read RSSI information and the parameter information, giving the position of the installed wireless equipment according to the RSSI information and the parameter information of the wireless equipment corresponding to the RSSI information, further analyzing the relative position relation between at least one known wireless equipment and the installed wireless equipment, and giving the position of each wireless equipment on an engineering plan, wherein a pattern formed by connecting a point representing the central position of the current wireless equipment with a point representing the central position of the wireless equipment with the strongest RSSI signal is used for presenting the relative position relation between the current wireless equipment and the adjacent wireless equipment.
CN201610822510.6A 2016-09-13 2016-09-13 Method and device for automatically positioning wireless equipment in building Active CN108307341B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610822510.6A CN108307341B (en) 2016-09-13 2016-09-13 Method and device for automatically positioning wireless equipment in building

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610822510.6A CN108307341B (en) 2016-09-13 2016-09-13 Method and device for automatically positioning wireless equipment in building

Publications (2)

Publication Number Publication Date
CN108307341A CN108307341A (en) 2018-07-20
CN108307341B true CN108307341B (en) 2021-05-04

Family

ID=62871714

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610822510.6A Active CN108307341B (en) 2016-09-13 2016-09-13 Method and device for automatically positioning wireless equipment in building

Country Status (1)

Country Link
CN (1) CN108307341B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112039733B (en) * 2020-08-12 2022-10-28 深圳市欧瑞博科技股份有限公司 Equipment position detection method, equipment position detection device and intelligent panel

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101138279A (en) * 2005-03-11 2008-03-05 皇家飞利浦电子股份有限公司 Grouping wireless lighting nodes according to a building room layout
CN102187247A (en) * 2008-10-16 2011-09-14 皇家飞利浦电子股份有限公司 Method and apparatus for automatic assigning of devices
CN102185746A (en) * 2011-04-27 2011-09-14 深圳和而泰智能控制股份有限公司 Automatic layout method and system for indoor equipment
CN102480744A (en) * 2010-11-22 2012-05-30 丛林网络公司 Automatic access point location, planning, and coverage optimization
CN103391309A (en) * 2012-05-07 2013-11-13 黄荣堂 Method and system for determining position of router
CN103476169A (en) * 2013-07-18 2013-12-25 浙江生辉照明有限公司 Indoor navigation control system and method based on LED lighting devices
EP2713178A1 (en) * 2012-10-01 2014-04-02 Jung-Tang Huang Earth positioning system
CN104837145A (en) * 2015-05-21 2015-08-12 杭州华三通信技术有限公司 Method and device for automatically generating AP (access point) position

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101138279A (en) * 2005-03-11 2008-03-05 皇家飞利浦电子股份有限公司 Grouping wireless lighting nodes according to a building room layout
CN102187247A (en) * 2008-10-16 2011-09-14 皇家飞利浦电子股份有限公司 Method and apparatus for automatic assigning of devices
CN102480744A (en) * 2010-11-22 2012-05-30 丛林网络公司 Automatic access point location, planning, and coverage optimization
CN102185746A (en) * 2011-04-27 2011-09-14 深圳和而泰智能控制股份有限公司 Automatic layout method and system for indoor equipment
CN103391309A (en) * 2012-05-07 2013-11-13 黄荣堂 Method and system for determining position of router
EP2713178A1 (en) * 2012-10-01 2014-04-02 Jung-Tang Huang Earth positioning system
CN103476169A (en) * 2013-07-18 2013-12-25 浙江生辉照明有限公司 Indoor navigation control system and method based on LED lighting devices
CN104837145A (en) * 2015-05-21 2015-08-12 杭州华三通信技术有限公司 Method and device for automatically generating AP (access point) position

Also Published As

Publication number Publication date
CN108307341A (en) 2018-07-20

Similar Documents

Publication Publication Date Title
JP5198445B2 (en) Realization and operation of autonomous limited network
WO2018133311A1 (en) Indoor positioning method and device
JP7011659B2 (en) Beacon verification device
CN106961772B (en) Instant lighting control system and instant lighting control method
US20090066473A1 (en) Commissioning wireless network devices according to an installation plan
EP3360014A1 (en) Provisioning and commissioning retrofitted devices
US10178739B2 (en) Assigning controllable luminaire devices to control groups
WO2018024528A1 (en) Building automation system with commissioning device
US20190340913A1 (en) Systems and Methods to Control Light Fixture Operation using Gas Concentration Sensors
CN103563311A (en) Automatically commissioning of devices of networked control system
CN108353477B (en) Notification lighting control
US20200265647A1 (en) Augmented Reality-Based Lighting System Design And Commissioning
CA3004073A1 (en) Systems and methods to control light fixture operation using gas concentration sensors
CN110677272A (en) Method and system for forming a network of devices
TW201616258A (en) Zone controller system and auto-configuration method for the zone controller system
CN108307341B (en) Method and device for automatically positioning wireless equipment in building
CN219367915U (en) Apparatus for controlling heating, ventilation and air conditioning systems in buildings
US11716253B2 (en) Method, location device and system for managing network devices
WO2021192486A1 (en) Angle of arrival commissioning of lighting devices
CN112533162A (en) Internet of things synchronous control method and device based on indoor positioning
KR102213312B1 (en) Lighting apparatus, terminal, lighting system, information terminal, pairing method of lighting apparatus and program
KR102188130B1 (en) Smart lighting system, and ID registration and grouping method for the same
CN112673713B (en) Method, system, apparatus and computer readable medium for commissioning a light source
KR102188131B1 (en) Portable lighting control module and smart lighting system having the same
CN112533161B (en) Internet of things control method and device based on indoor positioning

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